Files
Bubberstation/code/modules/power/supermatter
SkyratBot 1d4407a29b [MIRROR] SM: Fix pressure bonus system [MDB IGNORE] (#9093)
* SM: Fix pressure bonus system (#62255)

* SM: Fix pressure bonus system

Fixes #62124 (Pressure wasn't actually doing anything)

> This is a multiplier meant to be used at low pressures.
> The lower the pressure the higher the multiplier.
> This is to encourage low pressure setups and so cold setups.
> At higher pressures (from around 100 kpa and up) it will max to 1

Current behavior is what follows.
As pressure drops, the multiplier remained at 1 until it dropped to 5.96kPa.
It then very marginally increased until it reaches x1.17 at 0kPa.

This commit introduces a system that solves the constants for the equation
based on human readable parameters, and sets provisional parameters for it. Also makes behavior better match the stated intent.

You can varedit the parameters to see the real effects of changes, just be
sure to proc call update_constants().

Constants default to what amounts to 0 so it fails loud (I WANT TO HEAR SUFFERING -Lemon)

* SM: Fix pressure bonus system

Co-authored-by: esainane <esainane+github@gmail.com>
2021-10-28 13:03:10 -04:00
..