mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Fix invalid logic in clonepod beaker function
This commit is contained in:
@@ -244,19 +244,13 @@
|
|||||||
locked = 0
|
locked = 0
|
||||||
to_chat(user, "System unlocked.")
|
to_chat(user, "System unlocked.")
|
||||||
else if(istype(W,/obj/item/weapon/reagent_containers/glass))
|
else if(istype(W,/obj/item/weapon/reagent_containers/glass))
|
||||||
var/obj/item/weapon/reagent_containers/glass/G = W
|
if(LAZYLEN(containers) >= container_limit)
|
||||||
if(LAZYLEN(containers))
|
|
||||||
if(containers.len >= container_limit)
|
|
||||||
to_chat(user, "<span class='warning'>\The [src] has too many containers loaded!</span>")
|
to_chat(user, "<span class='warning'>\The [src] has too many containers loaded!</span>")
|
||||||
return
|
|
||||||
else if(do_after(user, 1 SECOND))
|
else if(do_after(user, 1 SECOND))
|
||||||
user.visible_message("[user] has loaded \the [G] into \the [src].", "You load \the [G] into \the [src].")
|
user.visible_message("[user] has loaded \the [W] into \the [src].", "You load \the [W] into \the [src].")
|
||||||
containers += G
|
containers += W
|
||||||
user.drop_item()
|
user.drop_item()
|
||||||
G.forceMove(src)
|
W.forceMove(src)
|
||||||
return
|
|
||||||
else
|
|
||||||
to_chat(user, "<span class='warning'>\The [src] doesn't have room for \the [G.name].</span>")
|
|
||||||
return
|
return
|
||||||
else if(istype(W, /obj/item/weapon/wrench))
|
else if(istype(W, /obj/item/weapon/wrench))
|
||||||
if(locked && (anchored || occupant))
|
if(locked && (anchored || occupant))
|
||||||
|
|||||||
Reference in New Issue
Block a user