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 UI papercuts #1248
Fix UI papercuts #1248
Conversation
|
Oh! Thank-you for fixing something I even haven't reported yet (was like… low on my priority list)! 👍 |
|
Oh, right, I remember that I wasn't sure about the proper prefix name to give to the new function. Is |
|
I don't know! 😅 |
|
Looks good generally.
|
e654787
to
cf7f84e
Compare
cf7f84e
to
fe7d0c5
Compare
|
I've simplified it a bit and rebased on |
Sometimes you have enough money to buy something but first need to sell what conflicting gear you already have. For example when you want to replace your heavy armor to put on on a light armor and have 100 credits in your pocket. The game didn't allow you to buy it and required you to sell it explicitely first. This commit fixes the annoyance. Example test process: * /devmap usstremor * /give momentum 300 * /give funds 400 * *buy power armor* * *try to buy anything else without selling your power armor* note that if you give yourself 1000 credits on the 0.51, you can buy every update, even conflicting, but you can't do that if you have 400 credits.
fe7d0c5
to
3b98797
Compare
as said on IRC:
afontain:
do you have some other ui papercuts in mind?
peertubed:
wrong rounding for evos
like if you have 5.99 and you need 6 to evolve
then it displays 6.0, but you can't [buy a dragoon]
should round down
With this commit, it now rounds down as it should.
Example test process:
* `/devmap antares`
* join aliens
* `/give funds 1.99`
* look at what's displayed on bottom-right
|
I've added another commit and updated the description accordingly |
Always allow buying upgrade when funds would be sufficient
Sometimes you have enough money to buy something but first need to sell
what conflicting gear you already have. For example when you want to
replace your heavy armor to put on on a light armor and have 100 credits
in your pocket. The game didn't allow you to buy it and required you to
sell it explicitely first. This commit fixes the annoyance.
Example test process:
note that if you give yourself 1000 credits on the 0.51, you can buy
every update, even conflicting, but you can't do that if you have 400
credits.
Fix rounding annoyance in displayed morph points
as said on IRC:
afontain:
do you have some other ui papercuts in mind?
peertubed:
wrong rounding for evos
like if you have 5.99 and you need 6 to evolve
then it displays 6.0, but you can't [buy a dragoon]
should round down
Example test process:
/devmap antares/give funds 1.99