示例#1
0
        private static void DoAwakeningWish()
        {
            DBTPlayer modPlayer = Main.LocalPlayer.GetModPlayer <DBTPlayer>();

            modPlayer.AwakeningWishesLeft -= 1;
            modPlayer.GainMastery(modPlayer.AcquiredTransformations.Keys.Last(), 100f);
            menuVisible          = false;
            modPlayer.WishActive = false;
        }
示例#2
0
 public override void OnPlayerMasteryGain(DBTPlayer dbtPlayer, float gain, float currentMastery)
 {
     dbtPlayer.GainMastery(TransformationDefinitionManager.Instance.SSJ1, gain);
 }