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.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/colonial_twilight/spaces.rb b/lib/colonial_twilight/spaces.rb
index 83d9082..5c04250 100644
--- a/lib/colonial_twilight/spaces.rb
+++ b/lib/colonial_twilight/spaces.rb
@@ -15,6 +15,7 @@ module ColonialTwilight
def shift(val)
@v += val
raise "out of track #{@v}" if @v.negative? || @v > @max
+
@v
end
@@ -147,7 +148,7 @@ module ColonialTwilight
end
def shift_terror(num = 1)
- raise "terror cant be negative" if @terror.zero? and num.negative?
+ raise 'terror cant be negative' if @terror.zero? && num.negative?
@terror += num
end