Files
wwdpublic/Content.Shared/Contests
VMSolidus ad7fd137dd Update Contests System (#583)
# Description

This PR massively expands upon the functionality of the Contests System,
fully restoring it not only to the original level of functionality
available to the Nyanotrasen Contests, but vastly exceeding its
functionality too. Contests now include features like Health Contests,
Stamina Contests, but also include hooks for Mind Contests (To allow
other systems to implement theoretical effects of MindContest even
though I'm not yet finished with the Psionic Refactor).

Additionally, all Contests now include optional overrides, allowing
other functions to modify their own expected outcomes from the
ContestsSystem. These two optional overrides are:

- BypassClamp: Bypasses the clamp outright, allowing for Classic
Nyanotrasen Contests style of outputs, with theoretically infinite
results. If completely unlimited infinite results is desired, setting
this to true when calling Contests will unlock the range to (-inf, inf).
- RangeFactor: Proportionally expands the allowed Range of outputs from
a given Contest. Normally they are CVar clamped to +/- 0.25, but if for
instance RangeFactor was set to 2, the Range is now +/- 0.5

# Changelog

No changelog because this is completely zero player-facing
implementations. All I have done is give DEVS the tools needed to begin
implementing easy math into the game.

---------

Signed-off-by: VMSolidus <evilexecutive@gmail.com>
Co-authored-by: DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com>
2024-07-23 23:01:43 -07:00
..