ajout des actions demandant un clic long et dev des region modifier

This commit is contained in:
2026-02-27 13:45:31 +01:00
parent e942250918
commit 8879c9d42b
18 changed files with 334 additions and 78 deletions

View File

@@ -168,15 +168,6 @@ position = Vector2(2, 7)
texture = ExtResource("10_ktnx3")
lifetime = 8.0
trail_enabled = true
trail_lifetime = 0.09999999999999999
trail_sections = 16
process_material = SubResource("ParticleProcessMaterial_mlppq")
[node name="Fog" type="GPUParticles2D" parent="Camera" unique_id=1024566195]
position = Vector2(2, 7)
texture = ExtResource("10_ktnx3")
lifetime = 8.0
trail_enabled = true
trail_lifetime = 0.09999999999999999
trail_lifetime = 0.1
trail_sections = 16
process_material = SubResource("ParticleProcessMaterial_mlppq")

View File

@@ -8,7 +8,7 @@ func get_description() -> String:
return tr("ARID_MODIFIER_DESC_TEXT")
func modify_decontamination_threshold(decontamination_threshold : float) -> float:
return decontamination_threshold
return decontamination_threshold * (1. - 0.2*level)
func modify_start_decontamination_zone_radius(start_decontamination_zone_radius : int) -> int:
return start_decontamination_zone_radius
return max(1,roundi(start_decontamination_zone_radius * (1. - 0.2*level)))

View File

@@ -0,0 +1,11 @@
extends RegionModifier
class_name HarshModifier
func get_modifier_name() -> String:
return tr("HARSH")
func get_description() -> String:
return tr("HARSH_MODIFIER_DESC_TEXT")
func modify_objective(objective : int) -> int:
return roundi(objective * (1. + 0.2*level))

View File

@@ -0,0 +1 @@
uid://bhpx4mw3b083h

View File

@@ -0,0 +1,11 @@
extends RegionModifier
class_name HumidModifier
func get_modifier_name() -> String:
return tr("HUMID")
func get_description() -> String:
return tr("HUMID_MODIFIER_DESC_TEXT")
func modify_charge(charge : int) -> int:
return charge - level

View File

@@ -0,0 +1,11 @@
extends RegionModifier
class_name PoorModifier
func get_modifier_name() -> String:
return tr("POOR")
func get_description() -> String:
return tr("POOR_MODIFIER_DESC_TEXT")
func modify_cristal_threshold(cristal_threshold : float) -> float:
return cristal_threshold * (1. - 0.2*level)

View File

@@ -0,0 +1 @@
uid://dtb1g7st67aox