Beispiel #1
0
 public override void ModifyWeaponDamage(Player player, ref float add, ref float mult, ref float flat)
 {
     if (JoostMod.instance.battleRodsLoaded)
     {
         mult *= JoostGlobalItem.LegendaryDamage() * 0.08f * BattleRodsFishingDamage / player.rangedDamage;
     }
     else
     {
         mult *= JoostGlobalItem.LegendaryDamage() * 0.08f;
     }
 }
Beispiel #2
0
        private int getDamage()
        {
            float  dmg = item.damage * JoostGlobalItem.LegendaryDamage() * 0.08f;
            Player p   = Main.player[Main.myPlayer];

            if (JoostMod.instance.battleRodsLoaded)
            {
                dmg *= BattleRodsFishingDamage;
            }

            return((int)Math.Round(dmg));
        }
Beispiel #3
0
        public override GlobalItem Clone(Item item, Item itemClone)
        {
            JoostGlobalItem myClone = (JoostGlobalItem)base.Clone(item, itemClone);

            myClone.meleeDamage  = meleeDamage;
            myClone.thrownDamage = thrownDamage;
            myClone.rangedDamage = rangedDamage;
            myClone.magicDamage  = magicDamage;
            myClone.summonDamage = summonDamage;
            myClone.maxHealth    = maxHealth;
            myClone.lifeRegen    = lifeRegen;
            myClone.fishingPower = fishingPower;
            return(myClone);
        }