Update living.dm

This commit is contained in:
Ghom
2020-03-19 15:32:46 +01:00
committed by GitHub
parent e9ad37fbd0
commit bd8847ab66
+5 -2
View File
@@ -355,9 +355,12 @@
set category = "Vore"
set desc = "Lick someone nearby!"
if(incapacitated(ignore_restraints = TRUE))
to_chat(user, "<span class='warning'>You can't do that while incapacitated.</span>")
var/list/choices
for(var/mob/living/L in view(1))
if(L != src && (!L.ckey || L.client?.prefs.lickable))
if(L != src && (!L.ckey || L.client?.prefs.lickable) && Adjacent(L))
LAZYADD(choices, L)
if(!choices)
@@ -365,7 +368,7 @@
var/mob/living/tasted = input(src, "Who would you like to lick? (Excluding yourself and those with the preference disabled)", "Licking") as null|anything in choices
if(QDELETED(tasted) || (tasted.ckey && !(tasted.client?.prefs.lickable)))
if(QDELETED(tasted) || (tasted.ckey && !(tasted.client?.prefs.lickable)) || !Adjacent(tasted) || incapacitated(ignore_restraints = TRUE))
return
setClickCooldown(100)