Skip to main content

SameTargetOperation

A class in Root.Township, Alta.Intelligence.

Prefab scoring component that adds a SameTarget rule.

Constructors​

MemberWhat it is
SameTargetOperation()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

3 private and internal fields
MemberWhat it is
private float differentValueValue for any other target (default 0.8).
private float multiplierWeight of the rule. Only matters for preferred rules.
private float sameValueValue for the current target (default 1).

Methods​

MemberWhat it is
override TargetOperation GetOperation()Makes the SameTarget rule, weighted by multiplier.
protected override string GetName()Builds the GameObject name, like Same Target ? 1 : 0.8 (x1).