Faction-specific loadout items (#6969)

You can now add items to the loadout that are limited to a faction.
This commit is contained in:
Matt Atlas
2019-09-14 21:36:12 +03:00
committed by Erki
parent 77014b9cb5
commit f18c90807b
17 changed files with 195 additions and 23 deletions
@@ -218,6 +218,7 @@ var/list/gear_datums = list()
var/slot //Slot to equip to.
var/list/allowed_roles //Roles that can spawn with this item.
var/whitelisted //Term to check the whitelist for..
var/faction //Is this item whitelisted for a faction?
var/sort_category = "General"
var/list/gear_tweaks = list() //List of datums which will alter the item after it has been spawned.
@@ -0,0 +1,47 @@
/datum/gear/faction
display_name = "idris cap"
path = /obj/item/clothing/head/soft/sec/idris
slot = slot_head
sort_category = "Factions"
cost = 1
faction = "Idris Incorporated"
/datum/gear/faction/idris_beret
display_name = "idris beret"
path = /obj/item/clothing/head/beret/sec/idris
faction = "Idris Incorporated"
/datum/gear/faction/idris_uniform_alt
display_name = "idris service skirt"
description = "Not for security usage."
path = /obj/item/clothing/under/rank/idris/service/alt
slot = slot_wear_suit
faction = "Idris Incorporated"
/datum/gear/faction/necro_beret
display_name = "brown necropolis beret"
path = /obj/item/clothing/head/beret/sec/necro
faction = "Necropolis Industries"
/datum/gear/faction/necro_beret/alt
display_name = "black necropolis beret"
path = /obj/item/clothing/head/beret/sec/necro/alt
sort_category = "Factions"
/datum/gear/faction/necro_uniform_alt
display_name = "brown necropolis uniform"
path = /obj/item/clothing/under/rank/security/necropolis/alt
slot = slot_wear_suit
faction = "Necropolis Industries"
/datum/gear/faction/eridani_beret
display_name = "eridani beret"
path = /obj/item/clothing/head/beret/sec/eri
slot = slot_head
faction = "Eridani Private Military Contractors"
/datum/gear/faction/zenghu_uniform_alt
display_name = "zeng-hu black uniform"
path = /obj/item/clothing/under/rank/zeng/alt
slot = slot_wear_suit
faction = "Zeng-hu Pharmaceuticals"