Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 5 new gases, related interactions/items/content, changes parts of fusion #53013

Merged
merged 38 commits into from Sep 10, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
2485402
AHAH atmos goes BRRRRRR
Ghilker Aug 17, 2020
dba15df
some fixes, better code and sprites
Ghilker Aug 17, 2020
c7f67aa
more reactions, icon fixes, flamethrower now heat up gases on shoot, …
Ghilker Aug 18, 2020
67138b8
flamethrower fix and fireaxe balance
Ghilker Aug 18, 2020
fac58a2
merge master
Ghilker Aug 20, 2020
98b68e0
new gas names!
Ghilker Aug 20, 2020
a79a5d6
forgot this
Ghilker Aug 20, 2020
b60bece
raynar is now a reagent used in breath code
Ghilker Aug 20, 2020
2eccf9c
new atmos device the "pressure valve"
Ghilker Aug 21, 2020
6fb91dd
reactions.dm fixes, grammar fix, removed flamethrower.dm changes (dum…
Ghilker Aug 22, 2020
9700459
f
Ghilker Aug 22, 2020
8fa4ea1
changed the armor type for the metallic hydrogen
Ghilker Aug 22, 2020
9ad2e29
requested changes
Ghilker Aug 22, 2020
c61ec5b
new names and requested changes
Ghilker Aug 23, 2020
f8d3f59
name change (again), more breath code
Ghilker Aug 23, 2020
14fa4bf
fusion is a bit "easier" to start
Ghilker Aug 23, 2020
05e0a75
requested changes, balancing and AHHHH FIX IT NOW
Ghilker Aug 23, 2020
0f29267
quick pluox fix
Ghilker Aug 24, 2020
d4b9543
merge master
Ghilker Aug 24, 2020
efc961f
fixes
Ghilker Aug 24, 2020
86d2109
fixes and balancing, lowered hypernob min temp of reaction, balanced …
Ghilker Aug 25, 2020
1846efd
Merge branch 'master' into reactions-go-BRRRR
Ghilker Aug 25, 2020
8a4d11f
nobody tells me anything ç_ç
Ghilker Aug 25, 2020
5e41e02
docs
Ghilker Aug 26, 2020
58a9086
balancing
Ghilker Aug 26, 2020
0277d01
merge master
Ghilker Aug 26, 2020
3c3042d
F
Ghilker Aug 26, 2020
0cfb92f
change
Ghilker Aug 27, 2020
c671340
atmos grenades works by distance, added bounties and gas selling
Ghilker Aug 27, 2020
095755b
merge master
Ghilker Aug 28, 2020
8b2515a
atomized removal
Ghilker Aug 28, 2020
c23dc8d
changes
Ghilker Aug 29, 2020
3999e02
changes
Ghilker Aug 29, 2020
d1fc932
min max the freon fire
Ghilker Aug 29, 2020
f97ae51
requested changes
Ghilker Aug 30, 2020
afc1217
merge master
Ghilker Aug 30, 2020
396012a
Merge master + remove travis error
Ghilker Sep 1, 2020
f3c3ff3
requested changes and some tweaks
Ghilker Sep 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions code/datums/components/crafting/recipes.dm
Expand Up @@ -870,3 +870,14 @@
reqs = list(
/obj/item/reagent_containers/food/snacks/grown/wheat = 50
)


/datum/crafting_recipe/elder_atmosian_statue
name = "Elder Atmosian Statue"
result = /obj/structure/statue/elder_atmosian
time = 60
Rohesie marked this conversation as resolved.
Show resolved Hide resolved
reqs = list(/obj/item/stack/sheet/mineral/metal_hydrogen = 10,
/obj/item/grenade/gas_crystal/x_crystal = 1,
/obj/item/grenade/gas_crystal/y_crystal = 1,
/obj/item/grenade/gas_crystal/z_crystal = 1,)
category = CAT_MISC
15 changes: 15 additions & 0 deletions code/game/objects/items/fireaxe.dm
Expand Up @@ -70,3 +70,18 @@

/obj/item/fireaxe/boneaxe/update_icon_state()
icon_state = "bone_axe0"

/*
* Metal Hydrogen Axe
*/
/obj/item/fireaxe/metalh2axe // Blatant imitation of the fireaxe, but made out of metallic hydrogen
Rohesie marked this conversation as resolved.
Show resolved Hide resolved
icon_state = "metalh2_axe0"
name = "metallic hydrogen axe"
desc = "A large, menacing axe made of an unkown substance that the most elder atmosians calls Metallic Hydrogen. Truly an otherwordly weapon."

/obj/item/fireaxe/metalh2axe/ComponentInitialize()
. = ..()
AddComponent(/datum/component/two_handed, force_unwielded=6, force_wielded=26, icon_wielded="metalh2_axe1")
Ghilker marked this conversation as resolved.
Show resolved Hide resolved

/obj/item/fireaxe/metalh2axe/update_icon_state()
icon_state = "metalh2_axe0"
74 changes: 74 additions & 0 deletions code/game/objects/items/grenades/atmos_grenades.dm
@@ -0,0 +1,74 @@
/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/x_crystal
Ghilker marked this conversation as resolved.
Show resolved Hide resolved
name = "X Crystal"
desc = "A crystal made from the Gas X, it's cold to the touch."
var/stamina_damage = 30
var/freeze_range = 4

/obj/item/grenade/gas_crystal/y_crystal
name = "Y Crystal"
desc = "A crustal made from the Gas Y, you can see the liquid gases inside."
Ghilker marked this conversation as resolved.
Show resolved Hide resolved
var/refill_range = 5

/obj/item/grenade/gas_crystal/z_crystal
Ghilker marked this conversation as resolved.
Show resolved Hide resolved
name = "Z Crystal"
desc = "A crustal made from the Gas Z, you can see the liquid plasma inside."
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/T = get_turf(src)
log_grenade(user, T) //Inbuilt admin procs already handle null users
Rohesie marked this conversation as resolved.
Show resolved Hide resolved
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/x_crystal/prime(mob/living/lanced_by)
. = ..()
update_mob()
for(var/turf/T in view(freeze_range,loc))
if(isopenturf(T))
var/turf/open/F = T
Rohesie marked this conversation as resolved.
Show resolved Hide resolved
if(F.air.temperature > 400)
F.air.temperature = 260
if(F.air.gases[/datum/gas/plasma])
F.air.gases[/datum/gas/plasma][MOLES] -= F.air.gases[/datum/gas/plasma][MOLES] * 0.5
Ghilker marked this conversation as resolved.
Show resolved Hide resolved
F.air.gases[/datum/gas/nitrogen][MOLES] += 50
for(var/mob/living/carbon/L in T)
L.adjustStaminaLoss(stamina_damage)
L.adjust_bodytemperature(-150)
qdel(src)

/obj/item/grenade/gas_crystal/y_crystal/prime(mob/living/lanced_by)
. = ..()
update_mob()
for(var/turf/T in view(refill_range,loc))
if(isopenturf(T))
var/turf/open/F = T
F.air.gases[/datum/gas/nitrogen][MOLES] += 1400
F.air.gases[/datum/gas/oxygen][MOLES] += 600
qdel(src)

/obj/item/grenade/gas_crystal/z_crystal/prime(mob/living/lanced_by)
. = ..()
update_mob()
qdel(src)
3 changes: 3 additions & 0 deletions code/game/objects/items/stacks/sheets/mineral.dm
Expand Up @@ -482,6 +482,9 @@ GLOBAL_LIST_INIT(abductor_recipes, list ( \
//Metal Hydrogen
GLOBAL_LIST_INIT(metalhydrogen_recipes, list(
new /datum/stack_recipe("incomplete servant golem shell", /obj/item/golem_shell/servant, req_amount=20, res_amount=1),
new /datum/stack_recipe("ancient armor", /obj/item/clothing/suit/armor/riot/knight/greyscale, req_amount = 8, res_amount = 1),
new /datum/stack_recipe("ancient helmet", /obj/item/clothing/head/helmet/knight/greyscale, req_amount = 5, res_amount = 1),
Ghilker marked this conversation as resolved.
Show resolved Hide resolved
new /datum/stack_recipe("metallic hydrogen axe", /obj/item/fireaxe/metalh2axe, req_amount = 15, res_amount = 1),
))

/obj/item/stack/sheet/mineral/metal_hydrogen
Expand Down
10 changes: 10 additions & 0 deletions code/game/objects/structures/statues.dm
Expand Up @@ -300,3 +300,13 @@
desc = "A bust depicting a certain 19th century economist. You get the feeling a specter is haunting the station."
icon_state = "marx"
art_type = /datum/component/art/rev

///////////Elder Atmosian///////////////////////////////////////////

/obj/structure/statue/elder_atmosian
name = "Elder Atmosian"
desc = "A statue of an Elder Atmosian, capable of bending the laws of thermodinamics at his/her will"
icon_state = "eng"
Ghilker marked this conversation as resolved.
Show resolved Hide resolved
material_drop_type = /obj/item/stack/sheet/mineral/metal_hydrogen
max_integrity = 1000
impressiveness = 100
5 changes: 5 additions & 0 deletions code/game/turfs/open/_open.dm
Expand Up @@ -270,3 +270,8 @@
air.assert_gas(/datum/gas/pluoxium)
air.gases[/datum/gas/pluoxium][MOLES]+=(pulse_strength/4000)
air.garbage_collect()
if (air.gases[/datum/gas/hydrogen])
pulse_strength = min(pulse_strength, air.gases[/datum/gas/hydrogen][MOLES] * 1000)
air.gases[/datum/gas/hydrogen][MOLES] = max(air.gases[/datum/gas/hydrogen][MOLES] - (pulse_strength/1000), 0)
Rohesie marked this conversation as resolved.
Show resolved Hide resolved
air.assert_gas(/datum/gas/tritium)
air.gases[/datum/gas/tritium][MOLES] += (pulse_strength / 1000)
Ghilker marked this conversation as resolved.
Show resolved Hide resolved
45 changes: 45 additions & 0 deletions code/modules/atmospherics/gasmixtures/gas_types.dm
Expand Up @@ -170,6 +170,51 @@ GLOBAL_LIST_INIT(nonreactive_gases, typecacheof(list(/datum/gas/oxygen, /datum/g
dangerous = TRUE
rarity = 700

/datum/gas/gas_x
id = "gas_x"
specific_heat = 150
name = "Gas X"
dangerous = TRUE
gas_overlay = "gas_x"
moles_visible = MOLES_GAS_VISIBLE
rarity = 100

/datum/gas/gas_y
id = "gas_y"
specific_heat = 100
name = "Gas Y"
dangerous = TRUE
gas_overlay = "gas_y"
moles_visible = MOLES_GAS_VISIBLE
rarity = 100

/datum/gas/gas_z
id = "gas_z"
specific_heat = 900
name = "Gas Z"
dangerous = TRUE
gas_overlay = "gas_z"
moles_visible = MOLES_GAS_VISIBLE
rarity = 600

/datum/gas/delta_gas
id = "delta_gas"
specific_heat = 150
name = "Delta gas"
dangerous = TRUE
gas_overlay = "delta_gas"
moles_visible = MOLES_GAS_VISIBLE
rarity = 100

/datum/gas/gamma_gas
id = "gamma_gas"
specific_heat = 150
name = "Gamma gas"
dangerous = TRUE
gas_overlay = "gamma_gas"
moles_visible = MOLES_GAS_VISIBLE
rarity = 100
Ghilker marked this conversation as resolved.
Show resolved Hide resolved

/obj/effect/overlay/gas
icon = 'icons/effects/atmospherics.dmi'
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
Expand Down