New tunnel cloaks (#12464)

This commit is contained in:
desven
2021-09-14 14:07:59 +02:00
committed by GitHub
parent f25658c9e6
commit 3aa1b013e5
5 changed files with 94 additions and 8 deletions
@@ -172,12 +172,6 @@
desc = "It's an orange backpack which was designed to hold beakers, pill bottles and bottles."
icon_state = "chempack"
/obj/item/storage/backpack/cloak
name = "tunnel cloak"
desc = "It's a Vaurca cloak with storage pockets."
icon_state = "cape"
sprite_sheets = list(BODYTYPE_VAURCA = 'icons/mob/species/vaurca/back.dmi')
/obj/item/storage/backpack/syndie
name = "syndicate rucksack"
desc = "The latest in carbon fiber and red satin combat rucksack technology. Comfortable and tough!"
@@ -625,4 +619,71 @@
desc = "A small, fashionable bag typically worn over the shoulder."
icon_state = "purse"
item_state = "purse"
max_storage_space = 16
max_storage_space = 16
//**Vaurca cloaks**//
/obj/item/storage/backpack/cloak
name = "tunnel cloak"
desc = "A Vaurca cloak with storage pockets."
icon_state = "cape"
item_state = "cape"
sprite_sheets = list(BODYTYPE_VAURCA = 'icons/mob/species/vaurca/back.dmi')
var/hooded = FALSE
/obj/item/storage/backpack/cloak/verb/toggle_cloak_hood()
set name = "Toggle Cloak Hood"
set desc = "Toggle your cloak hood."
set category = "Object"
set src in usr
if(use_check_and_message(usr))
return 0
hooded = !hooded
to_chat(usr, "You [hooded ? "raise" : "lower"] \the [src] hood.")
icon_state = "[initial(icon_state)][hooded ? "_up" : ""]"
item_state = "icon_state"
var/mob/living/carbon/human/H = src.loc
H.update_icon()
H.update_inv_back()
/obj/item/storage/backpack/cloak/sedantis
name = "Sedantis tunnel cloak"
desc = "A Vaurca cloak with storage pockets. This one has the Sedantis flag design."
icon_state = "sedcape"
item_state = "sedcape"
/obj/item/storage/backpack/cloak/medical
name = "medical tunnel cloak"
desc = "A Vaurca cloak with storage pockets. This one has the medical department design."
icon_state = "medcape"
item_state = "medcape"
/obj/item/storage/backpack/cloak/engi
name = "engineering tunnel cloak"
desc = "A Vaurca cloak with storage pockets. This one has the engineering department design."
icon_state = "engicape"
item_state = "engicape"
/obj/item/storage/backpack/cloak/atmos
name = "atmospherics tunnel cloak"
desc = "A Vaurca cloak with storage pockets. This one has the atmospherics design."
icon_state = "atmoscape"
item_state = "atmoscape"
/obj/item/storage/backpack/cloak/cargo
name = "cargo tunnel cloak"
desc = "A Vaurca cloak with storage pockets. This one has the supply department design."
icon_state = "cargocape"
item_state = "cargocape"
/obj/item/storage/backpack/cloak/sci
name = "science tunnel cloak"
desc = "A Vaurca cloak with storage pockets. This one has the science department design."
icon_state = "scicape"
item_state = "scicape"
/obj/item/storage/backpack/cloak/sec
name = "security tunnel cloak"
desc = "A Vaurca cloak with storage pockets. This one has the security department design."
icon_state = "seccape"
item_state = "seccape"
@@ -41,13 +41,33 @@
flags = GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
/datum/gear/cape
display_name = "tunnel cloak"
display_name = "tunnel cloak (recolourable)"
path = /obj/item/storage/backpack/cloak
cost = 1
whitelisted = list(SPECIES_VAURCA_WORKER, SPECIES_VAURCA_WARRIOR)
sort_category = "Xenowear - Vaurca"
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
/datum/gear/cape_selection
display_name = "tunnel cloak selection"
path = /obj/item/storage/backpack/cloak
cost = 1
whitelisted = list(SPECIES_VAURCA_WORKER, SPECIES_VAURCA_WARRIOR)
sort_category = "Xenowear - Vaurca"
flags = GEAR_HAS_DESC_SELECTION
/datum/gear/cape_selection/New()
..()
var/list/capes = list()
capes["tunnel cloak, Sedantis"] = /obj/item/storage/backpack/cloak/sedantis
capes["tunnel cloak, medical"] = /obj/item/storage/backpack/cloak/medical
capes["tunnel cloak, engineering"] = /obj/item/storage/backpack/cloak/engi
capes["tunnel cloak, atmospherics"] = /obj/item/storage/backpack/cloak/atmos
capes["tunnel cloak, cargo"] = /obj/item/storage/backpack/cloak/cargo
capes["tunnel cloak, science"] = /obj/item/storage/backpack/cloak/sci
capes["tunnel cloak, security"] = /obj/item/storage/backpack/cloak/sec
gear_tweaks += new /datum/gear_tweak/path(capes)
/datum/gear/vaurca_robe
display_name = "hive cloak"
description = "A selection of vaurca colored hive cloaks."
+5
View File
@@ -0,0 +1,5 @@
author: Desven, 50N00b
delete-after: True
changes:
- rscadd: "Updated the tunnel cloak sprites."
- rscadd: "Added departamental tunnel cloaks."
Binary file not shown.

Before

Width:  |  Height:  |  Size: 490 B

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 91 KiB