mirror of
https://github.com/zeldaret/tmc
synced 2026-07-11 23:30:06 -04:00
Match SortKinstoneBag
extract kinstone related data from SaveFile into it's own struct Co-authored-by: KEKW555 <152369890+KEKW555@users.noreply.github.com>
This commit is contained in:
@@ -214,7 +214,7 @@ void CuccoMinigame_WinItem(CuccoMinigameEntity* this) {
|
||||
}
|
||||
break;
|
||||
case ITEM_KINSTONE:
|
||||
if (gSave.didAllFusions) {
|
||||
if (gSave.kinstones.didAllFusions) {
|
||||
skipItem = 1;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -44,14 +44,14 @@ void Object37_Init(Object37Entity* this) {
|
||||
void Object37_Action1(Object37Entity* this) {
|
||||
Entity* item;
|
||||
|
||||
if ((gSave.fusionUnmarked[0] != 0) && (this->unk70 != *this->unk78)) {
|
||||
if ((gSave.kinstones.fusionUnmarked[0] != 0) && (this->unk70 != *this->unk78)) {
|
||||
item = CreateGroundItem(super, ITEM_RUPEE100, 0);
|
||||
if (item != 0) {
|
||||
item->direction = gPlayerEntity.animationState << 2;
|
||||
item->speed = 0x80;
|
||||
item->zVelocity = Q_16_16(2.0);
|
||||
}
|
||||
gSave.fusionUnmarked[0] = 1;
|
||||
gSave.kinstones.fusionUnmarked[0] = 1;
|
||||
DeleteThisEntity();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user