changeset 1390:4637f48d45f6

The 'sleep' command has its own messages for stopping / interrupting any ongoing skills or spells. Implement those.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 01 Jul 2011 02:04:04 +0300
parents d553cd34b656
children bb9c5005805e
files ggrtf.tf gm-magical.tf
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ggrtf.tf	Fri Jun 03 13:14:59 2011 +0300
+++ b/ggrtf.tf	Fri Jul 01 02:04:04 2011 +0300
@@ -1883,7 +1883,7 @@
 /def -i -p9999 -ag -mregexp -t"^(Your movement prevents you from doing the skill|You lose your concentration and cannot do the skill)\.$" gskill_interrupt1 =\
 	/set skill_st2=on%;/gskill_interrupt
 
-/def -i -p9999 -ag -mregexp -t"^You decide to change the skill to (a )?new one\.$" gskill_stopped1 =\
+/def -i -p9999 -ag -mregexp -t"^You (decide to change the skill to (a )?new one|stop concentrating on the skill and begin searching for a proper place to rest)\.$" gskill_stopped1 =\
 	/set skill_st2=off%;/gskill_stopped
 
 /def -i -p9999 -ag -mregexp -t"^You break your skill attempt\.$" gskill_stopped2 =\
--- a/gm-magical.tf	Fri Jun 03 13:14:59 2011 +0300
+++ b/gm-magical.tf	Fri Jul 01 02:04:04 2011 +0300
@@ -214,6 +214,9 @@
 /def -i -F -p9999 -ag -mregexp -t"^You interrupt the (spell|chant in order to start a new chant)\.$" gspell_stopped1 =\
 	/gspell_stopped
 
+/def -i -F -p9999 -ag -mregexp -t"^You stop concentrating on the spell and begin searching for a proper place to rest\.$" gspell_stopped2 =\
+	/gspell_stopped
+
 
 ;; Spell rounds
 /def -i -F -p9999 -mregexp -t"^([A-Z][a-z ]+): (#+)$" gspell_round =\