MCPcopy Create free account
hub / github.com/EasyRPG/Player / AdjustDamageForDefend

Function AdjustDamageForDefend

src/algo.cpp:173–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173int AdjustDamageForDefend(int dmg, const Game_Battler& target) {
174 if (target.IsDefending()) {
175 dmg /= 2;
176 if (target.HasStrongDefense()) {
177 dmg /= 2;
178 }
179 }
180 return dmg;
181}
182
183int CalcNormalAttackEffect(const Game_Battler& source,
184 const Game_Battler& target,

Callers 2

vExecuteMethod · 0.85
algo.cppFile · 0.85

Calls 2

IsDefendingMethod · 0.80
HasStrongDefenseMethod · 0.45

Tested by

no test coverage detected