mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-08-06 01:58:20 -04:00
fix: populate merchant prices table with expensive scrub prices (#2181)
* fix: populate merchant prices with vanilla scrub prices * temporary expensive scrub workaround Co-authored-by: briaguya <briaguya@alice>
This commit is contained in:
@@ -178,6 +178,13 @@ void EnDns_Init(Actor* thisx, PlayState* play) {
|
||||
this->dnsItemEntry->itemPrice = this->scrubIdentity.itemPrice;
|
||||
}
|
||||
|
||||
if (Randomizer_GetSettingValue(RSK_SHUFFLE_SCRUBS) == RO_SCRUBS_EXPENSIVE) {
|
||||
// temporary workaround: always use 40 rupees as price instead of 70
|
||||
if (this->actor.params == 0x0006) {
|
||||
this->dnsItemEntry->itemPrice = 40;
|
||||
}
|
||||
}
|
||||
|
||||
if (this->scrubIdentity.isShuffled) {
|
||||
this->dnsItemEntry->getItemId = this->scrubIdentity.getItemId;
|
||||
this->dnsItemEntry->purchaseableCheck = EnDns_RandomizerPurchaseableCheck;
|
||||
|
||||
Reference in New Issue
Block a user