예제 #1
0
파일: WishMenu.cs 프로젝트: LinkatriX/DBT
        private static void DoAwakeningWish()
        {
            DBTPlayer modPlayer = Main.LocalPlayer.GetModPlayer <DBTPlayer>();

            modPlayer.AwakeningWishesLeft -= 1;
            modPlayer.ChangeMastery(modPlayer.AcquiredTransformations.Keys.Last(), 1f);
            menuVisible          = false;
            modPlayer.WishActive = false;
        }
예제 #2
0
 public override void OnPlayerMasteryChanged(DBTPlayer dbtPlayer, float change, float currentMastery)
 {
     dbtPlayer.ChangeMastery(TransformationDefinitionManager.Instance.SSJ1, change);
 }