omf2097 / openomf

One Must Fall 2097 Remake
http://www.openomf.org
MIT License
362 stars 35 forks source link

HARs have to go down if a hit bring them at 0 health, no matter endurance #298

Closed gdeda closed 9 years ago

gdeda commented 9 years ago

Partially related to #290

In OMF 2.1, if a HAR has little health, a shot which bring its health to 0 will end the match. In OpenOMF, in same situation, the HAR is still standing because there is some endurance left.

This PR should make things much in line with OMF behaviour

(I hope a pair of reset and force push on my fork were succesful to produce a clean PR :) )

katajakasa commented 9 years ago

PR looks good. Testing commit.

katajakasa commented 9 years ago

Tested against the original, feels close to identical. Also cleans up the code nicely.

Good to go, merging.