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

Fix timer when fortifying buildings at max level #123

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

AMXBus
Copy link
Contributor

@AMXBus AMXBus commented Jan 17, 2025

A OG developer oversight that might have been in the game till it's very end. It would seem that they did not account for anything related to fortification when it came to the resource animation. When a building would get fortified it would grab the next level info for upgrades and the animation. This fails when buildings would be max level since there is no data for the next level.

In an effort to reduce complexity of a simple cosmetic operation this fix has been implemented so that when the NaN (not a number)/null upgrade data get's detected it fills it with the proper fortify data.

Functionally less work to be done and less areas of future fault, cosmetically fortify resource animation will contain the right amounts and types of resources only when the buildings are at max level (If people care or we are so far ahead where we need to worry about fixing the cosmetic parts of the game we'll change it then).

@React1-X React1-X added client Client related issues OG bug A bug from the original game labels Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Client related issues OG bug A bug from the original game
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants