LethalCompanyModding / Enhancer

A small mod designed for solo play
https://thunderstore.io/c/lethal-company/p/Mom_Llama/Lethal_Company_Enhancer/
Other
4 stars 1 forks source link

[FR] More Configurable Options #4

Closed Lordfirespeed closed 12 months ago

Lordfirespeed commented 1 year ago

It would be great if the mod could support configuring some additional options!

Quota Options

The following variables are part of QuotaSettings and require no implementation other than updating their values:

Death penality Options

Maximum Death Penalty %

The % of your money that you will lose if all players die and are unrecovered.

Death Penalty Harshness Scaling

For ease of reading, allow these variables:

Vanilla Behaviour

In Vanilla, players lose a linear % of their cash per unrecovered player, and a lower linear % of their cash per recovered player.

That is, cash loss = $C\times (P_D + 0.4\times P_R)\times M/P$

Proposed Behaviour

Add a configured floating-point value, say $\lambda$.

The value would allow configuring the penalty 'harshness' so that fewer unrecovered deaths -> less penalty.

Cash loss = $C\times (P_D + 0.4\times P_R)^\lambda \times M/P^\lambda$

With the default value of $1$, vanilla functionality is preserved.

Setting $\lambda=2$, in a lobby of 4 players, with maximum penality = 80%: