Exemplo n.º 1
0
        public override void PostUpdateEquips()
        {
            if (IsSylvia)
            {
                MobaPlayer mobaPlayer = player.GetModPlayer <MobaPlayer>();

                //Sylvia Talent [0,1]: Graceful Leap
                if (mobaPlayer.MyCharacter.talentArray[0, 1])
                {
                    player.doubleJumpCloud = true; //doesn't work, needs to sync somewhere idk
                }

                //Sylvia Talent [0,2]: Thorns Embrace
                if (mobaPlayer.MyCharacter.talentArray[0, 2])
                {
                    player.statDefense       += 6;
                    mobaPlayer.PercentThorns += 0.15f;
                }
            }
        }
Exemplo n.º 2
0
        public override void PostUpdateRunSpeeds()
        {
            if (IsSylvia)
            {
                MobaPlayer modPlayer    = player.GetModPlayer <MobaPlayer>();
                float      moveSpeedAdd = 1f;
                //Sylvia Talent [0,0]: Nature's Calling
                if (modPlayer.MyCharacter.talentArray[0, 0])
                {
                    moveSpeedAdd += 0.36f;
                }

                //Sylvia Talent [1,0]: Swift Thistle
                if (modPlayer.MyCharacter.talentArray[1, 0] && VerdantFury)
                {
                    moveSpeedAdd += MySylviaStats.GetVerdantFuryIncrease() - 1f;
                }

                player.moveSpeed   *= moveSpeedAdd;
                player.maxRunSpeed *= moveSpeedAdd;
                player.accRunSpeed *= moveSpeedAdd;
            }
        }