mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Rules] Backstab Damage Modifier (#3908)
* [Rules] Backstab Damage Modifier Added NPCBackstabMod - Default 1.9 - Lower mod = higher backstab. * Update special_attacks.cpp corrected math to npc base_damage
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "mob.h"
|
||||
#include "string_ids.h"
|
||||
#include "lua_parser.h"
|
||||
#include "npc.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@@ -182,7 +183,7 @@ int Mob::GetBaseSkillDamage(EQ::skills::SkillType skill, Mob *target)
|
||||
}
|
||||
} else if (IsNPC()) {
|
||||
auto *npc = CastToNPC();
|
||||
base = std::max(base, npc->GetBaseDamage());
|
||||
base = round((npc->GetMaxDMG() - npc->GetMinDMG()) / RuleR(NPC, NPCBackstabMod));
|
||||
// parses show relatively low BS mods from lots of NPCs, so either their BS skill is super low
|
||||
// or their mod is divided again, this is probably not the right mod, but it's better
|
||||
skill_bonus /= 3.0f;
|
||||
|
||||
Reference in New Issue
Block a user