Skip to main content

LootModuleSaveData3

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

Old save format (version 3) for LootModule, which added isOneOff. Migrates to LootModuleSaveData4.

Constructors​

MemberWhat it is
LootModuleSaveData3()Creates a LootModuleSaveData3 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.
bool isOneOffWhether the module spawned once and then destroyed itself. Lost on migration.
float prosperityProsperity value the loot is generated with.
TimeSpan waitToRefillTime left on the refill timer.

Methods​

MemberWhat it is
override SaveData Migrate()Converts to version 4 with respawnFrequency set to -1. isOneOff is not copied, so it becomes false.