mirror of https://github.com/zeldaret/tmc.git
offset comments
This commit is contained in:
parent
94d3564e5f
commit
ddc897fa31
206
src/enemy.c
206
src/enemy.c
|
@ -4,108 +4,108 @@
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
void (*const gEnemyFunctions[])(Entity* ent) = {
|
void (*const gEnemyFunctions[])(Entity* ent) = {
|
||||||
Octorok,
|
/*0x00*/ Octorok,
|
||||||
Chuchu,
|
/*0x01*/ Chuchu,
|
||||||
Leever,
|
/*0x02*/ Leever,
|
||||||
Peahat,
|
/*0x03*/ Peahat,
|
||||||
Rollobite,
|
/*0x04*/ Rollobite,
|
||||||
DarkNut,
|
/*0x05*/ DarkNut,
|
||||||
HangingSeed,
|
/*0x06*/ HangingSeed,
|
||||||
Beetle,
|
/*0x07*/ Beetle,
|
||||||
Keese,
|
/*0x08*/ Keese,
|
||||||
DoorMimic,
|
/*0x09*/ DoorMimic,
|
||||||
RockChuchu,
|
/*0x0a*/ RockChuchu,
|
||||||
SpinyChuchu,
|
/*0x0b*/ SpinyChuchu,
|
||||||
CuccoChickAggr,
|
/*0x0c*/ CuccoChickAggr,
|
||||||
Moldorm,
|
/*0x0d*/ Moldorm,
|
||||||
EnemyE,
|
/*0x0e*/ EnemyE,
|
||||||
Moldworm,
|
/*0x0f*/ Moldworm,
|
||||||
Sluggula,
|
/*0x10*/ Sluggula,
|
||||||
Pesto,
|
/*0x11*/ Pesto,
|
||||||
Puffstool,
|
/*0x12*/ Puffstool,
|
||||||
ChuchuBoss,
|
/*0x13*/ ChuchuBoss,
|
||||||
LikeLike,
|
/*0x14*/ LikeLike,
|
||||||
SpearMoblin,
|
/*0x15*/ SpearMoblin,
|
||||||
BusinessScrub,
|
/*0x16*/ BusinessScrub,
|
||||||
RupeeLike,
|
/*0x17*/ RupeeLike,
|
||||||
Madderpillar,
|
/*0x18*/ Madderpillar,
|
||||||
WaterDrop,
|
/*0x19*/ WaterDrop,
|
||||||
WallMaster,
|
/*0x1a*/ WallMaster,
|
||||||
BombPeahat,
|
/*0x1b*/ BombPeahat,
|
||||||
Spark,
|
/*0x1c*/ Spark,
|
||||||
Chaser,
|
/*0x1d*/ Chaser,
|
||||||
SpikedBeetle,
|
/*0x1e*/ SpikedBeetle,
|
||||||
SensorBladeTrap,
|
/*0x1f*/ SensorBladeTrap,
|
||||||
Helmasaur,
|
/*0x20*/ Helmasaur,
|
||||||
FallingBoulder,
|
/*0x21*/ FallingBoulder,
|
||||||
Bobomb,
|
/*0x22*/ Bobomb,
|
||||||
WallMaster2,
|
/*0x23*/ WallMaster2,
|
||||||
Gleerok,
|
/*0x24*/ Gleerok,
|
||||||
VaatiEyesMacro,
|
/*0x25*/ VaatiEyesMacro,
|
||||||
Tektite,
|
/*0x26*/ Tektite,
|
||||||
WizzrobeWind,
|
/*0x27*/ WizzrobeWind,
|
||||||
WizzrobeFire,
|
/*0x28*/ WizzrobeFire,
|
||||||
WizzrobeIce,
|
/*0x29*/ WizzrobeIce,
|
||||||
Armos,
|
/*0x2a*/ Armos,
|
||||||
Eyegore,
|
/*0x2b*/ Eyegore,
|
||||||
Rope,
|
/*0x2c*/ Rope,
|
||||||
SmallPesto,
|
/*0x2d*/ SmallPesto,
|
||||||
AcroBandit,
|
/*0x2e*/ AcroBandit,
|
||||||
BladeTrap,
|
/*0x2f*/ BladeTrap,
|
||||||
Keaton,
|
/*0x30*/ Keaton,
|
||||||
Crow,
|
/*0x31*/ Crow,
|
||||||
Mulldozer,
|
/*0x32*/ Mulldozer,
|
||||||
Bombarossa,
|
/*0x33*/ Bombarossa,
|
||||||
Wisp,
|
/*0x34*/ Wisp,
|
||||||
SpinyBeetle,
|
/*0x35*/ SpinyBeetle,
|
||||||
MazaalHead,
|
/*0x36*/ MazaalHead,
|
||||||
MazaalMacro,
|
/*0x37*/ MazaalMacro,
|
||||||
MazaalHand,
|
/*0x38*/ MazaalHand,
|
||||||
OctorokBoss,
|
/*0x39*/ OctorokBoss,
|
||||||
FlyingPot,
|
/*0x3a*/ FlyingPot,
|
||||||
Gibdo,
|
/*0x3b*/ Gibdo,
|
||||||
OctorokGolden,
|
/*0x3c*/ OctorokGolden,
|
||||||
TektiteGolden,
|
/*0x3d*/ TektiteGolden,
|
||||||
RopeGolden,
|
/*0x3e*/ RopeGolden,
|
||||||
CloudPiranha,
|
/*0x3f*/ CloudPiranha,
|
||||||
ScissorsBeetle,
|
/*0x40*/ ScissorsBeetle,
|
||||||
CuccoAggr,
|
/*0x41*/ CuccoAggr,
|
||||||
Stalfos,
|
/*0x42*/ Stalfos,
|
||||||
FlyingSkull,
|
/*0x43*/ FlyingSkull,
|
||||||
MazaalBracelet,
|
/*0x44*/ MazaalBracelet,
|
||||||
Takkuri,
|
/*0x45*/ Takkuri,
|
||||||
BowMoblin,
|
/*0x46*/ BowMoblin,
|
||||||
Lakitu,
|
/*0x47*/ Lakitu,
|
||||||
LakituCloud,
|
/*0x48*/ LakituCloud,
|
||||||
Enemy49,
|
/*0x49*/ Enemy49,
|
||||||
VaatiRebornEnemy,
|
/*0x4a*/ VaatiRebornEnemy,
|
||||||
VaatiProjectile,
|
/*0x4b*/ VaatiProjectile,
|
||||||
BallChainSoldier,
|
/*0x4c*/ BallChainSoldier,
|
||||||
Enemy4D,
|
/*0x4d*/ Enemy4D,
|
||||||
Ghini,
|
/*0x4e*/ Ghini,
|
||||||
VaatiTransfigured,
|
/*0x4f*/ VaatiTransfigured,
|
||||||
Enemy50,
|
/*0x50*/ Enemy50,
|
||||||
VaatiWrath,
|
/*0x51*/ VaatiWrath,
|
||||||
VaatiArm,
|
/*0x52*/ VaatiArm,
|
||||||
Dust,
|
/*0x53*/ Dust,
|
||||||
VaatiBall,
|
/*0x54*/ VaatiBall,
|
||||||
Octorok,
|
/*0x55*/ Octorok,
|
||||||
Slime,
|
/*0x56*/ Slime,
|
||||||
MiniSlime,
|
/*0x57*/ MiniSlime,
|
||||||
FireballGuy,
|
/*0x58*/ FireballGuy,
|
||||||
MiniFireballGuy,
|
/*0x59*/ MiniFireballGuy,
|
||||||
Enemy5A,
|
/*0x5a*/ Enemy5A,
|
||||||
BusinessScrubPrologue,
|
/*0x5b*/ BusinessScrubPrologue,
|
||||||
GyorgFemale,
|
/*0x5c*/ GyorgFemale,
|
||||||
GyorgMale,
|
/*0x5d*/ GyorgMale,
|
||||||
Curtain,
|
/*0x5e*/ Curtain,
|
||||||
Enemy5F,
|
/*0x5f*/ Enemy5F,
|
||||||
GyorgChild,
|
/*0x60*/ GyorgChild,
|
||||||
GyorgFemaleEye,
|
/*0x61*/ GyorgFemaleEye,
|
||||||
Enemy62,
|
/*0x62*/ Enemy62,
|
||||||
GyorgFemaleMouth,
|
/*0x63*/ GyorgFemaleMouth,
|
||||||
Enemy64,
|
/*0x64*/ Enemy64,
|
||||||
TreeItem,
|
/*0x65*/ TreeItem,
|
||||||
Enemy66
|
/*0x66*/ Enemy66
|
||||||
};
|
};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
256
src/npc.c
256
src/npc.c
|
@ -5,134 +5,134 @@
|
||||||
|
|
||||||
//clang-format off
|
//clang-format off
|
||||||
void (*const gNPCFunctions[][3])(Entity* ent) = {
|
void (*const gNPCFunctions[][3])(Entity* ent) = {
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x00*/ { DeleteEntity, NULL, NULL },
|
||||||
{ Gentari, NULL, Gentari_Fusion },
|
/*0x01*/ { Gentari, NULL, Gentari_Fusion },
|
||||||
{ Festari, NULL, Festari_Fusion },
|
/*0x02*/ { Festari, NULL, Festari_Fusion },
|
||||||
{ ForestMinish, ForestMinish_Head, ForestMinish_Fusion },
|
/*0x03*/ { ForestMinish, ForestMinish_Head, ForestMinish_Fusion },
|
||||||
{ Postman, NULL, Postman_Fusion },
|
/*0x04*/ { Postman, NULL, Postman_Fusion },
|
||||||
{ NPC5, NULL, NULL },
|
/*0x05*/ { NPC5, NULL, NULL },
|
||||||
{ Townsperson, Townsperson_Head, Townsperson_Fusion },
|
/*0x06*/ { Townsperson, Townsperson_Head, Townsperson_Fusion },
|
||||||
{ Kid, Kid_Head, Kid_Fusion },
|
/*0x07*/ { Kid, Kid_Head, Kid_Fusion },
|
||||||
{ Guard, Guard_Head, NULL },
|
/*0x08*/ { Guard, Guard_Head, NULL },
|
||||||
{ NPC9, NULL, NULL },
|
/*0x09*/ { NPC9, NULL, NULL },
|
||||||
{ Stamp, NULL, NULL },
|
/*0x0a*/ { Stamp, NULL, NULL },
|
||||||
{ Maid, Maid_Head, NULL },
|
/*0x0b*/ { Maid, Maid_Head, NULL },
|
||||||
{ Marcy, NULL, NULL },
|
/*0x0c*/ { Marcy, NULL, NULL },
|
||||||
{ Wheaton, NULL, NULL },
|
/*0x0d*/ { Wheaton, NULL, NULL },
|
||||||
{ Pita, NULL, NULL },
|
/*0x0e*/ { Pita, NULL, NULL },
|
||||||
{ MinishEzlo, MinishEzlo_Head, NULL },
|
/*0x0f*/ { MinishEzlo, MinishEzlo_Head, NULL },
|
||||||
{ Mailbox, NULL, NULL },
|
/*0x10*/ { Mailbox, NULL, NULL },
|
||||||
{ Beedle, Beedle_Head, NULL },
|
/*0x11*/ { Beedle, Beedle_Head, NULL },
|
||||||
{ Brocco, NULL, Brocco_Fusion },
|
/*0x12*/ { Brocco, NULL, Brocco_Fusion },
|
||||||
{ SittingPerson, SittingPerson_Head, SittingPerson_Fusion },
|
/*0x13*/ { SittingPerson, SittingPerson_Head, SittingPerson_Fusion },
|
||||||
{ Pina, NULL, Pina_Fusion },
|
/*0x14*/ { Pina, NULL, Pina_Fusion },
|
||||||
{ Guard, Guard_Head, NULL },
|
/*0x15*/ { Guard, Guard_Head, NULL },
|
||||||
{ Maid, Maid_Head, NULL },
|
/*0x16*/ { Maid, Maid_Head, NULL },
|
||||||
{ Din, NULL, Din_Fusion },
|
/*0x17*/ { Din, NULL, Din_Fusion },
|
||||||
{ Nayru, NULL, Nayru_Fusion },
|
/*0x18*/ { Nayru, NULL, Nayru_Fusion },
|
||||||
{ Farore, NULL, Farore_Fusion },
|
/*0x19*/ { Farore, NULL, Farore_Fusion },
|
||||||
{ Sturgeon, Sturgeon_Head, Sturgeon_Fusion },
|
/*0x1a*/ { Sturgeon, Sturgeon_Head, Sturgeon_Fusion },
|
||||||
{ TingleSiblings, NULL, TingleSiblings_Fusion },
|
/*0x1b*/ { TingleSiblings, NULL, TingleSiblings_Fusion },
|
||||||
{ Stockwell, NULL, NULL },
|
/*0x1c*/ { Stockwell, NULL, NULL },
|
||||||
{ Talon, Talon_Head, Talon_Fusion },
|
/*0x1d*/ { Talon, Talon_Head, Talon_Fusion },
|
||||||
{ Malon, NULL, Malon_Fusion },
|
/*0x1e*/ { Malon, NULL, Malon_Fusion },
|
||||||
{ Epona, NULL, Epona_Fusion },
|
/*0x1f*/ { Epona, NULL, Epona_Fusion },
|
||||||
{ MilkCart, NULL, NULL },
|
/*0x20*/ { MilkCart, NULL, NULL },
|
||||||
{ GhostBrothers, NULL, GhostBrothers_Fusion },
|
/*0x21*/ { GhostBrothers, NULL, GhostBrothers_Fusion },
|
||||||
{ Smith, Smith_Head, Smith_Fusion },
|
/*0x22*/ { Smith, Smith_Head, Smith_Fusion },
|
||||||
{ NPC23, NULL, NULL },
|
/*0x23*/ { NPC23, NULL, NULL },
|
||||||
{ KingDaltus, NULL, KingDaltus_Fusion },
|
/*0x24*/ { KingDaltus, NULL, KingDaltus_Fusion },
|
||||||
{ MinisterPotho, NULL, MinisterPotho_Fusion },
|
/*0x25*/ { MinisterPotho, NULL, MinisterPotho_Fusion },
|
||||||
{ NPC26, NULL, NULL },
|
/*0x26*/ { NPC26, NULL, NULL },
|
||||||
{ Vaati, NULL, NULL },
|
/*0x27*/ { Vaati, NULL, NULL },
|
||||||
{ Zelda, NULL, NULL },
|
/*0x28*/ { Zelda, NULL, NULL },
|
||||||
{ Mutoh, Mutoh_Head, Mutoh_Fusion },
|
/*0x29*/ { Mutoh, Mutoh_Head, Mutoh_Fusion },
|
||||||
{ Carpenter, Carpenter_Head, Carpenter_Fusion },
|
/*0x2a*/ { Carpenter, Carpenter_Head, Carpenter_Fusion },
|
||||||
{ CastorWildsStatue, NULL, CastorWildsStatue_Fusion },
|
/*0x2b*/ { CastorWildsStatue, NULL, CastorWildsStatue_Fusion },
|
||||||
{ Cat, NULL, Cat_Fusion },
|
/*0x2c*/ { Cat, NULL, Cat_Fusion },
|
||||||
{ MountainMinish, MountainMinish_Head, MountainMinish_Fusion },
|
/*0x2d*/ { MountainMinish, MountainMinish_Head, MountainMinish_Fusion },
|
||||||
{ ZeldaFollower, NULL, NULL },
|
/*0x2e*/ { ZeldaFollower, NULL, NULL },
|
||||||
{ Melari, Melari_Head, Melari_Fusion },
|
/*0x2f*/ { Melari, Melari_Head, Melari_Fusion },
|
||||||
{ BladeBrothers, NULL, BladeBrothers_Fusion },
|
/*0x30*/ { BladeBrothers, NULL, BladeBrothers_Fusion },
|
||||||
{ Cow, NULL, Cow_Fusion },
|
/*0x31*/ { Cow, NULL, Cow_Fusion },
|
||||||
{ Goron, NULL, Goron_Fusion },
|
/*0x32*/ { Goron, NULL, Goron_Fusion },
|
||||||
{ GoronMerchant, NULL, NULL },
|
/*0x33*/ { GoronMerchant, NULL, NULL },
|
||||||
{ Gorman, Gorman_Head, NULL },
|
/*0x34*/ { Gorman, Gorman_Head, NULL },
|
||||||
{ Dog, Dog_Head, Dog_Fusion },
|
/*0x35*/ { Dog, Dog_Head, Dog_Fusion },
|
||||||
{ Syrup, Syrup_Head, NULL },
|
/*0x36*/ { Syrup, Syrup_Head, NULL },
|
||||||
{ Rem, NULL, NULL },
|
/*0x37*/ { Rem, NULL, NULL },
|
||||||
{ TownMinish, TownMinish_Head, TownMinish_Fusion },
|
/*0x38*/ { TownMinish, TownMinish_Head, TownMinish_Fusion },
|
||||||
{ Librari, NULL, Librari_Fusion },
|
/*0x39*/ { Librari, NULL, Librari_Fusion },
|
||||||
{ Percy, Percy_Head, Percy_Fusion },
|
/*0x3a*/ { Percy, Percy_Head, Percy_Fusion },
|
||||||
{ VaatiReborn, NULL, NULL },
|
/*0x3b*/ { VaatiReborn, NULL, NULL },
|
||||||
{ MoblinLady, NULL, NULL },
|
/*0x3c*/ { MoblinLady, NULL, NULL },
|
||||||
{ Librarians, NULL, NULL },
|
/*0x3d*/ { Librarians, NULL, NULL },
|
||||||
{ Farmers, Farmers_Head, Farmers_Fusion },
|
/*0x3e*/ { Farmers, Farmers_Head, Farmers_Fusion },
|
||||||
{ Carlov, NULL, NULL },
|
/*0x3f*/ { Carlov, NULL, NULL },
|
||||||
{ Dampe, NULL, Dampe_Fusion },
|
/*0x40*/ { Dampe, NULL, Dampe_Fusion },
|
||||||
{ DrLeft, NULL, NULL },
|
/*0x41*/ { DrLeft, NULL, NULL },
|
||||||
{ KingGustaf, NULL, NULL },
|
/*0x42*/ { KingGustaf, NULL, NULL },
|
||||||
{ Gina, NULL, Gina_Fusion },
|
/*0x43*/ { Gina, NULL, Gina_Fusion },
|
||||||
{ Simon, NULL, NULL },
|
/*0x44*/ { Simon, NULL, NULL },
|
||||||
{ Anju, NULL, Anju_Fusion },
|
/*0x45*/ { Anju, NULL, Anju_Fusion },
|
||||||
{ Mama, Mama_Head, Mama_Fusion },
|
/*0x46*/ { Mama, Mama_Head, Mama_Fusion },
|
||||||
{ Emma, NULL, NULL },
|
/*0x47*/ { Emma, NULL, NULL },
|
||||||
{ Teachers, Teachers_Head, Teachers_Fusion },
|
/*0x48*/ { Teachers, Teachers_Head, Teachers_Fusion },
|
||||||
{ WindTribespeople, WindTribespeople_Head, WindTribespeople_Fusion },
|
/*0x49*/ { WindTribespeople, WindTribespeople_Head, WindTribespeople_Fusion },
|
||||||
{ Gregal, NULL, Gregal_Fusion },
|
/*0x4a*/ { Gregal, NULL, Gregal_Fusion },
|
||||||
{ MayorHagen, NULL, MayorHagen_Fusion },
|
/*0x4b*/ { MayorHagen, NULL, MayorHagen_Fusion },
|
||||||
{ BigGoron, NULL, NULL },
|
/*0x4c*/ { BigGoron, NULL, NULL },
|
||||||
{ EzloCap, NULL, NULL },
|
/*0x4d*/ { EzloCap, NULL, NULL },
|
||||||
{ NPC4E, NULL, NPC4E_Fusion },
|
/*0x4e*/ { NPC4E, NULL, NPC4E_Fusion },
|
||||||
{ NPC4F, NULL, NULL },
|
/*0x4f*/ { NPC4F, NULL, NULL },
|
||||||
{ ClothesRack, NULL, NULL },
|
/*0x50*/ { ClothesRack, NULL, NULL },
|
||||||
{ PicolyteBottle, NULL, NULL },
|
/*0x51*/ { PicolyteBottle, NULL, NULL },
|
||||||
{ SmallTownMinish, NULL, NULL },
|
/*0x52*/ { SmallTownMinish, NULL, NULL },
|
||||||
{ HurdyGurdyMan, HurdyGurdyMan_Head, HurdyGurdyMan_Fusion },
|
/*0x53*/ { HurdyGurdyMan, HurdyGurdyMan_Head, HurdyGurdyMan_Fusion },
|
||||||
{ Cucco, NULL, Cucco_Fusion },
|
/*0x54*/ { Cucco, NULL, Cucco_Fusion },
|
||||||
{ CuccoChick, NULL, CuccoChick_Fusion },
|
/*0x55*/ { CuccoChick, NULL, CuccoChick_Fusion },
|
||||||
{ FusionMenuNPC, FusionMenuNPC_Head, NULL },
|
/*0x56*/ { FusionMenuNPC, FusionMenuNPC_Head, NULL },
|
||||||
{ Phonograph, NULL, NULL },
|
/*0x57*/ { Phonograph, NULL, NULL },
|
||||||
{ NPC58, NPC58_Head, NULL },
|
/*0x58*/ { NPC58, NPC58_Head, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x59*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x5a*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x5b*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x5c*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x5d*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x5e*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x5f*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x60*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x61*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x62*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x63*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x64*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x65*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x66*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x67*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x68*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x69*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x6a*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x6b*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x6c*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x6d*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x6e*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x6f*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x70*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x71*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x72*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x73*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x74*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x75*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x76*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x77*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x78*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x79*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x7a*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x7b*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x7c*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x7d*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL },
|
/*0x7e*/ { DeleteEntity, NULL, NULL },
|
||||||
{ DeleteEntity, NULL, NULL }
|
/*0x7f*/ { DeleteEntity, NULL, NULL }
|
||||||
};
|
};
|
||||||
//clang-format on
|
//clang-format on
|
||||||
const u8 npc_unk[] = { 0x04, 0x05, 0x06, 0x06 };
|
const u8 npc_unk[] = { 0x04, 0x05, 0x06, 0x06 };
|
||||||
|
|
388
src/object.c
388
src/object.c
|
@ -3,199 +3,199 @@
|
||||||
#include "object.h"
|
#include "object.h"
|
||||||
//clang-format off
|
//clang-format off
|
||||||
void (*const gObjectFunctions[])(Entity*) = {
|
void (*const gObjectFunctions[])(Entity*) = {
|
||||||
ItemOnGround,
|
/*0x00*/ ItemOnGround,
|
||||||
DeathFx,
|
/*0x01*/ DeathFx,
|
||||||
ItemForSale,
|
/*0x02*/ ItemForSale,
|
||||||
Button,
|
/*0x03*/ Button,
|
||||||
Object4,
|
/*0x04*/ Object4,
|
||||||
Pot,
|
/*0x05*/ Pot,
|
||||||
Object6,
|
/*0x06*/ Object6,
|
||||||
BlockPushed,
|
/*0x07*/ BlockPushed,
|
||||||
LockedDoor,
|
/*0x08*/ LockedDoor,
|
||||||
Object9,
|
/*0x09*/ Object9,
|
||||||
ObjectA,
|
/*0x0a*/ ObjectA,
|
||||||
ObjectB,
|
/*0x0b*/ ObjectB,
|
||||||
ChestSpawner,
|
/*0x0c*/ ChestSpawner,
|
||||||
ObjectD,
|
/*0x0d*/ ObjectD,
|
||||||
ObjectE,
|
/*0x0e*/ ObjectE,
|
||||||
SpecialFx,
|
/*0x0f*/ SpecialFx,
|
||||||
Object10,
|
/*0x10*/ Object10,
|
||||||
Object11,
|
/*0x11*/ Object11,
|
||||||
Object12,
|
/*0x12*/ Object12,
|
||||||
Railtrack,
|
/*0x13*/ Railtrack,
|
||||||
LilypadLarge,
|
/*0x14*/ LilypadLarge,
|
||||||
Object15,
|
/*0x15*/ Object15,
|
||||||
FloatingPlatform,
|
/*0x16*/ FloatingPlatform,
|
||||||
Object17,
|
/*0x17*/ Object17,
|
||||||
EvilSpirit,
|
/*0x18*/ EvilSpirit,
|
||||||
HouseDoorExterior,
|
/*0x19*/ HouseDoorExterior,
|
||||||
Object1A,
|
/*0x1a*/ Object1A,
|
||||||
GreatFairy,
|
/*0x1b*/ GreatFairy,
|
||||||
Object1C,
|
/*0x1c*/ Object1C,
|
||||||
Object1D,
|
/*0x1d*/ Object1D,
|
||||||
Object1E,
|
/*0x1e*/ Object1E,
|
||||||
Object1F,
|
/*0x1f*/ Object1F,
|
||||||
Object20,
|
/*0x20*/ Object20,
|
||||||
Object21,
|
/*0x21*/ Object21,
|
||||||
FigurineDevice,
|
/*0x22*/ FigurineDevice,
|
||||||
EyeSwitch,
|
/*0x23*/ EyeSwitch,
|
||||||
Object24,
|
/*0x24*/ Object24,
|
||||||
BigBarrel,
|
/*0x25*/ BigBarrel,
|
||||||
Object26,
|
/*0x26*/ Object26,
|
||||||
PushableStatue,
|
/*0x27*/ PushableStatue,
|
||||||
Object28,
|
/*0x28*/ Object28,
|
||||||
Object29,
|
/*0x29*/ Object29,
|
||||||
Object2A,
|
/*0x2a*/ Object2A,
|
||||||
Object2B,
|
/*0x2b*/ Object2B,
|
||||||
Beanstalk,
|
/*0x2c*/ Beanstalk,
|
||||||
Smoke,
|
/*0x2d*/ Smoke,
|
||||||
PushableRock,
|
/*0x2e*/ PushableRock,
|
||||||
HittableLever,
|
/*0x2f*/ HittableLever,
|
||||||
Object30,
|
/*0x30*/ Object30,
|
||||||
Object31,
|
/*0x31*/ Object31,
|
||||||
PullableMushroom,
|
/*0x32*/ PullableMushroom,
|
||||||
Bollard,
|
/*0x33*/ Bollard,
|
||||||
WarpPoint,
|
/*0x34*/ WarpPoint,
|
||||||
Object35,
|
/*0x35*/ Object35,
|
||||||
Object36,
|
/*0x36*/ Object36,
|
||||||
Object37,
|
/*0x37*/ Object37,
|
||||||
JarPortal,
|
/*0x38*/ JarPortal,
|
||||||
BossDoor,
|
/*0x39*/ BossDoor,
|
||||||
Object3A,
|
/*0x3a*/ Object3A,
|
||||||
MacroMushromStalks,
|
/*0x3b*/ MacroMushromStalks,
|
||||||
MacroLink,
|
/*0x3c*/ MacroLink,
|
||||||
Object3D,
|
/*0x3d*/ Object3D,
|
||||||
Object3E,
|
/*0x3e*/ Object3E,
|
||||||
GiantLeaf,
|
/*0x3f*/ GiantLeaf,
|
||||||
Fairy,
|
/*0x40*/ Fairy,
|
||||||
LadderUp,
|
/*0x41*/ LadderUp,
|
||||||
Object42,
|
/*0x42*/ Object42,
|
||||||
Object43,
|
/*0x43*/ Object43,
|
||||||
Object44,
|
/*0x44*/ Object44,
|
||||||
Object45,
|
/*0x45*/ Object45,
|
||||||
GiantBookLadder,
|
/*0x46*/ GiantBookLadder,
|
||||||
HeartContainer,
|
/*0x47*/ HeartContainer,
|
||||||
Object48,
|
/*0x48*/ Object48,
|
||||||
Object49,
|
/*0x49*/ Object49,
|
||||||
BackgroundCloud,
|
/*0x4a*/ BackgroundCloud,
|
||||||
Object4B,
|
/*0x4b*/ Object4B,
|
||||||
PushableFurniture,
|
/*0x4c*/ PushableFurniture,
|
||||||
Furniture,
|
/*0x4d*/ Furniture,
|
||||||
MinishSizedEntrance,
|
/*0x4e*/ MinishSizedEntrance,
|
||||||
Archway,
|
/*0x4f*/ Archway,
|
||||||
GiantRock,
|
/*0x50*/ GiantRock,
|
||||||
Object51,
|
/*0x51*/ Object51,
|
||||||
Object52,
|
/*0x52*/ Object52,
|
||||||
Object53,
|
/*0x53*/ Object53,
|
||||||
PullableLever,
|
/*0x54*/ PullableLever,
|
||||||
Minecart,
|
/*0x55*/ Minecart,
|
||||||
ThoughtBubble,
|
/*0x56*/ ThoughtBubble,
|
||||||
HiddenLadderDown,
|
/*0x57*/ HiddenLadderDown,
|
||||||
GentariCurtain,
|
/*0x58*/ GentariCurtain,
|
||||||
LavaPlatform,
|
/*0x59*/ LavaPlatform,
|
||||||
Object5A,
|
/*0x5a*/ Object5A,
|
||||||
Object5B,
|
/*0x5b*/ Object5B,
|
||||||
Mask,
|
/*0x5c*/ Mask,
|
||||||
HouseDoorInterior,
|
/*0x5d*/ HouseDoorInterior,
|
||||||
Whirlwind,
|
/*0x5e*/ Whirlwind,
|
||||||
ObjectBlockingStairs,
|
/*0x5f*/ ObjectBlockingStairs,
|
||||||
SwordsmanNewsletter,
|
/*0x60*/ SwordsmanNewsletter,
|
||||||
Object61,
|
/*0x61*/ Object61,
|
||||||
GiantTwig,
|
/*0x62*/ GiantTwig,
|
||||||
Object63,
|
/*0x63*/ Object63,
|
||||||
Object64,
|
/*0x64*/ Object64,
|
||||||
LadderHoleInBookshelf,
|
/*0x65*/ LadderHoleInBookshelf,
|
||||||
Object66,
|
/*0x66*/ Object66,
|
||||||
Object67,
|
/*0x67*/ Object67,
|
||||||
Object68,
|
/*0x68*/ Object68,
|
||||||
Object69,
|
/*0x69*/ Object69,
|
||||||
Object6A,
|
/*0x6a*/ Object6A,
|
||||||
CrenalBeanSprout,
|
/*0x6b*/ CrenalBeanSprout,
|
||||||
MinecartDoor,
|
/*0x6c*/ MinecartDoor,
|
||||||
ObjectOnPillar,
|
/*0x6d*/ ObjectOnPillar,
|
||||||
MineralWaterSource,
|
/*0x6e*/ MineralWaterSource,
|
||||||
MinishSizedArchway,
|
/*0x6f*/ MinishSizedArchway,
|
||||||
Object70,
|
/*0x70*/ Object70,
|
||||||
PushableGrave,
|
/*0x71*/ PushableGrave,
|
||||||
Object72,
|
/*0x72*/ Object72,
|
||||||
LilypadSmall,
|
/*0x73*/ LilypadSmall,
|
||||||
Object74,
|
/*0x74*/ Object74,
|
||||||
Object75,
|
/*0x75*/ Object75,
|
||||||
Object76,
|
/*0x76*/ Object76,
|
||||||
Bell,
|
/*0x77*/ Bell,
|
||||||
MacroDecoration,
|
/*0x78*/ MacroDecoration,
|
||||||
Object79,
|
/*0x79*/ Object79,
|
||||||
Steam,
|
/*0x7a*/ Steam,
|
||||||
PushableLever,
|
/*0x7b*/ PushableLever,
|
||||||
MacroShoes,
|
/*0x7c*/ MacroShoes,
|
||||||
ObjectOnSpinyBeetle,
|
/*0x7d*/ ObjectOnSpinyBeetle,
|
||||||
Object7E,
|
/*0x7e*/ Object7E,
|
||||||
PicoBloom,
|
/*0x7f*/ PicoBloom,
|
||||||
Object80,
|
/*0x80*/ Object80,
|
||||||
Object81,
|
/*0x81*/ Object81,
|
||||||
BigVortex,
|
/*0x82*/ BigVortex,
|
||||||
BigPushableLever,
|
/*0x83*/ BigPushableLever,
|
||||||
SmallIceBlock,
|
/*0x84*/ SmallIceBlock,
|
||||||
BigIceBlock,
|
/*0x85*/ BigIceBlock,
|
||||||
Object86,
|
/*0x86*/ Object86,
|
||||||
Object87,
|
/*0x87*/ Object87,
|
||||||
MacroBook,
|
/*0x88*/ MacroBook,
|
||||||
Object89,
|
/*0x89*/ Object89,
|
||||||
Object8A,
|
/*0x8a*/ Object8A,
|
||||||
Object8B,
|
/*0x8b*/ Object8B,
|
||||||
Book,
|
/*0x8c*/ Book,
|
||||||
Fireplace,
|
/*0x8d*/ Fireplace,
|
||||||
Object8E,
|
/*0x8e*/ Object8E,
|
||||||
FrozenWaterElement,
|
/*0x8f*/ FrozenWaterElement,
|
||||||
Object90,
|
/*0x90*/ Object90,
|
||||||
Object91,
|
/*0x91*/ Object91,
|
||||||
BakerOven,
|
/*0x92*/ BakerOven,
|
||||||
Object93,
|
/*0x93*/ Object93,
|
||||||
WindTribeFlag,
|
/*0x94*/ WindTribeFlag,
|
||||||
Bird,
|
/*0x95*/ Bird,
|
||||||
Object96,
|
/*0x96*/ Object96,
|
||||||
Object97,
|
/*0x97*/ Object97,
|
||||||
Object98,
|
/*0x98*/ Object98,
|
||||||
Object99,
|
/*0x99*/ Object99,
|
||||||
MacroAcorn,
|
/*0x9a*/ MacroAcorn,
|
||||||
Object9B,
|
/*0x9b*/ Object9B,
|
||||||
TreeHidingPortal,
|
/*0x9c*/ TreeHidingPortal,
|
||||||
LightableSwitch,
|
/*0x9d*/ LightableSwitch,
|
||||||
Object9E,
|
/*0x9e*/ Object9E,
|
||||||
Fan,
|
/*0x9f*/ Fan,
|
||||||
ObjectA0,
|
/*0xa0*/ ObjectA0,
|
||||||
PalaceArchway,
|
/*0xa1*/ PalaceArchway,
|
||||||
ObjectA2,
|
/*0xa2*/ ObjectA2,
|
||||||
Cloud,
|
/*0xa3*/ Cloud,
|
||||||
MinishLight,
|
/*0xa4*/ MinishLight,
|
||||||
ObjectA5,
|
/*0xa5*/ ObjectA5,
|
||||||
ObjectA6,
|
/*0xa6*/ ObjectA6,
|
||||||
ObjectA7,
|
/*0xa7*/ ObjectA7,
|
||||||
ObjectA8,
|
/*0xa8*/ ObjectA8,
|
||||||
ObjectA9,
|
/*0xa9*/ ObjectA9,
|
||||||
WaterfallOpening,
|
/*0xaa*/ WaterfallOpening,
|
||||||
ObjectAB,
|
/*0xab*/ ObjectAB,
|
||||||
FourElements,
|
/*0xac*/ FourElements,
|
||||||
ObjectAD,
|
/*0xad*/ ObjectAD,
|
||||||
FloatingBlock,
|
/*0xae*/ FloatingBlock,
|
||||||
ObjectAF,
|
/*0xaf*/ ObjectAF,
|
||||||
MetalDoor,
|
/*0xb0*/ MetalDoor,
|
||||||
JailBars,
|
/*0xb1*/ JailBars,
|
||||||
ObjectB2,
|
/*0xb2*/ ObjectB2,
|
||||||
ObjectB3,
|
/*0xb3*/ ObjectB3,
|
||||||
ObjectB4,
|
/*0xb4*/ ObjectB4,
|
||||||
ObjectB5,
|
/*0xb5*/ ObjectB5,
|
||||||
ObjectB6,
|
/*0xb6*/ ObjectB6,
|
||||||
Well,
|
/*0xb7*/ Well,
|
||||||
WindTribeTeleporter,
|
/*0xb8*/ WindTribeTeleporter,
|
||||||
ObjectB9,
|
/*0xb9*/ ObjectB9,
|
||||||
ObjectBA,
|
/*0xba*/ ObjectBA,
|
||||||
Windcrest,
|
/*0xbb*/ Windcrest,
|
||||||
LitArea,
|
/*0xbc*/ LitArea,
|
||||||
ObjectBD,
|
/*0xbd*/ ObjectBD,
|
||||||
Pinwheel,
|
/*0xbe*/ Pinwheel,
|
||||||
ObjectBF,
|
/*0xbf*/ ObjectBF,
|
||||||
EnemyItem,
|
/*0xc0*/ EnemyItem,
|
||||||
ObjectC1,
|
/*0xc1*/ ObjectC1,
|
||||||
};
|
};
|
||||||
//clang-format on
|
//clang-format on
|
||||||
|
|
Loading…
Reference in New Issue