mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Fixed being able to climb into disposals while stunned or weakened, etc.
Fixed floorbots creating a full toolbox on death. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2253 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -88,15 +88,15 @@
|
|||||||
|
|
||||||
var/msg
|
var/msg
|
||||||
for (var/mob/V in viewers(usr))
|
for (var/mob/V in viewers(usr))
|
||||||
if(target == user && !user.stat)
|
if(target == user && !user.stat && !user.weakened && !user.stunned && !user.paralysis)
|
||||||
V.show_message("[usr] starts climbing into the disposal.", 3)
|
V.show_message("[usr] starts climbing into the disposal.", 3)
|
||||||
if(target != user && !user.restrained())
|
if(target != user && !user.restrained())
|
||||||
if(target.anchored) return
|
if(target.anchored) return
|
||||||
V.show_message("[usr] starts stuffing [target.name] into the disposal.", 3)
|
V.show_message("[usr] starts stuffing [target.name] into the disposal.", 3)
|
||||||
if(!do_after(usr, 20))
|
if(!do_after(usr, 20))
|
||||||
return
|
return
|
||||||
if(target == user && !user.stat) // if drop self, then climbed in
|
if(target == user && !user.stat && !user.weakened && !user.stunned && !user.paralysis) // if drop self, then climbed in
|
||||||
// must be awake
|
// must be awake, not stunned or whatever
|
||||||
msg = "[user.name] climbs into the [src]."
|
msg = "[user.name] climbs into the [src]."
|
||||||
user << "You climb into the [src]."
|
user << "You climb into the [src]."
|
||||||
else if(target != user && !user.restrained())
|
else if(target != user && !user.restrained())
|
||||||
|
|||||||
@@ -344,7 +344,8 @@
|
|||||||
src.visible_message("\red <B>[src] blows apart!</B>", 1)
|
src.visible_message("\red <B>[src] blows apart!</B>", 1)
|
||||||
var/turf/Tsec = get_turf(src)
|
var/turf/Tsec = get_turf(src)
|
||||||
|
|
||||||
new /obj/item/weapon/storage/toolbox/mechanical(Tsec)
|
var/obj/item/weapon/storage/toolbox/mechanical/N = new /obj/item/weapon/storage/toolbox/mechanical(Tsec)
|
||||||
|
N.contents = list()
|
||||||
|
|
||||||
new /obj/item/device/prox_sensor(Tsec)
|
new /obj/item/device/prox_sensor(Tsec)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user