Skip to content
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

PowersUpToLevel > 0 fix breaks PowersUpToLevel=-1 upgrades #1393

Open
5 tasks done
mevitar opened this issue Sep 23, 2024 · 0 comments
Open
5 tasks done

PowersUpToLevel > 0 fix breaks PowersUpToLevel=-1 upgrades #1393

mevitar opened this issue Sep 23, 2024 · 0 comments
Labels
Phobos bug Something isn't working properly

Comments

@mevitar
Copy link

mevitar commented Sep 23, 2024

Description

The game shows incorrect image of the PowersUpToLevel=-1 upgrades when placed on the building. Only the image of the first upgrade placed will be used, and all following upgrades will use the same image, even if they should be using their own.
This does not happen for builds earlier than this one, upgrade graphics show up properly.

It appears to work fine for PowersUpToLevel=1, PowersUpToLevel=2 and PowersUpToLevel=3, upgrades, but the game doesn't appear to be reading PowersUpToLevel=4.

Phobos Version

e934e4d

Conditions to reproduce

No response

INI code

[GADEPT]
Upgrades=1

[GADEP1]
PowersUpBuilding=GADEPT
PowersUpToLevel=-1

[GADEP2]
PowersUpBuilding=GADEPT
PowersUpToLevel=-1

[GADEP3]
PowersUpBuilding=GADEPT
PowersUpToLevel=-1

[GADEP4]
PowersUpBuilding=GADEPT
PowersUpToLevel=-1

Steps to reproduce

  1. Use a PowersUpToLevel=-1 upgrade on a building

Expected behaviour

The upgrade gfx should show properly no matter what upgrade is placed on the structure.

Actual behaviour

The first upgrade gfx placed on the building will be used for all consecutive upgrades on that type of building, even if each of those buildings received a different upgrade.

Additional context

No response

Checklist

  • The issue happens on the latest official version of Phobos and wasn't fixed yet.
  • I agree to elaborate the details if requested and provide thorough testing if the bugfix is implemented.
  • I added a very descriptive title to this issue.
  • I used the GitHub search and read the issue list to find a similar issue and didn't find it.
  • I have attached as much information as possible (screenshots, gifs, videos, debug and exception logs, etc).
@mevitar mevitar added the Phobos bug Something isn't working properly label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Phobos bug Something isn't working properly
Projects
None yet
Development

No branches or pull requests

1 participant