From efffa882975b0cba7a88d0d4a906641c58e76d43 Mon Sep 17 00:00:00 2001 From: RojjaCebolla <62170514+RojjaCebolla@users.noreply.github.com> Date: Sun, 11 Apr 2021 01:25:44 -0400 Subject: [PATCH] Reduce healer startscumming --- lib/junethack/normalize_death.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/junethack/normalize_death.rb b/lib/junethack/normalize_death.rb index 086baa5c3..c1f98a8d3 100644 --- a/lib/junethack/normalize_death.rb +++ b/lib/junethack/normalize_death.rb @@ -75,6 +75,9 @@ def normalize_death monster: false .gsub(/touching an artifact \([^)]+\)/, "touching an artifact") .gsub(/petrifying egg \([^)]+\)/, "petrifying egg") + # Artifact blasting, a very scummable death (smoky potion healers) + death = death.gsub(/touching (The)? [A-Z].+/, "touching an artifact") + if monster death = death.gsub(/[a-z]+ by( a| the)? ([A-Za-z][a-z]+)/, '\2') death = death.gsub(/^catching the eye of /, '')