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