Code improvements

Thanks to @Ghommie for the suggestion.
This commit is contained in:
Ragolution
2019-01-09 22:07:11 -05:00
parent 2ab86321c3
commit 77a28abccf
@@ -142,6 +142,15 @@ obj/item/dildo/custom
user.adjustOxyLoss(200)
user.death(0)
/obj/item/dildo/suicide_act(mob/living/user)
user.visible_message("<span class='suicide'>[user] tears-up and gags as they shove [src] down their throat! Their face is turning blue! It looks like [user.p_theyre()] trying to commit suicide!</span>")
playsound(loc, 'sound/weapons/gagging.ogg', 50, 1, -1)
user.Stun(150)
user.adjust_blurriness(8)
user.adjust_eye_damage(10)
addtimer(CALLBACK(src, .proc/manual_suicide, user), 15)
return MANUAL_SUICIDE
/obj/item/dildo/knotted/suicide_act(mob/living/user)
user.visible_message("<span class='suicide'>[user] tears-up and gags as they shove [src] down their throat! They swallowed the knot! It looks like [user.p_theyre()] trying to commit suicide!</span>")
playsound(loc, 'sound/weapons/gagging.ogg', 50, 1, -1)
@@ -151,33 +160,6 @@ obj/item/dildo/custom
addtimer(CALLBACK(src, .proc/manual_suicide, user), 15)
return MANUAL_SUICIDE
/obj/item/dildo/human/suicide_act(mob/living/user)
user.visible_message("<span class='suicide'>[user] tears-up and gags as they shove [src] down their throat! Their face is turning blue! It looks like [user.p_theyre()] trying to commit suicide!</span>")
playsound(loc, 'sound/weapons/gagging.ogg', 50, 1, -1)
user.Stun(150)
user.adjust_blurriness(8)
user.adjust_eye_damage(10)
addtimer(CALLBACK(src, .proc/manual_suicide, user), 15)
return MANUAL_SUICIDE
/obj/item/dildo/plain/suicide_act(mob/living/user, delay = 150)
user.visible_message("<span class='suicide'>[user] tears-up and gags as they shove [src] down their throat! Their face is turning blue! It looks like [user.p_theyre()] trying to commit suicide!</span>")
playsound(loc, 'sound/weapons/gagging.ogg', 50, 1, -1)
user.Stun(150)
user.adjust_blurriness(8)
user.adjust_eye_damage(10)
addtimer(CALLBACK(src, .proc/manual_suicide, user), 15)
return MANUAL_SUICIDE
/obj/item/dildo/flared/suicide_act(mob/living/user)
user.visible_message("<span class='suicide'>[user] tears-up and gags as they shove [src] down their throat! Their face is turning blue! It looks like [user.p_theyre()] trying to commit suicide!</span>")
playsound(loc, 'sound/weapons/gagging.ogg', 50, 1, -1)
user.Stun(150)
user.adjust_blurriness(8)
user.adjust_eye_damage(10)
addtimer(CALLBACK(src, .proc/manual_suicide, user), 15)
return MANUAL_SUICIDE
/obj/item/dildo/flared/huge/suicide_act(mob/living/user)
user.visible_message("<span class='suicide'>[user] tears-up and gags as they try to deepthroat the [src]! WHY WOULD THEY DO THAT? It looks like [user.p_theyre()] trying to commit suicide!!</span>")
playsound(loc, 'sound/weapons/gagging.ogg', 50, 2, -1)