fixes smoke

This commit is contained in:
Fox McCloud
2019-03-24 18:44:01 -04:00
parent 1d0cdbe8a9
commit ae7a141d28
3 changed files with 3 additions and 6 deletions
@@ -18,7 +18,7 @@
var/spread_amount = 96
/obj/effect/particle_effect/chem_smoke/New(location, chem_color)
..()
..(location)
color = chem_color
pixel_x += -16 + rand(-3, 3)
pixel_y += -16 + rand(-3, 3)
@@ -65,6 +65,7 @@
else
location = get_turf(loca)
carry.copy_to(chemholder, carry.total_volume)
carry.clear_reagents()
if(!silent)
var/contained = ""
for(var/reagent in carry.reagent_list)
@@ -105,7 +106,7 @@
new /obj/effect/particle_effect/chem_smoke(location, color)
if(x % 10 == 0) //Once every 10 ticks.
SmokeEm(effect_range)
INVOKE_ASYNC(src, .proc/SmokeEm, effect_range)
sleep(1)
qdel(src)
-2
View File
@@ -411,8 +411,6 @@
var/smoke_amount = round(sqrt(G.seed.potency * 0.1), 1)
S.set_up(G.reagents, splat_location)
S.start(smoke_amount)
if(G && G.reagents)
G.reagents.clear_reagents()
/datum/plant_gene/trait/plant_type // Parent type
name = "you shouldn't see this"
@@ -279,8 +279,6 @@ datum/chemical_reaction/flash_powder
S.start(3)
if(created_volume >=15)
S.start(4)
if(holder && holder.my_atom)
holder.clear_reagents()
/datum/chemical_reaction/smoke/smoke_powder
name = "smoke_powder_smoke"