diff mm7_6.cpp @ 1958:95095c2a5e19

pActorBuffs[14] to pActorBuffs[ACTOR_BUFF_HOUR_OF_POWER]
author Grumpy7
date Fri, 25 Oct 2013 11:19:01 -0700
parents 3d0c57c4fa83
children 4fbffad6e011
line wrap: on
line diff
--- a/mm7_6.cpp	Fri Oct 25 11:18:10 2013 -0700
+++ b/mm7_6.cpp	Fri Oct 25 11:19:01 2013 -0700
@@ -286,12 +286,12 @@
 		}
 	case 86:
 		{
-        if ( SHIDWORD(pActor->pActorBuffs[14].uExpireTime) < 0 )
+        if ( SHIDWORD(pActor->pActorBuffs[ACTOR_BUFF_HOUR_OF_POWER].uExpireTime) < 0 )
 			return 1;
-        if ( SHIDWORD(pActor->pActorBuffs[14].uExpireTime) > 0 )
+        if ( SHIDWORD(pActor->pActorBuffs[ACTOR_BUFF_HOUR_OF_POWER].uExpireTime) > 0 )
 			return 0;
         v3 = 0;
-        v4 = LODWORD(pActor->pActorBuffs[14].uExpireTime) == 0;
+        v4 = LODWORD(pActor->pActorBuffs[ACTOR_BUFF_HOUR_OF_POWER].uExpireTime) == 0;
 		break;
 		}
 	case 95:
@@ -406,7 +406,7 @@
   v6 = 0;
   if ( (signed __int64)pActor->pActorBuffs[ACTOR_BUFF_SOMETHING_THAT_HALVES_AC].uExpireTime > 0 )
     v5 /= 2;
-  if ( (signed __int64)pActor->pActorBuffs[14].uExpireTime > 0 )
+  if ( (signed __int64)pActor->pActorBuffs[ACTOR_BUFF_HOUR_OF_POWER].uExpireTime > 0 )
     v6 = pActor->pActorBuffs[15].uPower;
   if ( (signed __int64)pActor->pActorBuffs[16].uExpireTime > 0 && pActor->pActorBuffs[16].uPower > v6 )
     v6 = pActor->pActorBuffs[16].uPower;
@@ -466,13 +466,13 @@
   a2a = 0;
   if ( !v9 && (!(v9 | v8) || LODWORD(v5->pActorBuffs[ACTOR_BUFF_SOMETHING_THAT_HALVES_AC].uExpireTime) > 0) )
     v6 /= 2;
-  if ( (signed __int64)v5->pActorBuffs[14].uExpireTime > 0 )
-    v7 = v5->pActorBuffs[14].uPower;
+  if ( (signed __int64)v5->pActorBuffs[ACTOR_BUFF_HOUR_OF_POWER].uExpireTime > 0 )
+    v7 = v5->pActorBuffs[ACTOR_BUFF_HOUR_OF_POWER].uPower;
   if ( (signed __int64)v5->pActorBuffs[16].uExpireTime > 0 && v5->pActorBuffs[16].uPower > v7 )
     v7 = v5->pActorBuffs[16].uPower;
   v10 = v7 + v6;
-  if ( (signed __int64)pActor->pActorBuffs[14].uExpireTime > 0 )
-    a2a = pActor->pActorBuffs[14].uPower;
+  if ( (signed __int64)pActor->pActorBuffs[ACTOR_BUFF_HOUR_OF_POWER].uExpireTime > 0 )
+    a2a = pActor->pActorBuffs[ACTOR_BUFF_HOUR_OF_POWER].uPower;
   if ( (signed __int64)pActor->pActorBuffs[17].uExpireTime > 0 && pActor->pActorBuffs[17].uPower > a2a )
     a2a = pActor->pActorBuffs[17].uPower;
   if ( (signed __int64)pActor->pActorBuffs[ACTOR_BUFF_FATE].uExpireTime > 0 )
@@ -491,8 +491,8 @@
   int v5; // esi@8
 
   v3 = 0;
-  if ( (signed __int64)pActor->pActorBuffs[14].uExpireTime > 0 )
-    v3 = pActor->pActorBuffs[14].uPower;
+  if ( (signed __int64)pActor->pActorBuffs[ACTOR_BUFF_HOUR_OF_POWER].uExpireTime > 0 )
+    v3 = pActor->pActorBuffs[ACTOR_BUFF_HOUR_OF_POWER].uPower;
   if ( (signed __int64)pActor->pActorBuffs[17].uExpireTime > 0 && pActor->pActorBuffs[17].uPower > v3 )
     v3 = pActor->pActorBuffs[17].uPower;
   if ( (signed __int64)pActor->pActorBuffs[ACTOR_BUFF_FATE].uExpireTime > 0 )
@@ -535,8 +535,8 @@
 
   v4 = 0;
   v5 = 0;
-  if ( (signed __int64)pActor->pActorBuffs[14].uExpireTime > 0 )
-    v5 = pActor->pActorBuffs[14].uPower;
+  if ( (signed __int64)pActor->pActorBuffs[ACTOR_BUFF_HOUR_OF_POWER].uExpireTime > 0 )
+    v5 = pActor->pActorBuffs[ACTOR_BUFF_HOUR_OF_POWER].uPower;
   switch ( a2 )
   {
     case 0: