More Tool Sprites (#11830)

This commit is contained in:
Geeves
2021-05-11 01:57:09 +02:00
committed by GitHub
parent 0064a4eb4b
commit 7433639bb6
6 changed files with 25 additions and 11 deletions
@@ -104,13 +104,21 @@
icon_state = "utilitybelt_ce"
item_state = "utility_ce"
starts_with = list(
/obj/item/weldingtool/largetank = 1, // industrial welding tool
/obj/item/crowbar = 1,
/obj/item/wirecutters/toolbelt = 1,
/obj/item/stack/cable_coil/random = 1,
/obj/item/powerdrill = 1
)
/obj/item/storage/belt/utility/full
starts_with = list(
/obj/item/screwdriver = 1,
/obj/item/wrench = 1,
/obj/item/weldingtool = 1,
/obj/item/crowbar = 1,
/obj/item/wirecutters = 1,
/obj/item/wirecutters/toolbelt = 1,
/obj/item/stack/cable_coil/random = 1,
/obj/item/powerdrill = 1
)
@@ -119,7 +127,7 @@
starts_with = list(
/obj/item/weldingtool/largetank = 1,
/obj/item/crowbar = 1,
/obj/item/wirecutters = 1,
/obj/item/wirecutters/toolbelt = 1,
/obj/item/stack/cable_coil/random = 1,
/obj/item/powerdrill = 1,
/obj/item/device/multitool = 1,
+6 -1
View File
@@ -144,10 +144,12 @@
build_from_parts = TRUE
worn_overlay = "head"
var/list/color_options = list(COLOR_BLUE, COLOR_RED, COLOR_PURPLE, COLOR_BROWN, COLOR_GREEN, COLOR_CYAN, COLOR_YELLOW)
/obj/item/wirecutters/Initialize()
. = ..()
if(build_from_parts)
color = pick(COLOR_BLUE, COLOR_RED, COLOR_PURPLE, COLOR_BROWN, COLOR_GREEN, COLOR_CYAN, COLOR_YELLOW)
color = pick(color_options)
add_overlay(overlay_image(icon, "[initial(icon_state)]_[worn_overlay]", flags=RESET_COLOR))
/obj/item/wirecutters/update_icon()
@@ -192,6 +194,9 @@
/obj/item/wirecutters/iswirecutter()
return TRUE
/obj/item/wirecutters/toolbelt
color_options = list(COLOR_TOOLS)
/obj/item/wirecutters/bomb
name = "bomb defusal wirecutters"
desc = "A tool used to delicately sever the wires used in bomb fuses."