Class CompletionPercentOverride
Configurable module that overrides the completion percentage.
Items and Placements will be weighted according to their CompletionWeightTag.
Transition weights are set in the module.
By default, finding an item increases the total by 1/(#items at placement),
and finding a transition X->Y, Y->X pair increases the total by 1.
Inheritance
CompletionPercentOverride
Assembly: ItemChanger.dll
Syntax
public class CompletionPercentOverride : Module
Constructors
View Source
CompletionPercentOverride()
Declaration
public CompletionPercentOverride()
Fields
View Source
FoundTransitions
Declaration
public HashSet<Transition> FoundTransitions
Field Value
View Source
TransitionWeights
Declaration
public Dictionary<Transition, float> TransitionWeights
Field Value
Properties
View Source
CoupledTransitions
If this is true, finding transition X -> Y will mark both X and Y as found.
Otherwise, just X will be marked.
Declaration
public bool CoupledTransitions { get; set; }
Property Value
View Source
NormalizePlacementCounts
If this is true, items will be scaled so that placements have total weight equal to their tag (or 1).
Declaration
public bool NormalizePlacementCounts { get; set; }
Property Value
Methods
View Source
ComputeCompletion(bool)
Declaration
public float ComputeCompletion(bool invalidateCache = false)
Parameters
| Type |
Name |
Description |
| bool |
invalidateCache |
|
Returns
View Source
GetItemFraction()
Declaration
public (float, float) GetItemFraction()
Returns
View Source
GetTransitionFraction()
Declaration
public (float, float) GetTransitionFraction()
Returns
View Source
Initialize()
Declaration
public override void Initialize()
Overrides
View Source
SetTransitionWeight(Transition, float)
Declaration
public void SetTransitionWeight(Transition t, float weight)
Parameters
View Source
Unload()
Declaration
public override void Unload()
Overrides
Extension Methods