mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
Crystal foam - crystallizer new recipe (#60535)
Adds crystal foam, a crystal grenade made in the crystallizer from CO2, N2O and H2O. When used it will release a big foamed area that will close any breaches, similar to the smart foam grenade.
This commit is contained in:
@@ -96,3 +96,33 @@
|
||||
var/turf/open/floor_loc = turf_loc
|
||||
floor_loc.atmos_spawn_air("n2o=[n2o_gas_amount / distance_from_center];TEMP=273")
|
||||
qdel(src)
|
||||
|
||||
/obj/item/grenade/gas_crystal/crystal_foam
|
||||
name = "crystal foam"
|
||||
desc = "A crystal with a foggy inside"
|
||||
icon_state = "crystal_foam"
|
||||
var/breach_range = 7
|
||||
|
||||
/obj/item/grenade/gas_crystal/crystal_foam/detonate(mob/living/lanced_by)
|
||||
. = ..()
|
||||
|
||||
var/datum/reagents/first_batch = new
|
||||
var/datum/reagents/second_batch = new
|
||||
var/list/datum/reagents/reactants = list()
|
||||
|
||||
first_batch.add_reagent(/datum/reagent/aluminium, 75)
|
||||
second_batch.add_reagent(/datum/reagent/smart_foaming_agent, 25)
|
||||
second_batch.add_reagent(/datum/reagent/toxin/acid/fluacid, 25)
|
||||
reactants += first_batch
|
||||
reactants += second_batch
|
||||
|
||||
var/turf/detonation_turf = get_turf(src)
|
||||
|
||||
chem_splash(detonation_turf, breach_range, reactants)
|
||||
|
||||
playsound(src, 'sound/effects/spray2.ogg', 100, TRUE)
|
||||
log_game("A grenade detonated at [AREACOORD(detonation_turf)]")
|
||||
|
||||
update_mob()
|
||||
|
||||
qdel(src)
|
||||
|
||||
Reference in New Issue
Block a user