From bd94a3c9f85b25b1e843c42c8b592fafaa3f3847 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Tue, 21 Sep 2010 17:46:34 -0500 Subject: [PATCH] excavator got a useful message when it doesn't find something --- lib/Lacuna/DB/Result/Ships/Excavator.pm | 7 +++++++ var/messages/glyph_not_discovered_by_excavator.txt | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 var/messages/glyph_not_discovered_by_excavator.txt diff --git a/lib/Lacuna/DB/Result/Ships/Excavator.pm b/lib/Lacuna/DB/Result/Ships/Excavator.pm index 6a7277bc..c65a13d4 100644 --- a/lib/Lacuna/DB/Result/Ships/Excavator.pm +++ b/lib/Lacuna/DB/Result/Ships/Excavator.pm @@ -54,6 +54,13 @@ sub arrive { $empire->add_medal($ore.'_glyph'); $body->add_news(70, sprintf('%s has uncovered a rare and ancient %s glyph on %s.',$empire->name, $ore, $remote_body->name)); } + else { + $empire->send_predefined_message( + tags => ['Correspondence'], + filename => 'glyph_not_discovered_by_excavator.txt', + params => [$remote_body->name, $body->name], + ); + } $self->delete; } diff --git a/var/messages/glyph_not_discovered_by_excavator.txt b/var/messages/glyph_not_discovered_by_excavator.txt new file mode 100644 index 00000000..d2977e97 --- /dev/null +++ b/var/messages/glyph_not_discovered_by_excavator.txt @@ -0,0 +1,7 @@ +Excavator Found Nothing +~~~ +The Excavator you sent to %s from %s found nothing interesting. + +Regards, + +Your Humble Assistant -- 2.54.0