Skip to main content

LootModuleSaveData4

A internal class in Root.Township, Alta.Loot. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Old save format (version 4) for LootModule, which added respawnFrequency. Migrates to LootModuleSaveData.

Constructors​

MemberWhat it is
LootModuleSaveData4()Creates a LootModuleSaveData4 with default values.

Fields​

MemberWhat it is
Biome biomeOverride biome for the loot.
bool hasRunWhether the module had spawned loot. Dropped on migration.
float incrementingFailChanceSaved fail chance increment. Replaced with 0.01 on migration.
bool isOneOffWhether the module spawned once and then destroyed itself. Dropped on migration.
float prosperityProsperity value the loot is generated with.
float respawnFrequencySeconds between refills; -1 means not set.
TimeSpan waitToRefillTime left on the refill timer.

Methods​

MemberWhat it is
override SaveData Migrate()Converts to the current format but resets incrementingFailChance to 0.01 and drops isOneOff and hasRun.