Skip to content

Commit

Permalink
Fix #135 typo AITTACTICS => AITACTICS
Browse files Browse the repository at this point in the history
  • Loading branch information
Lectem committed Jan 4, 2024
1 parent 963ac23 commit 3f7e8cb
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 60 deletions.
4 changes: 2 additions & 2 deletions source/D2Game/include/AI/AiTactics.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ int32_t __fastcall D2GAME_AICORE_Escape_6FCD0560(D2GameStrc* pGame, D2UnitStrc*
//D2Game.0x6FCD06D0
int32_t __fastcall sub_6FCD06D0(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc* pTarget, int32_t nMaxDistance, int32_t bDeleteAiEventCallback);
//D2Game.0x6FCD0840
int32_t __fastcall AITTACTICS_WalkCloseToUnit(D2GameStrc* pGame, D2UnitStrc* pUnit, int32_t nMaxDistance);
int32_t __fastcall AITACTICS_WalkCloseToUnit(D2GameStrc* pGame, D2UnitStrc* pUnit, int32_t nMaxDistance);
//D2Game.0x6FCD09D0
int32_t __fastcall sub_6FCD09D0(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc* pTarget, int32_t nMaxDistance);
//D2Game.0x6FCD0B60
int32_t __fastcall D2GAME_AICORE_WalkToOwner_6FCD0B60(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc* pOwner, int32_t nMaxDistance);
//D2Game.0x6FCD0D00
int32_t __fastcall AITTACTICS_RunCloseToTargetUnit(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc* pTarget, int32_t nMaxDistance);
int32_t __fastcall AITACTICS_RunCloseToTargetUnit(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc* pTarget, int32_t nMaxDistance);
//D2Game.0x6FCD0E80
int32_t __fastcall sub_6FCD0E80(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc* pTarget, int32_t a4, int32_t bDeleteAiEventCallback);
//D2Game.0x6FCD0F10
Expand Down
2 changes: 1 addition & 1 deletion source/D2Game/src/AI/AiBaal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ void __fastcall AIBAAL_MainSkillHandler(D2GameStrc* pGame, D2UnitStrc* pUnit, D2
}
case 4:
{
AITTACTICS_WalkCloseToUnit(pGame, pUnit, 16);
AITACTICS_WalkCloseToUnit(pGame, pUnit, 16);
return;
}
case 5:
Expand Down
14 changes: 7 additions & 7 deletions source/D2Game/src/AI/AiTactics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ D2UnitStrc* __fastcall sub_6FCCF9D0(D2GameStrc* pGame, D2UnitStrc* pUnit, D2AiCo
D2MonStats2Txt* pMonStats2TxtRecord = MONSTERREGION_GetMonStats2TxtRecord(pUnit->dwClassId);
if (pMonStats2TxtRecord && pMonStats2TxtRecord->dwModeFlags & gdwBitMasks[MONMODE_WALK])
{
AITTACTICS_WalkCloseToUnit(pGame, pUnit, 5u);
AITACTICS_WalkCloseToUnit(pGame, pUnit, 5u);
return nullptr;
}
}
Expand Down Expand Up @@ -79,7 +79,7 @@ D2UnitStrc* __fastcall sub_6FCCFC00(D2GameStrc* pGame, D2UnitStrc* pUnit, D2AiCo
D2MonStats2Txt* pMonStats2TxtRecord = MONSTERREGION_GetMonStats2TxtRecord(pUnit->dwClassId);
if (pMonStats2TxtRecord && pMonStats2TxtRecord->dwModeFlags & gdwBitMasks[MONMODE_WALK])
{
AITTACTICS_WalkCloseToUnit(pGame, pUnit, 5u);
AITACTICS_WalkCloseToUnit(pGame, pUnit, 5u);
return nullptr;
}
}
Expand Down Expand Up @@ -360,7 +360,7 @@ int32_t __fastcall AITACTICS_MoveToTarget(D2GameStrc* pGame, D2UnitStrc* pUnit,
}
else
{
AITTACTICS_WalkCloseToUnit(pGame, pUnit, 4u);
AITACTICS_WalkCloseToUnit(pGame, pUnit, 4u);
}

return 1;
Expand Down Expand Up @@ -500,7 +500,7 @@ int32_t __fastcall sub_6FCD06D0(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc
}

//D2Game.0x6FCD0840
int32_t __fastcall AITTACTICS_WalkCloseToUnit(D2GameStrc* pGame, D2UnitStrc* pUnit, int32_t nMaxDistance)
int32_t __fastcall AITACTICS_WalkCloseToUnit(D2GameStrc* pGame, D2UnitStrc* pUnit, int32_t nMaxDistance)
{
int32_t nOffsetX = 0;
int32_t nOffsetY = 0;
Expand Down Expand Up @@ -535,22 +535,22 @@ int32_t __fastcall AITTACTICS_WalkCloseToUnit(D2GameStrc* pGame, D2UnitStrc* pUn
//D2Game.0x6FCD09D0
int32_t __fastcall sub_6FCD09D0(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc* pTarget, int32_t nMaxDistance)
{
return AITTACTICS_WalkCloseToUnit(pGame, pUnit, nMaxDistance);
return AITACTICS_WalkCloseToUnit(pGame, pUnit, nMaxDistance);
}

//D2Game.0x6FCD0B60
int32_t __fastcall D2GAME_AICORE_WalkToOwner_6FCD0B60(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc* pOwner, int32_t nMaxDistance)
{
if (!pOwner)
{
return AITTACTICS_WalkCloseToUnit(pGame, pUnit, 2);
return AITACTICS_WalkCloseToUnit(pGame, pUnit, 2);
}

return sub_6FCD09D0(pGame, pUnit, pOwner, nMaxDistance);
}

//D2Game.0x6FCD0D00
int32_t __fastcall AITTACTICS_RunCloseToTargetUnit(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc* pTarget, int32_t nMaxDistance)
int32_t __fastcall AITACTICS_RunCloseToTargetUnit(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc* pTarget, int32_t nMaxDistance)
{
int32_t nOffsetX = 0;
int32_t nOffsetY = 0;
Expand Down
Loading

0 comments on commit 3f7e8cb

Please sign in to comment.