Browse Source

Turn duration no longer necessary for debug - turn duration was solved forever.

Reddo 5 years ago
parent
commit
4690d54899
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/World/EveryTurn.ts
  2. 1 1
      app/World/Settings.ts

+ 1 - 1
app/World/EveryTurn.ts

@@ -44,7 +44,7 @@ module EveryTurn {
                 let person = people[i];
                 let person = people[i];
                 if (person.getHealthOnScale() > 0) {
                 if (person.getHealthOnScale() > 0) {
                     let action = await people[i].AI.execute();
                     let action = await people[i].AI.execute();
-                    let visible = people[i].isVisibleTo(WorldState.player);
+                    let visible = people[i].isVisibleTo(WorldState.player); // Was the actor visible BEFORE doing the action?
                     if (action == undefined) action = new ActionWait(person);
                     if (action == undefined) action = new ActionWait(person);
                     let printValue: Say = await action.execute();
                     let printValue: Say = await action.execute();
 
 

+ 1 - 1
app/World/Settings.ts

@@ -3,7 +3,7 @@ module Settings {
     var debugEmpty = () => {};
     var debugEmpty = () => {};
 
 
     export var hardDebug = false;
     export var hardDebug = false;
-    export var sayTurnTime = true;
+    export var sayTurnTime = false;
 
 
     export function setDebug (isDebug : boolean) {
     export function setDebug (isDebug : boolean) {
         if (isDebug) {
         if (isDebug) {