diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-11-08 22:14:00 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-11-08 22:14:00 +0100 |
commit | 44e9358965f31a6453fcb1cbaca6bcbb4756ba16 (patch) | |
tree | f8f786342936f5fb2d2824f791343777405c7f27 /lib/colonial_twilight/spaces.rb | |
parent | 23781f394d16c84d761a1b9fa3ad1e65576a2a82 (diff) | |
download | colonial-twilight-44e9358965f31a6453fcb1cbaca6bcbb4756ba16.zip colonial-twilight-44e9358965f31a6453fcb1cbaca6bcbb4756ba16.tar.gz |
Spaces: fix #shift_terror
Diffstat (limited to 'lib/colonial_twilight/spaces.rb')
-rw-r--r-- | lib/colonial_twilight/spaces.rb | 4 |
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? |