Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Change request: Unit promotion flag to show level if at max promotions #625

Open
JustNilt opened this issue Nov 27, 2017 · 0 comments
Open

Comments

@JustNilt
Copy link

JustNilt commented Nov 27, 2017

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. :/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant