mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-11 22:18:04 -05:00
Add skull token to links pocket
This commit is contained in:
parent
06fb3ed885
commit
83abf57766
@ -309,6 +309,11 @@ void GiveLinkDekuNutUpgrade(GetItemID giid) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GiveLinkSkullToken() {
|
||||||
|
gSaveContext.inventory.questItems |= gBitFlags[QUEST_SKULL_TOKEN];
|
||||||
|
gSaveContext.inventory.gsTokens++;
|
||||||
|
}
|
||||||
|
|
||||||
void GiveLinkMagic(GetItemID giid) {
|
void GiveLinkMagic(GetItemID giid) {
|
||||||
if (giid == RG_MAGIC_SINGLE) {
|
if (giid == RG_MAGIC_SINGLE) {
|
||||||
gSaveContext.magicLevel = 1;
|
gSaveContext.magicLevel = 1;
|
||||||
@ -849,6 +854,8 @@ void Sram_InitSave(FileChooseContext* fileChooseCtx) {
|
|||||||
GiveLinkDekuStickUpgrade(giid);
|
GiveLinkDekuStickUpgrade(giid);
|
||||||
} else if (giid == GI_NUT_UPGRADE_30 || giid == GI_NUT_UPGRADE_40) {
|
} else if (giid == GI_NUT_UPGRADE_30 || giid == GI_NUT_UPGRADE_40) {
|
||||||
GiveLinkDekuNutUpgrade(giid);
|
GiveLinkDekuNutUpgrade(giid);
|
||||||
|
} else if (giid == GI_SKULL_TOKEN) {
|
||||||
|
GiveLinkSkullToken();
|
||||||
} else {
|
} else {
|
||||||
s32 iid = getItem.itemId;
|
s32 iid = getItem.itemId;
|
||||||
if (iid != -1) INV_CONTENT(iid) = iid;
|
if (iid != -1) INV_CONTENT(iid) = iid;
|
||||||
|
Loading…
Reference in New Issue
Block a user