mirror of
https://github.com/zeldaret/tmc
synced 2026-08-15 21:00:13 -04:00
identify some functions
This commit is contained in:
+1
-1
@@ -329,7 +329,7 @@ void sub_0806D600(Entity* this, ScriptExecutionContext* context) {
|
||||
|
||||
void sub_0806D620(void) {
|
||||
SetInventoryValue(ITEM_SHIELD, 0);
|
||||
sub_080A7C18(ITEM_MIRROR_SHIELD, 0, 0);
|
||||
InitItemGetSequence(ITEM_MIRROR_SHIELD, 0, 0);
|
||||
}
|
||||
|
||||
void sub_0806D638(Entity* this) {
|
||||
|
||||
@@ -191,7 +191,7 @@ void sub_08068C28(Entity* this) {
|
||||
}
|
||||
|
||||
void sub_08068C6C(Entity* this) {
|
||||
sub_080A7C18(gUnk_0811162B[this->actionDelay] & 0xffffff7f, 0, 0);
|
||||
InitItemGetSequence(gUnk_0811162B[this->actionDelay] & 0xffffff7f, 0, 0);
|
||||
}
|
||||
|
||||
void sub_08068C8C(Entity* this, ScriptExecutionContext* context) {
|
||||
|
||||
@@ -134,7 +134,7 @@ void GoronMerchant_TryToBuyKinstone(Entity* this, ScriptExecutionContext* contex
|
||||
if (salePrice <= gSave.stats.rupees) {
|
||||
if (sub_0801E7D0(gRoomVars.shopItemType2) < 99) {
|
||||
ModRupees(-salePrice);
|
||||
sub_080A7C18(0x5c, gRoomVars.shopItemType2, 0);
|
||||
InitItemGetSequence(0x5c, gRoomVars.shopItemType2, 0);
|
||||
gRoomVars.shopItemType = 0;
|
||||
gRoomVars.shopItemType2 = 0;
|
||||
context->condition = 1;
|
||||
|
||||
+1
-1
@@ -135,7 +135,7 @@ void sub_08068910(Entity* this) {
|
||||
}
|
||||
|
||||
void sub_08068964(Entity* this) {
|
||||
sub_080A7C18(ITEM_QST_BROKEN_SWORD, 0, 3);
|
||||
InitItemGetSequence(ITEM_QST_BROKEN_SWORD, 0, 3);
|
||||
SetInventoryValue(ITEM_QST_BROKEN_SWORD, 2);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -48,7 +48,7 @@ void sub_08066358(Entity* this) {
|
||||
}
|
||||
this->speed = 0x80;
|
||||
this->cutsceneBeh.HWORD = 1;
|
||||
gUnk_02034490.unk0 = 1;
|
||||
gPauseMenuOptions.disabled = 1;
|
||||
sub_080788E0(this);
|
||||
}
|
||||
} else {
|
||||
@@ -95,7 +95,7 @@ void sub_0806643C(Entity* this) {
|
||||
|
||||
void sub_08066474(void) {
|
||||
if (gPlayerEntity.action != PLAYER_080720DC) {
|
||||
gUnk_02034490.unk0 = 0;
|
||||
gPauseMenuOptions.disabled = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -124,9 +124,9 @@ void sub_0806B540(Entity* this) {
|
||||
if ((gMessage.doTextBox & 0x7f) == 0) {
|
||||
context->unk_18 = 3;
|
||||
if (gSave.stats.hasAllFigurines != 0) {
|
||||
sub_080A7C18(0x58, 0, 0);
|
||||
InitItemGetSequence(0x58, 0, 0);
|
||||
} else {
|
||||
sub_080A7C18(0x3f, 100, 0);
|
||||
InitItemGetSequence(0x3f, 100, 0);
|
||||
}
|
||||
SetRoomFlag(0xf);
|
||||
}
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ bool32 sub_08062EDC(Entity* this, ScriptExecutionContext* context) {
|
||||
} else {
|
||||
tmp = GetRandomByWeight(gUnk_0810C435);
|
||||
tmp2 = gUnk_0810C43D[tmp];
|
||||
sub_080A7C18(0x5c, tmp2, 1);
|
||||
InitItemGetSequence(0x5c, tmp2, 1);
|
||||
MessageNoOverlap(0x3c05, this);
|
||||
context->condition = TRUE;
|
||||
return TRUE;
|
||||
|
||||
+1
-1
@@ -223,7 +223,7 @@ void sub_08065370(Entity* this, ScriptExecutionContext* context) {
|
||||
itemPrice = GetItemPrice(shopItemType);
|
||||
if (itemPrice <= gSave.stats.rupees) {
|
||||
ModRupees(-itemPrice);
|
||||
sub_080A7C18(shopItemType, gRoomVars.shopItemType2, 2);
|
||||
InitItemGetSequence(shopItemType, gRoomVars.shopItemType2, 2);
|
||||
gRoomVars.shopItemType = 0;
|
||||
gRoomVars.shopItemType2 = 0;
|
||||
context->condition = 1;
|
||||
|
||||
Reference in New Issue
Block a user