Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ArcaneMusic
Copy link
Member

@ArcaneMusic ArcaneMusic commented Oct 22, 2025

About The Pull Request

Fun idea discussed on the discord.
At low pressure, cans of soda will burst at 67.458 kPa, which is WAY higher than I would have expected, but that may just say something about the construction of the average can of soda.

Why It's Good For The Game

Fun little realism feature, which I found amusing enough for a quick 15 minute project. Only applies to cans that are actually exposed to atmos, so a held can while in space or in the bag won't trigger this reaction.

Changelog

🆑
qol: Leaving a can of soda exposed to the elements at low pressure will now burst.
/:cl:

@MrMelbert MrMelbert added Feature Exposes new bugs in interesting ways Atomic The rare pr that does one thing and one thing well labels Oct 22, 2025
@github-actions github-actions bot added the Quality of Life Increasing esword damage is not a quality of life for traitors label Oct 22, 2025
@necromanceranne
Copy link
Member

"My vintage collection of Monkey Energy cans! No!!"

@Mickyan
Copy link
Contributor

Mickyan commented Oct 22, 2025

Needs to check if the can is open

@Admiral-Gigaton
Copy link

how big of a boom? is it one that could damage someone, or is this just a little pop animation or smth (hurling cans at the voidwalker as fast as I can as we speak)

@Kurgis
Copy link
Contributor

Kurgis commented Oct 22, 2025

Drink Space Cola! (Warning, do not drink in space.)

Copy link
Member

@LemonInTheDark LemonInTheDark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HOLY SHIT

/obj/item/reagent_containers/cup/soda_cans/Initialize(mapload, vol)
. = ..()
AddElement(/datum/element/slapcrafting, string_list(list(/datum/crafting_recipe/improv_explosive)))
AddElement(/datum/element/atmos_sensitive, mapload) //Enables soda cans to explode in vaccuum.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IT'S HAPPENING

Comment on lines +176 to +177
/obj/item/reagent_containers/cup/soda_cans/should_atmos_process(datum/gas_mixture/air, exposed_temperature)
return air.return_pressure() <= SODA_EXPLOSION_PRESSURE
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS IT ONLY TOOK 6 YEARS

Comment on lines 179 to 181
/obj/item/reagent_containers/cup/soda_cans/atmos_expose(datum/gas_mixture/air, exposed_temperature)
if(reagents.total_volume)
burst_soda(loc)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to doompost about how technically just hooking into turf expose is better here because it's one and done (sensitive exists so stuff that wants to process on a loop while some atmos condition is met can), but with how you have it coded it is NOT (it maybe should be tho idk the cap's already off the thing right surely we should be checking for that)

@iansdoor
Copy link

That is so great.

@tttruancy
Copy link
Contributor

Funny to have selectively realistic behaviors like this on particular objects

@Loafin34
Copy link
Contributor

special interaction with beer kegs?

@ArcaneMusic
Copy link
Member Author

Funny to have selectively realistic behaviors like this on particular objects

Ideally we hit a wider pass of obvious pressure sensitive items, like balloons, inflatables, etc too, but this at least hits a proof of concept.

@Fghj240
Copy link
Contributor

Fghj240 commented Oct 22, 2025

why is this a qol?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Atomic The rare pr that does one thing and one thing well Feature Exposes new bugs in interesting ways Quality of Life Increasing esword damage is not a quality of life for traitors

Projects

None yet

Development

Successfully merging this pull request may close these issues.