mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Quick fix for tables, lockers and general drop_item
Shall do the trick
This commit is contained in:
@@ -120,7 +120,7 @@
|
||||
if(is_type_in_list(W, possible_upgrades) && !is_type_in_list(W, upgrades)) // Is a possible upgrade and isn't in the camera already.
|
||||
user << "You attach the [W] into the assembly inner circuits."
|
||||
upgrades += W
|
||||
user.drop_item(W)
|
||||
user.drop_item()
|
||||
W.loc = src
|
||||
return
|
||||
|
||||
|
||||
@@ -193,7 +193,8 @@
|
||||
if(isrobot(user))
|
||||
return
|
||||
|
||||
user.drop_item(src)
|
||||
user.drop_item()
|
||||
W.Move(loc)
|
||||
|
||||
else if(istype(W, /obj/item/weapon/packageWrap))
|
||||
return
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
user << "\red Unwield the axe first."
|
||||
return
|
||||
fireaxe = O
|
||||
user.drop_item(O)
|
||||
user.drop_item()
|
||||
src.contents += O
|
||||
user << "\blue You place the fire axe back in the [src.name]."
|
||||
update_icon()
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
return
|
||||
if(istype(O, /obj/item/weapon/extinguisher))
|
||||
if(!has_extinguisher && opened)
|
||||
user.drop_item(O)
|
||||
user.drop_item()
|
||||
contents += O
|
||||
has_extinguisher = O
|
||||
user << "<span class='notice'>You place [O] in [src].</span>"
|
||||
|
||||
@@ -569,7 +569,8 @@
|
||||
table_destroy(1, user)
|
||||
|
||||
if(!(((I.flags & ABSTRACT)))) //WE NEED MORE PAREMS
|
||||
user.drop_item(src)
|
||||
user.drop_item()
|
||||
I.Move(loc)
|
||||
|
||||
/obj/structure/table/proc/table_destroy(var/destroy_type, var/mob/user as mob)
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
if(istype(W, /obj/item/target))
|
||||
density = 0
|
||||
W.density = 1
|
||||
user.drop_item(src)
|
||||
user.drop_item()
|
||||
W.loc = loc
|
||||
W.layer = 3.1
|
||||
pinned_target = W
|
||||
|
||||
@@ -422,7 +422,7 @@ turf/simulated/floor/proc/update_icon()
|
||||
if(is_light_floor())
|
||||
var/obj/item/stack/tile/light/T = floor_tile
|
||||
if(T.state)
|
||||
user.drop_item(C)
|
||||
user.drop_item()
|
||||
del(C)
|
||||
T.state = C //fixing it by bashing it with a light bulb, fun eh?
|
||||
update_icon()
|
||||
|
||||
Reference in New Issue
Block a user