cigarette ![code/game/objects/items/cigs_lighters.dm 133](git.png)
Vars | |
chem_volume | The capacity for chems this cigarette has. |
---|---|
choke_forever | If, when glorf'd, we will choke on this cig forever |
choke_time_max | When choking, what is the maximum amount of time we COULD choke for |
cig_smoke | The particle effect of the smoke rising out of the cigarette when lit |
cigarette_eaters | Which people ate cigarettes and how many |
drag_cooldown | The cooldown that prevents just huffing the entire cigarette at once. |
dragtime | How much time between drags of the cigarette. |
how_long_have_we_been_smokin | How long the current mob has been smoking this cigarette |
icon_off | The icon state used when this is extinguished. |
icon_on | The icon state used when this is lit. |
inhand_icon_off | The inhand icon state used when this is extinguished. |
inhand_icon_on | The inhand icon state used when this is lit. |
list_reagents | The reagents that this cigarette starts with. |
lit | Whether this cigarette has been lit. |
lung_harm | How much damage this deals to the lungs per drag. |
mob_smoke | The particle effect of the smoke rising out of the mob when...smoked |
smoke_all | Should we smoke all of the chems in the cig before it runs out. Splits each puff to take a portion of the overall chems so by the end you'll always have consumed all of the chems inside. |
smoketime | How long the cigarette lasts in seconds |
starts_lit | Whether this cigarette should start lit. |
type_butt | The type of cigarette butt spawned when this burns out. |
Procs | |
check_oxygen | Checks that we have enough air to smoke |
handle_reagents | Handles processing the reagents in the cigarette. |
light | Lights the cigarette with given flavor text. |
Var Details
chem_volume ![code/game/objects/items/cigs_lighters.dm 167](git.png)
The capacity for chems this cigarette has.
choke_forever ![code/game/objects/items/cigs_lighters.dm 175](git.png)
If, when glorf'd, we will choke on this cig forever
choke_time_max ![code/game/objects/items/cigs_lighters.dm 177](git.png)
When choking, what is the maximum amount of time we COULD choke for
cig_smoke ![code/game/objects/items/cigs_lighters.dm 179](git.png)
The particle effect of the smoke rising out of the cigarette when lit
cigarette_eaters ![code/game/objects/items/cigs_lighters.dm 185](git.png)
Which people ate cigarettes and how many
drag_cooldown ![code/game/objects/items/cigs_lighters.dm 163](git.png)
The cooldown that prevents just huffing the entire cigarette at once.
dragtime ![code/game/objects/items/cigs_lighters.dm 161](git.png)
How much time between drags of the cigarette.
how_long_have_we_been_smokin ![code/game/objects/items/cigs_lighters.dm 183](git.png)
How long the current mob has been smoking this cigarette
icon_off ![code/game/objects/items/cigs_lighters.dm 153](git.png)
The icon state used when this is extinguished.
icon_on ![code/game/objects/items/cigs_lighters.dm 151](git.png)
The icon state used when this is lit.
inhand_icon_off ![code/game/objects/items/cigs_lighters.dm 157](git.png)
The inhand icon state used when this is extinguished.
inhand_icon_on ![code/game/objects/items/cigs_lighters.dm 155](git.png)
The inhand icon state used when this is lit.
list_reagents ![code/game/objects/items/cigs_lighters.dm 169](git.png)
The reagents that this cigarette starts with.
lit ![code/game/objects/items/cigs_lighters.dm 146](git.png)
Whether this cigarette has been lit.
lung_harm ![code/game/objects/items/cigs_lighters.dm 173](git.png)
How much damage this deals to the lungs per drag.
mob_smoke ![code/game/objects/items/cigs_lighters.dm 181](git.png)
The particle effect of the smoke rising out of the mob when...smoked
smoke_all ![code/game/objects/items/cigs_lighters.dm 171](git.png)
Should we smoke all of the chems in the cig before it runs out. Splits each puff to take a portion of the overall chems so by the end you'll always have consumed all of the chems inside.
smoketime ![code/game/objects/items/cigs_lighters.dm 159](git.png)
How long the cigarette lasts in seconds
starts_lit ![code/game/objects/items/cigs_lighters.dm 148](git.png)
Whether this cigarette should start lit.
type_butt ![code/game/objects/items/cigs_lighters.dm 165](git.png)
The type of cigarette butt spawned when this burns out.
Proc Details
check_oxygen
Checks that we have enough air to smoke
handle_reagents
Handles processing the reagents in the cigarette.
light
Lights the cigarette with given flavor text.