feat: add equipment identification and item use

This commit is contained in:
goose
2026-10-03 14:04:11 -04:00
parent 5214f5fa8b
commit e5ab923a67
20 changed files with 655 additions and 60 deletions
+3
View File
@@ -94,6 +94,9 @@ func apply_status(effect: StatusEffect) -> void:
func has_status(key: StringName) -> bool:
return status_effects.any(func(effect: StatusEffect) -> bool: return effect.key == key)
func clear_status(key: StringName) -> void:
status_effects = status_effects.filter(func(effect: StatusEffect) -> bool: return effect.key != key)
func take_damage(amount: int) -> int:
var actual := mini(maxi(0, amount), hit_points)
hit_points -= actual