From 05bcfd4ad6db7dbfe9b1cb6368e17f88dcb7c396 Mon Sep 17 00:00:00 2001 From: k-bar <92504151+k-bar@users.noreply.github.com> Date: Sat, 25 Jun 2022 14:30:41 +0200 Subject: [PATCH] FallenFear retreat distance based on level --- Source/monster.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index 3828c09b8..fec0e143c 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -4528,11 +4528,7 @@ void M_FallenFear(Point position) if (monster._mAi != AI_FALLEN || monster._mhitpoints >> 6 <= 0) continue; - int intelligenceFactor = monster._mint; - if (monster.MType->mtype == MT_DFALLSP) - intelligenceFactor--; - int runDistance = std::max((7 - 2 * intelligenceFactor), 2); - + int runDistance = std::max((8 - monster.MData->mLevel), 2); monster._mgoal = MGOAL_RETREAT; monster._mgoalvar1 = runDistance; monster._mgoalvar2 = static_cast(GetDirection(position, monster.position.tile));