Skip to content

Commit

Permalink
Make gas analyzers show volume (#6090)
Browse files Browse the repository at this point in the history
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request

Exactly what it says on the tin. Gas analyzers will now show the volume
of what they're analyzing

## Why It's Good For The Game

Knowing the volume is often helpful for atmos, it's the one major
variable we can't easily see.

## Changelog

<!-- If your PR modifies aspects of the game that can be concretely
observed by players or admins you should add a changelog. If your change
does NOT meet this description, remove this section. Be sure to properly
mark your PRs to prevent unnecessary GBP loss. You can read up on GBP
and it's effects on PRs in the tgstation guides for contributors. Please
note that maintainers freely reserve the right to remove and add tags
should they deem it appropriate. You can attempt to finagle the system
all you want, but it's best to shoot for clear communication right off
the bat. -->

:cl: SingingSpock
add: Gas analyzers show the volume of gas in what they scan.
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
  • Loading branch information
SingingSpock authored Oct 20, 2023
1 parent 4d4c876 commit e899d39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/modules/atmospherics/gasmixtures/gas_mixture.dm
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@
return
var/pressure = return_pressure()
. += SPAN_NOTICE("Pressure: [round(pressure, 0.001)] kPa")
. += SPAN_NOTICE("Volume: [round(volume, 0.001)] L")
. += SPAN_NOTICE("Temperature: [round(temperature, 0.001)]&deg;K ([round(temperature - T0C, 0.001)]&deg;C)")
var/reagents = 0
var/other = 0
Expand Down

0 comments on commit e899d39

Please sign in to comment.