-
Notifications
You must be signed in to change notification settings - Fork 236
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
UVD: Remove unnecessary UI elements when the selected unit does not have a special armorType
#6523
Conversation
…ave a special `armorType`
What if a mod changes the normal armor to take different damage from something else? I think an armor type's properties should not be shown only if they are all 1x damage taken. |
I applied your feedback. Unfortunately, reliably removing |
If you don't mind I added a way that removes the "% of damage taken" text. Basically |
Thanks, tested and works. |
Good thinking here so far. While reading the discussion I was wondering if it makes sense to even display the armor type: Normal in this situation? Maybe we should display nothing at all? |
I think it's best to display it so that players and modders know that armor types exist, even if normal armor doesn't have any special modifiers. |
Makes sense |
Description of the proposed changes
This is only a small UI tweak for units without a special
armorType
like, for example, the Striker. The currentarmorType
portion of uvd.lua looks like this for these units:This is the new output:
Both
(% of damage taken)
andNormal - 100.0
do not provide the player with any relevant information, so they can be hidden.Testing done on the proposed changes
Only affects units without a special
armorType
.Checklist