Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

Commit

Permalink
fix: move move_delay to stop resting instead of start
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Jul 12, 2023
1 parent fd0fc5b commit beb864d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/modules/mob/mob_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,13 @@ GLOBAL_LIST_INIT(intents, list(INTENT_HELP,INTENT_DISARM,INTENT_GRAB,INTENT_HARM
set category = "IC"

if(!resting)
to_chat(src, "<span class='notice'>Вы отдыхаете.</span>")
to_chat(src, span_notice("Вы отдыхаете."))
StartResting()
else if(resting)
to_chat(src, "<span class='notice'>Вы встаёте.</span>")
StopResting()
client.move_delay = world.time + 1 SECONDS
to_chat(src, span_notice("Вы встаёте."))
if(do_mob(src, src, 1 SECONDS, TRUE, TRUE))
StopResting()

/proc/get_multitool(mob/user as mob)
// Get tool
Expand Down

0 comments on commit beb864d

Please sign in to comment.