-
-
Notifications
You must be signed in to change notification settings - Fork 110
Faking Digital Display of Health #1418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Nightly build for this pull request:
This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build. |
f302063
to
3def3f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks mostly good, can be simplified though IMO.
3def3f7
to
a350a3a
Compare
# Conflicts: # docs/Whats-New.md # src/Ext/TechnoType/Body.cpp # src/Ext/TechnoType/Body.h
there's another usage for regardlessly, it's not bad to give a direct way to set this value since there'll always be cases that you want digital display to show something else from a given value, not to mention that only infantry can disguise as another so far |
# Conflicts: # CREDITS.md # src/Ext/TechnoType/Body.cpp # src/Ext/TechnoType/Body.h
2128644
to
799ea22
Compare
I think that's better to be handled using a display coefficient, like when people use big numbers like 1 500 000 HP instead of 1 500 HP on everything just to have more precision on game's calculations, no? |
# Conflicts: # CREDITS.md # docs/User-Interface.md # docs/Whats-New.md # src/Ext/TechnoType/Body.h
# Conflicts: # CREDITS.md # docs/User-Interface.md # docs/Whats-New.md # src/Ext/Techno/Body.h # src/Ext/TechnoType/Body.cpp # src/Ext/TechnoType/Body.h
I can agree that coefficient on display type is a better approach than setting a fake value on techno type, also |
Phobos-developers#1418 DigitalDisplay.Health.FakeAtDisguise
DigitalDisplay.Health.FakeAtDisguise
, if set to true on an InfantryType with Disguise, will use the disguised TechnoType'sStrength
value as the maximum value of health display. The current value will be displayed as the percentage of its current health multiplies the new maximum value.In
rulesmd.ini
: