From fce04adc54d52185799156f098c394e6e65601c7 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 24 Apr 2024 12:26:39 -0400 Subject: [PATCH] Removed the star characters from brutality bonus announcement. --- .scripts/TobyCustom/Project_Brutality_Operation_MDK.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.scripts/TobyCustom/Project_Brutality_Operation_MDK.sh b/.scripts/TobyCustom/Project_Brutality_Operation_MDK.sh index 44df1c0..25a4c3a 100755 --- a/.scripts/TobyCustom/Project_Brutality_Operation_MDK.sh +++ b/.scripts/TobyCustom/Project_Brutality_Operation_MDK.sh @@ -31,8 +31,9 @@ grepStrings+=('-e' '^\*\*\* Brutality Bonus awarded!' '-e' 'Got the ' '-e' 'Picked up ' '-e' '^(Mega|Soul)sphere$' - '-e' '^Took ' + '-e' ' skeleton key secured!$' '-e' ' (SPLATTERED|was) .*(\.|!)' + '-e' '^Took ' '-e' '^Vanguard of the gods!$' '-e' "You've found " '-e' 'You (collected|got|found|picked up) ') @@ -41,6 +42,8 @@ antiGrepStrings+=('-e' 'key card' '-e' ' was .*\?' ) +sedStrings+=('-e' 's/*\{3\}//g') + # Launch the game and pipe things to be spoken through speech-dispatcher. # This also leaves the console output intact for people who may want to read it. exec stdbuf -oL ${gzdoom} ${gameOption[@]} | while IFS= read -r l ; do echo "$l" | { grep "${grepStrings[@]}" | grep "${antiGrepStrings[@]}" | sed "${sedStrings[@]}" | spd-say -e ${spd_module} ${spd_pitch} ${spd_rate} ${spd_voice} ${spd_volume} -- > /dev/null 2>&1; }; echo "$l";done