Implemented Physical Resists consistent with live.

SQL to add new column 'PhR' to npc_types
Values to populate table based on extensive parsing.
Fixes for spell projectile code.
This commit is contained in:
KayenEQ
2014-04-04 01:59:55 -04:00
parent 2cdd50b9e9
commit 4b14ec53f1
10 changed files with 212 additions and 116 deletions
+3
View File
@@ -158,6 +158,7 @@ NPC::NPC(const NPCType* d, Spawn2* in_respawn, float x, float y, float z, float
FR = d->FR;
PR = d->PR;
Corrup = d->Corrup;
PhR = d->PhR;
STR = d->STR;
STA = d->STA;
@@ -2062,6 +2063,8 @@ void NPC::CalcNPCResists() {
PR = (GetLevel() * 11)/10;
if (!Corrup)
Corrup = 15;
if (!PhR)
PhR = 10;
return;
}