new mutations wip
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
extends PlantMutation
|
||||
class_name EnergizingMutation
|
||||
|
||||
func get_icon() -> Texture:
|
||||
return preload("res://common/icons/alert-triangle.svg")
|
||||
|
||||
func get_base_rarity() -> int:
|
||||
return 1
|
||||
|
||||
func get_mutation_id() -> String:
|
||||
return "ENERGIZING"
|
||||
|
||||
func get_mutation_name() -> String:
|
||||
return tr("ENERGIZING")
|
||||
|
||||
func get_mutation_description() -> String:
|
||||
return tr("ENERGIZING_EFFECT_TEXT").format({
|
||||
"bonus_energy": get_bonus_energy()
|
||||
})
|
||||
|
||||
func _start_dead_effect(plant: Plant):
|
||||
plant.region.player.data.energy += get_bonus_energy()
|
||||
|
||||
func get_bonus_energy() -> int:
|
||||
return level
|
||||
Reference in New Issue
Block a user