Skip to content

Enable Garrison button only when it should#140

Open
SouDescolado wants to merge 1 commit into
rekterakathom:masterfrom
SouDescolado:Garrison-button-fix
Open

Enable Garrison button only when it should#140
SouDescolado wants to merge 1 commit into
rekterakathom:masterfrom
SouDescolado:Garrison-button-fix

Conversation

@SouDescolado
Copy link
Copy Markdown

Fixes #135
As @hirsja95 mentioned, the logic was flawed.
It was:
Checking if the player dont have a base
AND
Checking if a player is close to a base.

So if the player neither has a base nor is close to one, would return False, and since the ! is outside the parenthesis, it would make the check return True, making the button visible.

Ironically, it would disable the garrisson button if the player had a base and was close to it

Fixes rekterakathom#135
As @hirsja95 mentioned, the logic was flawed.
It was:
Checking if the player dont have a base 
AND
Checking if a player is close to a base.

So if the player neither has a base nor is close to one, would return False, and since the ! is outside the parenthesis, it would make the check return True, making the button visible.

Ironically, it would disable the garrisson button if the player had a base and was close to it
@SouDescolado
Copy link
Copy Markdown
Author

20260518133851_1

At backpack shop in Kore, Altis. Garrison button not active.

20260518133904_1

At Kore Base. Garrison button active.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Garrison button is always enabled on main menu

1 participant