Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:53 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3