From f54249e2a7782044053b2ec77fbeb937ca1a1a00 Mon Sep 17 00:00:00 2001 From: lemming552 Date: Wed, 16 May 2012 23:45:46 -0600 Subject: [PATCH] Bottom limit of neg happy per hour. --- lib/Lacuna/DB/Result/Map/Body/Planet.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Lacuna/DB/Result/Map/Body/Planet.pm b/lib/Lacuna/DB/Result/Map/Body/Planet.pm index aa990e28..e7ccc21d 100644 --- a/lib/Lacuna/DB/Result/Map/Body/Planet.pm +++ b/lib/Lacuna/DB/Result/Map/Body/Planet.pm @@ -1097,6 +1097,7 @@ sub recalc_stats { else { $stats{happiness_hour} -= $plot_tax; } + $stats{happiness_hour} = -100_000_000_000 if ($stats{happiness_hour} < -100_000_000_000); } $self->update(\%stats); -- 2.51.2