From 26f69d9c3cd05a87278bf1adb9f2ebd6cac80f25 Mon Sep 17 00:00:00 2001 From: RojjaCebolla <62170514+RojjaCebolla@users.noreply.github.com> Date: Sun, 11 Apr 2021 01:15:30 -0400 Subject: [PATCH] Consolidate more ghost death messages This should catch the following ghost deaths that were not caught in JNH previously: killed by ghost of Andries killed by ghost of Bert killed by ghost of Emile killed by ghost of Frans killed by ghost of Jiro killed by ghost of Karnov killed by ghost of Katrice killed by ghost of Kenny killed by ghost of Peter killed by ghost of Nick Danger killed by ghost of noty killed by ghost of D killed by ghost of DUCKSCUM killed by ghost of David killed by ghost of FIQ killed by ghost of Glenn Wichman killed by ghost of Kenneth Arnold killed by ghost of Michael Toy killed by ghost of Tangles killed by ghost of r e k t killed by ghost of scURSCum killed by ghost of scurscum --- lib/junethack/normalize_death.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/junethack/normalize_death.rb b/lib/junethack/normalize_death.rb index 086baa5c3..3a703aadc 100644 --- a/lib/junethack/normalize_death.rb +++ b/lib/junethack/normalize_death.rb @@ -50,7 +50,7 @@ def normalize_death monster: false end # consolidate ghosts - death = death.gsub(/ (an?|the) ghost of .+/, " a ghost") + death = death.gsub(/(an?|the?) ghost of .+/, " a ghost") # poisoned by a rotted {monster} corpse -> poisoned by a rotted corpse death = death.gsub(/poisoned by a rotted .* corpse/, "poisoned by a rotted corpse")