Merge pull request #4560 from Tastyfish/item-action-button-fix

Fixes holsters and potentially other accessories's action buttons
This commit is contained in:
Fox McCloud
2016-06-02 18:57:56 -04:00
7 changed files with 24 additions and 10 deletions
+1 -1
View File
@@ -31,7 +31,7 @@
//If this is set, The item will make an action button on the player's HUD when picked up.
var/action_button_name //It is also the text which gets displayed on the action button. If not set it defaults to 'Use [name]'. If it's not set, there'll be no button.
var/action_button_is_hands_free = 0 //If 1, bypass the restrained, lying, and stunned checks action buttons normally test for
var/action_button_custom_type = null
var/datum/action/item_action/action = null
var/list/materials = list()
@@ -2,7 +2,7 @@
name = "implant"
icon = 'icons/obj/implants.dmi'
icon_state = "generic" //Shows up as the action button icon
action_button_is_hands_free = 1
action_button_custom_type = /datum/action/item_action/hands_free
origin_tech = "materials=2;biotech=3;programming=2"
var/activated = 1 //1 for implant types that can be activated, 0 for ones that are "always on" like loyalty implants