Repository navigation
Conversation
Rename placeholder functions and members used by the second Ghirahim fight, including the ones it shares with the base class, the first fight and the knife actor. Replace magic numbers with enums for the collision mode, current move, knife wait type, knife line mask and knife formation. No change to generated code: the rebuilt objects match the previous build in section contents and relocations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Names the placeholder functions and members used by the second Ghirahim fight (
dAcGirahimu2_c), and replaces the magic numbers they relied on with enums. Because much of the fight lives in shared code, the renames also touchdAcGirahimuBase_c,dAcGirahimu_canddAcObjGirahimuKnife_c.This is a naming-only change with no change to generated code.
Functions
checkCollision*(Catch,LinkSword,Run,RunAttack,SwordAttack,Evade,Stunned,Escape,SwordGuard,TwoSwordAttack,DualSwordAttack).checkCollisionByModedispatches to them before the state runs, andapplyCollisionModePostruns after it.vt_0x1DC–vt_0x230are named, e.g.updateCommon,checkCollisionCommon,configurePoseShield,setSwordPoseAnm,vanishKnives,changeStateAfterFrontWarp,checkCreateKnife,changeStateNext,setWalkAnm.determineNextMove,isCutAlongKnifeLine,setGuardArmPose,configureGuardBodyShield,spawnSpinKnives.walkTowardPlayer,updateSwordTracking,configureRunShield,callback_c::updateSlerpFactor.shootForward,shootAtPlayer.symbols.txtis updated to match for all four RELs.Enums
CollisionMode_edAcGirahimuBase_cfield_0xD6C, nowmCollisionModeMove_edAcGirahimuBase_cmCurrentAttackKnifeLine_edAcGirahimu2_cfield_0x2210, nowmKnifeLineMaskKnifeFormation_edAcGirahimu2_cmKnifeVolleyStateWaitType_edAcObjGirahimuKnife_cmStateKNIFE_COUNTandKNIFE_VOLLEY_SIZEalso replace the literal 15 and 5 used formKnives.Fields
mTrackSnapTimer,mForceGuardTimer,mHandEffectTimer,mLookAtOverrideTimer,mCatchTimer,mTgDisableTimer,mHandHoldTimer,mPrevWarpScale,mbAngleFollowsRotation,mbSubstateFlag.callback_c:mbTrackSword,mbTrackSwordStart,mbLookAtTarget,mHandRTargetDistance,mHandRRetargetTimer.mSpinKnifePhase,mKnifeLineMask.mOwnerPosition,mOwnerHandPosition,mOwnerRotation,mbVanish,mbSpinning.Notes for review
KNIFE_FORMATION_VERTICALandKNIFE_FORMATION_VOLLEYare both 2 on purpose:mKnifeVolleyStateis reused with a different meaning in each half of the fight.COLLISION_MODE_UNUSED_10has no handler in either fight.mbSubstateFlag(its meaning depends on the state) andmTgDisableTimer.