Skip to content

Commit

Permalink
Fixes phorids finding plasma awful smelling (#3882)
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
I forgot about phorids 

## Changelog

:cl:
fix: phoroids should no longer smell plasma, or anything for that
matter.
/: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. -->

Co-authored-by: retlaw34 <[email protected]>
  • Loading branch information
rye-rice and rye-rice authored Dec 6, 2024
1 parent 1303e3a commit ae74895
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/modules/surgery/organs/lungs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@

var/crit_stabilizing_reagent = /datum/reagent/medicine/epinephrine

///Can we smell odors? If false then we don't smell certain gases
var/can_smell = TRUE

/obj/item/organ/lungs/New()
. = ..()
populate_gas_info()
Expand Down Expand Up @@ -216,7 +219,8 @@
H.reagents.add_reagent(R, breath.get_moles(gas) * 2) // 2 represents molarity of O2, we don't have citadel molarity
mole_adjustments[gas] = (gas in mole_adjustments) ? mole_adjustments[gas] - breath.get_moles(gas) : -breath.get_moles(gas)

handle_smell(breath, H)
if(can_smell)
handle_smell(breath, H)

for(var/gas in mole_adjustments)
breath.adjust_moles(gas, mole_adjustments[gas])
Expand Down Expand Up @@ -582,6 +586,8 @@

breathing_class = BREATH_PLASMA

can_smell = FALSE

/obj/item/organ/lungs/plasmaman/populate_gas_info()
..()
gas_max -= GAS_PLASMA
Expand Down

0 comments on commit ae74895

Please sign in to comment.