From 812eb88f55b28120008169b19cd4508efcf24894 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Tue, 13 Jan 2009 18:58:28 +0000 Subject: [PATCH] Fix attributes when computers people starve of soldiers leave. --- xtrn/knk/knk.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xtrn/knk/knk.js b/xtrn/knk/knk.js index 21d485d6cf..bd16cea087 100644 --- a/xtrn/knk/knk.js +++ b/xtrn/knk/knk.js @@ -282,10 +282,10 @@ function Player_produce() if(this.soldiers) { if(this.gold < this.soldiers) { - console.attributes=LIGHTGREEN; + console.attributes |= HIGH; console.writeln("* "+(this.soldiers-this.gold)+" of "+this.refer_posessive+" men defected from not being paid!!"); this.soldiers=this.gold; - console.attributes=GREEN; + console.attributes &= ~HIGH; } } if(this.soldiers) { @@ -304,10 +304,10 @@ function Player_produce() if(this.soldiers) { var canfeed=parseInt(this.food/2); if(canfeed < this.soldiers) { - console.attributes=LIGHTGREEN; + console.attributes |= HIGH; console.writeln("* "+(this.soldiers-canfeed)+" of "+this.refer_posessive+" soldiers have starved to death!!"); this.soldiers=canfeed; - console.attributes=GREEN; + console.attributes &= ~HIGH; } } tmp=this.soldiers*2; @@ -317,10 +317,10 @@ function Player_produce() if(this.civilians) { if(this.food < this.civilians) { - console.attributes=LIGHTGREEN; + console.attributes |= HIGH; console.writeln("* "+(this.civilians-this.food)+" of "+this.refer_posessive+" citizens have starved to death!!"); this.civilians=this.food; - console.attributes=GREEN; + console.attributes &= ~HIGH; } } if(this.civilians) -- GitLab