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

Disallow building support #218

Merged
merged 3 commits into from
Sep 17, 2020
Merged

Disallow building support #218

merged 3 commits into from
Sep 17, 2020

Conversation

Kert
Copy link
Collaborator

@Kert Kert commented Sep 16, 2020

Added engine support for disallowing certain buildings in towns to be built
Mark disallowed buildings with different color on Build screen
DisallowBuilding(townIdx, building) scripting func
Scripting documentation updated

… built. Save game support. Mark disallowed buildings with different color on Build screen
@@ -1113,10 +1121,22 @@ void townManager::SetupExtraStuff() {
}

void townManager::SetupCastle(heroWindow *window, int a3) {

enum BUILDING_STATUS_IMAGES {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that you did this.

@jkoppel
Copy link
Owner

jkoppel commented Sep 16, 2020

Nice work. All that's left is to change the message upon viewing a disabled building.

@jkoppel jkoppel merged commit f23773e into master Sep 17, 2020
@jkoppel jkoppel deleted the sn-disallow-build branch September 7, 2022 08:46
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.

2 participants