diff options
author | Peter Kohaut | 2019-01-13 20:38:17 +0100 |
---|---|---|
committer | Peter Kohaut | 2019-01-13 21:06:58 +0100 |
commit | eb84113222562a3da2161ca7190cfd26a57f8080 (patch) | |
tree | cbd5e8ab78fe12126e83edb4b5fabf617fb402a4 /engines/bladerunner/script/ai/klein.cpp | |
parent | efbcc757b62461914121e4e00891361994d90643 (diff) | |
download | scummvm-rg350-eb84113222562a3da2161ca7190cfd26a57f8080.tar.gz scummvm-rg350-eb84113222562a3da2161ca7190cfd26a57f8080.tar.bz2 scummvm-rg350-eb84113222562a3da2161ca7190cfd26a57f8080.zip |
BLADERUNNER: More variable names in the game scripts
Diffstat (limited to 'engines/bladerunner/script/ai/klein.cpp')
-rw-r--r-- | engines/bladerunner/script/ai/klein.cpp | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/engines/bladerunner/script/ai/klein.cpp b/engines/bladerunner/script/ai/klein.cpp index 897b3122f4..3f116d30b3 100644 --- a/engines/bladerunner/script/ai/klein.cpp +++ b/engines/bladerunner/script/ai/klein.cpp @@ -48,26 +48,39 @@ bool AIScriptKlein::Update() { Actor_Set_Goal_Number(kActorKlein, 1); return true; } - if (Actor_Clue_Query(kActorMcCoy, kClueOfficersStatement) && !Game_Flag_Query(kFlagPlayerHasOfficersStatement)) { + if ( Actor_Clue_Query(kActorMcCoy, kClueOfficersStatement) + && !Game_Flag_Query(kFlagPlayerHasOfficersStatement) + ) { Game_Flag_Set(kFlagPlayerHasOfficersStatement); } - if (Actor_Clue_Query(kActorMcCoy, kCluePaintTransfer) && !Game_Flag_Query(kFlagPlayerHasPaintTransfer)) { + if ( Actor_Clue_Query(kActorMcCoy, kCluePaintTransfer) + && !Game_Flag_Query(kFlagPlayerHasPaintTransfer) + ) { Game_Flag_Set(kFlagPlayerHasPaintTransfer); } - if (Actor_Clue_Query(kActorMcCoy, kClueShellCasings) && !Game_Flag_Query(kFlagPlayerHasShellCasings)) { + if ( Actor_Clue_Query(kActorMcCoy, kClueShellCasings) + && !Game_Flag_Query(kFlagPlayerHasShellCasings) + ) { Game_Flag_Set(kFlagPlayerHasShellCasings); } - if (Actor_Clue_Query(kActorMcCoy, kClueChromeDebris) && !Game_Flag_Query(kFlagPlayerHasChromeDebris)) { + if ( Actor_Clue_Query(kActorMcCoy, kClueChromeDebris) + && !Game_Flag_Query(kFlagPlayerHasChromeDebris) + ) { Game_Flag_Set(kFlagPlayerHasChromeDebris); } - if (Player_Query_Current_Scene() == kScenePS07 && Actor_Query_Friendliness_To_Other(kActorKlein, kActorMcCoy) < 35 && !Game_Flag_Query(kFlagKleinInsulted)) { + if ( Player_Query_Current_Scene() == kScenePS07 + && Actor_Query_Friendliness_To_Other(kActorKlein, kActorMcCoy) < 35 + && !Game_Flag_Query(kFlagKleinInsulted) + ) { AI_Countdown_Timer_Reset(kActorKlein, 2); AI_Countdown_Timer_Start(kActorKlein, 2, 5); Game_Flag_Set(kFlagKleinInsulted); return true; } if (Actor_Query_Goal_Number(kActorKlein) == 7) { - if (Actor_Query_Friendliness_To_Other(kActorKlein, kActorMcCoy) > 20 && Actor_Query_Friendliness_To_Other(kActorKlein, kActorMcCoy) < 40) { + if (Actor_Query_Friendliness_To_Other(kActorKlein, kActorMcCoy) > 20 + && Actor_Query_Friendliness_To_Other(kActorKlein, kActorMcCoy) < 40 + ) { Actor_Modify_Friendliness_To_Other(kActorKlein, kActorMcCoy, 2); } AI_Movement_Track_Flush(kActorKlein); @@ -79,7 +92,10 @@ bool AIScriptKlein::Update() { void AIScriptKlein::TimerExpired(int timer) { if (timer == 2) { - if (Game_Flag_Query(kFlagKleinInsulted) && !Game_Flag_Query(kFlagKleinInsultedTalk) && Actor_Query_Is_In_Current_Set(kActorKlein)) { + if ( Game_Flag_Query(kFlagKleinInsulted) + && !Game_Flag_Query(kFlagKleinInsultedTalk) + && Actor_Query_Is_In_Current_Set(kActorKlein) + ) { Actor_Face_Actor(kActorKlein, kActorMcCoy, true); Actor_Says(kActorKlein, 10, kAnimationModeTalk); Actor_Says(kActorMcCoy, 4120, kAnimationModeTalk); |