|
Digimon World 3 decomp
The European version, SLES_039.36
|
Go to the source code of this file.
Functions | |
| void | clearBattleGauges (void) |
| Empties the battle gauges (BATTLE_SETUP.gauges, up to 1000 in a battle) | |
| ItemInfo * | getItem (s32 id) |
The ITEMS entry of item id (from 1), or NULL. | |
| s32 | getItemCategory (s32 id) |
| The category of an item's type (ITEM_TYPE_CATEGORIES); an s32, as the menus that call it through ITEM_FUNCS don't truncate the result to a byte. | |
| s32 | isItemKind (s32 item, s32 kind) |
| ITEM_FUNCS.isKind. | |
| s32 | listItems (s32 type, s16 *out) |
| Copies the items of ITEM_LISTS[type] the player has (with the top bit, equipped ones too); returns how many. | |
| void clearBattleGauges | ( | void | ) |
The ITEMS entry of item id (from 1), or NULL.
Definition at line 16 of file items.c.
Referenced by getItemCategory(), and isItemKind().
| WeaponData WEAPON_DATA[123] |
What ItemInfo.data points to for the weapons, the armour and the accessories.
| AccessoryData ACCESSORY_DATA[68] |
| u16 KEY_ITEM_IDS[52] |
listItems' lists, ended by 0
| u16 USABLE_ITEM_IDS[84] |
| u16 WEAPON_IDS[124] |
| u16 ARMOR_IDS[78] |
| u16 ACCESSORY_IDS[69] |
| ItemEffect ITEM_EFFECT_2B = { 1 | 2 , 1, 500 } |
What the usable items do (their ItemInfo.data).
-G8 unit: they are small, so they go to the small data (.sdata), linked after all the executable's data.
| ItemEffect ITEM_EFFECT_2C = { 1 | 2 , 1, 2000 } |
| ItemEffect ITEM_EFFECT_2D = { 1 | 2 , 1, 5000 } |
| ItemEffect ITEM_EFFECT_2E = { 1 | 2 , 1, 9999 } |
| ItemEffect ITEM_EFFECT_2F = { 1 , 2, 30 } |
| ItemEffect ITEM_EFFECT_30 = { 1 , 3, 30 } |
| ItemEffect ITEM_EFFECT_31 = { 1 , 4, 10 } |
| ItemEffect ITEM_EFFECT_32 = { 1 , 5, 10 } |
| ItemEffect ITEM_EFFECT_33 = { 1 , 6, 10 } |
| ItemEffect ITEM_EFFECT_34 = { 1 , 7, 10 } |
| ItemEffect ITEM_EFFECT_35 = { 1 , 8, 10 } |
| ItemEffect ITEM_EFFECT_36 = { 1 , 9, 10 } |
| ItemEffect ITEM_EFFECT_37 = { 1 , 10, 10 } |
| ItemEffect ITEM_EFFECT_38 = { 1 , 11, 10 } |
| ItemEffect ITEM_EFFECT_39 = { 1 , 12, 10 } |
| ItemEffect ITEM_EFFECT_3A = { 1 , 13, 10 } |
| ItemEffect ITEM_EFFECT_3B = { 1 , 14, 10 } |
| ItemEffect ITEM_EFFECT_3C = { 1 , 15, 10 } |
| ItemEffect ITEM_EFFECT_3D = { 1 , 16, 10 } |
| ItemEffect ITEM_EFFECT_3E = { 1 , 17, 1 } |
| ItemEffect ITEM_EFFECT_3F = { 1 , 17, 2 } |
| ItemEffect ITEM_EFFECT_40 = { 1 , 17, 3 } |
| ItemEffect ITEM_EFFECT_41 = { 1 , 17, 5 } |
| ItemEffect ITEM_EFFECT_42 = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_43 = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_44 = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_45 = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_46 = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_47 = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_48 = { 2 , 0, 32 } |
| ItemEffect ITEM_EFFECT_49 = { 2 , 0, 64 } |
| ItemEffect ITEM_EFFECT_4A = { 2 , 0, 64 } |
| ItemEffect ITEM_EFFECT_4B = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_4C = { 2 , 0, 200 } |
| ItemEffect ITEM_EFFECT_4D = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_4E = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_4F = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_50 = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_51 = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_52 = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_53 = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_54 = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_55 = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_56 = { 2 , 0, 96 } |
| ItemEffect ITEM_EFFECT_57 = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_58 = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_59 = { 2 , 0, 32 } |
| ItemEffect ITEM_EFFECT_5A = { 2 , 0, 0 } |
| ItemEffect ITEM_EFFECT_5B = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_169 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_16A = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_16B = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_16C = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_16D = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_16E = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_16F = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_170 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_171 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_172 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_173 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_174 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_175 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_176 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_177 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_178 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_179 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_17A = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_17B = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_17C = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_17D = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_17E = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_17F = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_180 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_181 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_182 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_183 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_184 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_185 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_186 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_187 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_188 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_189 = { 4 , 0, 0 } |
| ItemEffect ITEM_EFFECT_18A = { 4 , 0, 0 } |
| ItemInfo ITEMS[402] |
| BattleSetup BATTLE_SETUP = { 1, -1, -1, 0, 0, 0, {{0}}, 0, 0, {0}, 0, 0, clearBattleGauges } |
Definition at line 886 of file items.c.
Referenced by addFighters(), applyEntranceExtras(), boostFighterStat(), clearBattleGauges(), computeEnemyStats(), confuseFighters(), drainEnemy(), editBattleDebug(), FIELDSTG_countBattleSteps(), FIELDSTG_startBattle(), FIELDSTG_startEncounter(), FIGHTSTG_computeDamage(), FIGHTSTG_computeMagicDamage(), FIGHTSTG_drawHud(), FIGHTSTG_lowerAttack(), FIGHTSTG_playBattleSound(), FIGHTSTG_rollDrain(), FIGHTSTG_rollPoison(), FIGHTSTG_rollSleep(), FIGHTSTG_rollSteal(), FIGHTSTG_runItemScript(), FIGHTSTG_runScriptStage(), FIGHTSTG_showFighterNames(), FIGHTSTG_testEnemyCondition(), FIGHTSTG_testRunAway(), FIGHTSTG_updateDigimonChange(), FIGHTSTG_updateRoot(), fillGauge(), lowerEnemySpeed(), lowerEnemyStat(), returnToBattle(), rollStatus(), runStageList(), setBattleKind(), setUpBattle(), setUpDrain(), STAGSLCT_startStageSelect(), STAGSLCT_updateStageSelect(), STDWTITL_leaveTitle(), switchConfusionMusic(), turnAroundFighters(), weakenEnemyDefense(), WFIGHTMN_cancelBlast(), WFIGHTMN_chargeGauge(), WFIGHTMN_endBattle(), WFIGHTMN_initFighters(), WFIGHTMN_rollAmbush(), and WFIGHTMN_updateMenu().
| BattleResult BATTLE_RESULT = { 0 } |
Definition at line 888 of file items.c.
Referenced by giveDigimonExp(), giveItem(), giveMoney(), STFGTREP_updateReport(), WFIGHTMN_endBattle(), WFIGHTMN_markFought(), WFIGHTMN_markPicked(), and WFIGHTMN_start().
| ItemFuncs ITEM_FUNCS |
Definition at line 890 of file items.c.
Referenced by boostAttack(), boostDefense(), boostSpeed(), computeStats(), confuseFighters(), FIGHTSTG_computeStats(), FIGHTSTG_drawItemMenu(), FIGHTSTG_getTechCost(), FIGHTSTG_updateItemMenu(), fillGauge(), healPartner(), lowerEnemySpeed(), setItemScript(), STCRDSHP_drawPackOpen(), STCRDSHP_listPacks(), STCRDSHP_startOption(), STITSHOP_canEquip(), STITSHOP_chooseBuyQuantity(), STITSHOP_chooseSellQuantity(), STITSHOP_compareEquip(), STITSHOP_computeStats(), STITSHOP_confirmBuy(), STITSHOP_confirmSell(), STITSHOP_drawItemList(), STITSHOP_equip(), STITSHOP_fillPartnerRows(), STITSHOP_listSellable(), STITSHOP_openSellTotal(), STITSHOP_pickBuyItem(), STITSHOP_showBuyTotal(), STITSHOP_showItemDesc(), STITSHOP_showItemRows(), STITSHOP_startBuyQuantity(), STITSHOP_turnInfoPage(), STITSHOP_updateInfo(), STSTATUS_canEquip(), STSTATUS_chooseItemList(), STSTATUS_confirmItemUsed(), STSTATUS_drawEquipPanel(), STSTATUS_drawItemList(), STSTATUS_drawItemScreen(), STSTATUS_drawStatusScreen(), STSTATUS_equip(), STSTATUS_fillItemList(), STSTATUS_listEquipItems(), STSTATUS_listItems(), STSTATUS_listItemsOfKind(), STSTATUS_previewStats(), STSTATUS_runItemList(), STSTATUS_showEquipItem(), STSTATUS_showItemHelp(), STSTATUS_useItem(), and unequipItem().
| u8 ITEM_TYPE_CATEGORIES[32] |
The categories' strings, by item type.
Definition at line 898 of file items.c.
Referenced by getItemCategory().
| u16* ITEM_LISTS[5] = { KEY_ITEM_IDS, USABLE_ITEM_IDS, WEAPON_IDS, ARMOR_IDS, ACCESSORY_IDS } |
| TechData TECHS[443] |
The techniques, from 1: technique n is TECHS[n - 1].
Definition at line 906 of file items.c.
Referenced by announceFirstTech(), announceTech(), confirmSwitchIn(), dealTechDamage(), drawEntryPanel(), FIGHTSTG_adjustDamage(), FIGHTSTG_applyTechEffect(), FIGHTSTG_computeCounterDamage(), FIGHTSTG_computeDamage(), FIGHTSTG_computeHeal(), FIGHTSTG_computeMagicDamage(), FIGHTSTG_drainMp(), FIGHTSTG_drawTechIcons(), FIGHTSTG_drawTechMenu(), FIGHTSTG_getTechCost(), FIGHTSTG_lowerAttack(), FIGHTSTG_lowerDefense(), FIGHTSTG_raiseAllStatus(), FIGHTSTG_raiseEachStatus(), FIGHTSTG_raiseOneStatus(), FIGHTSTG_reviveFighter(), FIGHTSTG_rollCritical(), FIGHTSTG_rollDrain(), FIGHTSTG_rollHit(), FIGHTSTG_rollMagicCritical(), FIGHTSTG_rollMagicHit(), FIGHTSTG_rollMultiHit(), FIGHTSTG_rollPoison(), FIGHTSTG_rollSleep(), FIGHTSTG_rollStatusRaise(), FIGHTSTG_rollSteal(), FIGHTSTG_showSwitchInChoices(), FIGHTSTG_startAction(), FIGHTSTG_startEndBattle(), FIGHTSTG_startRestriction(), FIGHTSTG_tryConfusion(), FIGHTSTG_tryDrain(), FIGHTSTG_tryNoSwitch(), FIGHTSTG_tryParalysis(), FIGHTSTG_trySleep(), FIGHTSTG_trySteal(), FIGHTSTG_updateTechAction(), markTechEffect(), playCounterTech(), rollStatus(), rollTechChance(), setUpItemTech(), STGDGLAB_drawEntryList(), STGDGLAB_drawSkillPanel(), STGDGLAB_showSkillPanel(), STSTATUS_chooseTech(), STSTATUS_drawDigivolvePanel(), STSTATUS_getChosenTech(), STSTATUS_getTechHealing(), STSTATUS_showChosenTech(), STSTATUS_showPartnerTech(), STSTATUS_showTechCost(), STSTATUS_useTech(), useEnemyTech(), wakeUpOrCounter(), WFIGHTMN_bringLastEnemy(), WFIGHTMN_recordTech(), and WFIGHTMN_startTech().