mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-08-22 12:16:13 +01:00
Can now remove genital equipment from other people.
Can now remove genital equipment from other people. + bug fix with limiter
This commit is contained in:
@@ -21,9 +21,9 @@
|
||||
"<span class='warning'>[user] is trying to put [src] on you!</span>")
|
||||
if(!do_mob(user, C, 4 SECONDS))//warn them and have a delay of 5 seconds to apply.
|
||||
return
|
||||
SEND_SIGNAL(src, "attach_genital_equipment",S)
|
||||
if(!user.transferItemToLoc(src, P)) //check if you can put it on
|
||||
return
|
||||
SEND_SIGNAL(src, "attach_genital_equipment",T)
|
||||
P.equipment = src
|
||||
to_chat(user, "<span class='love'>You attach [src] to [T]'s [P.name].</span>")
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
|
||||
/obj/item/equipment/penis/ring/fancy
|
||||
name = "fancy cock ring"
|
||||
name = "fancy ribboned cock ring"
|
||||
desc = "a cock ring with a white bowtie, how cute."
|
||||
icon_state = "cockring_fancy"
|
||||
|
||||
@@ -63,18 +63,20 @@
|
||||
RegisterSignal(src, "attach_genital_equipment", .proc/attach)
|
||||
RegisterSignal(src, "detach_genital_equipment", .proc/detach)
|
||||
|
||||
/obj/item/equipment/penis/ring/limiter/proc/attach(mob/living/user)
|
||||
/obj/item/equipment/penis/ring/limiter/proc/attach(mob/living/carbon/human/U)
|
||||
playsound(usr, 'sound/effects/magic.ogg', 100, 1)
|
||||
var/mob/living/carbon/human/H = usr
|
||||
var/obj/item/organ/genital/penis/P = H.getorganslot("penis")
|
||||
P.limited = TRUE
|
||||
P.update_appearance()
|
||||
H.update_genitals()
|
||||
to_chat(usr, "<span class='notice'>[U]</span>")
|
||||
var/obj/item/organ/genital/penis/P = loc
|
||||
if(P)
|
||||
P.limited = TRUE
|
||||
P.update_appearance()
|
||||
U.update_genitals()
|
||||
|
||||
/obj/item/equipment/penis/ring/limiter/proc/detach(mob/living/user)
|
||||
/obj/item/equipment/penis/ring/limiter/proc/detach(mob/living/carbon/human/U)
|
||||
playsound(usr, 'sound/effects/magic.ogg', 100, 1)
|
||||
var/mob/living/carbon/human/H = usr
|
||||
var/obj/item/organ/genital/penis/P = H.getorganslot("penis")
|
||||
P.limited = FALSE
|
||||
P.update_appearance()
|
||||
H.update_genitals()
|
||||
to_chat(usr, "<span class='notice'>[U]</span>")
|
||||
var/obj/item/organ/genital/penis/P = loc
|
||||
if(P)
|
||||
P.limited = FALSE
|
||||
P.update_appearance()
|
||||
U.update_genitals()
|
||||
|
||||
Reference in New Issue
Block a user