示例#1
0
        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));
        }
示例#2
0
        public float GetModifier(PersonalityNodeDef def)
        {
            PersonalityNodeParent parent = ParentNodes[def];

            return(parent.modifier > 0 ? -1 / parent.modifier : 1 / Mathf.Abs(parent.modifier - 1));
        }