Files
CursorandGitHub f5878d77c7 Ports Paradice Cig sprites (#4756)
## About The Pull Request

I tested this, screenshotted it then completely forgot to save said
screenshot before copying another image. It works, trust me.
## Why It's Good For The Game

They look better smiley face. 
## Proof Of Testing
<details>
<summary>Screenshots/Videos</summary>

</details>

## Changelog
🆑 Sprites by CRUNCH, Porting by TheSelfish.
add: Cigarettes and Cigars are now new and improved. Looking. They still
hurt your lungs.
/🆑
2025-10-01 21:50:19 -04:00

48 lines
1.7 KiB
Plaintext

/obj/item/holocigarette
name = "Holocigarette"
desc = "A cigarette created using holodeck technology. Want to smoke without all the downsides? Try Holocigarettes!"
icon = 'modular_zubbers/icons/obj/cigarettes.dmi'
icon_state = "cigoff"
throw_speed = 0.5
inhand_icon_state = "cigoff"
w_class = WEIGHT_CLASS_TINY
slot_flags= ITEM_SLOT_MASK
// Note - these are in masks.dmi not in cigarette.dmi
/// The icon state used when this is lit.
var/icon_on = "cigon"
/// The icon state used when this is extinguished.
var/icon_off = "cigoff"
var/lit = FALSE
actions_types = list(/datum/action/item_action/toggle_lit)
/obj/item/holocigarette/cigar
name = "Bright Cosmos cigar"
desc = "A fancy cigar created using holodeck technology. They look like they have a \"Bright Cosmos\" branding on their wrap."
worn_icon = 'modular_zubbers/icons/mob/clothing/mask/mask.dmi'
icon_state = "holocigaroff"
icon_on = "holocigaron"
icon_off = "holocigaroff"
/datum/action/item_action/toggle_lit
name = "Light"
desc = "Light or extinguish the holocigarette"
/datum/action/item_action/toggle_lit/Trigger(trigger_flags)
var/obj/item/holocigarette/smoked = target
var/mob/living/carbon/smoker = owner
if(smoked.lit == FALSE)
smoked.icon_state = smoked.icon_on
smoked.worn_icon_state = smoked.icon_on
smoked.inhand_icon_state = smoked.icon_on
smoked.lit = TRUE
smoked.name = "lit [smoked.name]"
else
smoked.icon_state = smoked.icon_off
smoked.worn_icon_state = smoked.icon_off
smoked.inhand_icon_state = smoked.icon_off
smoked.lit = FALSE
smoked.name = copytext_char(smoked.name, 5) //5 == length_char("lit ") + 1
smoked.update_icon()
smoker.update_worn_mask()
smoker.update_held_items()