Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Нимфа смогла спрятаться #8522

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions code/modules/mob/living/carbon/monkey/diona.dm
Expand Up @@ -311,6 +311,25 @@
return 1
return ..()

/mob/living/carbon/monkey/diona/verb/hide()
set name = "Hide"
set desc = "Allows to hide beneath tables or certain items. Toggled on or off."
set category = "Diona"

var/list/allseeing = list()
for (var/mob/living/carbon/human/A in oview(src))
if(A.client || A.mind)
allseeing += A
if ((!allseeing.len) && (layer != TURF_LAYER+0.2)) //balance for traitor-diona
layer = TURF_LAYER+0.2
LudwigVonChesterfield marked this conversation as resolved.
Show resolved Hide resolved
to_chat(src, ("<span class='notice'>You are now hiding.</span>"))
else
layer = MOB_LAYER
if(!allseeing.len)
to_chat(src, ("<span class='notice'>You have stopped hiding.</span>"))
else
to_chat(src, "<span class='warning'>You can't be sneaky when they're watching.</span>")

/mob/living/carbon/monkey/diona/say(message)
var/verb = "says"
var/message_range = world.view
Expand Down