summaryrefslogtreecommitdiffstats
path: root/lib/colonial_twilight/spaces.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/colonial_twilight/spaces.rb')
-rw-r--r--lib/colonial_twilight/spaces.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/colonial_twilight/spaces.rb b/lib/colonial_twilight/spaces.rb
index 6bf9384..909e9db 100644
--- a/lib/colonial_twilight/spaces.rb
+++ b/lib/colonial_twilight/spaces.rb
@@ -146,9 +146,19 @@ module ColonialTwilight
@forces.add(type, num)
end
+ def shift_terror(num = 1)
+ @terror += num
+
+ raise "terror cant be negative" if @terror.negative?
+ end
+
+ def resettled?
+ @resettled
+ end
+
def resettle!
raise "can't resettle a country " if country?
- raise "can't resettle a sector with a population > 1" if @pop != 1
+ raise "can't resettle a sector with a population =! 1" if @pop != 1
@pop = 0
@resettled = true