mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 20:20:33 +01:00
* Remove bad reference from atmos (#53781) Change the name from Cyrion B to Zauker due to the easy connection the bad groups in the past Not getting a repo ban is good * Remove bad reference from atmos Co-authored-by: Ghilker <42839747+Ghilker@users.noreply.github.com>
96 lines
3.8 KiB
Plaintext
96 lines
3.8 KiB
Plaintext
/obj/item/grenade/gas_crystal
|
|
desc = "Some kind of crystal, this shouldn't spawn"
|
|
name = "Gas Crystal"
|
|
icon = 'icons/obj/grenade.dmi'
|
|
icon_state = "bluefrag"
|
|
inhand_icon_state = "flashbang"
|
|
resistance_flags = FIRE_PROOF
|
|
|
|
|
|
/obj/item/grenade/gas_crystal/healium_crystal
|
|
name = "Healium crystal"
|
|
desc = "A crystal made from the Healium gas, it's cold to the touch."
|
|
icon_state = "healium_crystal"
|
|
///Amount of stamina damage mobs will take if in range
|
|
var/stamina_damage = 30
|
|
///Range of the grenade that will cool down and affect mobs
|
|
var/freeze_range = 4
|
|
///Amount of gas released if the state is optimal
|
|
var/gas_amount = 250
|
|
|
|
/obj/item/grenade/gas_crystal/proto_nitrate_crystal
|
|
name = "Proto Nitrate crystal"
|
|
desc = "A crystal made from the Proto Nitrate gas, you can see the liquid gases inside."
|
|
icon_state = "proto_nitrate_crystal"
|
|
///Range of the grenade air refilling
|
|
var/refill_range = 5
|
|
///Amount of Nitrogen gas released (close to the grenade)
|
|
var/n2_gas_amount = 400
|
|
///Amount of Oxygen gas released (close to the grenade)
|
|
var/o2_gas_amount = 100
|
|
|
|
/obj/item/grenade/gas_crystal/zauker_crystal
|
|
name = "Zauker crystal"
|
|
desc = "A crystal made from the Zauker Gas, you can see the liquid plasma inside."
|
|
icon_state = "zauker_crystal"
|
|
ex_dev = 1
|
|
ex_heavy = 2
|
|
ex_light = 4
|
|
ex_flame = 2
|
|
|
|
/obj/item/grenade/gas_crystal/preprime(mob/user, delayoverride, msg = TRUE, volume = 60)
|
|
var/turf/turf_loc = get_turf(src)
|
|
log_grenade(user, turf_loc) //Inbuilt admin procs already handle null users
|
|
if(user)
|
|
add_fingerprint(user)
|
|
if(msg)
|
|
to_chat(user, "<span class='warning'>You crush the [src]! [capitalize(DisplayTimeText(det_time))]!</span>")
|
|
if(shrapnel_type && shrapnel_radius)
|
|
shrapnel_initialized = TRUE
|
|
AddComponent(/datum/component/pellet_cloud, projectile_type=shrapnel_type, magnitude=shrapnel_radius)
|
|
active = TRUE
|
|
icon_state = initial(icon_state) + "_active"
|
|
playsound(src, 'sound/effects/hit_on_shattered_glass.ogg', volume, TRUE)
|
|
SEND_SIGNAL(src, COMSIG_GRENADE_ARMED, det_time, delayoverride)
|
|
addtimer(CALLBACK(src, .proc/prime), isnull(delayoverride)? det_time : delayoverride)
|
|
|
|
/obj/item/grenade/gas_crystal/healium_crystal/prime(mob/living/lanced_by)
|
|
. = ..()
|
|
update_mob()
|
|
playsound(src, 'sound/effects/spray2.ogg', 100, TRUE)
|
|
for(var/turf/turf_loc in view(freeze_range, loc))
|
|
if(!isopenturf(turf_loc))
|
|
continue
|
|
var/distance_from_center = max(get_dist(turf_loc, loc), 1)
|
|
var/turf/open/floor_loc = turf_loc
|
|
if(floor_loc.air.temperature > 260 && floor_loc.air.temperature < 370)
|
|
floor_loc.atmos_spawn_air("n2=[(gas_amount - 150) / distance_from_center];TEMP=273")
|
|
if(floor_loc.air.temperature > 370)
|
|
floor_loc.atmos_spawn_air("n2=[gas_amount / distance_from_center];TEMP=30")
|
|
floor_loc.MakeSlippery(TURF_WET_PERMAFROST, (5 / distance_from_center) MINUTES)
|
|
if(floor_loc.air.gases[/datum/gas/plasma])
|
|
floor_loc.air.gases[/datum/gas/plasma][MOLES] -= floor_loc.air.gases[/datum/gas/plasma][MOLES] * 0.5 / distance_from_center
|
|
floor_loc.air_update_turf()
|
|
for(var/mob/living/carbon/live_mob in turf_loc)
|
|
live_mob.adjustStaminaLoss(stamina_damage / distance_from_center)
|
|
live_mob.adjust_bodytemperature(-150 / distance_from_center)
|
|
qdel(src)
|
|
|
|
/obj/item/grenade/gas_crystal/proto_nitrate_crystal/prime(mob/living/lanced_by)
|
|
. = ..()
|
|
update_mob()
|
|
playsound(src, 'sound/effects/spray2.ogg', 100, TRUE)
|
|
for(var/turf/turf_loc in view(refill_range, loc))
|
|
if(!isopenturf(turf_loc))
|
|
continue
|
|
var/distance_from_center = max(get_dist(turf_loc, loc), 1)
|
|
var/turf/open/floor_loc = turf_loc
|
|
floor_loc.atmos_spawn_air("n2=[n2_gas_amount / distance_from_center];o2=[o2_gas_amount / distance_from_center];TEMP=273")
|
|
floor_loc.air_update_turf()
|
|
qdel(src)
|
|
|
|
/obj/item/grenade/gas_crystal/zauker_crystal/prime(mob/living/lanced_by)
|
|
. = ..()
|
|
update_mob()
|
|
qdel(src)
|