Skip to content

[GEN][ZH] Fix nationalism and fanaticism bonuses being applied independent of horde status - #385

Closed
Generalcamo wants to merge 2 commits into
TheSuperHackers:mainfrom
Generalcamo:HordeFix
Closed

Generalcamo wants to merge 2 commits into
TheSuperHackers:mainfrom
Generalcamo:HordeFix

Conversation

@Generalcamo

@Generalcamo Generalcamo commented Mar 6, 2025 •

Copy link
Copy Markdown

This PR fixes Nationalism and Fanaticism bonuses being applied independent of horde status.

@Generalcamo Generalcamo added Bug Something is not working right, typically is user facing China Affects China faction Major Severity: Minor < Major < Critical < Blocker Gen Relates to Generals ZH Relates to Zero Hour labels Mar 6, 2025
@xezon xezon added the GameMismatchWith104 Affects game state towards original 1.04 label Mar 6, 2025
Comment thread Generals/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate.cpp Outdated
Comment thread GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate.cpp Outdated
Comment thread Generals/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate.cpp Outdated
@Generalcamo
Generalcamo requested a review from xezon March 6, 2025 18:47

} // end if
else
// nationalism

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This needs wrapping in a conditional block so we can merge the fix into the codebase while maintaining compatibility for now, in the future we can remove the compatibility and the fix will be in the code.

#if !RETAIL_COMPATIBLE_CRC
fixed nationalism code here
#endif

block

us->clearWeaponBonusCondition( WEAPONBONUSCONDITION_NATIONALISM );
}
}
else {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The original nationalism code block needs putting back and wrapping in a

#if RETAIL_COMPATIBLE_CRC
original nationalism code
#endif

block

//if ( draw && !us->isKindOf( KINDOF_PORTABLE_STRUCTURE ) )
// draw->setTerrainDecal(TERRAIN_DECAL_NONE);

// TheSuperHackers @bugfix GeneralCamo 06/03/2025 Corrected nationalism being applied regardless of horde status - issue #173

@Mauller Mauller Jul 15, 2025 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

can drop the issue at the end of the comment and the comment wants to be more concise to what it is fixing

"prevent nationalism being applied independent of horde status" etc

//if ( draw && !us->isKindOf( KINDOF_PORTABLE_STRUCTURE ) )
// draw->setTerrainDecal(TERRAIN_DECAL_NONE);

// TheSuperHackers @bugfix GeneralCamo 06/03/2025 Corrected nationalism being applied regardless of horde status - issue #173

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ditto in the zero hour changes as to the generals changes, but applied to both nationalism and fanaticism

@Mauller Mauller changed the title Fix Nationalism and Patriotism bonuses being applied regardless of horde status [GEN][ZH] Fix nationalism and fanaticism bonuses being applied independent of horde status Jul 15, 2025
@Mauller Mauller added Minor Severity: Minor < Major < Critical < Blocker NoRetail This fix or change is not applicable with Retail game compatibility and removed China Affects China faction Major Severity: Minor < Major < Critical < Blocker GameMismatchWith104 Affects game state towards original 1.04 labels Jul 15, 2025
@xezon

xezon commented Sep 15, 2025

Copy link
Copy Markdown

I have reimplemented the fix in #1582, because this change breaks retail compatibility but it should not do that by default.

@xezon xezon closed this Sep 15, 2025
@xezon xezon added the Controversial Is controversial label Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something is not working right, typically is user facing Controversial Is controversial Gen Relates to Generals Minor Severity: Minor < Major < Critical < Blocker NoRetail This fix or change is not applicable with Retail game compatibility ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

China Nationalism (and Patriotism) apply fire rate bonus to units regardless of Horde bonus

4 participants