Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/junethack/normalize_death.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 /, '')
Expand Down