JKGDevs / JediKnightGalaxies

Jedi Knight Galaxies (JKG) is a multiplayer shooter with role playing elements, played out in the Star Wars universe. The project is a full conversion game modification for Jedi Knight: Jedi Academy.
https://www.jkgalaxies.net/
GNU General Public License v2.0
34 stars 12 forks source link

Excess Shield Damage Heals #311

Closed DarthFutuza closed 4 years ago

DarthFutuza commented 4 years ago

Suppose you have a shield equipped that has 60/60, and you get hit with ion blast that does 41 dmg to the shield. Normally said weapon does 26 dmg, to exposed flesh, with regular blaster and and 20 dmg to exposed flesh (not shielded) with ion damage.

If the shield has greater than 26/60 points remaining, but less than 41/60 (27-40) ion damage type will reduce the shield completely, and then do spill over healing to your hp. eg: 27 dmg, does 26 dmg to shield, and 1 heal.

Opponent's view: image

I'm guessing this happens cause of the damage multipliers, from damage types and somehow we're ending up with a negative value, that's healing instead of being subtracted. eg: spillOverDmg = dmg - shield so we end up with spillOverDmg that's equal to negative, which then heals.