-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JP] Entities and World Areas (mac, tik, kgr, kmr, iwa, sbk) #1199
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,11 @@ | |
#include "world/common/enemy/Whacka.inc.c" | ||
|
||
#include "world/common/complete/GiveReward.inc.c" | ||
#if VERSION_JP | ||
#include "world/common/todo/SomeItemEntityFunc.inc.c" | ||
#include "world/common/todo/IsItemBadge.inc.c" | ||
#include "world/common/todo/UnkScriptJP00.inc.c" | ||
Comment on lines
+10
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are always included together. Maybe they're a single file? |
||
#endif | ||
|
||
API_CALLABLE(N(func_80240118_90CD58)) { | ||
Enemy* enemy = script->owner1.enemy; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -304,9 +304,19 @@ EvtScript N(EVS_ItemPrompt_Dictionary) = { | |
IfEq(GF_MAC00_TranslatedMysteryNote, TRUE) | ||
Call(SpeakToPlayer, NPC_SELF, ANIM_RussT_Talk, ANIM_RussT_Idle, 0, MSG_MAC_Gate_0010) | ||
EndIf | ||
#if VERSION_JP | ||
IfEq(GF_Unused_MAC_74, TRUE) | ||
Call(SpeakToPlayer, NPC_SELF, ANIM_RussT_Talk, ANIM_RussT_Idle, 0, MSG_MAC_Gate_JP_0011) | ||
EndIf | ||
#endif | ||
CaseEq(ITEM_MYSTERY_NOTE) | ||
Call(SpeakToPlayer, NPC_SELF, ANIM_RussT_Talk, ANIM_RussT_Idle, 0, MSG_MAC_Gate_000F) | ||
Set(GF_MAC00_TranslatedMysteryNote, TRUE) | ||
#if VERSION_JP | ||
CaseEq(ITEM_SUSPICIOUS_NOTE) | ||
Call(SpeakToPlayer, NPC_SELF, ANIM_RussT_Talk, ANIM_RussT_Idle, 0, MSG_MAC_Gate_0122) | ||
Set(GF_Unused_MAC_74, TRUE) | ||
#endif | ||
CaseEq(-1) | ||
Call(SpeakToPlayer, NPC_SELF, ANIM_RussT_Talk, ANIM_RussT_Idle, 0, MSG_MAC_Gate_000C) | ||
CaseEq(0) | ||
|
@@ -327,13 +337,26 @@ EvtScript N(EVS_ItemPrompt_Documents) = { | |
Return | ||
EndIf | ||
Else | ||
#if VERSION_JP | ||
IfEq(GF_Unused_MAC_74, TRUE) | ||
Call(SpeakToPlayer, NPC_SELF, ANIM_RussT_Talk, ANIM_RussT_Idle, 0, MSG_MAC_Gate_JP_0011) | ||
Set(LVarA, 1) | ||
Return | ||
EndIf | ||
#endif | ||
EndIf | ||
CaseEq(-1) | ||
CaseDefault | ||
IfEq(LVar0, ITEM_MYSTERY_NOTE) | ||
Call(SpeakToPlayer, NPC_SELF, ANIM_RussT_Talk, ANIM_RussT_Idle, 0, MSG_MAC_Gate_000E) | ||
Set(GF_MAC00_TranslatedMysteryNote, TRUE) | ||
Set(LVarA, 1) | ||
#if VERSION_JP | ||
Else | ||
Call(SpeakToPlayer, NPC_SELF, ANIM_RussT_Talk, ANIM_RussT_Idle, 0, MSG_MAC_Gate_0121) | ||
Set(GF_Unused_MAC_74, TRUE) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Worth looking at translating the message MAC_Gate_0121 so we can name this gameflag. It certainly shouldn't be marked unused There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shounds good! |
||
Set(LVarA, 1) | ||
#endif | ||
EndIf | ||
EndSwitch | ||
Return | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed there are some unused values among the colliders (
COLLIDER_Root
, for example). I have no idea where those came from, so I'm just setting the ones that are actually used for JP.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they come from the model binary files iirc. yeah, no worries about leaving out unused ones
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, these headers were generated using mapfs assets decoded by Star Rod. we should eventually be generating them at build-time from the content of the _hit and _shape assets, and this will properly account for any differences between versions. for now this is totally fine