|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001467||OpenClonk||Engine||public||2015-11-30 13:02||2017-08-20 11:43|
|Target Version||9.0||Fixed in Version|
|Summary||0001467: unify Damage and Energy|
|Description||Currently we have engine-side "energy" (DoEnergy etc.) which are Hitpoints for living stuff and we have engine and script-side "damage" (DoDamage) as hitpoints for non-living stuff.|
Oh, and we also have "hitpoints" as hitpoints for structures, which are an abstraction layer on top of "damage".
And of course, we have the "power" which is "energy" for structures and purely in script.
And not to forget, "energy" is handled in thousands (a Clonk has 50'000 "energy"). And damage in values a few magnitudes lower (a chest has 50 "hitpoints").
I want a unified "HitPoint" concept for structures, livings and other objects. That's not even hard to implement - just needs the function names and callbacks streamlined.
And we should get rid of "exact damage" vs "non exact damage" and just always pass the values in thousands. This would save some confusion steps in several places.
|Additional Information||"Energy" as hitpoints and power is a relic from Clonk4 or so..|
|Tags||No tags attached.|
|2015-11-30 13:02||Zapper||New Issue|
|2017-08-20 11:43||Zapper||Target Version||8.0 => 9.0|