Beispiel #1
0
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            AAPlayer modPlayer = player.GetModPlayer <AAPlayer>();

            player.autoJump        = true;
            Player.jumpHeight      = 10;
            player.jumpSpeedBoost += 3.6f;
            player.noFallDmg       = true;
            player.moveSpeed      *= 1.4f;

            if (modPlayer.MeleeHighest(player))
            {
                player.meleeDamage += DamageBoost(player);
            }
            else if (modPlayer.RangedHighest(player))
            {
                player.rangedDamage += DamageBoost(player);
            }
            else if (modPlayer.MagicHighest(player))
            {
                player.magicDamage += DamageBoost(player);
            }
            else if (modPlayer.SummonHighest(player))
            {
                player.minionDamage += DamageBoost(player);
            }
            else if (modPlayer.ThrownHighest(player))
            {
                player.thrownDamage += DamageBoost(player);
            }
        }
Beispiel #2
0
        public override void ModifyTooltips(List <TooltipLine> tooltips)
        {
            Player   player      = Main.player[item.owner];
            AAPlayer modPlayer   = player.GetModPlayer <AAPlayer>();
            Color    damageColor = Color.Firebrick;
            string   DamageType  = "";

            if (modPlayer.MeleeHighest(player))
            {
                DamageType  = Language.GetTextValue("Mods.AAMod.Common.RajahSPTooltipMelee");
                damageColor = Color.Firebrick;
            }
            else if (modPlayer.RangedHighest(player))
            {
                DamageType  = Language.GetTextValue("Mods.AAMod.Common.RajahSPTooltipRanged");
                damageColor = Color.SeaGreen;
            }
            else if (modPlayer.MagicHighest(player))
            {
                DamageType  = Language.GetTextValue("Mods.AAMod.Common.RajahSPTooltipMagic");
                damageColor = Color.Violet;
            }
            else if (modPlayer.SummonHighest(player))
            {
                DamageType  = Language.GetTextValue("Mods.AAMod.Common.RajahSPTooltipSummoning");
                damageColor = Color.Cyan;
            }
            else if (modPlayer.ThrownHighest(player))
            {
                DamageType  = Language.GetTextValue("Mods.AAMod.Common.RajahSPTooltipThrowing");
                damageColor = Color.DarkOrange;
            }

            string      DamageAmount = (100 * DamageBoost(player)) + "% ";
            TooltipLine DamageToltip = new TooltipLine(mod, "Damage Type", Language.GetTextValue("Mods.AAMod.Common.RajahSPDamageBoost") + DamageAmount + DamageType + Language.GetTextValue("Mods.AAMod.Common.RajahSPDamageInfo"))
            {
                overrideColor = damageColor
            };

            tooltips.Add(DamageToltip);

            string      SpeedAmount  = (100 * Speed(player)) + "% ";
            TooltipLine SpeedTooltip = new TooltipLine(mod, "Damage Type", Language.GetTextValue("Mods.AAMod.Common.RajahSPSpeedBoost") + SpeedAmount);

            tooltips.Add(SpeedTooltip);

            base.ModifyTooltips(tooltips);
        }