mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-22 05:31:54 -05:00
Fix some issues with ice traps
This commit is contained in:
parent
cda28c402a
commit
098407487a
@ -431,7 +431,12 @@ void Randomizer::LoadMerchantMessages(const char* spoilerFileName) {
|
|||||||
|
|
||||||
for (int index = 0; index < shopItemRandomizerChecks.size(); ++index) {
|
for (int index = 0; index < shopItemRandomizerChecks.size(); ++index) {
|
||||||
RandomizerCheck shopItemCheck = shopItemRandomizerChecks[index];
|
RandomizerCheck shopItemCheck = shopItemRandomizerChecks[index];
|
||||||
std::vector<std::string> shopItemName = EnumToSpoilerfileGetName[this->itemLocations[shopItemCheck]];
|
RandomizerGet shopItemGet = this->itemLocations[shopItemCheck];
|
||||||
|
// TODO: This should eventually be replaced with a full fledged trick model & trick name system
|
||||||
|
if (shopItemGet == RG_ICE_TRAP) {
|
||||||
|
shopItemGet = RG_HUGE_RUPEE;
|
||||||
|
}
|
||||||
|
std::vector<std::string> shopItemName = EnumToSpoilerfileGetName[shopItemGet];
|
||||||
u16 shopItemPrice = merchantPrices[shopItemCheck];
|
u16 shopItemPrice = merchantPrices[shopItemCheck];
|
||||||
// TODO: Magic number 100, we don't to overwrite deku scrub messages
|
// TODO: Magic number 100, we don't to overwrite deku scrub messages
|
||||||
CustomMessageManager::Instance->CreateMessage(
|
CustomMessageManager::Instance->CreateMessage(
|
||||||
|
@ -1705,8 +1705,9 @@ void EnOssan_State_GiveItemWithFanfare(EnOssan* this, GlobalContext* globalCtx,
|
|||||||
void EnOssan_State_ItemPurchased(EnOssan* this, GlobalContext* globalCtx, Player* player) {
|
void EnOssan_State_ItemPurchased(EnOssan* this, GlobalContext* globalCtx, Player* player) {
|
||||||
EnGirlA* item;
|
EnGirlA* item;
|
||||||
EnGirlA* itemTemp;
|
EnGirlA* itemTemp;
|
||||||
|
ShopItemIdentity shopItemIdentity = Randomizer_IdentifyShopItem(globalCtx->sceneNum, this->cursorIndex);
|
||||||
|
|
||||||
if ((Message_GetState(&globalCtx->msgCtx) == TEXT_STATE_DONE) && Message_ShouldAdvance(globalCtx)) {
|
if ((Message_GetState(&globalCtx->msgCtx) == TEXT_STATE_DONE) && Message_ShouldAdvance(globalCtx) || (gSaveContext.n64ddFlag && Randomizer_ItemIsIceTrap(shopItemIdentity.randomizerCheck, GI_NONE))) {
|
||||||
if (this->actor.params == OSSAN_TYPE_MASK) {
|
if (this->actor.params == OSSAN_TYPE_MASK) {
|
||||||
itemTemp = this->shelfSlots[this->cursorIndex];
|
itemTemp = this->shelfSlots[this->cursorIndex];
|
||||||
EnOssan_ResetItemPosition(this);
|
EnOssan_ResetItemPosition(this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user