1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-16 10:19:47 +02:00
vcmi/lib/battle
Ivan Savenko 7f9df2ef6f Tweaks to retaliation damage calculation:
- method now uses early returns to avoid deeply nested if's
- assume that retaliation damage is zero if target will die from attack
- account for BLOCKS_RETALIATION bonus when computing whether target
will retaliate
2024-05-17 12:23:51 +00:00
..
AccessibilityInfo.cpp
AccessibilityInfo.h
AutocombatPreferences.h
BattleAction.cpp
BattleAction.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
BattleAttackInfo.cpp
BattleAttackInfo.h
BattleHex.cpp
BattleHex.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
BattleInfo.cpp Replace bonus string description with metastring that can properly 2024-04-09 16:13:30 +03:00
BattleInfo.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
BattleProxy.cpp Pass functor via reference to avoid costly copies 2023-11-18 19:43:11 +02:00
BattleProxy.h Pass functor via reference to avoid costly copies 2023-11-18 19:43:11 +02:00
BattleStateInfoForRetreat.cpp
BattleStateInfoForRetreat.h
CBattleInfoCallback.cpp Tweaks to retaliation damage calculation: 2024-05-17 12:23:51 +00:00
CBattleInfoCallback.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CBattleInfoEssentials.cpp Removed most of non-const static fields in lib. Reduced header includes. 2024-01-19 13:55:22 +02:00
CBattleInfoEssentials.h Fix BattleEvaluator.cpp:286:32: error: function 'battleGetAllObstacles' with deduced return type cannot be used before it is defined 2024-01-17 14:41:47 +00:00
CObstacleInstance.cpp
CObstacleInstance.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CPlayerBattleCallback.cpp Add missing semicolon after macro usage 2024-01-16 20:18:18 +00:00
CPlayerBattleCallback.h
CUnitState.cpp
CUnitState.h
DamageCalculator.cpp accept log text suggestion 2024-04-18 08:40:25 +08:00
DamageCalculator.h Extract revenge calculation to separate method 2024-01-10 22:56:26 +01:00
Destination.cpp
Destination.h
IBattleInfoCallback.h Remove trailing semicolons from more macros 2024-01-16 19:46:21 +00:00
IBattleState.cpp
IBattleState.h Pass functor via reference to avoid costly copies 2023-11-18 19:43:11 +02:00
IUnitInfo.h
PossiblePlayerBattleAction.h Fixes 2024-03-29 12:28:14 +02:00
ReachabilityInfo.cpp
ReachabilityInfo.h
SideInBattle.cpp
SideInBattle.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
SiegeInfo.cpp
SiegeInfo.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
Unit.cpp
Unit.h