From a1bb291149787ec26fbb548e1ec6c6a436ed5268 Mon Sep 17 00:00:00 2001 From: Ccomp5950 Date: Fri, 24 Jan 2014 23:56:38 -0600 Subject: [PATCH] Adding Cancel options for Adding Verbs. --- code/datums/datumvars.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm index ac0f7d18b13..c335a6f1fac 100644 --- a/code/datums/datumvars.dm +++ b/code/datums/datumvars.dm @@ -820,6 +820,7 @@ client usr << "This can only be done to instances of type /mob/living" return var/list/possibleverbs = list() + possibleverbs += "Cancel" // One for the top... possibleverbs += typesof(/mob/proc,/mob/verb,/mob/living/proc,/mob/living/verb) switch(H.type) if(/mob/living/carbon/human) @@ -829,12 +830,13 @@ client if(/mob/living/silicon/ai) possibleverbs += typesof(/mob/living/silicon/proc,/mob/living/silicon/ai/proc,/mob/living/silicon/ai/verb) possibleverbs -= H.verbs + possibleverbs += "Cancel" // ...And one for the bottom var/verb = input("Select a verb!", "Verbs",null) as anything in possibleverbs if(!H) usr << "Mob doesn't exist anymore" return - if(!verb) + if(!verb || verb == "Cancel") return else H.verbs += verb