mirror of
https://github.com/zeldaret/tmc
synced 2026-08-04 01:03:49 -04:00
more cleanup
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
|
||||
extern u32 SetTileType(u32 tileID, u32 tilePos, u32 layerID);
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "dma.h"
|
||||
#include "functions.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "player.h"
|
||||
#include "room.h"
|
||||
#include "menu.h"
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
#include "entity.h"
|
||||
#include "global.h"
|
||||
#include "functions.h"
|
||||
#include "entity.h"
|
||||
|
||||
Entity* CreateEnemy(u32 subtype, u32 form) {
|
||||
Entity* enemy;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "functions.h"
|
||||
|
||||
Entity* CreateNPC(u32 subtype, u32 form, u32 parameter) {
|
||||
Entity* entity;
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
#include "entity.h"
|
||||
#include "position.h"
|
||||
#include "room.h"
|
||||
#include "functions.h"
|
||||
#include "createObject.h"
|
||||
|
||||
Entity* CreateObject(u32 subtype, u32 form, u32 parameter) {
|
||||
Entity* entity;
|
||||
|
||||
+1
-1
@@ -1,8 +1,8 @@
|
||||
#include "enemy.h"
|
||||
#include "random.h"
|
||||
#include "createObject.h"
|
||||
#include "functions.h"
|
||||
|
||||
extern void CreateDustSmall(Entity*);
|
||||
extern void sub_08078930(Entity*);
|
||||
extern void sub_08078954(Entity*);
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "player.h"
|
||||
#include "room.h"
|
||||
#include "trig.h"
|
||||
#include "structures.h"
|
||||
#include "fileScreen.h"
|
||||
#include "random.h"
|
||||
#include "functions.h"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "textbox.h"
|
||||
#include "save.h"
|
||||
#include "random.h"
|
||||
#include "createObject.h"
|
||||
#include "functions.h"
|
||||
|
||||
extern bool32 sub_080544B4(u32);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "enemy.h"
|
||||
#include "room.h"
|
||||
#include "random.h"
|
||||
#include "functions.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#include "enemy.h"
|
||||
#include "entity.h"
|
||||
#include "random.h"
|
||||
#include "createObject.h"
|
||||
#include "game.h"
|
||||
#include "functions.h"
|
||||
|
||||
extern u32 sub_080002E0(u16, u32);
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "sprite.h"
|
||||
#include "enemy.h"
|
||||
#include "random.h"
|
||||
#include "functions.h"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "enemy.h"
|
||||
#include "functions.h"
|
||||
#include "npc.h"
|
||||
#include "structures.h"
|
||||
#include "player.h"
|
||||
#include "save.h"
|
||||
#include "createObject.h"
|
||||
#include "functions.h"
|
||||
|
||||
extern void sub_080293DC(Entity*);
|
||||
extern void sub_080296D8(Entity*);
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#include "entity.h"
|
||||
#include "player.h"
|
||||
#include "functions.h"
|
||||
#include "screen.h"
|
||||
#include "createObject.h"
|
||||
#include "functions.h"
|
||||
|
||||
typedef struct {
|
||||
s8 h, v;
|
||||
|
||||
+1
-1
@@ -1,10 +1,10 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "enemy.h"
|
||||
#include "structures.h"
|
||||
#include "player.h"
|
||||
#include "save.h"
|
||||
#include "random.h"
|
||||
#include "createObject.h"
|
||||
#include "functions.h"
|
||||
|
||||
extern void (*const gUnk_080CEB74[])(Entity*);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "functions.h"
|
||||
#include "textbox.h"
|
||||
#include "structures.h"
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#include "room.h"
|
||||
#include "flags.h"
|
||||
#include "area.h"
|
||||
#include "room.h"
|
||||
|
||||
extern u32 ReadBit(u32*, u32);
|
||||
extern u32 CheckBits(u32*, u32, u32);
|
||||
|
||||
+1
-1
@@ -300,7 +300,7 @@ u32 sub_08052654() {
|
||||
return (gArea >> 7) & 1;
|
||||
}
|
||||
|
||||
u32 CheckIsDungeon() {
|
||||
u32 CheckIsDungeon(void) {
|
||||
return (gArea >> 2) & 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "readKeyInput.h"
|
||||
|
||||
static void StoreKeyInput(Input*, u32);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "global.h"
|
||||
#include "menu.h"
|
||||
#include "main.h"
|
||||
#include "entity.h"
|
||||
#include "dma.h"
|
||||
|
||||
@@ -78,7 +78,7 @@ extern Entity gUnk_080E4C08;
|
||||
|
||||
void sub_0805A370(Manager15* this) {
|
||||
if (this->manager.unk_0d) {
|
||||
LoadRoomEntityList(&gUnk_080E4C08);
|
||||
LoadRoomEntityList((EntityData*)&gUnk_080E4C08);
|
||||
this->manager.action = 3;
|
||||
SoundReq(0x80100000);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "global.h"
|
||||
#include "manager.h"
|
||||
#include "flags.h"
|
||||
#include "player.h"
|
||||
#include "functions.h"
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "area.h"
|
||||
#include "textbox.h"
|
||||
#include "dma.h"
|
||||
#include "game.h"
|
||||
#include "functions.h"
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "flags.h"
|
||||
#include "structures.h"
|
||||
#include "room.h"
|
||||
#include "area.h"
|
||||
#include "screen.h"
|
||||
#include "trig.h"
|
||||
#include "functions.h"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "global.h"
|
||||
#include "functions.h"
|
||||
#include "entity.h"
|
||||
#include "npc.h"
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "player.h"
|
||||
#include "room.h"
|
||||
#include "flags.h"
|
||||
#include "sprite.h"
|
||||
#include "textbox.h"
|
||||
#include "npc.h"
|
||||
#include "script.h"
|
||||
#include "functions.h"
|
||||
|
||||
+1
-7
@@ -1,15 +1,9 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "player.h"
|
||||
#include "room.h"
|
||||
#include "flags.h"
|
||||
#include "sprite.h"
|
||||
#include "textbox.h"
|
||||
#include "npc.h"
|
||||
#include "structures.h"
|
||||
#include "functions.h"
|
||||
#include "script.h"
|
||||
|
||||
#include "functions.h"
|
||||
|
||||
void Carlov(Entity* this) {
|
||||
if (this->action == 0) {
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
#include "npc.h"
|
||||
#include "functions.h"
|
||||
|
||||
void sub_0806920C(Entity* ent);
|
||||
void sub_0806924C(Entity* ent);
|
||||
|
||||
extern void (*gUnk_08111914[])(Entity*);
|
||||
extern void (*gUnk_08111928[])(Entity*);
|
||||
extern Dialog gUnk_08111938[];
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "player.h"
|
||||
#include "room.h"
|
||||
#include "flags.h"
|
||||
#include "sprite.h"
|
||||
#include "textbox.h"
|
||||
#include "npc.h"
|
||||
#include "functions.h"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "save.h"
|
||||
#include "script.h"
|
||||
#include "random.h"
|
||||
#include "createObject.h"
|
||||
#include "structures.h"
|
||||
#include "functions.h"
|
||||
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "player.h"
|
||||
#include "room.h"
|
||||
#include "flags.h"
|
||||
#include "sprite.h"
|
||||
#include "textbox.h"
|
||||
#include "npc.h"
|
||||
#include "structures.h"
|
||||
#include "functions.h"
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "player.h"
|
||||
#include "room.h"
|
||||
#include "flags.h"
|
||||
#include "sprite.h"
|
||||
#include "textbox.h"
|
||||
#include "npc.h"
|
||||
#include "script.h"
|
||||
#include "functions.h"
|
||||
|
||||
void MoblinLady(Entity* this) {
|
||||
if (this->action == 0) {
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#include "npc.h"
|
||||
#include "functions.h"
|
||||
|
||||
extern void sub_08078850(u32, u32, u32, u32*);
|
||||
extern void sub_08078850(Entity*, u32, u32, u32*);
|
||||
|
||||
extern void (*const gUnk_08110360[])(Entity*);
|
||||
extern void (*const gUnk_0811036C[])(Entity*);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "sprite.h"
|
||||
#include "functions.h"
|
||||
#include "game.h"
|
||||
|
||||
void Archway(Entity* this) {
|
||||
u32 v1;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "flags.h"
|
||||
|
||||
extern void sub_080842D8(Entity*);
|
||||
extern void sub_08078828(Entity*);
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ void sub_0809F5B0(Entity* this) {
|
||||
if (--this->actionDelay == 0) {
|
||||
SoundReq(115);
|
||||
SetGlobalFlag(KUMOTATSUMAKI);
|
||||
LoadRoomEntityList(&gUnk_080DD750);
|
||||
LoadRoomEntityList((EntityData*)&gUnk_080DD750);
|
||||
DeleteThisEntity();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "functions.h"
|
||||
|
||||
void FloatingBlock(Entity* this) {
|
||||
if (this->action == 0) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "game.h"
|
||||
#include "functions.h"
|
||||
|
||||
extern void (*const gUnk_08122254[])(Entity*);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "entity.h"
|
||||
#include "room.h"
|
||||
#include "flags.h"
|
||||
#include "createObject.h"
|
||||
#include "functions.h"
|
||||
|
||||
extern Hitbox gUnk_080FD170;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "flags.h"
|
||||
#include "functions.h"
|
||||
#include "createObject.h"
|
||||
|
||||
extern u32 ReadBit(u32*, u32);
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "random.h"
|
||||
#include "functions.h"
|
||||
|
||||
void WindTribeFlag(Entity* this) {
|
||||
if (this->action == 0) {
|
||||
|
||||
+2
-1
@@ -2,10 +2,11 @@
|
||||
#include "entity.h"
|
||||
#include "player.h"
|
||||
#include "textbox.h"
|
||||
#include "functions.h"
|
||||
#include "readKeyInput.h"
|
||||
#include "area.h"
|
||||
#include "save.h"
|
||||
#include "game.h"
|
||||
#include "functions.h"
|
||||
|
||||
extern const void (*const gUnk_0811B9E0[])(Entity*);
|
||||
extern const void (*const gUnk_0811BA60[])(Entity*);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "position.h"
|
||||
#include "functions.h"
|
||||
|
||||
extern u8 gUnk_08114F78[];
|
||||
extern u8 gUnk_08114F80[];
|
||||
|
||||
+1
-1
@@ -4497,7 +4497,7 @@ void sub_0804E3C4() {
|
||||
}
|
||||
r = Random();
|
||||
index = gUnk_080F0D58[index][r & 0x1f];
|
||||
LoadRoomEntityList(gUnk_080F0CB8[index & 0xF]);
|
||||
LoadRoomEntityList((EntityData*)gUnk_080F0CB8[index & 0xF]);
|
||||
index >>= 4;
|
||||
r >>= 8;
|
||||
index = gUnk_080F0E08[index][r & 0x1F];
|
||||
|
||||
+1
-1
@@ -703,7 +703,7 @@ void ScriptCommand_CallWithArg(Entity* entity, ScriptExecutionContext* context)
|
||||
}
|
||||
|
||||
void ScriptCommand_LoadRoomEntityList(Entity* entity, ScriptExecutionContext* context) {
|
||||
LoadRoomEntityList(GetNextScriptCommandWordAfterCommandMetadata(context->scriptInstructionPointer));
|
||||
LoadRoomEntityList((EntityData*)GetNextScriptCommandWordAfterCommandMetadata(context->scriptInstructionPointer));
|
||||
}
|
||||
|
||||
void ScriptCommand_TestBit(Entity* entity, ScriptExecutionContext* context) {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "global.h"
|
||||
#include "functions.h"
|
||||
|
||||
extern const u8 gUnk_020176E0[];
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
|
||||
extern void sub_0807C960();
|
||||
extern u16 gMetatilesBottom[];
|
||||
|
||||
Reference in New Issue
Block a user