Thread: Resist update
View Single Post
  #1  
Old 03-02-2006, 07:34 AM
aza77
Hill Giant
 
Join Date: Dec 2004
Posts: 126
Default Resist update

thanks Hvitrev

diff -u -r 0.6.4/zone/spells.cpp 0.6.4a/zone/spells.cpp
--- 0.6.4/zone/spells.cpp 2006-03-02 15:43:22.000000000 +0100
+++ 0.6.4a/zone/spells.cpp 2006-01-20 16:06:37.000000000 +0100
@@ -2710,38 +2710,9 @@
break;

// solar: I don't know how to calculate this stuff
- // Hvitrev: Primsatic = average of all resists
- // Correct Division?
- case RESIST_PRISMATIC:
- base_resist = resist = (GetDR()+GetMR()+GetFR()+GetCR()+GetPR())/5;
- break;
-
- // Hvitrev: Chromatic = lowest of all resists
- case RESIST_CHROMATIC:
- sint16 tempresist = GetMR();
- sint16 tempresist2 = GetFR();
-
- if ( tempresist < tempresist2 ){
- resist = tempresist;
- }
- else {
- resist = tempresist2;
- }
- tempresist = GetCR();
- if ( tempresist < resist ){
- resist = tempresist;
- }
- tempresist = GetDR();
- if ( tempresist < resist ){
- resist = tempresist;
- }
- tempresist = GetPR();
- if ( tempresist < resist ){
- resist = tempresist;
- }
- base_resist = resist;
- break;
- case RESIST_PHYSICAL:
+ case RESIST_CHROMATIC:
+ case RESIST_PRISMATIC:
+ case RESIST_PHYSICAL:
default:
base_resist = resist = GetMR();
break;
Reply With Quote