Пример #1
0
        public override void OnPlayerMasteryGain(DBTPlayer dbtPlayer, float gain, float currentMastery)
        {
            if (currentMastery >= 0.5f && !dbtPlayer.HasAcquiredTransformation(TransformationDefinitionManager.Instance.ASSJ1))
            {
                dbtPlayer.Acquire(TransformationDefinitionManager.Instance.ASSJ1);
            }

            if (currentMastery >= 0.75f && !dbtPlayer.HasAcquiredTransformation(TransformationDefinitionManager.Instance.USSJ1))
            {
                dbtPlayer.Acquire(TransformationDefinitionManager.Instance.USSJ1);
            }
        }
Пример #2
0
        private void DefaultSetup(DBTPlayer dbtPlayer)
        {
            if (!CheckPrePlayerConditions())
            {
                dbtPlayer.AcquiredTransformations.Remove(this);
                return;
            }

            if (!dbtPlayer.HasAcquiredTransformation(this))
            {
                dbtPlayer.Acquire(this);
            }
        }