aboutsummaryrefslogtreecommitdiff
path: root/src/common/Collision/Maps/TileAssembler.cpp
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-04-10 04:50:09 -0300
committerfunjoker <funjoker109@gmail.com>2020-04-27 12:25:52 +0200
commit1960a95425c63f3b45409bcc1ee544472be598a3 (patch)
tree89cfbc2237fae1ac1132f0c43c680f768271e19e /src/common/Collision/Maps/TileAssembler.cpp
parent16e3796c7f3261f406187605ed3f74ad2544a1a7 (diff)
Core/Unit: cleanup and minor fixes of miss and resist calculations
- Removed Unit::GetUnitMeleeSkill as it was basically a copy of GetMaxSkillValueForLevel - Removed static from GetEffectiveResistChance, as this was passed anyways, changed name to CalculateAverageResistReduction, which better reflects what it does - Fix melee miss chances calculated from attacker maxskill instead of victim maxskill - Do actual checks if spell can be resisted/missed in MagicSpellHitResult (ie chances > 0) - Fixed SPELLMOD_RESIST_MISS_CHANCE calculation in MeleeSpellMissChance - Minor codestyle and cleanup of diminishing returns calcs (cherry picked from commit e565b34f6d24411e210151d0d03e524f94cdff85)
Diffstat (limited to 'src/common/Collision/Maps/TileAssembler.cpp')
0 files changed, 0 insertions, 0 deletions