Clamp max power from sword upgrades

This commit is contained in:
Scipio Wright
2024-07-04 08:45:38 -04:00
parent 48edbdbb8b
commit 68cb57a5ca

View File

@@ -84,7 +84,7 @@ def get_att_power(state: CollectionState, player: int) -> int:
sword_upgrades = state.count("Sword Upgrade", player)
# +4 power from sword, +2 power for the next two sword (includes the attack buff from getting it)
if sword_upgrades >= 2:
power += sword_upgrades * 2
power += max(8, sword_upgrades * 2)
return power