mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 20:47:10 +01:00
You can no longer put the cyborg gripper in a display case (#26848)
Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
This commit is contained in:
co-authored by
adrermail@gmail.com <adrermail@gmail.com>
parent
80d2d78a9a
commit
51c64edfc5
@@ -15,6 +15,7 @@
|
||||
icon = 'icons/obj/device.dmi'
|
||||
icon_state = "gripper"
|
||||
actions_types = list(/datum/action/item_action/drop_gripped_item)
|
||||
flags = ABSTRACT
|
||||
/// Set to TRUE to removal of cells/lights from machine objects containing them.
|
||||
var/engineering_machine_interaction = FALSE
|
||||
/// Defines what items the gripper can carry.
|
||||
@@ -50,11 +51,12 @@
|
||||
/obj/item/gripper/proc/drop_gripped_item(mob/user, silent = FALSE)
|
||||
if(!gripped_item)
|
||||
to_chat(user, "<span class='warning'>[src] is empty.</span>")
|
||||
return
|
||||
return FALSE
|
||||
if(!silent)
|
||||
to_chat(user, "<span class='warning'>You drop [gripped_item].</span>")
|
||||
gripped_item.forceMove(get_turf(src))
|
||||
gripped_item = null
|
||||
return TRUE
|
||||
|
||||
/obj/item/gripper/attack_self(mob/user)
|
||||
if(!gripped_item)
|
||||
|
||||
Reference in New Issue
Block a user