feat: complete playtest parity improvements

This commit is contained in:
goose
2026-10-08 19:06:19 -04:00
parent cce25a1908
commit eca098b4b9
139 changed files with 3001 additions and 982 deletions
@@ -71,6 +71,11 @@ func recompute_player(player) -> void:
player.normalize_resources()
elif player is ActorState:
player.recompute_equipment_modifiers(attributes, skills, combat)
var main_hand := item_in_slot(&"main_hand")
if main_hand != null and main_hand.definition != null and StringName(main_hand.definition.raw.get("weapon_kind", "")) != &"ranged":
player.metadata["melee_weapon_name"] = main_hand.definition.name
else:
player.metadata.erase("melee_weapon_name")
func _accumulate_combat_modifiers(item: ItemInstance, combat: Dictionary[StringName, Variant]) -> void:
var raw := item.definition.raw