


A per-moon enemy and item spawning customization mod. All configs are disabled by default. Please request features or report issues here. Configs are generated after you host or join a game, and can be confirmed if this mod prints out debug information in the console about every moon and enemy type.
You must host or join a game at least once to generate the configuration files. Any missing or deleted files will be generated with the default options.
Complex config types:
AnimationCurve - Represents a curve comprised of Keyframes. Each frame represents a key, and a value at that key(generally time).
key:value) separated by commasThere are 3 different enemy configuration files:
Enemies.cfg - Responsible for all enemies that spawn inside.DaytimeEnemies.cfg - Responsible for enemies that can spawn outside, but normally passive ones.OutsideEnemies.cfg - Responsible for all enemies that can spawn outside, but normally hostile ones.These configuration files do not interfere with each other, meaning enemies spawned based on one config will not count towards settings from another config(such as MaxEnemyCount).
Options
Enabled - Allow/Disallow this config to modify enemy spawning. You must enable this option to change enemy spawning behavior.MaxPowerCount - Maximum total power allowed for this category of enemies. Different enemy types have different power levels. The total power of a level is the sum of the power levels of all existing enemies.SpawnAmountCurve - An AnimationCurve with a key ranging from 0 to 1. The key represents the percentage of time progressed in the current level. The value is the amount of enemies to spawn at the given time.SpawnAmountRange - The range of enemies that can spawn. A value of 3 means that 3 more or 3 less enemies can spawn, based on the value returned by the SpawnAmountCurve.Rarity - The weight given to this enemy vs other enemies. If you do not want the enemy to spawn, set the rarity to 0.MaxEnemyCount - The total amount of enemies of the given type that can spawnPowerLevel - How much power an enemy of the given type counts forSpawnCurve - An AnimationCurve from 0 to 1. The key represents the percentage of time progressed, much like SpawnChanceCurve. The value normally ranges from 0 to 1, and is multiplied by Rarity to find the weight.SpawnFalloffCurve - An AnimationCurve describing the multiplier to use when determining the value of SpawnChanceCurve, dependent on the number of existing enemies with the same type divided by 10.UseSpawnFalloff - If true, then the resulting value from the SpawnFalloffCurve will be multiplied with the value from SpawnCurveExceptions:
OutsideEnemies.cfg option SpawnChanceRange has a hardcoded value of 3 in-game, and cannot be changedThere is 1 scrap configuration file.
Scrap.cfg - responsible for all scrap generationThese configuration values are set per moon.
Options
Enabled - Allow/Disallow this config to modify scrap spawning. You must enable this option to change scrap spawning behavior.MaxScrapCount - Maximum total number of scrap items generated in a level.MinScrapCount - Minimum total number of scrap items generated in a level.MaxTotalScrapValue - The maximum total value for all scrap generated in a level.MinTotalScrapValue - The minimum total value for all scrap generated in a level.Rarity - The weight of this item, relative to the total weight of all items.The enemy spawn logic in Lethal Company is a bit complex, and there are many additional variables that I did not make configurable. It would require a fairly large recode, and it would be more likely to cause problems with other mods. That said, here are some basic things to keep in mind when configuring enemy spawning:
weight of enemy type / total weight, where the total weight is the sum of the weights of all enemy typesrarity * spawn chance at the current time . If UseSpawnFalloff is enabled(like baboon hawks), then it is rarity * spawn chance at the current time * spawn falloff multiplier at the current time. Spawn falloff multiplier has a curve with a key that is the total amount of that mob / 10.