Skip to content

Commit

Permalink
Fix a typo in melatonin code (#4211)
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

Melatonin would heal you if you had Burn or Brute damage but harm you if
you had both. It now heals you in both case.

## Why It's Good For The Game

No more random damage.

## Changelog

:cl:
fix: Melatonin being harmfull in some edge case.
/: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: ritorizo <ritorizo@localhost>
  • Loading branch information
ritorizo and ritorizo authored Feb 19, 2025
1 parent e511c78 commit 083d862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/reagents/chemistry/reagents/medicine_reagents.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2304,9 +2304,9 @@
if(M.IsSleeping())
if(M.getBruteLoss() && M.getFireLoss())
if(prob(50))
M.adjustBruteLoss(0.5)
M.adjustBruteLoss(-0.5)
else
M.adjustFireLoss(0.5)
M.adjustFireLoss(-0.5)
else if(M.getBruteLoss())
M.adjustBruteLoss(-0.2)
else if(M.getFireLoss())
Expand Down

0 comments on commit 083d862

Please sign in to comment.