From 2f2699e91e1885f040353f7a1741450f2eb71a25 Mon Sep 17 00:00:00 2001 From: Daniel Crisman Date: Sat, 10 Nov 2012 22:16:33 -0500 Subject: [PATCH] Make it possible to silence "Excavator Deployed" --- lib/Lacuna/Role/Ship/Arrive/DeployExcavator.pm | 6 +++--- var/www/public/changes.txt | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Lacuna/Role/Ship/Arrive/DeployExcavator.pm b/lib/Lacuna/Role/Ship/Arrive/DeployExcavator.pm index 908a4322..c1c2e092 100644 --- a/lib/Lacuna/Role/Ship/Arrive/DeployExcavator.pm +++ b/lib/Lacuna/Role/Ship/Arrive/DeployExcavator.pm @@ -24,10 +24,10 @@ after handle_arrival_procedures => sub { if ($can && !$reason) { $archaeology->add_excavator($foreign_body)->update; $empire->send_predefined_message( - tags => ['Alert'], + tags => ['Excavator','Alert'], filename => 'excavator_deployed.txt', params => [$body->id, $body->name, $foreign_body->x, $foreign_body->y, $foreign_body->name, $self->name], - ); + ) unless ( $empire->skip_excavator_replace_msg ); $self->delete; # my $type = ref $foreign_body; # $type =~ s/^.*::(\w\d+)$/$1/; @@ -38,7 +38,7 @@ after handle_arrival_procedures => sub { else { my $message = (ref $reason eq 'ARRAY') ? $reason->[1] : 'We have encountered a glitch.'; $empire->send_predefined_message( - tags => ['Alert'], + tags => ['Excavator','Alert'], filename => 'cannot_deploy_excavator.txt', params => [$message, $foreign_body->x, $foreign_body->y, $foreign_body->name, $body->id, $body->name, $self->name], ); diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index bd666df2..96574ea4 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -6,6 +6,7 @@ - Mod: Excavators and ships on chain duty are targets for spies. - Add: Seized Stars and various spy diciplines now in stats. - Fix: Fissures have work timers turned off on creation. + - Mod: "Stop Excavator Replace Alert" now also stops Excavator Deployed Alert 3.0871: - Fix: Gratches Gauntlet now takes into account efficiency -- 2.54.0