diff options
Diffstat (limited to 'engines/bladerunner/script/ai')
-rw-r--r-- | engines/bladerunner/script/ai/dektora.cpp | 2 | ||||
-rw-r--r-- | engines/bladerunner/script/ai/generic_walker_a.cpp | 6 | ||||
-rw-r--r-- | engines/bladerunner/script/ai/gordo.cpp | 6 | ||||
-rw-r--r-- | engines/bladerunner/script/ai/insect_dealer.cpp | 2 | ||||
-rw-r--r-- | engines/bladerunner/script/ai/izo.cpp | 2 | ||||
-rw-r--r-- | engines/bladerunner/script/ai/lucy.cpp | 2 | ||||
-rw-r--r-- | engines/bladerunner/script/ai/marcus.cpp | 2 | ||||
-rw-r--r-- | engines/bladerunner/script/ai/mccoy.cpp | 4 |
8 files changed, 13 insertions, 13 deletions
diff --git a/engines/bladerunner/script/ai/dektora.cpp b/engines/bladerunner/script/ai/dektora.cpp index 1e6422873c..690c1e9916 100644 --- a/engines/bladerunner/script/ai/dektora.cpp +++ b/engines/bladerunner/script/ai/dektora.cpp @@ -57,7 +57,7 @@ bool AIScriptDektora::Update() { && Player_Query_Current_Scene() != kSceneAR02 ) { if (Game_Flag_Query(kFlagAR02Entered)) { - Item_Remove_From_World(kItemScrorpions); + Item_Remove_From_World(kItemScorpions); } Game_Flag_Set(kFlagAR02DektoraBoughtScorpions); } diff --git a/engines/bladerunner/script/ai/generic_walker_a.cpp b/engines/bladerunner/script/ai/generic_walker_a.cpp index b764f77d83..ddf566573b 100644 --- a/engines/bladerunner/script/ai/generic_walker_a.cpp +++ b/engines/bladerunner/script/ai/generic_walker_a.cpp @@ -94,7 +94,7 @@ void AIScriptGenericWalkerA::ReceivedClue(int clueId, int fromActorId) { void AIScriptGenericWalkerA::ClickedByPlayer() { Actor_Face_Actor(kActorMcCoy, kActorGenwalkerA, true); if (Actor_Query_Goal_Number(kActorGenwalkerA) == 200) { - Actor_Says(kActorMcCoy, 5290, 18); + Actor_Says(kActorMcCoy, 5290, 18); // kActorGenwalkerA here is actually the tracking gun in Bullet Bob's } else { switch (Random_Query(1, 10)) { case 1: @@ -256,9 +256,9 @@ bool AIScriptGenericWalkerA::UpdateAnimation(int *animation, int *frame) { } break; case kGenericWalkerAStatesGun: - *animation = 440; + *animation = kModelAnimationBulletBobsTrackingGun; ++_animationFrame; - if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(440)) { + if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(kModelAnimationBulletBobsTrackingGun)) { _animationFrame = 0; } break; diff --git a/engines/bladerunner/script/ai/gordo.cpp b/engines/bladerunner/script/ai/gordo.cpp index 974629b4d0..a6b478a4b0 100644 --- a/engines/bladerunner/script/ai/gordo.cpp +++ b/engines/bladerunner/script/ai/gordo.cpp @@ -280,7 +280,7 @@ void AIScriptGordo::Retired(int byActorId) { Actor_Voice_Over(1410, kActorVoiceOver); Actor_Voice_Over(1430, kActorVoiceOver); Actor_Voice_Over(1440, kActorVoiceOver); - if (Query_Difficulty_Level() > 0) { + if (Query_Difficulty_Level() > kGameDifficultyEasy) { Global_Variable_Increment(kVariableChinyen, 200); } Player_Gains_Control(); @@ -1130,9 +1130,9 @@ bool AIScriptGordo::UpdateAnimation(int *animation, int *frame) { if (Game_Flag_Query(kFlagNR02GordoLeaveLighter)) { Game_Flag_Reset(kFlagNR02GordoLeaveLighter); if (Game_Flag_Query(kFlagGordoIsReplicant)) { - Item_Add_To_World(kItemGordosLighter1, 953, kSetNR02, 148.94f, 22.19f, 476.1f, 0, 6, 6, false, true, false, false); + Item_Add_To_World(kItemGordosLighterReplicant, kModelAnimationGordosLighterReplicant, kSetNR02, 148.94f, 22.19f, 476.1f, 0, 6, 6, false, true, false, false); } else { - Item_Add_To_World(kItemGordosLighter2, 954, kSetNR02, 148.94f, 22.19f, 476.1f, 0, 6, 6, false, true, false, false); + Item_Add_To_World(kItemGordosLighterHuman, kModelAnimationGordosLighterHuman, kSetNR02, 148.94f, 22.19f, 476.1f, 0, 6, 6, false, true, false, false); } Actor_Set_Goal_Number(kActorGordo, kGoalGordoNR02GoToPodium); } diff --git a/engines/bladerunner/script/ai/insect_dealer.cpp b/engines/bladerunner/script/ai/insect_dealer.cpp index 129a8e3535..245aebbafe 100644 --- a/engines/bladerunner/script/ai/insect_dealer.cpp +++ b/engines/bladerunner/script/ai/insect_dealer.cpp @@ -113,7 +113,7 @@ bool AIScriptInsectDealer::GoalChanged(int currentGoalNumber, int newGoalNumber) if (!Game_Flag_Query(kFlagAR02DektoraBoughtScorpions)) { Game_Flag_Set(kFlagAR02DektoraBoughtScorpions); - Item_Remove_From_World(kItemScrorpions); + Item_Remove_From_World(kItemScorpions); } } diff --git a/engines/bladerunner/script/ai/izo.cpp b/engines/bladerunner/script/ai/izo.cpp index 0e0bb54934..d0fa07bfe0 100644 --- a/engines/bladerunner/script/ai/izo.cpp +++ b/engines/bladerunner/script/ai/izo.cpp @@ -738,7 +738,7 @@ bool AIScriptIzo::UpdateAnimation(int *animation, int *frame) { _animationFrame = 0; _animationState = 0; Game_Flag_Set(kFlagUnused407); - Item_Add_To_World(kItemCamera, 977, kSetHC01_HC02_HC03_HC04, 597.46f, 0.14f, 49.92f, 0, 12, 12, false, true, false, false); + Item_Add_To_World(kItemCamera, kModelAnimationIzoCamera, kSetHC01_HC02_HC03_HC04, 597.46f, 0.14f, 49.92f, 0, 12, 12, false, true, false, false); Actor_Set_Goal_Number(kActorIzo, kGoalIzoRunToUG02); } break; diff --git a/engines/bladerunner/script/ai/lucy.cpp b/engines/bladerunner/script/ai/lucy.cpp index 52b2b80934..e4b92ab4a9 100644 --- a/engines/bladerunner/script/ai/lucy.cpp +++ b/engines/bladerunner/script/ai/lucy.cpp @@ -280,7 +280,7 @@ void AIScriptLucy::Retired(int byActorId) { Non_Player_Actor_Combat_Mode_On(kActorSteele, kActorCombatStateUncover, true, kActorMcCoy, 15, kAnimationModeCombatIdle, kAnimationModeCombatWalk, kAnimationModeCombatRun, 0, 0, 100, 25, 300, false); } - if (Query_Difficulty_Level() != 0 + if (Query_Difficulty_Level() != kGameDifficultyEasy && byActorId == kActorMcCoy && Game_Flag_Query(kFlagLucyIsReplicant) ) { diff --git a/engines/bladerunner/script/ai/marcus.cpp b/engines/bladerunner/script/ai/marcus.cpp index 1c8eb15a8d..5e1e5d81ba 100644 --- a/engines/bladerunner/script/ai/marcus.cpp +++ b/engines/bladerunner/script/ai/marcus.cpp @@ -91,7 +91,7 @@ bool AIScriptMarcus::GoalChanged(int currentGoalNumber, int newGoalNumber) { } bool AIScriptMarcus::UpdateAnimation(int *animation, int *frame) { - *animation = 981; + *animation = kModelAnimationMarcusDead; *frame = 0; return true; diff --git a/engines/bladerunner/script/ai/mccoy.cpp b/engines/bladerunner/script/ai/mccoy.cpp index 2d99d4b1b8..cafca8a1a7 100644 --- a/engines/bladerunner/script/ai/mccoy.cpp +++ b/engines/bladerunner/script/ai/mccoy.cpp @@ -139,7 +139,7 @@ void AIScriptMcCoy::ReceivedClue(int clueId, int fromActorId) { case kClueKingstonKitchenBox1: case kClueKingstonKitchenBox2: - if (Query_Difficulty_Level() == 0) { + if (Query_Difficulty_Level() == kGameDifficultyEasy) { Spinner_Set_Selectable_Destination_Flag(kSpinnerDestinationAnimoidRow, true); } break; @@ -1217,7 +1217,7 @@ bool AIScriptMcCoy::UpdateAnimation(int *animation, int *frame) { _animationLoopLength = 0; _animationState = 0; Player_Gains_Control(); - Item_Add_To_World(kItemChair, 982, kSetCT08_CT51_UG12, -110.0, 0.0, -192.0, 0, 48, 32, false, true, false, false); + Item_Add_To_World(kItemChair, kModelAnimationYukonHotelChair, kSetCT08_CT51_UG12, -110.0, 0.0, -192.0, 0, 48, 32, false, true, false, false); } break; |