You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.
This is a pretty simple one. When a unit manages to get to the max level of 7, then gets sufficient XP to level again the promotion flag changes to a + despite there not actually being a promotion available. Adding one more condition to the if then statement makes this no longer occur:
If line 823 of \Assets\UI\unitflagmanager.lua changed as follows, this wouldn't happen.
This: if bCanStart and isLocalPlayerUnit then
need only change to this:
if bCanStart and isLocalPlayerUnit and (#promotionList < 7) then
I've tested this and it seems to work just fine. Being new to this stuff, and not really being a coder, I'm unfamiliar with Github and not entirely sure how to make this change myself so someone can integrate it into the code. Hope this makes sense.
Edited to add the file. Can't believe I forgot to do that. :/
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is a pretty simple one. When a unit manages to get to the max level of 7, then gets sufficient XP to level again the promotion flag changes to a + despite there not actually being a promotion available. Adding one more condition to the if then statement makes this no longer occur:
If line 823 of \Assets\UI\unitflagmanager.lua changed as follows, this wouldn't happen.
This:
if bCanStart and isLocalPlayerUnit then
need only change to this:
if bCanStart and isLocalPlayerUnit and (#promotionList < 7) then
I've tested this and it seems to work just fine. Being new to this stuff, and not really being a coder, I'm unfamiliar with Github and not entirely sure how to make this change myself so someone can integrate it into the code. Hope this makes sense.
Edited to add the file. Can't believe I forgot to do that. :/
The text was updated successfully, but these errors were encountered: