From 44e9358965f31a6453fcb1cbaca6bcbb4756ba16 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Wed, 8 Nov 2023 22:14:00 +0100 Subject: Spaces: fix #shift_terror --- lib/colonial_twilight/spaces.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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? -- cgit v1.2.3