hackedpassword / Z2

Zelda 2 for Unciv! A fully coherent integration of the classic NES game into the 4X gameplay of Unciv! Actively being developed, very frequently updated!
https://github.com/hackedpassword/Z2
5 stars 0 forks source link

Unciv feature: recovery #7

Open hackedpassword opened 10 months ago

hackedpassword commented 10 months ago

Using negative values for providing recovery HP instead of damage could be simply addressed by changing the notification: "Swordsman has recovered 10 HP"

No extra uniques needed.

hackedpassword commented 10 months ago

core/src/com/unciv/logic/battle/MapUnitCombatant.kt#L28 if (unit.health > 100) unit.health = 100 // For cheating modders, e.g. negative tile damage

LOL

The commit that patched infinite negative damage: https://github.com/yairm210/Unciv/commit/75c4be39a2eb82a4ec6f064f2656dabf24357e8b

hackedpassword commented 9 months ago

Result here would be a feature request to display a proper notification of health recovery.