Merge pull request #3906 from Citadel-Station-13/upstream-merge-32640

[MIRROR] Adds a multitool_act and a proper check on tool_check
This commit is contained in:
LetterJay
2017-11-13 11:46:41 -06:00
committed by GitHub
3 changed files with 9 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
#define TOOL_NONE 0
#define TOOL_CROWBAR 1
#define TOOL_SCREWDRIVER 2
#define TOOL_WIRECUTTER 3
#define TOOL_WRENCH 4
#define TOOL_MULTITOOL 2
#define TOOL_SCREWDRIVER 3
#define TOOL_WIRECUTTER 4
#define TOOL_WRENCH 5

View File

@@ -14,6 +14,8 @@
return FALSE
if(TOOL_CROWBAR)
return target.crowbar_act(user, src)
if(TOOL_MULTITOOL)
return target.multitool_act(user, src)
if(TOOL_SCREWDRIVER)
return target.screwdriver_act(user, src)
if(TOOL_WRENCH)

View File

@@ -626,6 +626,9 @@ GLOBAL_LIST_EMPTY(blood_splatter_icons)
/atom/proc/crowbar_act(mob/user, obj/item/tool)
return
/atom/proc/multitool_act(mob/user, obj/item/tool)
return
/atom/proc/screwdriver_act(mob/user, obj/item/tool)
return