Skip to main content

LootModuleSaveData1

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

Old save format (version 1) for LootModule, with the refill timer in float seconds. Migrates to LootModuleSaveData2.

Constructors​

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

Fields​

MemberWhat it is
Biome biomeOverride biome for the loot.
bool hasRunWhether the module had spawned loot.
float incrementingFailChanceHow much the chance to stop filling grows with each dock tried.
float prosperityProsperity value the loot is generated with.
float waitToRefillSeconds left on the refill timer.

Methods​

MemberWhat it is
override SaveData Migrate()Converts to version 2, turning the float seconds into a TimeSpan.