BLADERUNNER: Use enum labels for two McCoy goals

This commit is contained in:
antoniou79 2021-12-12 13:31:40 +02:00
parent 992887810a
commit 17a1c5b2cc
2 changed files with 3 additions and 2 deletions

View File

@ -2842,6 +2842,7 @@ enum AffectionTowards {
enum GoalMcCoy {
kGoalMcCoyDefault = 0,
kGoalMcCoyDodge = 1,
kGoalMcCoyLeanOverAndSearch = 2, // unused, McCoy searching dumpster is done by Actor_Change_Animation_Mode(kActorMcCoy, 38);
kGoalMcCoyBB11GetUp = 100,
kGoalMcCoyBB11PrepareToRunAway = 101,
kGoalMcCoyBB11RunAway = 102,

View File

@ -371,7 +371,7 @@ bool AIScriptMcCoy::GoalChanged(int currentGoalNumber, int newGoalNumber) {
dodge();
return true;
case 2:
case kGoalMcCoyLeanOverAndSearch:
_animationFrame = 0;
_animationState = 47;
return true;
@ -535,7 +535,7 @@ bool AIScriptMcCoy::GoalChanged(int currentGoalNumber, int newGoalNumber) {
}
return true;
case 400:
case kGoalMcCoyStartChapter5:
Actor_Set_Health(kActorMcCoy, 50, 50);
Game_Flag_Set(kFlagKP02Available);
affectionTowards = Global_Variable_Query(kVariableAffectionTowards);