Skip to content

Commit

Permalink
[MIRROR] [NO GBP] fixes positive viruses being hidden (#2773)
Browse files Browse the repository at this point in the history
* [NO GBP] fixes positive viruses being hidden (#83576)

## About The Pull Request

#83459 made stealth a function of being equal to or higher than severity
which made a lot of previously visible positive viruses hidden.
Unintended behavior, fixes it.

## Why It's Good For The Game

fix good, most people without HUDs can't see these anyway. It's almost a
QOL thing to just be able to ask a doctor "hey do I have a positive
virus" since if it's perfectly positive, there's nothing really gained
by people not knowing (you, enemies, and friends alike.)

## Changelog

:cl:
fix: positive viruses are no longer hidden.
/:cl:

* [NO GBP] fixes positive viruses being hidden

---------

Co-authored-by: Higgin <[email protected]>
Co-authored-by: NovaBot13 <[email protected]>
  • Loading branch information
3 people authored and StealsThePRs committed Jun 1, 2024
1 parent e5c22db commit 19aa5d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/datums/diseases/advance/advance.dm
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
/datum/disease/advance/proc/assign_properties()

if(properties?.len)
if(properties["stealth"] >= properties["severity"])
if(properties["stealth"] >= properties["severity"] && properties["severity"] > 0)
visibility_flags |= HIDDEN_SCANNER
else
visibility_flags &= ~HIDDEN_SCANNER
Expand Down

0 comments on commit 19aa5d8

Please sign in to comment.