summaryrefslogtreecommitdiffstats
path: root/lib/colonial_twilight
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-11-08 22:14:00 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2023-11-08 22:14:00 +0100
commit44e9358965f31a6453fcb1cbaca6bcbb4756ba16 (patch)
treef8f786342936f5fb2d2824f791343777405c7f27 /lib/colonial_twilight
parent23781f394d16c84d761a1b9fa3ad1e65576a2a82 (diff)
downloadcolonial-twilight-44e9358965f31a6453fcb1cbaca6bcbb4756ba16.zip
colonial-twilight-44e9358965f31a6453fcb1cbaca6bcbb4756ba16.tar.gz
Spaces: fix #shift_terror
Diffstat (limited to 'lib/colonial_twilight')
-rw-r--r--lib/colonial_twilight/spaces.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/colonial_twilight/spaces.rb b/lib/colonial_twilight/spaces.rb
index 909e9db..6eaf3c7 100644
--- a/lib/colonial_twilight/spaces.rb
+++ b/lib/colonial_twilight/spaces.rb
@@ -147,9 +147,9 @@ module ColonialTwilight
end
def shift_terror(num = 1)
- @terror += num
+ raise "terror cant be negative" if @terror.zero? and num.negative?
- raise "terror cant be negative" if @terror.negative?
+ @terror += num
end
def resettled?