mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-12 16:38:18 +01:00
applys a fix
This commit is contained in:
@@ -237,7 +237,7 @@
|
||||
if(!istype(T, /obj/item/stack/tile/plasteel))
|
||||
..()
|
||||
return
|
||||
if(!is_type_in_list(src, allowed_toolbox))
|
||||
if(!is_type_in_list(src, allowed_toolbox) && (type != /obj/item/storage/toolbox))
|
||||
return
|
||||
if(contents.len >= 1)
|
||||
to_chat(user, "<span class='warning'>They won't fit in, as there is already stuff inside!</span>")
|
||||
@@ -246,6 +246,8 @@
|
||||
var/obj/item/bot_assembly/floorbot/B = new
|
||||
B.toolbox = type
|
||||
switch(B.toolbox)
|
||||
if(/obj/item/storage/toolbox)
|
||||
B.toolbox_color = "r"
|
||||
if(/obj/item/storage/toolbox/emergency)
|
||||
B.toolbox_color = "r"
|
||||
if(/obj/item/storage/toolbox/electrical)
|
||||
@@ -256,7 +258,7 @@
|
||||
B.toolbox_color = "s"
|
||||
user.put_in_hands(B)
|
||||
B.update_icon()
|
||||
to_chat(user, "<span class='notice'>You add the tiles into the empty [src.name]. They protrude from the top.</span>")
|
||||
to_chat(user, "<span class='notice'>You add the tiles into the empty [name]. They protrude from the top.</span>")
|
||||
qdel(src)
|
||||
else
|
||||
to_chat(user, "<span class='warning'>You need 10 floor tiles to start building a floorbot!</span>")
|
||||
|
||||
@@ -360,7 +360,7 @@
|
||||
target = null
|
||||
|
||||
/mob/living/simple_animal/bot/floorbot/update_icon()
|
||||
icon_state = "[toolbox_color]floorbot-c"
|
||||
icon_state = "[toolbox_color]floorbot[on]"
|
||||
|
||||
|
||||
/mob/living/simple_animal/bot/floorbot/explode()
|
||||
|
||||
Reference in New Issue
Block a user