MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / IsHardHit

Function IsHardHit

Source/monster.cpp:941–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

939}
940
941bool IsHardHit(Monster &target, unsigned dam)
942{
943 switch (target.type().type) {
944 case MT_SNEAK:
945 case MT_STALKER:
946 case MT_UNSEEN:
947 case MT_ILLWEAV:
948 return true;
949 default:
950 return (dam >> 6) >= target.level(sgGameInitInfo.nDifficulty) + 3;
951 }
952}
953
954void MonsterHitMonster(Monster &attacker, Monster &target, int dam)
955{

Callers 2

MonsterHitMonsterFunction · 0.85
M_StartHitFunction · 0.85

Calls 2

levelMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected