Change modified sneak pull assist range to a rule. Fixed formatting on decls.

This commit is contained in:
Noudess
2021-02-09 09:50:22 -05:00
parent b2e4e91fbd
commit 3bafc5b3f4
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -3241,10 +3241,10 @@ void NPC::AIYellForHelp(Mob *sender, Mob *attacker)
float assist_range = (mob->GetAssistRange() * mob->GetAssistRange());
if (RuleB(Combat, EnableSneakPull) && attacker->sneaking) {
assist_range=(20*20);
assist_range=RuleI(SneakPullAssistRange);
if (attacker->IsClient()) {
float clientx=attacker->GetX();
float clienty=attacker->GetY();
float clientx = attacker->GetX();
float clienty = attacker->GetY();
if (attacker->CastToClient()->BehindMob(mob, clientx, clienty)) {
assist_range = 0;
}