A class in Root.Township, Alta.Loot.
One line in a preset loot set: what item to spawn, how many, and on which material.
Constructors
Fields
8 private and internal fields
| Member | What it is |
|---|
private float baseCount | How many spawn before prosperity and random changes. |
private ObjectPipeline item | Pipeline that picks the item. |
private int minimumDocks | Backing field for MinimumDocks. |
private ObjectPipeline physicalMaterial | Pipeline that picks the physical material, if set. |
private float prosperityMultiplier | Extra count per point of the spawn's prosperity attribute. |
private float randomCountRatio | Up to this fraction of the count is randomly removed. |
private int rounds | Backing field for Rounds. |
private SpawnData temp | The spawn data of the current spawn, kept for CheckMaterial. |
Properties
| Member | What it is |
|---|
int MinimumDocks { get; } | The group must have at least this many docks for the entry to spawn. |
int Rounds { get; } | How many times the entry tries to spawn, each into another dock. |
Methods
| Member | What it is |
|---|
bool SpawnInto(SpawnData spawnData, PickupDock dock) | Spawns the item into a dock: base count plus prosperity bonus, minus a random part, rounded up. False if nothing spawned. |
1 private and internal method
| Member | What it is |
|---|
private void CheckMaterial(Pickup pickup) | Sets the spawned pickup's physical material, if this entry has one. |
Used in
Members of other types that take, return or hold a Entry: