Skip to content

Allow exemption of losing certain units contributing to war weariness#52

Open
instafluff0 wants to merge 8 commits into
maxpetul:masterfrom
instafluff0:war-weariness-excluded-units
Open

Allow exemption of losing certain units contributing to war weariness#52
instafluff0 wants to merge 8 commits into
maxpetul:masterfrom
instafluff0:war-weariness-excluded-units

Conversation

@instafluff0

@instafluff0 instafluff0 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Another minor feature, and zero rush on this: allow users to prevent the loss of certain units from contributing to war weariness. In my personal scenario, this is really about drones, robots and so on, and adds a touch of modernity & realism. It also interestingly makes late-game long wars with Democracies, etc. viable to some extent.

Note that the separate repl calls and the need for is->war_weariness_fight_context in Fighter_fight are necessary as that is the only function I found where both the attack and defender are assessed for addition of war weariness (if HP drops to 1).

@instafluff0 instafluff0 changed the title Implement war weariness exclusion, parsing and logic Allow exemption of losing certain units contributing to war weariness Jul 15, 2026
@instafluff0

instafluff0 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Possibly found a bug, closing till I sort that out.

Fixed, tested and working as expected.

@instafluff0 instafluff0 reopened this Jul 16, 2026
@instafluff0

Copy link
Copy Markdown
Contributor Author

I recalled that surviving units with 1 remaining HP also cause war weariness, will patch those cases as well and reopen...

@instafluff0

Copy link
Copy Markdown
Contributor Author

Okay, additional HP of 1-related war weariness cases patched, updated, and tested. Reopening...

@instafluff0 instafluff0 reopened this Jul 19, 2026
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.

1 participant