Leash patch

Prevents someone from being leashed twice. There will be no more pet fueled singularities.
This commit is contained in:
JaySparrow
2020-07-11 18:52:18 -05:00
parent db69551756
commit 50ab355f81
+3
View File
@@ -87,6 +87,9 @@ Icons, maybe?
//Called when someone is clicked with the leash
/obj/item/leash/attack(mob/living/carbon/C, mob/living/user) //C is the target, user is the one with the leash
if(C.has_status_effect(/datum/status_effect/leash_pet)) //If the pet is already leashed, do not leash them. For the love of god.
to_chat(user, "<span class='notice'>[C] has already been leashed.</span>")
return
if(istype(C.get_item_by_slot(SLOT_NECK), /obj/item/clothing/neck/petcollar) || istype(C.get_item_by_slot(SLOT_NECK), /obj/item/electropack/shockcollar))
var/leashtime = 50
if(C.handcuffed)