RepairEquipmentAction ​
Inherits: PlayerEventAction < EventAction < Resource
Action that repairs the worn equipment of player(s): all of it, or a share of the maximum durability of each piece. A broken piece works again once it has some durability. Does nothing when the project does not use durability.
Properties ​
float | percent | 100.0 |
Methods ​
String | get_player_function_description() |
bool | execute_on_players( players: Array[Player] ) |
Dictionary | save() |
void | load_data( data: Dictionary ) |
Property descriptions ​
float percent = 100.0 ​
How much each piece gets back, as a share of its maximum durability (100 = fully repaired)
Method descriptions ​
String get_player_function_description() ​
The sentence the editor shows for the action, with {placeholders} for its values.
bool execute_on_players( players: Array[Player] ) ​
Repairs the damaged pieces each player wears. False when nothing was repaired
Dictionary save() ​
The state of the action for a save.
void load_data( data: Dictionary ) ​
Restores the state of the action from a save.