mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
remove rogue pipe bug (#5022)
Pipes burned shit too fast so this should fix it.
This commit is contained in:
@@ -390,7 +390,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
|
||||
item_state = "pipeoff"
|
||||
icon_on = "pipeon" //Note - these are in masks.dmi
|
||||
icon_off = "pipeoff"
|
||||
burn_rate = 0.003 //Lasts ~300 seconds
|
||||
burn_rate = 0.003
|
||||
w_class = 1
|
||||
chem_volume = 30
|
||||
matchmes = "<span class='notice'>USER lights their NAME with their FLAME.</span>"
|
||||
@@ -402,6 +402,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
|
||||
/obj/item/clothing/mask/smokable/pipe/Initialize()
|
||||
. = ..()
|
||||
name = "empty [initial(name)]"
|
||||
burn_rate = 0
|
||||
|
||||
/obj/item/clothing/mask/smokable/pipe/light(var/flavor_text = "[usr] lights the [name].")
|
||||
if(!src.lit && burn_rate)
|
||||
@@ -447,11 +448,11 @@ CIGARETTE PACKETS ARE IN FANCY.DM
|
||||
if (burn_rate)
|
||||
user << "<span class='notice'>[src] is already packed.</span>"
|
||||
return
|
||||
burn_rate = 0.1
|
||||
if(G.reagents)
|
||||
initial_volume = G.reagents.total_volume
|
||||
G.reagents.trans_to_obj(src, G.reagents.total_volume)
|
||||
name = "[G.name]-packed [initial(name)]"
|
||||
burn_rate = initial(burn_rate)
|
||||
qdel(G)
|
||||
|
||||
else if(istype(W, /obj/item/weapon/flame/lighter))
|
||||
|
||||
Reference in New Issue
Block a user