mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-23 06:02:08 -05:00
Fixes order of operations so Rupees will be spent.
This commit is contained in:
parent
5d38b23850
commit
4d9bf936b1
@ -978,6 +978,7 @@ void EnGirlA_BuyEvent_ObtainBombchuPack(GlobalContext* globalCtx, EnGirlA* this)
|
|||||||
void EnGirlA_BuyEvent_Randomizer(GlobalContext* globalCtx, EnGirlA* this) {
|
void EnGirlA_BuyEvent_Randomizer(GlobalContext* globalCtx, EnGirlA* this) {
|
||||||
ShopItemIdentity shopItemIdentity = Randomizer_IdentifyShopItem(globalCtx->sceneNum, this->randoSlotIndex);
|
ShopItemIdentity shopItemIdentity = Randomizer_IdentifyShopItem(globalCtx->sceneNum, this->randoSlotIndex);
|
||||||
Flags_SetRandomizerInf(shopItemIdentity.randomizerInf);
|
Flags_SetRandomizerInf(shopItemIdentity.randomizerInf);
|
||||||
|
Rupees_ChangeBy(-this->basePrice);
|
||||||
if (shopItemIdentity.enGirlAShopItem == -1) {
|
if (shopItemIdentity.enGirlAShopItem == -1) {
|
||||||
ShopItemEntry* itemEntry = &shopItemEntries[SI_SOLD_OUT];
|
ShopItemEntry* itemEntry = &shopItemEntries[SI_SOLD_OUT];
|
||||||
this->actor.textId = itemEntry->itemDescTextId;
|
this->actor.textId = itemEntry->itemDescTextId;
|
||||||
@ -990,7 +991,6 @@ void EnGirlA_BuyEvent_Randomizer(GlobalContext* globalCtx, EnGirlA* this) {
|
|||||||
this->itemCount = itemEntry->count;
|
this->itemCount = itemEntry->count;
|
||||||
this->giDrawId = itemEntry->giDrawId;
|
this->giDrawId = itemEntry->giDrawId;
|
||||||
}
|
}
|
||||||
Rupees_ChangeBy(-this->basePrice);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void EnGirlA_Noop(EnGirlA* this, GlobalContext* globalCtx) {
|
void EnGirlA_Noop(EnGirlA* this, GlobalContext* globalCtx) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user