pterolatypus c949a07c83
Medical Engine - Apply damage to the correct hitpoint (#7415)
* HandleDamage uses armour values to determine which hitpoint was damaged

* Tidied up comments

* Newlines

* Tabs? In MY code?!

* Added uniform caching and option to force disable caching

* Review suggestions

* Review suggestions/code style

* Spelling and select

* Removed unnecessary validity check

* Apply suggestions from code review

Co-Authored-By: commy2 <commy-2@gmx.de>

* Tweaks and optimisations, removed _noCache

Also fixed cache nil vs empty

* Different approach with fewer loops
Lookup is now done per-hitpoint and default values cached
fnc_getItemArmor made a helper function as it's now only a few lines

* Tabs & newlines

* Moved uniform logic inside helper function

* Optimisations

* Tweaks & optimisations, improved formatting

* Ignore explosionShielding

* Moved getArmor back to separate func, add per-unit caching

* Formatting

* Review suggestions

Co-authored-by: commy2 <commy-2@gmx.de>
2020-02-28 17:54:53 +01:00
..
2020-01-16 21:14:23 -06:00
2020-02-28 10:13:59 +01:00
2020-01-16 21:14:23 -06:00
2020-02-28 11:08:40 +01:00
2020-01-16 21:14:23 -06:00
2020-02-12 17:28:10 +01:00
2020-02-22 22:15:28 +01:00
2020-01-05 18:37:48 +01:00
2020-01-05 18:37:48 +01:00
2020-01-16 21:14:23 -06:00
2020-02-22 21:53:35 +01:00
2020-02-20 00:48:03 -05:00
2019-12-19 11:08:31 -06:00
2017-08-29 17:47:01 -05:00
2020-01-28 19:12:11 -06:00
2020-01-16 21:14:23 -06:00
2020-02-22 21:53:35 +01:00
2020-02-22 21:53:35 +01:00
2020-01-16 21:14:23 -06:00
2020-02-12 17:28:41 +01:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-01-05 18:37:48 +01:00
2020-02-23 09:26:51 -06:00
2020-01-16 21:14:23 -06:00
2020-01-05 18:37:48 +01:00
2020-01-05 18:37:48 +01:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2017-08-29 17:47:01 -05:00
2020-01-05 18:37:48 +01:00
2017-08-29 17:47:01 -05:00
2020-01-05 18:37:48 +01:00
2020-01-16 21:14:23 -06:00
2020-01-05 18:37:48 +01:00
2020-02-12 17:29:04 +01:00
2019-03-21 08:52:32 -05:00
2020-01-16 21:14:23 -06:00
2020-02-22 21:53:35 +01:00
2020-01-05 18:37:48 +01:00
2020-01-05 18:37:48 +01:00
2020-01-16 21:14:23 -06:00
2020-02-12 17:29:17 +01:00
2020-01-05 18:37:48 +01:00
2020-01-05 18:37:48 +01:00
2017-08-29 17:47:01 -05:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-01-05 18:37:48 +01:00
2020-02-22 21:53:35 +01:00