comparison mm7_6.cpp @ 1828:35c1e4ff6ba7

party_finds_gold to Party::PartyFindsGold, cleaned up, moved Level/Decoration.h reference out of Indoor.h
author Grumpy7
date Fri, 11 Oct 2013 07:04:19 +0200
parents bdac32c645c5
children e4e27261d84e
comparison
equal deleted inserted replaced
1827:0c75c3e7e436 1828:35c1e4ff6ba7
75 v14 += rand() % pActor->pMonsterInfo.uTreasureDiceSides + 1; 75 v14 += rand() % pActor->pMonsterInfo.uTreasureDiceSides + 1;
76 } 76 }
77 while ( v2 < pActor->pMonsterInfo.uTreasureDiceRolls ); 77 while ( v2 < pActor->pMonsterInfo.uTreasureDiceRolls );
78 if ( v14 ) 78 if ( v14 )
79 { 79 {
80 party_finds_gold(v14, 0); 80 pParty->PartyFindsGold(v14, 0);
81 viewparams->bRedrawGameUI = 1; 81 viewparams->bRedrawGameUI = 1;
82 } 82 }
83 } 83 }
84 } 84 }
85 else 85 else
88 { 88 {
89 v14 = pActor->array_000234[3].uSpecEnchantmentType; 89 v14 = pActor->array_000234[3].uSpecEnchantmentType;
90 pActor->array_000234[3].Reset(); 90 pActor->array_000234[3].Reset();
91 if ( v14 ) 91 if ( v14 )
92 { 92 {
93 party_finds_gold(v14, 0); 93 pParty->PartyFindsGold(v14, 0);
94 viewparams->bRedrawGameUI = 1; 94 viewparams->bRedrawGameUI = 1;
95 } 95 }
96 } 96 }
97 } 97 }
98 if ( pActor->uCarriedItemID ) 98 if ( pActor->uCarriedItemID )