Skip to content

Check army and navy validity#1799

Merged
schombert merged 68 commits intoschombert:mainfrom
SneakBug8:main
Dec 25, 2024
Merged

Check army and navy validity#1799
schombert merged 68 commits intoschombert:mainfrom
SneakBug8:main

Conversation

@SneakBug8
Copy link
Contributor

No description provided.


for(auto map_army : state.world.in_army) {
if(!state.world.army_is_valid(map_army)) {
return;
Copy link
Owner

Choose a reason for hiding this comment

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

If the army possibly being invalid is a problem, this won't actually fix anything, because it can still become invalid after this check. The game is running in parallel with this function

@SneakBug8
Copy link
Contributor Author

Recent changes introduce dynamic infamy calculation based on country/state size.

@schombert
Copy link
Owner

schombert commented Dec 16, 2024

It looks like you have added target_state to the available cbs, but haven't actually done anything with it. It probably shouldn't be added until we have something that needs it. (Yes, I know that you made fabrication target a specific state, but I do not think that this restriction currently adds anything to the game at the cost of making it harder for the AI to accidentally coordinate, as we discussed previously)

@schombert
Copy link
Owner

Also, you should run your changes to how infamy work by the players first. It isn't a big code change, but it is a large change to how the game works.

@SneakBug8
Copy link
Contributor Author

Probe of the community in Discord produced zero negative feedback.

@schombert schombert merged commit 6c5328f into schombert:main Dec 25, 2024
3 checks passed
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