From e857f53d51c5c45ea9dbc6aa4b2402677ee95c7d Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sat, 1 Sep 2012 17:31:21 -0500 Subject: [PATCH] inverted downgrade, and fixed formatting --- lib/Lacuna/DB/Result/Building/Permanent/Fissure.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Lacuna/DB/Result/Building/Permanent/Fissure.pm b/lib/Lacuna/DB/Result/Building/Permanent/Fissure.pm index 2018fd3c..31b4dcb2 100644 --- a/lib/Lacuna/DB/Result/Building/Permanent/Fissure.pm +++ b/lib/Lacuna/DB/Result/Building/Permanent/Fissure.pm @@ -44,8 +44,8 @@ before 'can_demolish' => sub { before 'can_downgrade' => sub { my $self = shift; - if ($self->has_resources_to_fill_in_fissure) { - confess [1013, 'You need '.$self->cost_to_fill_in_fissure.' in ore to fill in the fissure.']; + unless ($self->has_resources_to_fill_in_fissure) { + confess [1013, 'You need '.int($self->cost_to_fill_in_fissure).' in ore to fill in the fissure.']; } }; -- 2.51.2