MCPcopy Create free account
hub / github.com/Warzone2100/warzone2100 / resetDamageModifiers

Function resetDamageModifiers

src/difficulty.cpp:96–106  ·  view source on GitHub ↗

reset damage modifiers changed by "double up" or "biffer baker" cheat and prevent campaign difficulty from influencing skirmish and multiplayer games

Source from the content-addressed store, hash-verified

94// reset damage modifiers changed by "double up" or "biffer baker" cheat and
95// prevent campaign difficulty from influencing skirmish and multiplayer games
96void resetDamageModifiers()
97{
98 if (bMultiPlayer)
99 {
100 setDamageModifiers(100, 100);
101 }
102 else
103 {
104 setDifficultyLevel(getDifficultyLevel());
105 }
106}

Callers 1

stageTwoInitialiseFunction · 0.85

Calls 3

setDamageModifiersFunction · 0.85
setDifficultyLevelFunction · 0.85
getDifficultyLevelFunction · 0.85

Tested by

no test coverage detected