blob: b5478d72a3400838206fba002f56d00645ff9517 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "ActorBehavior.h"
void Rando::ActorBehavior::InitEnShnBehavior() {
COND_VB_SHOULD(VB_EXEC_MSG_EVENT, IS_RANDO, {
u32 cmdId = va_arg(args, u32);
Actor* actor = va_arg(args, Actor*);
if (actor->id == ACTOR_EN_SHN && cmdId == MSCRIPT_CMD_ID_OFFER_ITEM) { // Swamp Tourist Center Guide
MsgScriptCmdOfferItem* cmd = va_arg(args, MsgScriptCmdOfferItem*);
GetItemId getItemId = (GetItemId)SCRIPT_PACK_16(cmd->itemIdH, cmd->itemIdL);
if (getItemId == GI_HEART_PIECE) { // Showed picture of Tingle or the Deku King
// Do not do any substituted behavior, just skip this single command
*should = false;
}
}
});
}
|