-
Notifications
You must be signed in to change notification settings - Fork 20
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
Fix: Helix and Overlord addons are now colored red when affected by Frenzy #132
Conversation
With these changes, the Helix and Overlord addons will now be properly tinted red when their parent unit is affected by Frenzy.
Does this mean mobile Gattlings now fire faster due to Avenger blue laser? |
Should not be the case. |
; Patch104p @bugfix hanfield 01/09/2021 Added WeaponBonus parameters for Frenzy that nullify the bonus but allow it to color the Gattling Cannon. | ||
WeaponBonus = FRENZY_ONE DAMAGE 90% | ||
WeaponBonus = FRENZY_TWO DAMAGE 80% | ||
WeaponBonus = FRENZY_THREE DAMAGE 70% |
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.
Hmm. Are we sure this negates it correctly?
WeaponBonus = FRENZY_ONE DAMAGE 110% ; Granted by a China Generals power
WeaponBonus = FRENZY_TWO DAMAGE 120%
WeaponBonus = FRENZY_THREE DAMAGE 130%
VS
WeaponBonus = FRENZY_ONE DAMAGE 90%
WeaponBonus = FRENZY_TWO DAMAGE 80%
WeaponBonus = FRENZY_THREE DAMAGE 70%
It may be calculated like so:
1,1 * 0,9 = 0,99 = 99%
1,2 * 0,8 = 0,96 = 96%
1,3 * 0,7 = 0,91 = 91%
Right now we count on it being calculated like so:
(1,1 + 0,9) / 2 = 1,00 = 100%
(1,2 + 0,8) / 2 = 1,00 = 100%
(1,3 + 0,7) / 2 = 1,00 = 100%
But that is not clear (to me).
The latter calculation is accurate. We use such means in ROTR for weapons that are not meant to gain any bonuses. |
The actual calculation works like this: total = (bonus_1 - 1) + (bonus_2 - 1) + 1 So bonus_1 = 110% => total = 100% bonus_1 = 110% => total = 130% which is, admittedly, counter intuitive. |
…#132) With these changes, the Helix and Overlord addons will now be properly tinted red when their parent unit is affected by Frenzy.
With these changes, the Helix and Overlord addons will now be properly tinted red when their parent unit is affected by Frenzy.