more loadout preferences

This commit is contained in:
DragonTrance
2021-03-09 09:50:07 -07:00
parent 9e9664e7a3
commit ae9b09a118
9 changed files with 28 additions and 15 deletions
@@ -16,12 +16,14 @@
continue
var/obj/item/I = new G.path
if(backpackstuffs && G.category == SLOT_IN_BACKPACK && iscarbon(M))
if(iscarbon(M) && backpackstuffs && (G.category == SLOT_IN_BACKPACK || G.blacklist_join_equip))
var/mob/living/carbon/C = M
var/obj/item/storage/backpack/B = C.back
if(!B || !SEND_SIGNAL(B, COMSIG_TRY_STORAGE_INSERT, I, null, TRUE, TRUE))
I.forceMove(get_turf(C))
continue
else if(G.blacklist_join_equip) //Assume we're gonna be put in a backpack and not equipped
continue
else if(backpackstuffs && G.category != SLOT_IN_BACKPACK)
continue
if(!M.equip_to_slot_if_possible(I, G.category, disable_warning = TRUE, bypass_equip_delay_self = TRUE)) // If the job's dresscode compliant, try to put it in its slot, first
@@ -35,7 +35,7 @@
#define COIN_CHARGE 3
/obj/machinery/vending/kink
name = "KinkMate"
name = "\improper KinkMate"
desc = "A vending machine for all your unmentionable desires."
icon = 'icons/obj/citvending.dmi'
icon_state = "kink"
@@ -66,6 +66,7 @@
/obj/item/electropack/vibrator = 2,
)
contraband = list(
/obj/item/clothing/under/gear_harness = 3,
/obj/item/restraints/handcuffs/fake/kinky = 5,
/obj/item/clothing/neck/petcollar = 5,
/obj/item/clothing/under/mankini = 1,
@@ -19,4 +19,4 @@
name = "A diamond ring"
category = SLOT_GLOVES
path = /obj/item/clothing/gloves/ring/diamond
cost = 4
cost = 4
@@ -70,4 +70,4 @@
name = "Improper Roman shield"
category = SLOT_HANDS
path = /obj/item/shield/riot/roman/fake
cost = 2
cost = 2
@@ -27,6 +27,7 @@
name = "Rice hat"
category = SLOT_HEAD
path = /obj/item/clothing/head/rice_hat
blacklist_join_equip = TRUE
/datum/gear/ushanka
name = "Ushanka"
@@ -53,12 +54,14 @@
category = SLOT_HEAD
path = /obj/item/clothing/head/flakhelm
cost = 2
blacklist_join_equip = TRUE
/datum/gear/delinquent //Now you too can become like your favorite punchy ghost protagonist
name = "Delinquent Hat"
category = SLOT_HEAD
path = /obj/item/clothing/head/delinquent
cost = 3
blacklist_join_equip = TRUE
/datum/gear/bunnyears
name = "Bunny Ears"
@@ -53,6 +53,7 @@ GLOBAL_LIST_EMPTY(loadout_whitelist_ids)
var/list/restricted_roles
var/list/ckeywhitelist
var/restricted_desc
var/blacklist_join_equip = FALSE //If we don't equip this when we join
/datum/gear/New()
..()
@@ -229,7 +229,7 @@
path = /obj/item/clothing/under/bb_sweater/blue
/datum/gear/keyholesweater
name = "Keyhole Sweater"
name = "Keyhole Sweater" //sus
category = SLOT_W_UNIFORM
path = /obj/item/clothing/under/keyholesweater
@@ -412,38 +412,45 @@
name = "Gear Harness"
category = SLOT_W_UNIFORM
path = /obj/item/clothing/under/gear_harness
blacklist_join_equip = TRUE
/datum/gear/pinkstripper
name = "Pink stripper outfit"
category = SLOT_W_UNIFORM
path = /obj/item/clothing/under/stripper_pink
blacklist_join_equip = TRUE
/datum/gear/greenstripper
name = "Green stripper outfit"
category = SLOT_W_UNIFORM
path = /obj/item/clothing/under/stripper_green
blacklist_join_equip = TRUE
/datum/gear/polybikini
name = "Polychromic Bikini"
category = SLOT_W_UNIFORM
path = /obj/item/clothing/under/polychromic/bikini
cost = 2
blacklist_join_equip = TRUE
/datum/gear/polystripper
name = "Polychromic Stripper Outfit"
category = SLOT_W_UNIFORM
path = /obj/item/clothing/under/polychromic/stripper
cost = 2
blacklist_join_equip = TRUE
/datum/gear/polypantsu
name = "Polychromic Panties"
category = SLOT_W_UNIFORM
path = /obj/item/clothing/under/polychromic/shortpants/pantsu
blacklist_join_equip = TRUE
/datum/gear/polybulge
name = "Polychromic Voluminous Thong"
category = SLOT_W_UNIFORM
path = /obj/item/clothing/under/polychromic/bulge
blacklist_join_equip = TRUE
/datum/gear/polybottomless
name = "Polychromic Bottomless Shirt"
@@ -456,18 +463,14 @@
category = SLOT_W_UNIFORM
path = /obj/item/clothing/under/corset
cost = 1
/datum/gear/corset
name = "Corset"
category = SLOT_W_UNIFORM
path = /obj/item/clothing/under/corset
cost = 1
blacklist_join_equip = TRUE
/datum/gear/shortsbra
name = "Kromatic Shorts and Top"
category = SLOT_W_UNIFORM
path = /obj/item/clothing/under/polychromic/shortsbra
cost = 1
blacklist_join_equip = TRUE
/datum/gear/gladiator
name = "Gladiator uniform"
@@ -486,4 +489,4 @@
category = SLOT_W_UNIFORM
path = /obj/item/clothing/under/greenplaidshirt
cost = 1
ckeywhitelist = list("chemlight")
ckeywhitelist = list("chemlight")