public float GetModifier(PersonalityNodeDef def) { PersonalityNodeParent parent = parents.Find((PersonalityNodeParent p) => p.node == def); return(parent.modifier > 0 ? -1 / parent.modifier : 1 / Mathf.Abs(parent.modifier - 1)); }
public float GetModifier(PersonalityNodeDef def) { PersonalityNodeParent parent = ParentNodes[def]; return(parent.modifier > 0 ? -1 / parent.modifier : 1 / Mathf.Abs(parent.modifier - 1)); }