Lethal Company
Install with App

Details

Latest version
1.2.0
Last Updated
First Uploaded
Downloads
743
Likes
1
Size
120KB
Dependants

BaconGameRules

BaconGameRules

Your save, your rules.
Credits, quota, days, day length, scrap, enemies and traps for each save file · Scaled for 1 to 10 players · Replay any map seed · Set on the host screen · The host's rules count for everyone

These were part of BaconFixer up to 1.2.1, and work the same, with more rules since.

Game Rules

Click a save file on the host screen and a Game Rules window opens for it. Point at a rule to see what it does, and what it comes to for that file, in the window's right column. A bar with EDIT RULES stays on the host screen. Each of the 3 save files keeps its own rules, in BepInEx/config/bacongamerules.cfg. If you set rules in BaconFixer 1.x, they carry over. The challenge file isn't affected.

Change a value with - and +, or click it, type a number and press Enter. A typed number is kept within the rule's limits. Changing any value makes the file Custom.

Quota and time

Preset Credits First quota Quota growth Days per quota Day length
Easy 150 100 75% 4 +20%
Normal 60 130 100% 3 +0%
Hard 30 200 150% 3 -10%
Brutal 0 250 200% 3 -20%

On the moon

Preset Enemies Enemy spawn rate Mines Turrets Other traps
Easy 75% 75% 50% 50% 50%
Normal 100% 100% 100% 100% 100%
Hard 125% 125% 150% 150% 150%
Brutal 200% 200% 200% 200% 200%

Normal leaves the game's values alone. Every preset keeps scrap amount and scrap value at 100%, and you can change them, on top of weather bonuses.

  • Day length runs from -50% to +200% and shows the result in minutes. A normal day is 11.7 minutes from landing to midnight, and a moon with its own clock speed is listed in the window with its time. The clock runs slower or faster, so the ship still leaves at the same clock time, and enemies still arrive by clock time.
  • Enemies is how many enemies a moon can hold at once. Enemy spawn rate is how many come out each hour, so at 200% attacks start sooner and the moon fills up faster, up to what Enemies allows.
  • Mines, Turrets and Other traps set how many of each an interior gets, from 0% (none) to 500%. Other traps are spike traps, and traps from mods that the game counts as hazards. Mods' other map objects, such as med kits or decorations, stay as they are.
  • Saves already started: crew size, day length, scrap, enemies and traps apply right away, and quota growth and days from the next quota. Starting credits and quota only apply if the crew gets fired.

Crew size

Scaled for sets how many players a save is balanced for, from 1 to 10. It works on top of the difficulty, Normal included, and picking a difficulty keeps it. The host picks it, so it doesn't change when players join or leave: a lobby open for 10 can be scaled for 4.

Scaled for 1 2 3 4 6 8 10
Scrap value +30% +20% +10%
Scrap amount +20% +40% +60%
Enemies and traps -30% -20% -10% +10% +20% +30%

Each player under 4 makes scrap worth 10% more and brings 10% fewer enemies and traps: a small crew has fewer hands, and dying alone loses everything. Each player over 4 adds 10% more scrap, so everyone has loot to carry, and 5% more enemies and traps. The quota, days and day length stay as the difficulty sets them, so bigger crews still have it a little easier. Enemies and traps means the Enemies, Enemy spawn rate, Mines, Turrets and Other traps rules.

For other mods

Other mods can add their own rules for each save file to the window, and scale the host's scrap, enemy, trap and quota growth rules during a run, through BaconGameRules.RulesApi: AddRule for a number, AddChoice for a choice of named options that < and > go round, and AddFactor. Add BaconGameRules as a soft dependency.

Map seeds

A landing's map seed decides its interior, layout and scrap. BaconGameRules saves each landing's seed, moon and interior in BepInEx/config/bacongamerules.seeds.txt. In the terminal:

  • SEED shows this landing's seed and the last 8.
  • SEED 424242 lands on that seed next time. Only the host can pick it, and it counts for one landing.
  • SEED RANDOM goes back to a random seed.

The same seed on the same moon, with the same mods and rules, gives the same interior, layout and scrap. Weather isn't part of it, because the game picks each day's weather the day before. The challenge moon always uses its own seed.

Required mods

Installing BaconGameRules also installs LethalLevelLoader, which the window uses to list the moons with their own clock speed, and which names modded interiors in the seed list. If you turn it off, the window says so, and everything else still works.

Multiplayer

Credits, quota, days, scrap, enemies, spawn rate and traps are decided by the host's game and reach other players through the game's own messages. Each player's game runs its own clock, so the host also sends its day length. Players without BaconGameRules run the game's normal clock, so theirs drifts between the game's own time syncs. Players on BaconFixer 1.x get the host's day length too.

Every player with BaconGameRules can type SEED, and keeps their own list of seeds. Only the host picks the next one.

With BaconTerminal, the LOOT line on moon pages counts the save's scrap rules.

The Bacon mods

Get the ones you want. The Company Adventures has BaconFixer, BaconTerminal and BaconGameRules set up to work together.

Mod What it does
BaconFixer BaconFixer Fixes only, for any modpack.
BaconMemory BaconMemory Less RAM, same game: about 1.7 GB less in a round of a big modpack.
BaconTerminal BaconTerminal Weather bonuses, loot estimates, interior odds and day length in the terminal, Modern tables for the moons and the store, and terminal themes and styles.
BaconGameRules BaconGameRules
You're here
Easy, Normal, Hard, Brutal or your own rules for each save file, and map seeds to replay.
The Company Adventures The Company Adventures A modpack with BaconFixer, BaconTerminal, BaconGameRules and 100+ more mods: 53 new moons, 13 new interiors, new weathers and more.

Limits

Mines, Turrets and Other traps count the traps the game spawns from each moon's list. A trap a mod spawns on its own, or one that doesn't mark itself as a hazard, stays as that mod makes it.

BaconGameRules turns itself off while BaconFixer 1.x is installed, because that version has Game Rules built in, and logs a warning saying so. Update BaconFixer to 2.0.0 or later.

Feedback

Found a bug, or want another rule? Message me on Discord: bac_kun.

AI disclosure

The code and this README were generated with Claude Code, Anthropic's AI coding agent. The author directed the work and tested the mod in game.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.