mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
Makes kudzu much more likely to entangle you (#25167)
* lets kudzu entangle you * Increase buckle time * Apply suggestions from code review Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --------- Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
@@ -805,7 +805,14 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven
|
||||
/mob/living/carbon/resist_buckle()
|
||||
INVOKE_ASYNC(src, PROC_REF(resist_muzzle))
|
||||
var/obj/item/I = get_restraining_item()
|
||||
if(!I) // If there is nothing to restrain him then he is not restrained
|
||||
var/time = 0
|
||||
if(istype(I))
|
||||
time = I.breakouttime
|
||||
else if(isstructure(buckled))
|
||||
var/obj/structure/struct = buckled
|
||||
time = struct.unbuckle_time
|
||||
|
||||
if(time == 0)
|
||||
buckled.user_unbuckle_mob(src, src)
|
||||
return
|
||||
|
||||
@@ -813,7 +820,7 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven
|
||||
to_chat(src, "<span class='notice'>You are already trying to unbuckle!</span>")
|
||||
return
|
||||
apply_status_effect(STATUS_EFFECT_UNBUCKLE)
|
||||
var/time = I.breakouttime
|
||||
|
||||
visible_message("<span class='warning'>[src] attempts to unbuckle [p_themselves()]!</span>",
|
||||
"<span class='notice'>You attempt to unbuckle yourself... (This will take around [time / 10] seconds and you need to stay still.)</span>")
|
||||
if(!do_after(src, time, FALSE, src, extra_checks = list(CALLBACK(src, PROC_REF(buckle_check)))))
|
||||
|
||||
Reference in New Issue
Block a user