示例#1
0
        public override void UpdateArmorSet(Player player)
        {
            SpectraPlayer spectraPlayer = player.GetModPlayer <SpectraPlayer>();

            player.setBonus            = "Dirt weapons and tools deal twice the damage";
            spectraPlayer.DirtSetBonus = true;
            base.UpdateArmorSet(player);
        }
        public override void ModifyWeaponDamage(Item item, Player player, ref float add, ref float mult, ref float flat)
        {
            SpectraPlayer spectraPlayer = player.GetModPlayer <SpectraPlayer>();

            if (item.type == ModContent.ItemType <DirtSword>() || item.type == ModContent.ItemType <DirtPickaxe>() && spectraPlayer.DirtSetBonus)
            {
                mult = 2;
            }
            base.ModifyWeaponDamage(item, player, ref add, ref mult, ref flat);
        }
        public override bool ConsumeAmmo(Item item, Player player)
        {
            SpectraPlayer spectraPlayer = player.GetModPlayer <SpectraPlayer>();

            if (spectraPlayer.AngerSetBonus && Main.rand.NextBool(10))
            {
                return(false);
            }
            return(base.ConsumeAmmo(item, player));
        }
示例#4
0
        public override void UpdateArmorSet(Player player)
        {
            SpectraPlayer spectraPlayer = player.GetModPlayer <SpectraPlayer>();

            player.setBonus = "+2 defense" +
                              "\n10% chance not to consume ammo" +
                              "\n5% increased ranged damage";
            player.statDefense         += 2;
            player.rangedDamage        *= 1.04f;
            spectraPlayer.AngerSetBonus = true;
            base.UpdateArmorSet(player);
        }