diff --git a/code/game/gamemodes/blob/blobs/factory.dm b/code/game/gamemodes/blob/blobs/factory.dm index 02c3fc2fb3d..2fb1b61b97f 100644 --- a/code/game/gamemodes/blob/blobs/factory.dm +++ b/code/game/gamemodes/blob/blobs/factory.dm @@ -71,6 +71,19 @@ ..() Die() + // On death, create a small smoke of harmful gas (s-Acid) + var/datum/effect/effect/system/chem_smoke_spread/S = new + var/turf/location = get_turf(src) + + // Create the reagents to put into the air, s-acid is yellow and stings a little + create_reagents(25) + reagents.add_reagent("spore", 25) + + // Attach the smoke spreader and setup/start it. + S.attach(location) + S.set_up(reagents, 1, 1, location, 15, 1) // only 1-2 smoke cloud + S.start() + del(src) Del() diff --git a/code/game/objects/effects/effect_system.dm b/code/game/objects/effects/effect_system.dm index 3ada6fe2085..891362acf88 100644 --- a/code/game/objects/effects/effect_system.dm +++ b/code/game/objects/effects/effect_system.dm @@ -483,7 +483,9 @@ steam.start() -- spawns the effect chemholder.reagents = R R.my_atom = chemholder + set_up(var/datum/reagents/carry = null, n = 5, c = 0, loca, direct, silent = 0) + if(n > 20) n = 20 number = n diff --git a/code/modules/reagents/Chemistry-Reagents.dm b/code/modules/reagents/Chemistry-Reagents.dm index 53db0f98999..460e562c2d9 100644 --- a/code/modules/reagents/Chemistry-Reagents.dm +++ b/code/modules/reagents/Chemistry-Reagents.dm @@ -1512,6 +1512,21 @@ datum ..() return + + toxin/spore + name = "Spore Toxin" + id = "spore" + description = "A toxic spore cloud which blocks vision when ingested." + reagent_state = LIQUID + color = "#9ACD32" + toxpwr = 0.5 + + on_mob_life(var/mob/living/M as mob) + ..() + M.damageoverlaytemp = 60 + M.eye_blurry = max(M.eye_blurry, 3) + return + toxin/chloralhydrate name = "Chloral Hydrate" id = "chloralhydrate"