datums
This commit is contained in:
+11
-11
@@ -85,8 +85,10 @@
|
||||
|
||||
/datum/action/proc/Trigger()
|
||||
if(!IsAvailable())
|
||||
return 0
|
||||
return 1
|
||||
return FALSE
|
||||
if(SEND_SIGNAL(src, COMSIG_ACTION_TRIGGER, src) & COMPONENT_ACTION_BLOCK_TRIGGER)
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
/datum/action/proc/Process()
|
||||
return
|
||||
@@ -490,7 +492,7 @@
|
||||
/datum/action/item_action/agent_box
|
||||
name = "Deploy Box"
|
||||
desc = "Find inner peace, here, in the box."
|
||||
check_flags = AB_CHECK_RESTRAINED | AB_CHECK_STUN | AB_CHECK_CONSCIOUS
|
||||
check_flags = AB_CHECK_RESTRAINED|AB_CHECK_STUN|AB_CHECK_CONSCIOUS
|
||||
background_icon_state = "bg_agent"
|
||||
icon_icon = 'icons/mob/actions/actions_items.dmi'
|
||||
button_icon_state = "deploy_box"
|
||||
@@ -498,14 +500,16 @@
|
||||
var/obj/structure/closet/cardboard/agent/box
|
||||
|
||||
/datum/action/item_action/agent_box/Trigger()
|
||||
if(!box)
|
||||
if(cooldown < world.time - 30)
|
||||
box = new(get_turf(owner))
|
||||
if(!..())
|
||||
return FALSE
|
||||
if(!QDELETED(box))
|
||||
if(cooldown < world.time - 100)
|
||||
box = new(owner.drop_location())
|
||||
owner.forceMove(box)
|
||||
cooldown = world.time
|
||||
owner.playsound_local(box, 'sound/misc/box_deploy.ogg', 50, TRUE)
|
||||
else
|
||||
owner.forceMove(get_turf(box))
|
||||
owner.forceMove(box.drop_location())
|
||||
owner.playsound_local(box, 'sound/misc/box_deploy.ogg', 50, TRUE)
|
||||
QDEL_NULL(box)
|
||||
|
||||
@@ -718,7 +722,3 @@
|
||||
target.layer = old_layer
|
||||
target.plane = old_plane
|
||||
current_button.appearance_cache = target.appearance
|
||||
|
||||
/datum/action/item_action/storage_gather_mode/Trigger()
|
||||
GET_COMPONENT_FROM(STR, /datum/component/storage, target)
|
||||
STR.gather_mode_switch(owner)
|
||||
|
||||
Reference in New Issue
Block a user