Esempio n. 1
0
        public float GetMotiveFactor(MotiveKey key, bool relative, out bool exactMatch)
        {
            float multiple = key.GetMotiveFactor(mMotiveDeltasV2, out exactMatch);

            if ((relative) && (mRelativeMotives.ContainsKey(key.mKind)))
            {
                multiple *= sRelativeFactor;
            }

            if (multiple < 0)
            {
                multiple = 0;
            }

            return multiple;
        }
Esempio n. 2
0
        public float GetMotiveDecayFactor(MotiveKey key, out bool exactMatch)
        {
            float multiple = key.GetMotiveFactor(mMotiveDecayDeltasV2, out exactMatch);

            /*
            if ((relative) && (mRelativeDecayMotives.ContainsKey(kind)))
            {
                multiple *= sRelativeFactor;
            }
            */
            if (multiple < 0)
            {
                multiple = 0;
            }

            return multiple;
        }