diff Player.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 0c75c3e7e436
children e4e27261d84e
line wrap: on
line diff
--- a/Player.cpp	Fri Oct 11 05:49:39 2013 +0200
+++ b/Player.cpp	Fri Oct 11 07:04:19 2013 +0200
@@ -2130,7 +2130,7 @@
       }
       if ( enchBonusSum )
       {
-        party_finds_gold(enchBonusSum, 2);
+        pParty->PartyFindsGold(enchBonusSum, 2);
         sprintf(pTmpBuf2.data(), pGlobalTXT_LocalizationStrings[302], this->pName, enchBonusSum);     //%stole %d gold
       }
       else
@@ -4876,7 +4876,7 @@
             sprintf(pTmpBuf.data(), "+%u %s %s", thisa, v74, pGlobalTXT_LocalizationStrings[121]);//"Permanent"	
             break;
         case 7:
-            party_finds_gold(1000 * thisa, 0);
+            pParty->PartyFindsGold(1000 * thisa, 0);
             sprintf(pTmpBuf.data(), "+%u %s", 1000 * thisa, pGlobalTXT_LocalizationStrings[97]);//"Gold"
             break;
         case 8:
@@ -6078,7 +6078,7 @@
       if ( val == 0 )
         val = 1;
       v6 = rand();
-      party_finds_gold(v6 % val + 1, 1);
+      pParty->PartyFindsGold(v6 % val + 1, 1);
       GameUI_DrawFoodAndGold();
       return;
     case VAR_RandomFood:
@@ -6165,7 +6165,7 @@
       pParty->SetHoldingItem(&item);
       return;
     case VAR_FixedGold:
-      party_finds_gold(val, 1);
+      pParty->PartyFindsGold(val, 1);
       return;
     case VAR_BaseMight:
       this->uMight = min(this->uMight + val, 255);