mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-23 06:54:14 -04:00
@@ -177,19 +177,18 @@ u16 gScenesPerRegion[11][27] = {
|
||||
|
||||
s32 func_8012EC80(GlobalContext* globalCtx) {
|
||||
if (gSaveContext.buttonStatus[0] == BTN_DISABLED) {
|
||||
return 0xFF;
|
||||
} else if (gSaveContext.unk_1015 == 0xFF) {
|
||||
return 0xFF;
|
||||
} else if (gSaveContext.equips.buttonItems[((gSaveContext.playerForm == 4) ? 0 : gSaveContext.playerForm)][0] ==
|
||||
0xFF) {
|
||||
return ITEM_NONE;
|
||||
} else if (gSaveContext.unk_1015 == ITEM_NONE) {
|
||||
return ITEM_NONE;
|
||||
} else if (CUR_FORM_EQUIP(EQUIP_SLOT_B) == ITEM_NONE) {
|
||||
if (globalCtx->interfaceCtx.unk_21C != 0) {
|
||||
if (globalCtx->interfaceCtx.unk_21E != 0) {
|
||||
return globalCtx->interfaceCtx.unk_21E;
|
||||
}
|
||||
}
|
||||
return 0xFF;
|
||||
return ITEM_NONE;
|
||||
} else {
|
||||
return gSaveContext.equips.buttonItems[((gSaveContext.playerForm == 4) ? 0 : gSaveContext.playerForm)][0];
|
||||
return CUR_FORM_EQUIP(EQUIP_SLOT_B);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -911,10 +911,7 @@ void EnFsn_DeterminePrice(EnFsn* this, GlobalContext* globalCtx) {
|
||||
itemGiven = func_80123810(globalCtx);
|
||||
if (itemGiven > 0) {
|
||||
if (player->heldItemButton == 0) {
|
||||
buttonItem =
|
||||
gSaveContext.equips
|
||||
.buttonItems[(gSaveContext.playerForm == PLAYER_FORM_HUMAN) ? 0 : gSaveContext.playerForm]
|
||||
[player->heldItemButton];
|
||||
buttonItem = CUR_FORM_EQUIP(player->heldItemButton);
|
||||
} else {
|
||||
buttonItem = gSaveContext.equips.buttonItems[0][player->heldItemButton];
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -7,10 +7,33 @@ struct EnKgy;
|
||||
|
||||
typedef void (*EnKgyActionFunc)(struct EnKgy*, GlobalContext*);
|
||||
|
||||
#define ENKGY_GET_1F(thisx) ((thisx)->params & 0x1F)
|
||||
#define ENKGY_GET_FE00(thisx) (((thisx)->params & 0xFE00) >> 9)
|
||||
|
||||
typedef struct EnKgy {
|
||||
/* 0x0000 */ Actor actor;
|
||||
/* 0x0144 */ char unk_144[0x1C0];
|
||||
/* 0x0304 */ EnKgyActionFunc actionFunc;
|
||||
/* 0x000 */ Actor actor;
|
||||
/* 0x144 */ SkelAnime skelAnime;
|
||||
/* 0x188 */ Vec3s jointTable[23];
|
||||
/* 0x212 */ Vec3s morphTable[23];
|
||||
/* 0x29C */ u16 unk_29C;
|
||||
/* 0x2A0 */ EnKbt* zubora;
|
||||
/* 0x2A4 */ ObjIcePoly* iceBlock;
|
||||
/* 0x2A8 */ Vec3f unk_2A8;
|
||||
/* 0x2B4 */ Vec3f unk_2B4;
|
||||
/* 0x2C0 */ Vec3f unk_2C0;
|
||||
/* 0x2CC */ Vec3s unk_2CC;
|
||||
/* 0x2D2 */ s16 unk_2D2;
|
||||
/* 0x2D4 */ s16 unk_2D4[6];
|
||||
/* 0x2E0 */ s16 unk_2E0;
|
||||
/* 0x2E2 */ s16 unk_2E2;
|
||||
/* 0x2E4 */ s16 unk_2E4;
|
||||
/* 0x2E6 */ s16 unk_2E6;
|
||||
/* 0x2E8 */ s16 unk_2E8;
|
||||
/* 0x2EA */ s16 unk_2EA;
|
||||
/* 0x2EC */ LightInfo lightInfo;
|
||||
/* 0x2FC */ LightNode* lightNode;
|
||||
/* 0x300 */ s16 unk_300;
|
||||
/* 0x304 */ EnKgyActionFunc actionFunc;
|
||||
} EnKgy; // size = 0x308
|
||||
|
||||
extern const ActorInit En_Kgy_InitVars;
|
||||
|
||||
Reference in New Issue
Block a user