Class WeightedRandData
- Namespace
- TrinketTinker.Models.Mixin
- Assembly
- TrinketTinker.dll
public abstract class WeightedRandData
- Inheritance
-
WeightedRandData
- Derived
- Inherited Members
Fields
randSelected
protected WeightedRandData? randSelected
Field Value
randomExtra
protected List<WeightedRandData>? randomExtra
Field Value
Properties
Condition
Condition to check before clip can be chosen
public string? Condition { get; set; }
Property Value
Nop
If true, this will actually do nothing (nop). For use with random
public bool Nop { get; set; }
Property Value
RandomWeight
Weight of randomization, higher number is more likely.
public int RandomWeight { get; set; }
Property Value
Methods
PickRandBase(Random, Farmer)
protected WeightedRandData? PickRandBase(Random rand, Farmer owner)
Parameters
rand
Randomowner
Farmer