mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 13:38:41 +01:00
Gives Havana cigars distinct sprites. Properly colours cigar butts and worn overlays (#95201)
Co-authored-by: Jordan Dominion <Cyberboss@users.noreply.github.com>
This commit is contained in:
co-authored by
Jordan Dominion
parent
76893e52b0
commit
a85dadab65
@@ -888,16 +888,18 @@ CIGARETTE PACKETS ARE IN FANCY.DM
|
||||
smoketime = 20 MINUTES
|
||||
chem_volume = 80
|
||||
list_reagents = list(/datum/reagent/drug/nicotine = 40)
|
||||
type_butt = /obj/item/cigbutt/cigarbutt/cohiba
|
||||
|
||||
/obj/item/cigarette/cigar/havana
|
||||
name = "premium Havanian cigar"
|
||||
desc = "A cigar fit for only the best of the best."
|
||||
icon_state = "cigar2off"
|
||||
icon_on = "cigar2on"
|
||||
icon_off = "cigar2off"
|
||||
icon_state = "cigar3off"
|
||||
icon_on = "cigar3on"
|
||||
icon_off = "cigar3off"
|
||||
smoketime = 30 MINUTES
|
||||
chem_volume = 60
|
||||
list_reagents = list(/datum/reagent/drug/nicotine = 45)
|
||||
type_butt = /obj/item/cigbutt/cigarbutt/havana
|
||||
|
||||
/obj/item/cigbutt
|
||||
name = "cigarette butt"
|
||||
@@ -915,6 +917,12 @@ CIGARETTE PACKETS ARE IN FANCY.DM
|
||||
desc = "A manky old cigar butt."
|
||||
icon_state = "cigarbutt"
|
||||
|
||||
/obj/item/cigbutt/cigarbutt/cohiba
|
||||
icon_state = "cigar2butt"
|
||||
|
||||
/obj/item/cigbutt/cigarbutt/havana
|
||||
icon_state = "cigar3butt"
|
||||
|
||||
/////////////////
|
||||
//SMOKING PIPES//
|
||||
/////////////////
|
||||
|
||||
@@ -270,12 +270,15 @@
|
||||
. = ..()
|
||||
icon_state = "[base_icon_state][contents.len ? null : "_empty"]"
|
||||
|
||||
/obj/item/storage/fancy/cigarettes/proc/open_icon_state()
|
||||
return "[icon_state]_open"
|
||||
|
||||
/obj/item/storage/fancy/cigarettes/update_overlays()
|
||||
. = ..()
|
||||
if(!open_status || !contents.len)
|
||||
return
|
||||
|
||||
. += "[icon_state]_open"
|
||||
. += open_icon_state()
|
||||
|
||||
if(!display_cigs)
|
||||
return
|
||||
@@ -546,10 +549,14 @@
|
||||
/obj/item/storage/fancy/cigarettes/cigars/havana
|
||||
name = "\improper premium Havanian cigar case"
|
||||
desc = "A case of classy Havanian cigars."
|
||||
icon_state = "cohibacase"
|
||||
base_icon_state = "cohibacase"
|
||||
icon_state = "havanacase"
|
||||
base_icon_state = "havanacase"
|
||||
spawn_type = /obj/item/cigarette/cigar/havana
|
||||
|
||||
|
||||
/obj/item/storage/fancy/cigarettes/cigars/havana/open_icon_state()
|
||||
return "cohibacase_open"
|
||||
|
||||
/obj/item/storage/fancy/cigarettes/cigars/havana/empty
|
||||
spawn_count = 0
|
||||
open_status = FANCY_CONTAINER_OPEN
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 54 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 26 KiB |
Reference in New Issue
Block a user