diff --git a/lib/Lacuna/DB/Result/Map/Body/Planet.pm b/lib/Lacuna/DB/Result/Map/Body/Planet.pm index 4fd72267..86d273e7 100644 --- a/lib/Lacuna/DB/Result/Map/Body/Planet.pm +++ b/lib/Lacuna/DB/Result/Map/Body/Planet.pm @@ -1603,6 +1603,17 @@ sub toggle_supply_chain { $chain->target->update; $self->needs_recalc(1); $self->update; + my $empire = $self->empire; + if ($stalled + and defined $empire + and not $empire->check_for_repeat_message('supply_stalled'.$chain->id)) { + $empire->send_predefined_message( + filename => 'stalled_chain.txt', + params => [$self->id, $self->name, $chain->resource_type], + repeat_check=> 'supply_stalled'.$chain->id, + tags => ['Complaint','Alert'], + ); + } } } diff --git a/var/messages/stalled_chain.txt b/var/messages/stalled_chain.txt new file mode 100644 index 00000000..093d7e49 --- /dev/null +++ b/var/messages/stalled_chain.txt @@ -0,0 +1,7 @@ +Transport Workers Strike +~~~ +Transport workers on {Planet %s %s} went on strike today when stocks of %s ran out. A spokesman from the union said that Supply chains would not be restarted until such time as stocks were replenished and that furthermore the union would not be held responsible for any damage caused. + +Regards, + +Your Humble Assistant diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index 2153f7a1..322c7864 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -1,10 +1,11 @@ 3.0861: - Mod: Neutral Zone now enforced via Code. -- Add: Added water and energy to PCC and SCC Resources details -- Mod: Resource calculations now work correctly, but the proof is too large to fit in the margin. -- Mod: Supply chains that stall should no longer cause damage on the sending colony -- Fix: Glyphs for missions properly checked and used. - + - Add: Added water and energy to PCC and SCC Resources details + - Mod: Resource calculations now work correctly, but the proof is too large to fit in the margin. + - Mod: Supply chains that stall should no longer cause damage on the sending colony + - Fix: Glyphs for missions properly checked and used. + - Add: Supply chains that stall send a message + 3.0860: - Fix: Scows deliver the amount of waste in their payload, not capacity. - Fix: Space Station Command accessible via UI.