ajout d'un terrain infini et la possibilité de planter n'importe où
This commit is contained in:
@@ -2,7 +2,7 @@ extends PlantEffect
|
||||
class_name DecontaminateTerrainEffect
|
||||
|
||||
func get_decontamination_radius():
|
||||
return 50 + 50 * level
|
||||
return (1 + level)
|
||||
|
||||
func get_effect_name() -> String:
|
||||
return tr("DECONTAMINATE")
|
||||
@@ -12,9 +12,9 @@ func get_effect_description() -> String:
|
||||
return ret
|
||||
|
||||
func effect(plant):
|
||||
var radius = get_decontamination_radius()
|
||||
|
||||
plant.planet.garden.impact_contamination(
|
||||
var tiles := Math.get_tiles_in_circle(
|
||||
plant.global_position,
|
||||
radius
|
||||
)
|
||||
get_decontamination_radius() * Planet.TILE_SIZE + Planet.TILE_SIZE/2.
|
||||
)
|
||||
|
||||
plant.planet.decontamination_layer.place_decontaminations(tiles, true)
|
||||
|
||||
Reference in New Issue
Block a user