Browse Source

Merge pull request #874 from AJenbo/SetPlrHandGoldCurs

Clean up SetPlrHandGoldCurs
pull/88/head
Robin Eklind 7 years ago committed by GitHub
parent
commit
4b4cc52e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      Source/items.cpp

15
Source/items.cpp

@ -1355,17 +1355,12 @@ void SetPlrHandSeed(ItemStruct *h, int iseed)
void SetPlrHandGoldCurs(ItemStruct *h)
{
int v1; // eax
v1 = h->_ivalue;
if (v1 < 2500) {
if (v1 > 1000)
h->_iCurs = ICURS_GOLD_MEDIUM;
else
h->_iCurs = ICURS_GOLD_SMALL;
} else {
if (h->_ivalue >= 2500)
h->_iCurs = ICURS_GOLD_LARGE;
}
else if (h->_ivalue <= 1000)
h->_iCurs = ICURS_GOLD_SMALL;
else
h->_iCurs = ICURS_GOLD_MEDIUM;
}
void CreatePlrItems(int p)

Loading…
Cancel
Save