include/game/stubs.h
Party members, items, Djinn and game-state operations.
Included by battle_internal.h, battle_effect_internal.h, field_engine_internal.h, field_internal.h, lucky_dice.c, lucky_wheels.c, script_commands_internal.h, main_routine.c, credits.c, menu_internal.h, shop_internal.h, screens_internal.h and window_internal.h.
Functions
| Name | Description | |
|---|---|---|
struct DJINN_RECOVERY_TABLE * | gmDjinnGetRecoveryTableStub (Sint32 enemySide) | |
struct UNIT * | gmUnitGetStub (Uint32 unitId) | |
void | gmUnitCalculateStub (Sint32 unitId) | Works a unit's stats out again from its base stats, equipment, set Djinn, class and battle stat levels, keeping its HP and PP at the same fraction. |
struct ITEM_DEFINITION * | gmItemGetDefinitionStub (Sint32 item) | |
Sint32 | gmInventoryGetQuantityStub (Sint32 unitId, Sint32 slot) | Returns how many of the item in slot the unit carries, 0 for an empty slot (gmInventoryGetQuantity); the sell screen reads a stack's size with it. |
Sint32 | gmInventoryAddItemStub (Sint32 unitId, Sint32 itemId) | |
Sint32 | gmPartyInventoryAddStub (Sint32 itemId) | |
Sint32 | gmInventoryFindStub (Sint32 unitId, Sint32 itemId) | |
Sint32 | gmPartyInventoryFindMemberStub (Sint32 itemId) | |
Sint32 | gmPartyInventoryRemoveStub (Sint32 itemId) | |
Sint32 | gmInventoryEquipStub (Sint32 unitId, Sint32 slot) | |
Sint32 | gmInventoryRemoveStub (Sint32 unitId, Sint32 slot) | |
Sint32 | gmInventoryBreakStub (Sint32 unitId, Sint32 slot) | |
Sint32 | gmInventoryRepairStub (Sint32 unitId, Sint32 slot) | |
Sint32 | gmInventoryGetEquippedItemStub (struct UNIT *unit, Sint32 type) | |
struct ABILITY_DEFINITION * | gmAbilityGetDefinitionStub (Sint32 abilityId) | Returns the definition of an ability by its low 14 bits, the first for an id past the table (gmAbilityGetDefinition); every module reads abilities so. |
Sint32 | gmUnitLearnPsynergyStub () | |
Sint32 | gmUnitKnowsPsynergyStub (Sint32 unitId, Sint32 abilityId) | |
void | gmMainRoutineStateInitDefaultsStub (void) | |
struct LEVEL_UP_RESULT * | gmUnitTryLevelUpStub (Sint32 unitId, struct LEVEL_UP_RESULT *gains) | |
Sint32 | gmFlagGetStub (Sint32 flag) | |
Sint32 | gmFlagSetStub (Sint32 flag) | |
void | gmFlagClearStub (Sint32 flag) | Clears the flag, returning nothing where gmFlagSetStub returns its byte. |
Sint32 | gmFlagGetByteStub (Sint32 flag) | |
void | gmFlagSetByteStub (Sint32 flag, Sint32 value) | |
Sint32 | gmUnitAddHpStub (Sint32 unitId, Sint32 delta) | Adds delta to the unit's HP, kept between 0 and its maximum, updates its gauges and returns the new HP. |
Sint16 | gmUnitAddPpStub (Sint32 unitId, Sint32 delta) | Adds delta to the unit's PP, kept between 0 and its maximum, updates its gauges and returns the new PP. |
void | gmUnitRecalculateGaugesStub (Sint32 unitId) | |
void | gmUnitSetHpStub (struct UNIT *unit, Sint32 hp) | Sets the unit's HP, kept between 0 and its maximum, and updates its gauges. |
Sint32 | gmBattleUnitSetStub (Sint32 unitId, Sint32 enemyId, Sint32 suffix) | |
Sint32 | gmPartyCountMembersStub (void) | |
Sint32 | gmPartyAddMemberStub (Sint32 unitId) | |
Sint32 | gmPartyListMembersStub (Sint16 *unitIds) | |
Sint32 | gmEquipmentRollUnleashStub (struct UNIT *unit) | |
Sint32 | gmPartyRemoveMemberStub (Sint32 unitId) | |
Sint32 | gmUnitGetAttackElementStub (Sint32 unitId) | |
Sint32 | gmBattleRollEffectSuccessStub (Sint32 caster, Sint32 target, Sint32 element, Sint32 effectId, Sint32 successScale) | |
Sint32 | gmBattleCalculateAttackDamageStub (Sint32 attack, Sint32 defense, Sint32 addedPower, Sint32 elementDifference) | |
Sint32 | gmBattleCalculatePsynergyPowerStub (Sint32 power, Sint32 elementDifference, Sint32 powerMultiplier) | |
Sint32 | gmBattleCalculateRecoveryStub (Sint32 power, Sint32 elementPower, Sint32 powerMultiplier) | |
const struct ENEMY_DEFINITION * | gmEnemyGetDefinitionStub (Sint32 enemyId) | |
Sint32 | gmBattleRandomStub (void) | |
Sint32 | gmDjinnGiveStub (Sint32 unitId, Sint32 element, Sint32 djinnIndex) | |
Sint32 | gmDjinnSetStub (Sint32 unitId, Sint32 element, Sint32 djinnIndex) | |
Uint32 | gmDjinnPutOnStandbyStub (Sint32 unitId, Sint32 element, Sint32 djinnIndex) | |
Sint32 | gmDjinnRecoveryRemoveStub (Sint32 unitId, Sint32 element, Sint32 djinnIndex) | |
Uint32 * | gmDjinnRecoveryAddStandbyStub (Uint32 unitId, Uint32 element, Uint32 djinnIndex) | |
Sint32 | gmDjinnTransferStub (Sint32 src, Sint32 element, Sint32 djinnIndex, Sint32 target) | |
Sint32 | gmSummonListLearnedStub (Uint8 *output) | |
const struct SUMMON_DEFINITION * | gmSummonDefinitionGetNearStub (Uint32 summonId) | Returns a summon's definition, or NULL past the sixteenth (gmSummonDefinitionGetNear). |
Sint32 | gmDjinnGetAbilityIdStub (Uint32 element, Uint32 djinni) | |
void | gmUnitLevelUpToStub (Sint32 unitId, Sint32 targetLevel) | |
Sint32 | gmUnitGetElementLevelStub (Sint32 unitId, Sint32 element) | |
Uint32 | gmDjinnIsSetStub (Sint32 unitId, Sint32 element, Sint32 djinnIndex) | |
Sint32 | gmDjinnCanSetStub (Sint32 unitId, Sint32 element, Sint32 djinnIndex) | |
Sint32 | gmItemCanUnitEquipStub (Sint32 unitId, Sint32 itemId) | Returns whether the character's class may equip the item, 0 for any unit past the eight characters (gmItemCanUnitEquip). |
Sint32 | gmItemIsCompatibleWithUnitStub (Sint32 unitId, Sint32 itemId) | |
Sint32 | gmInventoryFindEquippedStub (Sint32 unitId, Sint32 type) | |
Sint32 | gmPartyAdjustCoinsStub (Sint32 amount) | |
Sint32 | gmItemGetEquipmentGroupStub (Sint32 itemId) | |
Sint32 | gmItemAdjustRareItemStockStub (Sint32 itemId, Sint32 delta) | |
Sint32 | gmInventoryCountStub (Sint32 unitId) | |
Sint32 | gmPartyInventoryHasSpaceStub (void) | |
Uint32 | gmUnitGetExperienceForLevelStub (Sint32 unitId, Sint32 level) | |
void | gmPartyRestoreHpPpStub (Sint32 cureConditions) | |
void | gmPartyRestorePpInLighthouseStub (void) | |
void | gmPartyStartChildhoodStub (void) | |
void | gmPartyEndChildhoodStub (void) | |
Sint32 | gmDjinnGiveToPartyStub (Sint32 element, Sint32 djinn) | |
Sint32 | gmPartySumDjinnCountsStub (Sint32 element) | |
Sint32 | gmPartyAdjustShopCreditStub (Sint32 amount) | Adds amount to the shop credit purchases build up and Game Tickets spend, kept between 0 and COIN_MAX, and returns the new credit. |
Sint32 | gmPartyAdjustShopGiftsStub (Sint32 amount) | Adds amount to the count of Game Tickets given, which stops at SHOP_GIFTS_MAX and picks the next ticket's credit cost, and returns the new count. |
Sint32 | gmInventoryCheckDiscardStub (Sint32 unitId, Sint32 slot) | |
Sint32 | gmInventoryDiscardStub (Sint32 unitId, Sint32 slot) | |
Sint32 | gmBattleIsReviveEffectStub (Sint32 effectId) | |
Sint32 | gmUnitRefreshPsynergyStub (Sint32 unitId) | |
Uint32 | gmPartyGetAverageLevelStub (void) | |
Sint32 | gmInventoryCountItemStub (Sint32 unitId, Sint32 itemId) | |
Sint32 | gmPartyInventoryCountItemStub (Sint32 itemId) | |
Sint32 | gmPartyInventoryDiscardStub (Sint32 itemId) | |
void | gmFlagRefreshLureCapStub (void) | |
Sint32 | gmEquipmentGetUnleashRateBonusStub (struct UNIT *unit) | |
Uint32 | gmBuildStampGetTimeStub () | |
Sint32 | gmPartyInventoryCountFreeSlotsStub (void) | |
void | gmInventorySnapshotSaveStub (void) | |
void | gmInventorySnapshotRestoreStub (void) |
Description
Party members, items, Djinn and game-state operations.
Functions in detail
gmDjinnGetRecoveryTableStub
struct DJINN_RECOVERY_TABLE *gmDjinnGetRecoveryTableStub(Sint32 enemySide)
Referenced by btActionRunBuild(), btDjinnCountStandby(), btDjinnRecoveryCountDown(), btDjinnRecoveryReconcile(), btLinkBattleReceiveParty(), btLinkBattleSendParty(), btProcessTurnEnd(), btRun(), btSummonUpdateAvailability(), btUnitProcessActionEnd(), mnBattleCommandRowRun() and mnBattleDjinnMenuRun().
Definition at line 15 of file stubs.h.
gmUnitGetStub
struct UNIT *gmUnitGetStub(Uint32 unitId)
Referenced by btAbilityApplyToTarget(), btAbilityReplaceDefeated(), btActionOrderSort(), btActionRunBuild(), btAIChooseAction(), btAIChooseRandomTarget(), btAIChooseTarget(), btAutoBattleApplyDamage(), btAutoBattleBuildActions(), btAutoBattleRunAction(), btAutoBattleRunApproachAttack(), btAutoBattleRunPsynergy(), btAutoBattleShowDefend(), btAwardSpoils(), btBuildEnemyActions(), btBuildPartyActions(), btDebugBattleViewMessages(), btDebugParamSetLoad(), btDjinnRecoveryCountDown(), btEffectRunAttackSlash(), btEffectShowLivingTargets(), btEnemyAdjustLevel(), btEnemyGetFreeUnitId(), btEnemyLetterFirstOfKind(), btEnemyList(), btEnemyRecordDefeat(), btEnemyReleaseNameLetter(), btEnemySpriteLoadIntoSlots(), btFleeCheckSuccess(), btFormationBuildEnemyList(), btFormationSelectLevelMatchedCandidate(), btGatherActions(), btLinkBattleReceiveParty(), btLinkBattleSendParty(), btMotionApplyKnockback(), btMotionFlashHit(), btMotionPlayFall(), btMotionProjectCursorPoint(), btMotionShowDowned(), btObjectMake(), btObjectRemoveFromLists(), btObjectUpdatePose(), btPartyClearBattleStatuses(), btPartyPrepareMembers(), btPlacementLayoutEnemies(), btPlaybackRun(), btProcessTurnEnd(), btStagingBuildTargetList(), btStagingDispatchAction(), btStagingRunAttack() and 107 more.
Definition at line 16 of file stubs.h.
gmUnitCalculateStub
void gmUnitCalculateStub(Sint32 unitId)
Works a unit's stats out again from its base stats, equipment, set Djinn, class and battle stat levels, keeping its HP and PP at the same fraction.
Referenced by btAbilityApplyToTarget(), btActionRunBuild(), btDebugBattleRunMenu(), btDjinnRecoveryCountDown(), btEnemyAdjustLevel(), btPartyClearBattleStatuses(), btProcessTurnEnd(), btUnitClearStatuses(), btUnitProcessActionEnd(), btUnitResetGuardLevels(), mnAbilityApplyToTargets(), mnBattleDjinnMenuShowChangePreview(), mnBattleStatusScreenRun(), mnDjinnMenuDrawStatPreview(), mnDjinnMenuRunPreview(), mnDjinnMenuRunScreen(), mnDjinnMenuSelectDjinn(), mnItemMenuConfirmEquip(), mnItemMenuRunCommands(), mnItemMenuUse(), mnPsynergyMenuRunSteps(), mnSanctumApplyService(), mnShopDrawEquipComparison() and mnStatusPanelDraw().
Definition at line 19 of file stubs.h.
gmItemGetDefinitionStub
struct ITEM_DEFINITION *gmItemGetDefinitionStub(Sint32 item)
Referenced by btActionRunBuild(), btAIChooseAction(), btSpoilsRankItem(), btStagingRunItem(), fdPartyInventoryGiveItem(), fdUseItem(), mnBattleCollectPartyCommands(), mnBattleItemMenuRun(), mnIconDrawItem(), mnItemCheckBattleUse(), mnItemClassifyUseMode(), mnItemIconCompose(), mnItemMenuBuildCommands(), mnItemMenuConfirmDrop(), mnItemMenuDrawEquippedItemNames(), mnItemMenuDrawEquipPreview(), mnItemMenuDrawItemDetails(), mnItemMenuPlaceEquippedIcons(), mnItemMenuRunCommands(), mnItemMenuSort(), mnItemMenuTryBreak(), mnItemPlayUseSound(), mnItemUse(), mnSanctumApplyService(), mnShopBuyDone(), mnShopConfirmEquip(), mnShopDrawEquipComparison(), mnShopDrawStock(), mnShopRepairItem(), mnShopRepairPrice(), mnShopSalePrice(), mnShopSelectBuy(), mnShopSelectBuyCount(), mnShopSelectSellCount(), mnShopSellItem(), mnShopSellOld(), mnStatusPanelDraw() and mnStatusScreenShowEquipmentRow().
Definition at line 20 of file stubs.h.
gmInventoryGetQuantityStub
Sint32 gmInventoryGetQuantityStub(Sint32 unitId, Sint32 slot)
Returns how many of the item in slot the unit carries, 0 for an empty slot
(gmInventoryGetQuantity); the sell screen reads a stack's size with it.
Referenced by fdPartyInventoryGiveItem() and mnShopSelectSellCount().
Definition at line 23 of file stubs.h.
gmInventoryAddItemStub
Sint32 gmInventoryAddItemStub(Sint32 unitId, Sint32 itemId)
Referenced by btDebugParamSetLoad(), fdInventoryTryAddAndReturnMember(), mnItemMenuDrawEquipPreview(), mnItemMenuRunCommands(), mnShopBuyDone(), mnShopGiveGameTicket(), mnShopOpenDebugShop() and mnShopSelectBuy().
Definition at line 24 of file stubs.h.
gmPartyInventoryAddStub
Sint32 gmPartyInventoryAddStub(Sint32 itemId)
Referenced by btAwardSpoils(), fdExamineMetatile() and fdPartyInventoryGiveItem().
Definition at line 25 of file stubs.h.
gmInventoryFindStub
Sint32 gmInventoryFindStub(Sint32 unitId, Sint32 itemId)
Referenced by mnShopDrawCarriedItem() and mnShopSelectBuyCount().
Definition at line 26 of file stubs.h.
gmPartyInventoryFindMemberStub
Sint32 gmPartyInventoryFindMemberStub(Sint32 itemId)
Definition at line 27 of file stubs.h.
gmPartyInventoryRemoveStub
Sint32 gmPartyInventoryRemoveStub(Sint32 itemId)
Referenced by fdLuckyWheelsUpdate() and mnItemRemoveFromInventory().
Definition at line 28 of file stubs.h.
gmInventoryEquipStub
Sint32 gmInventoryEquipStub(Sint32 unitId, Sint32 slot)
Referenced by btDebugParamSetLoad(), mnItemMenuConfirmEquip(), mnItemMenuRunCommands(), mnShopConfirmEquip(), mnShopOpenDebugShop() and mnStatusPanelDraw().
Definition at line 29 of file stubs.h.
gmInventoryRemoveStub
Sint32 gmInventoryRemoveStub(Sint32 unitId, Sint32 slot)
Referenced by btDebugParamSetLoad(), btStagingRunItem(), fdUseItem(), mnInventoryMakeRoom(), mnItemMenuRunCommands(), mnItemUse(), mnShopGiveGameTicket() and mnShopSelectBuy().
Definition at line 30 of file stubs.h.
gmInventoryBreakStub
Sint32 gmInventoryBreakStub(Sint32 unitId, Sint32 slot)
Referenced by btStagingRunItem() and mnItemMenuTryBreak().
Definition at line 31 of file stubs.h.
gmInventoryRepairStub
Sint32 gmInventoryRepairStub(Sint32 unitId, Sint32 slot)
Referenced by mnShopRepairItem().
Definition at line 32 of file stubs.h.
gmInventoryGetEquippedItemStub
Sint32 gmInventoryGetEquippedItemStub(struct UNIT *unit, Sint32 type)
Referenced by btActionRunBuild() and btObjectMake().
Definition at line 33 of file stubs.h.
gmAbilityGetDefinitionStub
struct ABILITY_DEFINITION *gmAbilityGetDefinitionStub(Sint32 abilityId)
Returns the definition of an ability by its low 14 bits, the first for an id
past the table (gmAbilityGetDefinition); every module reads abilities so.
Referenced by btAbilityApplyToTarget(), btAbilityIsPsynergy(), btActionOrderSort(), btActionRunBuild(), btAIChooseAction(), fdFindPsynergyCue(), fdPsynergyLoadResources(), fdRunPsynergyEndScripts(), fdUsePsynergy(), mnAbilityApplyToTargets(), mnAbilityBuildIconTiles(), mnAbilityBuildItemIconTiles(), mnAbilityPlayUseSound(), mnBattleCollectPartyCommands(), mnBattleDjinnMenuListChangedAbilities(), mnBattleDjinnMenuShowChangePreview(), mnBattlePsynergyMenuRun(), mnDebugSelectShortcuts(), mnDjinnMenuDrawStatPreview(), mnItemCheckBattleUse(), mnItemClassifyUseMode(), mnPartyListPsynergy(), mnPsynergyMenuClassifySelectedPsynergy(), mnPsynergyMenuCollectActions(), mnPsynergyMenuDrawPage(), mnPsynergyMenuIsActionRestricted(), mnPsynergyMenuRun(), mnPsynergyMenuRunList(), mnPsynergyMenuRunSteps(), mnStatusScreenDrawPsynergyPage() and mnStatusScreenShowPsynergyRow().
Definition at line 36 of file stubs.h.
gmUnitLearnPsynergyStub
Sint32 gmUnitLearnPsynergyStub()
Referenced by btDebugParamSetLoad(), fdPartyLearnAbility() and mnDebugSelectShortcuts().
Definition at line 37 of file stubs.h.
gmUnitKnowsPsynergyStub
Sint32 gmUnitKnowsPsynergyStub(Sint32 unitId, Sint32 abilityId)
Referenced by fdPartyCheckShortcut().
Definition at line 38 of file stubs.h.
gmMainRoutineStateInitDefaultsStub
void gmMainRoutineStateInitDefaultsStub(void)
Referenced by btDebugBattleRunMenu() and gmMainRoutineRun().
Definition at line 39 of file stubs.h.
gmUnitTryLevelUpStub
struct LEVEL_UP_RESULT *gmUnitTryLevelUpStub(Sint32 unitId, struct LEVEL_UP_RESULT *gains)
Referenced by btAwardSpoils().
Definition at line 40 of file stubs.h.
gmFlagGetStub
Sint32 gmFlagGetStub(Sint32 flag)
Referenced by btAbilityApplyToTarget(), btActionRunBuild(), btCameraApplyTransform(), btCameraSetRange(), btDjinnRecoveryReconcile(), btEnemyList(), btEnemyRecordDefeat(), btFormationAverageLevel(), btFormationBuildEnemyList(), btRun(), btUnitListLiving(), fdActorScriptTestFlag(), fdActorScriptToggleFlagAndTest(), fdActorSystemProjectSprites(), fdActorUpdatePlayerControl(), fdApplyEntrance(), fdChooseMusic(), fdDjinnJoinParty(), fdDjinnRestoreActorAfterBattle(), fdEffectSpawnRevealMarkers(), fdEffectUpdateSparkles(), fdEncounterCountStepsAndSelectFormation(), fdEncounterResolveWorldMapZoneAndBackdrop(), fdEncounterSelectBattleMusic(), fdEncounterSelectMapZones(), fdEngineRun(), fdEntrancePlayArrival(), fdExamineMetatile(), fdGameFlagIsConditionActive(), fdMapGridLoadMap(), fdMapScreenInit(), fdMapScreenShow(), fdMapScreenUpdateMarkers(), fdMotesUpdate(), fdPaletteFadeUpdate(), fdPartyCheckShortcut(), fdPartyGetCharacterSprite(), fdPlaceTreasureSpots(), fdPsynergyAvoid(), fdPsynergyFadeToCastColor(), fdPsynergyStartCast(), fdRequestShortcut(), fdRunPsynergyScript(), fdScriptSpawnActorPlacements(), fdUpdateWalking(), fdUseItem(), fdUsePsynergy(), fdWeatherUpdateLightning(), fdWeatherUpdateRain(), gmMainRoutineRun() and 40 more.
Definition at line 42 of file stubs.h.
gmFlagSetStub
Sint32 gmFlagSetStub(Sint32 flag)
Referenced by btDebugBattleRunMenu(), btEnemyRecordDefeat(), btGatherActions(), btRun(), fdActorScriptToggleFlagAndTest(), fdAssignViewFlags(), fdDjinnJoinParty(), fdDjinnResolvePending(), fdEngineRun(), fdExamineMetatile(), fdExitStartStairsDown(), fdExitStartStairsUp(), fdUseItem(), fdUsePsynergy(), gmArrive(), gmReturnFromEngine(), mnCreditsDrawLine(), mnDebugFlagEditorHandleInput(), mnDjinnSetFoundFlagAndAdd(), mnItemMenuShowMessage(), mnShopStockAddArtifacts(), mnSuspendFieldEvents() and mnWatchStart().
Definition at line 43 of file stubs.h.
gmFlagClearStub
void gmFlagClearStub(Sint32 flag)
Clears the flag, returning nothing where gmFlagSetStub returns its byte.
Referenced by btDebugBattleRunMenu(), btFormationSelectLevelMatchedCandidate(), btGatherActions(), fdActorScriptToggleFlagAndTest(), fdAssignViewFlags(), fdEngineRun(), fdEntrancePlayArrival(), fdExamineMetatile(), fdMapGridLoadMap(), fdScriptStart(), fdUseItem(), fdUsePsynergy(), gmArrive(), gmMainRoutineRun(), mnDebugFlagEditorHandleInput(), mnItemMenuSelectTarget(), mnPsynergyMenuSelectMember(), mnPsynergyMenuSelectTarget(), mnPsynergyMenuShowSelectedRow(), mnResumeFieldEvents() and mnStartWatchingStart().
Definition at line 45 of file stubs.h.
gmFlagGetByteStub
Sint32 gmFlagGetByteStub(Sint32 flag)
Referenced by btFormationSelectLevelMatchedCandidate() and btRun().
Definition at line 46 of file stubs.h.
gmFlagSetByteStub
void gmFlagSetByteStub(Sint32 flag, Sint32 value)
Definition at line 47 of file stubs.h.
gmUnitAddHpStub
Sint32 gmUnitAddHpStub(Sint32 unitId, Sint32 delta)
Adds delta to the unit's HP, kept between 0 and its maximum, updates its
gauges and returns the new HP.
Referenced by btActionRunBuild(), btProcessTurnEnd(), btUnitProcessActionEnd(), fdPartyAddHp() and fdPartyApplyPoisonDamage().
Definition at line 50 of file stubs.h.
gmUnitAddPpStub
Sint16 gmUnitAddPpStub(Sint32 unitId, Sint32 delta)
Adds delta to the unit's PP, kept between 0 and its maximum, updates its
gauges and returns the new PP.
Referenced by btAbilityApplyToTarget(), btProcessTurnEnd(), fdPartyAddPp(), fdUsePsynergy() and mnPsynergyMenuRunSteps().
Definition at line 53 of file stubs.h.
gmUnitRecalculateGaugesStub
void gmUnitRecalculateGaugesStub(Sint32 unitId)
Referenced by btAbilityApplyToTarget(), btActionRunBuild(), mnAbilityApplyToTargets(), mnInnPlaySleep() and mnSanctumApplyService().
Definition at line 54 of file stubs.h.
gmUnitSetHpStub
void gmUnitSetHpStub(struct UNIT *unit, Sint32 hp)
Sets the unit's HP, kept between 0 and its maximum, and updates its gauges.
Referenced by btUnitRemoveEnemy().
Definition at line 56 of file stubs.h.
gmBattleUnitSetStub
Sint32 gmBattleUnitSetStub(Sint32 unitId, Sint32 enemyId, Sint32 suffix)
Referenced by btAbilityApplyToTarget(), btFormationBuildEnemyList() and btRun().
Definition at line 57 of file stubs.h.
gmPartyCountMembersStub
Sint32 gmPartyCountMembersStub(void)
Referenced by btPartyPrepareMembers(), fdPartyAddHp(), fdPartyAddPp(), fdPartyApplyPoisonDamage(), fdPartyCheckItemLimit(), fdPartyRemoveMemberRestored(), fdUpdateWalking(), fdUseItem(), mnPartyStatusBuildLayoutBounds(), mnPartyStatusDraw() and mnPlacePartyFigures().
Definition at line 58 of file stubs.h.
gmPartyAddMemberStub
Sint32 gmPartyAddMemberStub(Sint32 unitId)
Referenced by btDebugParamSetLoad(), fdScriptAddPartyMember(), fdScriptAddPartyMemberPair() and mnStatusScreenMovePartyMember().
Definition at line 59 of file stubs.h.
gmPartyListMembersStub
Sint32 gmPartyListMembersStub(Sint16 *unitIds)
Referenced by mnCreatePartyFigures(), mnDjinnMenuRun(), mnInnPlaySleep(), mnItemMenuRun(), mnPartyListPsynergy(), mnPartyMemberChooserOpen(), mnPsynergyMenuRun(), mnReleasePartyFigures(), mnSaveBuildFileSummary(), mnShopInitState(), mnStatusScreenMovePartyMember() and mnStatusScreenRun().
Definition at line 60 of file stubs.h.
gmEquipmentRollUnleashStub
Sint32 gmEquipmentRollUnleashStub(struct UNIT *unit)
Referenced by btActionRunBuild().
Definition at line 61 of file stubs.h.
gmPartyRemoveMemberStub
Sint32 gmPartyRemoveMemberStub(Sint32 unitId)
Referenced by btDebugParamSetLoad(), fdPartyRemoveMemberRestored() and mnStatusScreenMovePartyMember().
Definition at line 62 of file stubs.h.
gmUnitGetAttackElementStub
Sint32 gmUnitGetAttackElementStub(Sint32 unitId)
Referenced by btActionRunBuild().
Definition at line 63 of file stubs.h.
gmBattleRollEffectSuccessStub
Sint32 gmBattleRollEffectSuccessStub(Sint32 caster, Sint32 target, Sint32 element, Sint32 effectId, Sint32 successScale)
Referenced by btAbilityApplyToTarget() and btActionRunBuild().
Definition at line 64 of file stubs.h.
gmBattleCalculateAttackDamageStub
Sint32 gmBattleCalculateAttackDamageStub(Sint32 attack, Sint32 defense, Sint32 addedPower, Sint32 elementDifference)
Referenced by btAbilityApplyToTarget().
Definition at line 69 of file stubs.h.
gmBattleCalculatePsynergyPowerStub
Sint32 gmBattleCalculatePsynergyPowerStub(Sint32 power, Sint32 elementDifference, Sint32 powerMultiplier)
Referenced by btAbilityApplyToTarget().
Definition at line 73 of file stubs.h.
gmBattleCalculateRecoveryStub
Sint32 gmBattleCalculateRecoveryStub(Sint32 power, Sint32 elementPower, Sint32 powerMultiplier)
Referenced by btAbilityApplyToTarget() and mnAbilityApplyToTargets().
Definition at line 76 of file stubs.h.
gmEnemyGetDefinitionStub
const struct ENEMY_DEFINITION *gmEnemyGetDefinitionStub(Sint32 enemyId)
Referenced by btAIChooseAction(), btAIChooseTarget(), btEnemyRecordDefeat(), btFormationAverageLevel() and btFormationSelectLevelMatchedCandidate().
Definition at line 79 of file stubs.h.
gmBattleRandomStub
Sint32 gmBattleRandomStub(void)
Referenced by btAbilityApplyToTarget(), btActionRunBuild(), btAIChooseAction(), btAppendLinkedActions(), btEnemyRecordDefeat(), btRun(), btStagingRunItem() and btUnitRollCounterEarlyEnd().
Definition at line 80 of file stubs.h.
gmDjinnGiveStub
Sint32 gmDjinnGiveStub(Sint32 unitId, Sint32 element, Sint32 djinnIndex)
Referenced by btDebugParamSetLoad(), mnDjinnMenuDrawStatPreview(), mnDjinnMenuRunPreview() and mnDjinnSetFoundFlagAndAdd().
Definition at line 81 of file stubs.h.
gmDjinnSetStub
Sint32 gmDjinnSetStub(Sint32 unitId, Sint32 element, Sint32 djinnIndex)
Referenced by btActionRunBuild(), btDebugParamSetLoad(), btDjinnRecoveryCountDown(), btDjinnRecoveryReconcile(), btProcessTurnEnd(), mnBattleDjinnMenuShowChangePreview(), mnDjinnMenuDrawStatPreview(), mnDjinnMenuRunPreview() and mnDjinnMenuRunScreen().
Definition at line 82 of file stubs.h.
gmDjinnPutOnStandbyStub
Uint32 gmDjinnPutOnStandbyStub(Sint32 unitId, Sint32 element, Sint32 djinnIndex)
Referenced by btUnitProcessActionEnd(), mnBattleDjinnMenuShowChangePreview(), mnDjinnMenuDrawStatPreview(), mnDjinnMenuRunPreview(), mnDjinnMenuRunScreen() and mnDjinnMenuSelectDjinn().
Definition at line 83 of file stubs.h.
gmDjinnRecoveryRemoveStub
Sint32 gmDjinnRecoveryRemoveStub(Sint32 unitId, Sint32 element, Sint32 djinnIndex)
Referenced by btActionRunBuild(), btDjinnRecoveryCountDown(), btDjinnRecoveryReconcile(), btProcessTurnEnd() and mnDjinnMenuRunScreen().
Definition at line 85 of file stubs.h.
gmDjinnRecoveryAddStandbyStub
Uint32 * gmDjinnRecoveryAddStandbyStub(Uint32 unitId, Uint32 element, Uint32 djinnIndex)
Referenced by btActionRunBuild(), btDjinnRecoveryReconcile(), mnDjinnMenuRunScreen() and mnDjinnMenuSelectDjinn().
Definition at line 87 of file stubs.h.
gmDjinnTransferStub
Sint32 gmDjinnTransferStub(Sint32 src, Sint32 element, Sint32 djinnIndex, Sint32 target)
Referenced by mnDjinnMenuRunScreen().
Definition at line 89 of file stubs.h.
gmSummonListLearnedStub
Sint32 gmSummonListLearnedStub(Uint8 *output)
Referenced by mnBattleSummonMenuRun().
Definition at line 93 of file stubs.h.
gmSummonDefinitionGetNearStub
const struct SUMMON_DEFINITION *gmSummonDefinitionGetNearStub(Uint32 summonId)
Returns a summon's definition, or NULL past the sixteenth
(gmSummonDefinitionGetNear).
Referenced by btActionRunBuild(), btSummonUpdateAvailability(), mnBattleCollectPartyCommands() and mnBattleSummonMenuRun().
Definition at line 96 of file stubs.h.
gmDjinnGetAbilityIdStub
Sint32 gmDjinnGetAbilityIdStub(Uint32 element, Uint32 djinni)
Referenced by btActionOrderSort(), btActionRunBuild() and mnBattleCollectPartyCommands().
Definition at line 97 of file stubs.h.
gmUnitLevelUpToStub
void gmUnitLevelUpToStub(Sint32 unitId, Sint32 targetLevel)
Referenced by btDebugParamSetLoad().
Definition at line 98 of file stubs.h.
gmUnitGetElementLevelStub
Sint32 gmUnitGetElementLevelStub(Sint32 unitId, Sint32 element)
Referenced by mnBattleStatusScreenRun() and mnStatusScreenDrawStatusPage().
Definition at line 99 of file stubs.h.
gmDjinnIsSetStub
Uint32 gmDjinnIsSetStub(Sint32 unitId, Sint32 element, Sint32 djinnIndex)
Referenced by btActionRunBuild(), mnBattleCollectPartyCommands() and mnBattleDjinnMenuShowChangePreview().
Definition at line 100 of file stubs.h.
gmDjinnCanSetStub
Sint32 gmDjinnCanSetStub(Sint32 unitId, Sint32 element, Sint32 djinnIndex)
Referenced by btActionRunBuild() and btDjinnRecoveryReconcile().
Definition at line 101 of file stubs.h.
gmItemCanUnitEquipStub
Sint32 gmItemCanUnitEquipStub(Sint32 unitId, Sint32 itemId)
Returns whether the character's class may equip the item, 0 for any unit past
the eight characters (gmItemCanUnitEquip).
Referenced by mnEquipmentMenuUpdateCompatibilityIndicators(), mnItemCheckBattleUse(), mnItemClassifyUseMode(), mnItemMenuBuildCommands(), mnItemMenuRunList(), mnShopConfirmEquip(), mnShopDrawEquipComparison() and mnStatusPanelDraw().
Definition at line 104 of file stubs.h.
gmItemIsCompatibleWithUnitStub
Sint32 gmItemIsCompatibleWithUnitStub(Sint32 unitId, Sint32 itemId)
Referenced by mnShopDrawParty() and mnShopSelectBuy().
Definition at line 105 of file stubs.h.
gmInventoryFindEquippedStub
Sint32 gmInventoryFindEquippedStub(Sint32 unitId, Sint32 type)
Referenced by btUnitGetWeaponSprite(), mnShopBuyDone(), mnShopConfirmEquip(), mnShopDrawEquipComparison() and mnShopRepairItem().
Definition at line 106 of file stubs.h.
gmPartyAdjustCoinsStub
Sint32 gmPartyAdjustCoinsStub(Sint32 amount)
Referenced by btAwardSpoils(), fdExamineMetatile(), fdLuckyDiceRun(), mnInnPlaySleep(), mnSanctumRunPartyService(), mnShopBuyDone(), mnShopRepairItem() and mnShopSellItem().
Definition at line 107 of file stubs.h.
gmItemGetEquipmentGroupStub
Sint32 gmItemGetEquipmentGroupStub(Sint32 itemId)
Referenced by mnShopListAvailableArtifacts() and mnShopSelectBuy().
Definition at line 108 of file stubs.h.
gmItemAdjustRareItemStockStub
Sint32 gmItemAdjustRareItemStockStub(Sint32 itemId, Sint32 delta)
Referenced by fdPartyInventoryGiveItem(), mnItemMenuRunCommands(), mnShopListAvailableArtifacts(), mnShopSelectBuy(), mnShopSelectBuyCount() and mnShopStockAddArtifacts().
Definition at line 109 of file stubs.h.
gmInventoryCountStub
Sint32 gmInventoryCountStub(Sint32 unitId)
Referenced by mnItemPickerRun(), mnItemPickerSelectItem(), mnShopChooseMember(), mnShopDrawMemberItems(), mnShopGiveGameTicket(), mnShopSelectBuy(), mnShopSelectRepair() and mnShopSelectSell().
Definition at line 110 of file stubs.h.
gmPartyInventoryHasSpaceStub
Sint32 gmPartyInventoryHasSpaceStub(void)
Definition at line 111 of file stubs.h.
gmUnitGetExperienceForLevelStub
Uint32 gmUnitGetExperienceForLevelStub(Sint32 unitId, Sint32 level)
Referenced by mnBattleStatusScreenRun() and mnStatusScreenShowMemberProgressMessage().
Definition at line 112 of file stubs.h.
gmPartyRestoreHpPpStub
void gmPartyRestoreHpPpStub(Sint32 cureConditions)
Definition at line 113 of file stubs.h.
gmPartyRestorePpInLighthouseStub
void gmPartyRestorePpInLighthouseStub(void)
Definition at line 114 of file stubs.h.
gmPartyStartChildhoodStub
void gmPartyStartChildhoodStub(void)
Definition at line 115 of file stubs.h.
gmPartyEndChildhoodStub
void gmPartyEndChildhoodStub(void)
Definition at line 116 of file stubs.h.
gmDjinnGiveToPartyStub
Sint32 gmDjinnGiveToPartyStub(Sint32 element, Sint32 djinn)
Referenced by fdDjinnJoinParty().
Definition at line 117 of file stubs.h.
gmPartySumDjinnCountsStub
Sint32 gmPartySumDjinnCountsStub(Sint32 element)
Referenced by mnBattleStatusScreenRun(), mnFieldMenuSelectCommand(), mnSaveBuildFileSummary(), mnStatusScreenDrawStatusPage(), mnStatusScreenRun() and mnStatusScreenRunStatusPage().
Definition at line 118 of file stubs.h.
gmPartyAdjustShopCreditStub
Sint32 gmPartyAdjustShopCreditStub(Sint32 amount)
Adds amount to the shop credit purchases build up and Game Tickets spend,
kept between 0 and COIN_MAX, and returns the new credit.
Referenced by mnShopBuyDone() and mnShopGiveGameTicket().
Definition at line 121 of file stubs.h.
gmPartyAdjustShopGiftsStub
Sint32 gmPartyAdjustShopGiftsStub(Sint32 amount)
Adds amount to the count of Game Tickets given, which stops at
SHOP_GIFTS_MAX and picks the next ticket's credit cost, and returns the new
count.
Referenced by mnShopGiveGameTicket().
Definition at line 125 of file stubs.h.
gmInventoryCheckDiscardStub
Sint32 gmInventoryCheckDiscardStub(Sint32 unitId, Sint32 slot)
Referenced by mnItemPickerDrawItem() and mnItemPickerSelectItem().
Definition at line 126 of file stubs.h.
gmInventoryDiscardStub
Sint32 gmInventoryDiscardStub(Sint32 unitId, Sint32 slot)
Referenced by fdPartyInventoryGiveItem() and mnShopSellItem().
Definition at line 127 of file stubs.h.
gmBattleIsReviveEffectStub
Sint32 gmBattleIsReviveEffectStub(Sint32 effectId)
Referenced by btAbilityApplyToTarget(), btActionRunBuild() and mnBattleClassifyEntryKind().
Definition at line 128 of file stubs.h.
gmUnitRefreshPsynergyStub
Sint32 gmUnitRefreshPsynergyStub(Sint32 unitId)
Referenced by mnItemMenuConfirmEquip() and mnItemMenuRunCommands().
Definition at line 129 of file stubs.h.
gmPartyGetAverageLevelStub
Uint32 gmPartyGetAverageLevelStub(void)
Referenced by fdEncounterCountStepsAndSelectFormation() and fdLuckyDiceRun().
Definition at line 130 of file stubs.h.
gmInventoryCountItemStub
Sint32 gmInventoryCountItemStub(Sint32 unitId, Sint32 itemId)
Referenced by fdPartyCheckItemLimit() and fdPartyInventoryGiveItem().
Definition at line 131 of file stubs.h.
gmPartyInventoryCountItemStub
Sint32 gmPartyInventoryCountItemStub(Sint32 itemId)
Referenced by fdLuckyWheelsRun() and fdLuckyWheelsUpdate().
Definition at line 132 of file stubs.h.
gmPartyInventoryDiscardStub
Sint32 gmPartyInventoryDiscardStub(Sint32 itemId)
Definition at line 133 of file stubs.h.
gmFlagRefreshLureCapStub
void gmFlagRefreshLureCapStub(void)
Referenced by fdEngineRun(), fdScriptEnd() and gmArrive().
Definition at line 134 of file stubs.h.
gmEquipmentGetUnleashRateBonusStub
Sint32 gmEquipmentGetUnleashRateBonusStub(struct UNIT *unit)
Referenced by btActionRunBuild().
Definition at line 135 of file stubs.h.
gmBuildStampGetTimeStub
Uint32 gmBuildStampGetTimeStub()
Referenced by mnFileListSelectFile() and mnSaveBuildFileSummary().
Definition at line 136 of file stubs.h.
gmPartyInventoryCountFreeSlotsStub
Sint32 gmPartyInventoryCountFreeSlotsStub(void)
Definition at line 137 of file stubs.h.
gmInventorySnapshotSaveStub
void gmInventorySnapshotSaveStub(void)
Definition at line 138 of file stubs.h.
gmInventorySnapshotRestoreStub
void gmInventorySnapshotRestoreStub(void)
Definition at line 139 of file stubs.h.