krbz999 / artichron

2 stars 1 forks source link

[#7, #71] Automatically toggle defeated status when damaging or healing #78

Closed krbz999 closed 3 months ago

krbz999 commented 3 months ago

Closes #71.

Actor#applyDamage now applies the Defeated condition if the damage put them at 0 health. Actor#applyHealing now removes the Defeated condition if the healing raised them above 0 health.

Also fixed a bug where applyDamage didn't properly instantiate an object when given a numeric value.