Change some hardcoded 1s with TRUE

Jaizu 2022-08-03 12:09:19 +02:00
parent ce1da60f3f
commit f5457905b2
1 changed files with 3 additions and 3 deletions

@ -33,7 +33,7 @@ gText_ObtainedTheItems::
Open [data/scripts/obtain_item.inc](../blob/master/data/scripts/obtain_item.inc). Find `EventScript_ObtainedItem`, and modify it to the following: Open [data/scripts/obtain_item.inc](../blob/master/data/scripts/obtain_item.inc). Find `EventScript_ObtainedItem`, and modify it to the following:
```c ```c
EventScript_ObtainedItem:: @ 8271B95 EventScript_ObtainedItem:: @ 8271B95
compare VAR_0x8001, 1 compare VAR_0x8001, TRUE
goto_if_eq EventScript_ObtainedItemMessage goto_if_eq EventScript_ObtainedItemMessage
buffernumberstring 0, VAR_0x8001 buffernumberstring 0, VAR_0x8001
message gText_ObtainedTheItems message gText_ObtainedTheItems
@ -43,7 +43,7 @@ EventScript_ObtainedItemMessage:
EventScript_ContinueObtainedItem: EventScript_ContinueObtainedItem:
waitfanfare waitfanfare
msgbox gText_PutItemInPocket, MSGBOX_DEFAULT msgbox gText_PutItemInPocket, MSGBOX_DEFAULT
setvar VAR_RESULT, 1 setvar VAR_RESULT, TRUE
return return
``` ```
@ -73,7 +73,7 @@ gText_PlayerFoundItems::
Open [data/scripts/obtain_item.inc](../blob/master/data/scripts/obtain_item.inc). Find `EventScript_FoundItem`, and modify it to the following: Open [data/scripts/obtain_item.inc](../blob/master/data/scripts/obtain_item.inc). Find `EventScript_FoundItem`, and modify it to the following:
```c ```c
EventScript_FoundItem:: @ 8271C9B EventScript_FoundItem:: @ 8271C9B
compare VAR_0x8001, 1 compare VAR_0x8001, TRUE
goto_if_eq EventScript_FoundItemMessage goto_if_eq EventScript_FoundItemMessage
buffernumberstring 0, VAR_0x8001 buffernumberstring 0, VAR_0x8001
message gText_PlayerFoundItems message gText_PlayerFoundItems