Permalink
Browse files

status prop

  • Loading branch information...
1 parent cc10ae6 commit b77aff34261c56183e62de5adbb34d093222dc7e @lemming552 lemming552 committed Jan 10, 2014
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Lacuna/DB/Result/Map/Body/Planet.pm
@@ -529,9 +529,13 @@ around get_status => sub {
$out->{waste_hour} = $self->waste_hour;
$out->{happiness} = $self->happiness;
$out->{happiness_hour} = $self->happiness_hour;
- $out->{propaganda_boost} = $self->propaganda_boost;
if ($self->unhappy) {
$out->{unhappy_date} = format_date($self->unhappy_date);
+ $out->{propaganda_boost} = $self->propaganda_boost;
+ }
+ else {
+ $out->{propaganda_boost} = $self->propaganda_boost;
+ $out->{propaganda_boost} = 50 if ($out->{propaganda_boost} > 50);
}
}
elsif ($empire->alliance_id && $self->empire->alliance_id == $empire->alliance_id) {

0 comments on commit b77aff3

Please sign in to comment.