Class Consts.EventWeight
- Namespace
- ONITwitchLib
- Assembly
- ONITwitchLib.dll
Constants to use for event weights. Using these constants is not mandatory, but is heavily suggested so that
events have a consistent relative frequency.
Suggested usage is:
using static ONITwitchLib.Consts;
// ...
var myWeight = EventWeight.Common;
[PublicAPI]
public static class Consts.EventWeight
- Inheritance
-
Consts.EventWeight
- Inherited Members
Fields
AlmostNever
Events that should be possible, but should be exceptionally rare, things that should only want to happen to a
colony once in hundreds or thousands of cycles.
Examples of this weight in the base Twitch Integration mod are:
- Kill Duplicant
- Lava Flood
[PublicAPI]
public const int AlmostNever = 1
Field Value
Common
Events that should occur commonly and regularly. Events in this category should not cause significant harm to a
colony.
Examples of this weight in the base Twitch Integration mod are:
- Surprise Box
- Glitter Puft
- Sleepy Dupes
- Fart
[PublicAPI]
public const int Common = 20
Field Value
Frequent
Events that should occur very frequently. Events in this category should be mostly neutral, neither providing much
help nor causing much harm to a colony.
Examples of this weight in the base Twitch Integration mod are:
- Spawn Solid/Liquid
- Spawn Dupe
[PublicAPI]
public const int Frequent = 40
Field Value
Never
Literally 0 weight. Events with this weight will never be drawn. This is mostly here for consistency in case someone finds it useful.
[PublicAPI]
public const int Never = 0
Field Value
Rare
Events that should occur rarely. Events in this category should not be colony ending if they are dangerous.
Examples of this weight in the base Twitch Integration mod are:
- Uninsulate Tiles
- Morph Critters
[PublicAPI]
public const int Rare = 5
Field Value
Uncommon
Events that should occur infrequently. Events in this category should be a decent challenge for the player or
provide something useful.
Examples of this weight in the base Twitch Integration mod are:
- Tune Geyser
- Spawn Deadly Element (note that they are encased in a perfect insulator)
- Oil and Ethanol Flood
[PublicAPI]
public const int Uncommon = 10
Field Value
VeryRare
Events that are very rare, for example because they create a unique item or cause significant damage.
Examples of this weight in the base Twitch Integration mod are:
- Lava Flood
[PublicAPI]
public const int VeryRare = 2