Rudeman-SizeScaling icon

SizeScaling

Measures each day's interior (rooms and floor area) and can scale scrap, enemy power, traps and spawn rate by its size, or cap sizes. All scaling is off until you set a strength. Host only; clients just see the size label.

By Rudeman
Last updated 4 hours ago
Total downloads 2
Total rating 0 
Categories Mods BepInEx Server-side Tweaks & Quality Of Life AI Generated
Dependency string Rudeman-SizeScaling-1.1.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305

README

SizeScaling

Interior size varies a lot from day to day, especially with modded interiors and Brutal Company's map-size events, and usually scrap and enemy spawn scale reasonably well with it (I actually toggle this mod off, it's just there in case), but if you find yourself running around a giant map with an empty inventory, or a tiny map has 10 scrap in each room, then this can fix that.

Out of the box it changes nothing

Every scaling strength defaults to 0 and size control is off. With the defaults the mod only measures:

  • the generated size (DunGen's length multiplier), and
  • the real size: number of rooms and total floor area, with a Small / Normal / Large / Huge label once a few days have been recorded.

PerfWatcher's Day Info panel shows the label, e.g. Large (85 rooms, 9,400 m²). Turn on the parts you want in the config.

Scaling

The size factor is (size / ReferenceSize) ^ Exponent, clamped between MinMultiplier and MaxMultiplier. Each channel has its own strength (0 = off, 1 = full factor, 2 = double the effect):

  • ScrapCountStrength, ScrapValueStrength: number and value of inside scrap
  • InsidePowerStrength, OutsidePowerStrength: maximum enemy power
  • TrapStrength: turrets, mines, spike traps and modded indoor hazards
  • InsideSpawnRateStrength: inside enemies spawned per hour

ScaleDown decides whether small interiors get multipliers below 1; AllowScrapReduction = false keeps scrap at 1x or more. Enemy-rush days are never scaled for power or spawn rate. The Company is never touched.

Size control

[SizeControl] Enabled = true lets you set a minimum and maximum size (hard or soft), per-interior rules (PerInterior), or replace the map-size multiplier outright.

Who needs it

The host. The host measures, scales and decides sizes. Clients only receive the display values for their Day Info panel, so a client without the mod plays exactly the same day.

Config highlights

BepInEx/config/jacob.sizescaling.cfg

Key Default What it does
General.Enabled true Master switch
General.ExcludeMoons / ExcludeInteriors (empty) Never scaled or size-controlled
General.ApplyOnChallengeMoons false Also act on challenge moons
Scaling.ReferenceSize 1.5 Size that counts as normal (Experimentation's facility)
Scaling.*Strength 0 Per channel, see above
SizeControl.Enabled false Turn the size limits on
Display.ShowInChat true Host chat line after landing when something changed. ChobblePack turns it off
Display.ShareWithClient true Send the display values to clients

Compatibility

  • Targets v81 (BepInEx 5) and has no hard dependencies.
  • Size control hooks LethalLevelLoader's dungeon-size calculation, so that part needs LethalLevelLoader. Scaling takes Brutal Company Minus, WeatherRegistry, GeneralImprovements, Lategame Upgrades, LethalProgression and DawnLib into account by running its scrap changes after theirs; none are required.
  • PerfWatcher shows its line on the Day Info panel when both are installed.

AI disclosure

The code, documentation (partial) and icon of this mod were generated with Anthropic's Claude (Claude Opus 5.5 and other Claude models, via Claude Code). The author designed the mod, directed the work and tested it in game.