mirror of
https://github.com/zeldaret/tmc
synced 2026-06-17 07:08:05 -04:00
Add playeritem enum and use ids and kinds in all Findentity calls
This commit is contained in:
@@ -159,7 +159,7 @@ void sub_0805BB74(s32 lightLevel) {
|
||||
}
|
||||
gArea.lightLevel = lightLevel;
|
||||
gRoomVars.lightLevel = gArea.lightLevel;
|
||||
manager = (Manager22*)DeepFindEntityByID(9, 0x22);
|
||||
manager = (Manager22*)DeepFindEntityByID(MANAGER, 0x22);
|
||||
if (manager) {
|
||||
Manager22_Main(manager);
|
||||
gScreen.lcd.displayControl |= DISPCNT_BG3_ON;
|
||||
|
||||
@@ -36,7 +36,7 @@ void CreateManager36(Entity* entity, ScriptExecutionContext* context) {
|
||||
}
|
||||
|
||||
void DeleteManager36(Entity* entity, ScriptExecutionContext* context) {
|
||||
Entity* manager = FindEntity(9, 0x36, 6, context->intVariable, 0);
|
||||
Entity* manager = FindEntity(MANAGER, 0x36, 6, context->intVariable, 0);
|
||||
if (manager != NULL) {
|
||||
DeleteEntityAny(manager);
|
||||
}
|
||||
|
||||
@@ -286,7 +286,7 @@ void sub_08059220(ManagerF* this) {
|
||||
|
||||
void sub_08059278(void) {
|
||||
ManagerF* tmp;
|
||||
tmp = (ManagerF*)FindEntityByID(0x9, 0xF, 0x6);
|
||||
tmp = (ManagerF*)FindEntityByID(MANAGER, 0xF, 0x6);
|
||||
if (tmp) {
|
||||
sub_08058ECC(tmp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user