mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 19:47:47 +01:00
Fix a handful of bugs introduced in VOREStation/VOREStation#17515 (#17669)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
367db531ac
commit
f0444ef8d8
@@ -1258,6 +1258,18 @@
|
||||
if(!item)
|
||||
return FALSE //Grab processing has a chance of returning null
|
||||
|
||||
// Help intent + Adjacent = pass item to other
|
||||
if(a_intent == I_HELP && Adjacent(target) && isitem(item) && ishuman(target))
|
||||
var/obj/item/I = item
|
||||
var/mob/living/carbon/human/H = target
|
||||
if(H.in_throw_mode && H.a_intent == I_HELP && unEquip(I))
|
||||
H.put_in_hands(I) // If this fails it will just end up on the floor, but that's fitting for things like dionaea.
|
||||
visible_message(span_filter_notice(span_bold("[src]") + " hands \the [H] \a [I]."), span_notice("You give \the [target] \a [I]."))
|
||||
else
|
||||
to_chat(src, span_notice("You offer \the [I] to \the [target]."))
|
||||
do_give(H)
|
||||
return TRUE
|
||||
|
||||
drop_from_inventory(item)
|
||||
|
||||
if(!item || QDELETED(item))
|
||||
|
||||
@@ -1139,6 +1139,18 @@
|
||||
if(throw_icon && !issilicon(src)) // Silicon use this for something else. Do not overwrite their HUD icon
|
||||
throw_icon.icon_state = "act_throw_on"
|
||||
|
||||
/mob/verb/spacebar_throw_on()
|
||||
set name = ".throwon"
|
||||
set hidden = TRUE
|
||||
set instant = TRUE
|
||||
throw_mode_on()
|
||||
|
||||
/mob/verb/spacebar_throw_off()
|
||||
set name = ".throwoff"
|
||||
set hidden = TRUE
|
||||
set instant = TRUE
|
||||
throw_mode_off()
|
||||
|
||||
/mob/proc/isSynthetic()
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user