Remove drop_item, drop_item_v, put_in_hands_or_del
This commit is contained in:
committed by
CitadelStationBot
parent
5f4b3594d0
commit
075cb673c0
@@ -22,13 +22,10 @@
|
||||
/obj/item/reagent_containers/food/drinks/bottle/proc/smash(mob/living/target, mob/living/user, ranged = 0)
|
||||
|
||||
//Creates a shattering noise and replaces the bottle with a broken_bottle
|
||||
var/new_location = get_turf(loc)
|
||||
var/new_location = get_turf(src)
|
||||
var/obj/item/broken_bottle/B = new /obj/item/broken_bottle(new_location)
|
||||
if(ranged)
|
||||
B.loc = new_location
|
||||
else
|
||||
user.drop_item()
|
||||
user.put_in_active_hand(B)
|
||||
if(!ranged)
|
||||
user.put_in_hands(B)
|
||||
B.icon_state = src.icon_state
|
||||
|
||||
var/icon/I = new('icons/obj/drinks.dmi', src.icon_state)
|
||||
|
||||
@@ -58,10 +58,9 @@ insert ascii eagle on american flag background here
|
||||
else
|
||||
if(is_type_in_typecache(I, deepfry_blacklisted_items))
|
||||
. = ..()
|
||||
else if(user.drop_item() && !frying)
|
||||
else if(!frying && user.transferItemToLoc(I, src))
|
||||
to_chat(user, "<span class='notice'>You put [I] into [src].</span>")
|
||||
frying = I
|
||||
frying.forceMove(src)
|
||||
icon_state = "fryer_on"
|
||||
|
||||
/obj/machinery/deepfryer/process()
|
||||
|
||||
@@ -68,8 +68,6 @@
|
||||
if(istype(O, /obj/item/reagent_containers/food/drinks/drinkingglass))
|
||||
var/obj/item/reagent_containers/food/drinks/drinkingglass/DG = O
|
||||
if(!DG.reagents.total_volume) //glass is empty
|
||||
if(!user.drop_item())
|
||||
return
|
||||
qdel(DG)
|
||||
glasses++
|
||||
to_chat(user, "<span class='notice'>The [src] accepts the drinking glass, sterilizing it.</span>")
|
||||
@@ -78,9 +76,8 @@
|
||||
to_chat(user, "<span class='warning'>The [src] is at full capacity.</span>")
|
||||
else
|
||||
var/obj/item/reagent_containers/food/snacks/S = O
|
||||
if(!user.drop_item())
|
||||
if(!user.transferItemToLoc(S, src))
|
||||
return
|
||||
S.loc = src
|
||||
if(stored_food[sanitize(S.name)])
|
||||
stored_food[sanitize(S.name)]++
|
||||
else
|
||||
|
||||
@@ -142,11 +142,10 @@
|
||||
to_chat(user, "<span class='warning'>[src] is full, you can't put anything in!</span>")
|
||||
return 1
|
||||
else
|
||||
if(!user.drop_item())
|
||||
if(!user.transferItemToLoc(O, src))
|
||||
to_chat(user, "<span class='warning'>\the [O] is stuck to your hand, you cannot put it in \the [src]!</span>")
|
||||
return 0
|
||||
|
||||
O.loc = src
|
||||
user.visible_message( \
|
||||
"[user] has added \the [O] to \the [src].", \
|
||||
"<span class='notice'>You add \the [O] to \the [src].</span>")
|
||||
|
||||
@@ -195,8 +195,7 @@
|
||||
if(P)
|
||||
user.visible_message("[user] put [O] into [src].", \
|
||||
"You put [O] into [src].")
|
||||
user.drop_item()
|
||||
O.loc = src
|
||||
user.transferItemToLoc(O, src, TRUE)
|
||||
return 1
|
||||
else
|
||||
if(user.a_intent != INTENT_HARM)
|
||||
|
||||
@@ -178,20 +178,18 @@
|
||||
if(pizza)
|
||||
to_chat(user, "<span class='warning'>[src] already has \a [pizza.name]!</span>")
|
||||
return
|
||||
if(!user.drop_item())
|
||||
if(!user.transferItemToLoc(I, src))
|
||||
return
|
||||
pizza = I
|
||||
I.loc = src
|
||||
to_chat(user, "<span class='notice'>You put [I] in [src].</span>")
|
||||
update_icon()
|
||||
return
|
||||
else if(istype(I, /obj/item/bombcore/pizza))
|
||||
if(open && !bomb)
|
||||
if(!user.drop_item())
|
||||
if(!user.transferItemToLoc(I, src))
|
||||
return
|
||||
wires = new /datum/wires/explosive/pizza(src)
|
||||
bomb = I
|
||||
I.loc = src
|
||||
to_chat(user, "<span class='notice'>You put [I] in [src]. Sneeki breeki...</span>")
|
||||
update_icon()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user