d_item 10%

This commit is contained in:
LagoLunatic
2023-10-16 01:43:26 -04:00
parent 9ba5237ac0
commit 2a89bd39d4
6 changed files with 931 additions and 335 deletions
+39 -1
View File
@@ -363,11 +363,19 @@ public:
s16 getItemMagicCount() { return mItemMagicCount; }
void setItemMagicCount(s16 magic) { mItemMagicCount += magic; }
void setItemBombNumCount(s16 num) { mItemBombNumCount += num; }
f32 getItemLifeCount() { return mItemLifeCount; }
void setItemLifeCount(f32 num) { mItemLifeCount += num; }
s16 getItemMaxLifeCount() { return mItemMaxLifeCount; }
void setItemMaxLifeCount(s16 num) { mItemMaxLifeCount += num; }
s16 getItemArrowNumCount() { return mItemArrowNumCount; }
void setItemArrowNumCount(s16 num) { mItemArrowNumCount += num; }
void setItemKeyNumCount(s16 num) { mItemKeyNumCount += num; }
u8 checkMesgCancelButton() { return field_0x4949; }
void setPlayerStatus(int param_0, int i, u32 flag) { mPlayerStatus[param_0][i] |= flag; }
@@ -674,6 +682,10 @@ inline u8 dComIfGs_getItem(int param_0) {
return g_dComIfG_gameInfo.save.getPlayer().getItem().getItem(param_0);
}
inline void dComIfGs_setItem(int i_idx, u8 i_itemNo) {
g_dComIfG_gameInfo.save.getPlayer().getItem().setItem(i_idx, i_itemNo);
}
inline u8 dComIfGs_getBeast(int i_idx) {
return g_dComIfG_gameInfo.save.getPlayer().getBagItem().getBeast(i_idx);
}
@@ -887,6 +899,8 @@ inline void dComIfGs_onStageLife() {
g_dComIfG_gameInfo.save.getMemory().getBit().onStageLife();
}
inline void dComIfGs_onStageLife(int i_stageNo);
inline BOOL dComIfGs_isStageLife() {
return g_dComIfG_gameInfo.save.getMemory().getBit().isStageLife();
}
@@ -987,6 +1001,10 @@ inline BOOL dComIfGs_isGetItem(int i_field, u8 i_item) {
return g_dComIfG_gameInfo.save.getPlayer().getGetItem().isItem(i_field, i_item);
}
inline void dComIfGs_onGetItem(int i_field, u8 i_item) {
return g_dComIfG_gameInfo.save.getPlayer().getGetItem().onItem(i_field, i_item);
}
inline BOOL dComIfGs_isGetItemBeast(u8 i_beast) {
return g_dComIfG_gameInfo.save.getPlayer().getGetBagItem().isBeast(i_beast);
}
@@ -1457,10 +1475,26 @@ inline void dComIfGp_setItemRupeeCount(s32 count) {
g_dComIfG_gameInfo.play.setItemRupeeCount(count);
}
inline f32 dComIfGp_getItemLifeCount() {
return g_dComIfG_gameInfo.play.getItemLifeCount();
}
inline void dComIfGp_setItemLifeCount(f32 amount) {
g_dComIfG_gameInfo.play.setItemLifeCount(amount);
}
inline s16 dComIfGp_getItemMaxLifeCount() {
return g_dComIfG_gameInfo.play.getItemMaxLifeCount();
}
inline void dComIfGp_setItemMaxLifeCount(s16 num) {
g_dComIfG_gameInfo.play.setItemMaxLifeCount(num);
}
inline void dComIfGp_setItemKeyNumCount(s16 num) {
g_dComIfG_gameInfo.play.setItemKeyNumCount(num);
}
inline void dComIfGp_setMessageCountNumber(s16 num) {
g_dComIfG_gameInfo.play.setMessageCountNumber(num);
}
@@ -1477,11 +1511,15 @@ inline void dComIfGp_setItemMagicCount(s16 magic) {
g_dComIfG_gameInfo.play.setItemMagicCount(magic);
}
inline void dComIfGp_setItemBombNumCount(s16 num) {
g_dComIfG_gameInfo.play.setItemBombNumCount(num);
}
inline s16 dComIfGp_getItemArrowNumCount() {
return g_dComIfG_gameInfo.play.getItemArrowNumCount();
}
inline void dComIfGp_getItemArrowNumCount(s16 num) {
inline void dComIfGp_setItemArrowNumCount(s16 num) {
return g_dComIfG_gameInfo.play.setItemArrowNumCount(num);
}
+156 -153
View File
@@ -5,6 +5,7 @@
void execItemGet(u8 itemNo);
BOOL checkItemGet(u8 itemNo, BOOL defaultVal);
void item_func_heart();
void item_func_green_rupee();
void item_func_blue_rupee();
@@ -234,160 +235,162 @@ void item_func_collectmap03();
void item_func_collectmap02();
void item_func_collectmap01();
void item_func_noentry();
void item_getcheck_func_heart();
void item_getcheck_func_green_rupee();
void item_getcheck_func_blue_rupee();
void item_getcheck_func_white_rupee();
void item_getcheck_func_red_rupee();
void item_getcheck_func_purple_rupee();
void item_getcheck_func_silver_rupee();
void item_getcheck_func_kakera_heart();
void item_getcheck_func_utuwa_heart();
void item_getcheck_func_s_magic();
void item_getcheck_func_l_magic();
void item_getcheck_func_bomb_5();
void item_getcheck_func_bomb_10();
void item_getcheck_func_bomb_20();
void item_getcheck_func_bomb_30();
void item_getcheck_func_noentry();
void item_getcheck_func_arrow_10();
void item_getcheck_func_arrow_20();
void item_getcheck_func_arrow_30();
void item_getcheck_func_small_key();
void item_getcheck_func_recover_faily();
void item_getcheck_func_triple_heart();
void item_getcheck_func_pendant();
void item_getcheck_func_telescope();
void item_getcheck_func_tncl_whitsl();
void item_getcheck_func_wind_tact();
void item_getcheck_func_camera();
void item_getcheck_func_emono_bag();
void item_getcheck_func_rope();
void item_getcheck_func_camera2();
void item_getcheck_func_bow();
void item_getcheck_func_pwr_groove();
void item_getcheck_func_hvy_boots();
void item_getcheck_func_drgn_shield();
void item_getcheck_func_water_boots();
void item_getcheck_func_esa_bag();
void item_getcheck_func_boomerang();
void item_getcheck_func_bare_hand();
void item_getcheck_func_hookshot();
void item_getcheck_func_warasibe_bag();
void item_getcheck_func_bomb_bag();
void item_getcheck_func_hummer();
void item_getcheck_func_deku_leaf();
void item_getcheck_func_magic_arrow();
void item_getcheck_func_light_arrow();
void item_getcheck_func_sword();
void item_getcheck_func_master_sword();
void item_getcheck_func_lv3_sword();
void item_getcheck_func_shield();
void item_getcheck_func_mirror_shield();
void item_getcheck_func_master_sword_ex();
void item_getcheck_func_pirates_omamori();
void item_getcheck_func_heros_omamori();
void item_getcheck_func_grass_ball();
void item_getcheck_func_skull_necklace();
void item_getcheck_func_bokobaba_seed();
void item_getcheck_func_golden_feather();
void item_getcheck_func_boko_belt();
void item_getcheck_func_red_jerry();
void item_getcheck_func_green_jerry();
void item_getcheck_func_blue_jerry();
void item_getcheck_func_map();
void item_getcheck_func_compass();
void item_getcheck_func_boss_key();
void item_getcheck_func_empty_bship();
void item_getcheck_func_empty_bottle();
void item_getcheck_func_red_bottle();
void item_getcheck_func_green_bottle();
void item_getcheck_func_blue_bottle();
void item_getcheck_func_bottleship();
void item_getcheck_func_bin_in_bottleship();
void item_getcheck_func_bin_in_water();
void item_getcheck_func_bin();
void item_getcheck_func_triforce1();
void item_getcheck_func_triforce2();
void item_getcheck_func_triforce3();
void item_getcheck_func_triforce4();
void item_getcheck_func_triforce5();
void item_getcheck_func_triforce6();
void item_getcheck_func_triforce7();
void item_getcheck_func_triforce8();
void item_getcheck_func_pearl1();
void item_getcheck_func_pearl2();
void item_getcheck_func_pearl3();
void item_getcheck_func_tact_song1();
void item_getcheck_func_tact_song2();
void item_getcheck_func_tact_song3();
void item_getcheck_func_tact_song4();
void item_getcheck_func_tact_song5();
void item_getcheck_func_tact_song6();
void item_getcheck_func_normal_sail();
void item_getcheck_func_zora_sail();
void item_getcheck_func_tincle_sail();
void item_getcheck_func_sail();
void item_getcheck_func_bird_esa_5();
void item_getcheck_func_animal_esa();
void item_getcheck_func_esa1();
void item_getcheck_func_esa2();
void item_getcheck_func_esa3();
void item_getcheck_func_esa4();
void item_getcheck_func_esa5();
void item_getcheck_func_magic_bean();
void item_getcheck_func_bird_esa_10();
void item_getcheck_func_flower_1();
void item_getcheck_func_flower_2();
void item_getcheck_func_flower_3();
void item_getcheck_func_heros_flag();
void item_getcheck_func_tairyo_flag();
void item_getcheck_func_sales_flag();
void item_getcheck_func_wind_flag();
void item_getcheck_func_red_flag();
void item_getcheck_func_fossil_head();
void item_getcheck_func_water_statue();
void item_getcheck_func_postman_statue();
void item_getcheck_func_president_statue();
void item_getcheck_func_letter00();
void item_getcheck_func_magic_seed();
void item_getcheck_func_magys_letter();
void item_getcheck_func_mo_letter();
void item_getcheck_func_cottage_paper();
void item_getcheck_func_kaisen_present1();
void item_getcheck_func_kaisen_present2();
void item_getcheck_func_salvage_item1();
void item_getcheck_func_salvage_item2();
void item_getcheck_func_salvage_item3();
void item_getcheck_func_xxx_039();
void item_getcheck_func_lithograph1();
void item_getcheck_func_lithograph2();
void item_getcheck_func_lithograph3();
void item_getcheck_func_lithograph4();
void item_getcheck_func_lithograph5();
void item_getcheck_func_lithograph6();
void item_getcheck_func_lithograph7();
void item_getcheck_func_lithograph8();
void item_getcheck_func_lithograph9();
void item_getcheck_func_lithograph10();
void item_getcheck_func_lithograph11();
void item_getcheck_func_lithograph12();
void item_getcheck_func_lithograph13();
void item_getcheck_func_lithograph14();
void item_getcheck_func_lithograph15();
void item_getcheck_func_lithograph16();
int item_getcheck_func_heart();
int item_getcheck_func_green_rupee();
int item_getcheck_func_blue_rupee();
int item_getcheck_func_white_rupee();
int item_getcheck_func_red_rupee();
int item_getcheck_func_purple_rupee();
int item_getcheck_func_silver_rupee();
int item_getcheck_func_kakera_heart();
int item_getcheck_func_utuwa_heart();
int item_getcheck_func_s_magic();
int item_getcheck_func_l_magic();
int item_getcheck_func_bomb_5();
int item_getcheck_func_bomb_10();
int item_getcheck_func_bomb_20();
int item_getcheck_func_bomb_30();
int item_getcheck_func_noentry();
int item_getcheck_func_arrow_10();
int item_getcheck_func_arrow_20();
int item_getcheck_func_arrow_30();
int item_getcheck_func_small_key();
int item_getcheck_func_recover_faily();
int item_getcheck_func_triple_heart();
int item_getcheck_func_pendant();
int item_getcheck_func_telescope();
int item_getcheck_func_tncl_whitsl();
int item_getcheck_func_wind_tact();
int item_getcheck_func_camera();
int item_getcheck_func_emono_bag();
int item_getcheck_func_rope();
int item_getcheck_func_camera2();
int item_getcheck_func_bow();
int item_getcheck_func_pwr_groove();
int item_getcheck_func_hvy_boots();
int item_getcheck_func_drgn_shield();
int item_getcheck_func_water_boots();
int item_getcheck_func_esa_bag();
int item_getcheck_func_boomerang();
int item_getcheck_func_bare_hand();
int item_getcheck_func_hookshot();
int item_getcheck_func_warasibe_bag();
int item_getcheck_func_bomb_bag();
int item_getcheck_func_hummer();
int item_getcheck_func_deku_leaf();
int item_getcheck_func_magic_arrow();
int item_getcheck_func_light_arrow();
int item_getcheck_func_sword();
int item_getcheck_func_master_sword();
int item_getcheck_func_lv3_sword();
int item_getcheck_func_shield();
int item_getcheck_func_mirror_shield();
int item_getcheck_func_master_sword_ex();
int item_getcheck_func_pirates_omamori();
int item_getcheck_func_heros_omamori();
int item_getcheck_func_grass_ball();
int item_getcheck_func_skull_necklace();
int item_getcheck_func_bokobaba_seed();
int item_getcheck_func_golden_feather();
int item_getcheck_func_boko_belt();
int item_getcheck_func_red_jerry();
int item_getcheck_func_green_jerry();
int item_getcheck_func_blue_jerry();
int item_getcheck_func_map();
int item_getcheck_func_compass();
int item_getcheck_func_boss_key();
int item_getcheck_func_empty_bship();
int item_getcheck_func_empty_bottle();
int item_getcheck_func_red_bottle();
int item_getcheck_func_green_bottle();
int item_getcheck_func_blue_bottle();
int item_getcheck_func_bottleship();
int item_getcheck_func_bin_in_bottleship();
int item_getcheck_func_bin_in_water();
int item_getcheck_func_bin();
int item_getcheck_func_triforce1();
int item_getcheck_func_triforce2();
int item_getcheck_func_triforce3();
int item_getcheck_func_triforce4();
int item_getcheck_func_triforce5();
int item_getcheck_func_triforce6();
int item_getcheck_func_triforce7();
int item_getcheck_func_triforce8();
int item_getcheck_func_pearl1();
int item_getcheck_func_pearl2();
int item_getcheck_func_pearl3();
int item_getcheck_func_tact_song1();
int item_getcheck_func_tact_song2();
int item_getcheck_func_tact_song3();
int item_getcheck_func_tact_song4();
int item_getcheck_func_tact_song5();
int item_getcheck_func_tact_song6();
int item_getcheck_func_normal_sail();
int item_getcheck_func_zora_sail();
int item_getcheck_func_tincle_sail();
int item_getcheck_func_sail();
int item_getcheck_func_bird_esa_5();
int item_getcheck_func_animal_esa();
int item_getcheck_func_esa1();
int item_getcheck_func_esa2();
int item_getcheck_func_esa3();
int item_getcheck_func_esa4();
int item_getcheck_func_esa5();
int item_getcheck_func_magic_bean();
int item_getcheck_func_bird_esa_10();
int item_getcheck_func_flower_1();
int item_getcheck_func_flower_2();
int item_getcheck_func_flower_3();
int item_getcheck_func_heros_flag();
int item_getcheck_func_tairyo_flag();
int item_getcheck_func_sales_flag();
int item_getcheck_func_wind_flag();
int item_getcheck_func_red_flag();
int item_getcheck_func_fossil_head();
int item_getcheck_func_water_statue();
int item_getcheck_func_postman_statue();
int item_getcheck_func_president_statue();
int item_getcheck_func_letter00();
int item_getcheck_func_magic_seed();
int item_getcheck_func_magys_letter();
int item_getcheck_func_mo_letter();
int item_getcheck_func_cottage_paper();
int item_getcheck_func_kaisen_present1();
int item_getcheck_func_kaisen_present2();
int item_getcheck_func_salvage_item1();
int item_getcheck_func_salvage_item2();
int item_getcheck_func_salvage_item3();
int item_getcheck_func_xxx_039();
int item_getcheck_func_lithograph1();
int item_getcheck_func_lithograph2();
int item_getcheck_func_lithograph3();
int item_getcheck_func_lithograph4();
int item_getcheck_func_lithograph5();
int item_getcheck_func_lithograph6();
int item_getcheck_func_lithograph7();
int item_getcheck_func_lithograph8();
int item_getcheck_func_lithograph9();
int item_getcheck_func_lithograph10();
int item_getcheck_func_lithograph11();
int item_getcheck_func_lithograph12();
int item_getcheck_func_lithograph13();
int item_getcheck_func_lithograph14();
int item_getcheck_func_lithograph15();
int item_getcheck_func_lithograph16();
void getRotenItemNumInBag();
BOOL isDaizaItem(u8);
BOOL isBomb(u8);
BOOL isArrow(u8);
BOOL isEmono(u8);
BOOL isEsa(u8);
BOOL isRupee(u8);
BOOL isLimitedItem(u8);
BOOL isNonSavedEmono(u8);
BOOL isUseClothPacket(u8);
BOOL isTriforce(u8);
BOOL isHeart(u8);
BOOL isDaizaItem(u8 itemNo);
BOOL isBomb(u8 itemNo);
BOOL isArrow(u8 itemNo);
BOOL isEmono(u8 itemNo);
BOOL isEsa(u8 itemNo);
BOOL isRupee(u8 itemNo);
BOOL isLimitedItem(u8 itemNo);
BOOL isNonSavedEmono(u8 itemNo);
BOOL isUseClothPacket(u8 itemNo);
BOOL isTriforce(u8 itemNo);
BOOL isHeart(u8 itemNo);
void getItemNoByLife(u8);
int check_itemno(int);
void getEmonoItemFromLifeBallTable(u16);
+1
View File
@@ -89,6 +89,7 @@ public:
u8 checkEmptyBottle();
u8 getItem(int i_idx) const { return mItems[i_idx]; }
void setItem(int i_idx, u8 i_itemNo) { mItems[i_idx] = i_itemNo; }
/* 0x00 */ u8 mItems[21];
}; // Size: 0x15
+8
View File
@@ -958,6 +958,14 @@ inline u8 dStage_stagInfo_getStartSch(stage_stag_info_class* p_info) {
return (p_info->field_0x10 >> 0x10) & 0xFF;
}
// TODO:
// dStage_stagInfo_GetAgbCon__FP21stage_stag_info_class
// dStage_stagInfo_GetSchSec__FP21stage_stag_info_class - field_0x0c & 0xFF
// dStage_stagInfo_DefaultCameraType__FP21stage_stag_info_class
// dStage_stagInfo_GetCullPoint__FP21stage_stag_info_class
// dStage_stagInfo_GetUpButton__FP21stage_stag_info_class
// dStage_stagInfo_ChkKeyDisp__FP21stage_stag_info_class
inline u8 dStage_roomRead_dt_c_GetLoadRoomIndex(u8 param_0) {
return param_0 & 0x3f;
}
+1 -1
View File
@@ -981,7 +981,7 @@ BOOL daArrow_c::procStop_BG() {
}
if (mSph.ChkCoHit()) {
dComIfGp_getItemArrowNumCount(1);
dComIfGp_setItemArrowNumCount(1);
fopAcM_createItemForSimpleDemo(&current.pos, ARROW_10, -1, NULL, NULL, 0.0f, 0.0f);
mDoAud_seStart(JA_SE_CONSUMP_ITEM_GET, NULL, 0, 0);
fopAcM_delete(this);
+726 -180
View File
File diff suppressed because it is too large Load Diff