Skip to content

Commit

Permalink
tweak: north star dirslash (ss220-space#3992)
Browse files Browse the repository at this point in the history
  • Loading branch information
ROdenFL authored and Etrnlmelancholy committed Jan 3, 2024
1 parent b44c056 commit 28c6f33
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions code/modules/clothing/gloves/miscellaneous.dm
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,28 @@
/obj/item/clothing/gloves/fingerless/rapid
var/accepted_intents = list(INTENT_HARM)
var/click_speed_modifier = CLICK_CD_RAPID
var/mob/living/owner

/obj/item/clothing/gloves/fingerless/rapid/equipped(mob/user, slot, initial)
owner = user
if(istype(owner) && slot == slot_gloves)
owner.dirslash_enabled = TRUE
owner.verbs += /obj/item/clothing/gloves/fingerless/rapid/proc/dirslash_enabling
. = ..()

/obj/item/clothing/gloves/fingerless/rapid/dropped(mob/user, silent)
owner.verbs -= /obj/item/clothing/gloves/fingerless/rapid/proc/dirslash_enabling
owner.dirslash_enabled = initial(owner.dirslash_enabled)
. = ..()

/obj/item/clothing/gloves/fingerless/rapid/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 = "Object"
var/mob/living/L = usr
L.dirslash_enabled = !L.dirslash_enabled
to_chat(src, span_notice("Directrion slash is [L.dirslash_enabled? "enabled" : "disabled"] now."))


/obj/item/clothing/gloves/fingerless/rapid/Touch(mob/living/target, proximity = TRUE)
var/mob/living/M = loc
Expand Down

0 comments on commit 28c6f33

Please sign in to comment.