OpenClonk Bugtracker - OpenClonk
View Issue Details
0002043OpenClonkEngine - C4Scriptpublic2018-06-16 13:342018-12-20 09:56
ReporterMarky 
Assigned ToMarky 
PrioritynormalSeverityfeatureReproducibilitysometimes
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Versiongit master 
Summary0002043: Feature Request: GetEnergy(bool exact)
DescriptionCurrently there is no way to find out the exact energy value of an object. You can track it with an effect that has the damage() function, but this should not be necessary and is prone to error if an effect with a different priority changes the damage done.

This may be necessary for certain applications. Currently it is necessary for me. So, I just want to get the exact value for the energy if I call object->GetEnergy(true)
TagsNo tags attached.
Attached Files

Notes
(0006194)
Marky   
2018-12-20 09:55   
https://github.com/openclonk/openclonk/commit/6351fe7a66ff2197dd500b5496eaa89baa75210c

Issue History
2018-06-16 13:34MarkyNew Issue
2018-12-20 09:55MarkyNote Added: 0006194
2018-12-20 09:56MarkyAssigned To => Marky
2018-12-20 09:56MarkyStatusnew => resolved
2018-12-20 09:56MarkyResolutionopen => fixed
2018-12-20 09:56MarkyFixed in Version => git master