Browse Source

🔥 Remove the auricGold variable

pull/1292/head
Anders Jenbo 5 years ago
parent
commit
331a540fc3
  1. 3
      Source/items.cpp
  2. 1
      Source/items.h
  3. 5
      Source/player.cpp

3
Source/items.cpp

@ -20,7 +20,6 @@ BOOL itemhold[3][3];
CornerStoneStruct CornerStone;
BYTE *itemanims[ITEMTYPES];
BOOL UniqueItemFlag[128];
int auricGold = (GOLD_MAX_LIMIT * 2);
int numitems;
int gnNumGetRecords;
@ -1078,7 +1077,7 @@ void CalcPlrItemVals(int p, BOOL Loadgfx)
if (half != MaxGold)
StripTopGold(p);
} else {
MaxGold = auricGold;
MaxGold = GOLD_MAX_LIMIT * 2;
}
drawmanaflag = TRUE;

1
Source/items.h

@ -260,7 +260,6 @@ extern int itemavail[MAXITEMS];
extern ItemStruct item[MAXITEMS + 1];
extern CornerStoneStruct CornerStone;
extern BOOL UniqueItemFlag[128];
extern int auricGold;
extern int numitems;
bool IsItemAvailable(int i);

5
Source/player.cpp

@ -3415,7 +3415,10 @@ void ValidatePlayer()
gt = 0;
for (i = 0; i < plr[myplr]._pNumInv; i++) {
if (plr[myplr].InvList[i]._itype == ITYPE_GOLD) {
int maxGold = gbIsHellfire ? auricGold : GOLD_MAX_LIMIT;
int maxGold = GOLD_MAX_LIMIT;
if (gbIsHellfire) {
maxGold *= 2;
}
if (plr[myplr].InvList[i]._ivalue > maxGold) {
plr[myplr].InvList[i]._ivalue = maxGold;
}

Loading…
Cancel
Save