diff --git a/code/modules/martial_arts/martial.dm b/code/modules/martial_arts/martial.dm index cd8a4d8bf7a..a828fcdea2c 100644 --- a/code/modules/martial_arts/martial.dm +++ b/code/modules/martial_arts/martial.dm @@ -167,6 +167,7 @@ if(make_temporary) temporary = TRUE if(has_dirslash) + H.verbs |= /mob/living/carbon/human/proc/dirslash_enabling H.dirslash_enabled = TRUE if(temporary) if(H.mind.martial_art) @@ -182,6 +183,7 @@ return H.mind.martial_art = null // Remove reference H.verbs -= /mob/living/carbon/human/proc/martial_arts_help + H.verbs -= /mob/living/carbon/human/proc/dirslash_enabling H.dirslash_enabled = initial(H.dirslash_enabled) if(base) base.teach(H) @@ -197,6 +199,14 @@ return H.mind.martial_art.give_explaination(H) +/mob/living/carbon/human/proc/dirslash_enabling() + set name = "Enable/Disable direction slash" + set desc = "If direction slash is enabled, you can attack mobs, by clicking behind their backs" + set category = "Martial Arts" + dirslash_enabled = !dirslash_enabled + to_chat(src, span_notice("Directrion slash is [dirslash_enabled? "enabled" : "disabled"] now.")) + + /datum/martial_art/proc/give_explaination(user = usr) explaination_header(user) explaination_combos(user) diff --git a/code/modules/mob/living/living_defines.dm b/code/modules/mob/living/living_defines.dm index 938920ecaad..9b0fa217dd5 100644 --- a/code/modules/mob/living/living_defines.dm +++ b/code/modules/mob/living/living_defines.dm @@ -80,5 +80,5 @@ ///if this exists AND the normal sprite is bigger than 32x32, this is the replacement icon state (because health doll size limitations). the icon will always be screen_gen.dmi var/health_doll_icon - + ///If mob can attack by choosing direction var/dirslash_enabled = FALSE