mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-24 05:38:15 +01:00
Move the cigar cases to a new _ch file
This commit is contained in:
@@ -330,14 +330,6 @@
|
||||
icon_type = "cigar"
|
||||
starts_with = list(/obj/item/clothing/mask/smokable/cigarette/cigar = 7)
|
||||
|
||||
/obj/item/weapon/storage/fancy/cigar/cohiba
|
||||
name = "cohiban cigar case"
|
||||
starts_with = list(/obj/item/clothing/mask/smokable/cigarette/cigar/cohiba = 7)
|
||||
|
||||
/obj/item/weapon/storage/fancy/cigar/havana
|
||||
name = "havanian cigar case"
|
||||
starts_with = list(/obj/item/clothing/mask/smokable/cigarette/cigar/havana = 7)
|
||||
|
||||
/obj/item/weapon/storage/fancy/cigar/Initialize()
|
||||
. = ..()
|
||||
flags |= NOREACT
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
/obj/item/weapon/storage/fancy/cigar/cohiba
|
||||
name = "cohiban cigar case"
|
||||
starts_with = list(/obj/item/clothing/mask/smokable/cigarette/cigar/cohiba = 7)
|
||||
|
||||
/obj/item/weapon/storage/fancy/cigar/havana
|
||||
name = "havanian cigar case"
|
||||
starts_with = list(/obj/item/clothing/mask/smokable/cigarette/cigar/havana = 7)
|
||||
@@ -0,0 +1,11 @@
|
||||
/datum/gear/cigar_case
|
||||
display_name = "cigar case"
|
||||
path = /obj/item/weapon/storage/fancy/cigar
|
||||
|
||||
/datum/gear/cigar_case/New()
|
||||
..()
|
||||
var/list/cigars = list()
|
||||
for(var/cigar in (typesof(/obj/item/weapon/storage/fancy/cigar)))
|
||||
var/obj/item/weapon/storage/fancy/cigar/cigar_brand = cigar
|
||||
cigars[initial(cigar_brand.name)] = cigar_brand
|
||||
gear_tweaks += new/datum/gear_tweak/path(sortAssoc(cigars))
|
||||
Reference in New Issue
Block a user