feat: add equipment identification and item use
This commit is contained in:
@@ -93,10 +93,13 @@ func as_actor_state(attack_damage: int) -> ActorState:
|
||||
actor.focus = focus
|
||||
return actor
|
||||
|
||||
func _normalize_resources() -> void:
|
||||
func normalize_resources() -> void:
|
||||
hit_points = clampi(hit_points, 0, max_hp())
|
||||
focus = clampi(focus, 0, max_focus())
|
||||
|
||||
func _normalize_resources() -> void:
|
||||
normalize_resources()
|
||||
|
||||
func _status_for(key: StringName) -> StatusEffect:
|
||||
for effect in status_effects:
|
||||
if effect.key == key:
|
||||
|
||||
Reference in New Issue
Block a user