Beispiel #1
0
 public override void GetWeaponCrit(Item item, Player player, ref int crit)
 {
     if (DetectPositives(item))
     {
         crit = crit + ECPlayer.ModPlayer(player).tkCrit;
     }
 }
Beispiel #2
0
 public override void ModifyWeaponDamage(Item item, Player player, ref float add, ref float mult, ref float flat)
 {
     if (DetectPositives(item))
     {
         mult *= ECPlayer.ModPlayer(player).tkDamage;
     }
 }
Beispiel #3
0
 public override void GetWeaponKnockback(Item item, Player player, ref float knockback)
 {
     if (DetectPositives(item))
     {
         knockback += ECPlayer.ModPlayer(player).tkKnockback;
     }
     base.GetWeaponKnockback(item, player, ref knockback);
 }
Beispiel #4
0
 public override void HoldStyle(Item item, Player player)
 {
     if (DetectPositives(item))
     {
         ECPlayer.ModPlayer(player).overPsychosis = false;
         if (player.channel)
         {
             ECPlayer.ModPlayer(player).PsychosisDrain(1f);
             if (player.HasBuff(mod.BuffType("PsychedOut")))
             {
                 ECPlayer.ModPlayer(player).overPsychosis = true;
             }
         }
     }
 }
Beispiel #5
0
 public override void HoldItem(Player player)
 {
     ECPlayer.ModPlayer(player).overPsychosis = false;
     if (player.channel && player.ownedProjectileCounts[item.shoot] > 0)
     {
         float amount = 1f;
         if (!onlyOne)
         {
             amount = 3f;
         }
         ECPlayer.ModPlayer(player).PsychosisDrain(amount);
         if (player.HasBuff(mod.BuffType("PsychedOut")))
         {
             ECPlayer.ModPlayer(player).overPsychosis = true;
         }
     }
 }
Beispiel #6
0
        //Based on jopojelly's Boss Checklist mod
        public override object Call(params object[] args)
        {
            Player player = Main.player[Main.myPlayer];

            try
            {
                string message = args[0] as string;
                if (message == "IncreaseTelekinesisDamage")
                {
                    float damageAmount = Convert.ToSingle(args[1]);
                    return(ECPlayer.ModPlayer(player).tkDamage += damageAmount);
                }
                else if (message == "IncreaseTelekinesisCrit")
                {
                    float critAmount = Convert.ToSingle(args[1]);
                    return(ECPlayer.ModPlayer(player).tkCrit += (int)critAmount);
                }
                else if (message == "IncreaseTelekinesisVelocity")
                {
                    float velAmount = Convert.ToSingle(args[1]);
                    return(ECPlayer.ModPlayer(player).tkVel += velAmount);
                }
                else if (message == "UseTelekinesisVelocity")
                {
                    return(Convert.ToSingle(ECPlayer.ModPlayer(player).tkVel));
                }
                else if (message == "AddTKItem")
                {
                    float IsTKItem = Convert.ToSingle(args[1]);
                    TKItem.Add((int)IsTKItem);
                    return("Success");
                }
                else if (message == "AddTKProjectile")
                {
                    float IsTKProjectile = Convert.ToSingle(args[1]);
                    TKProjectile.Add((int)IsTKProjectile);
                    return("Success");
                }
            }
            catch (Exception e)
            {
                ErrorLogger.Log("Esper Class Call Error: " + e.StackTrace + e.Message);
            }
            return("Failure");
        }
Beispiel #7
0
 public override void HoldStyle(Player player)
 {
     ECPlayer.ModPlayer(player).overPsychosis = false;
     if (player.channel)
     {
         //if (ECPlayer.ModPlayer(player).psychosis > 0f)
         //{
         float amount = 1f;
         if (!onlyOne)
         {
             amount = 3f;
         }
         ECPlayer.ModPlayer(player).PsychosisDrain(amount);
         //}
         if (player.HasBuff(mod.BuffType("PsychedOut")))
         {
             //player.channel = false;
             ECPlayer.ModPlayer(player).overPsychosis = true;
         }
     }
 }
Beispiel #8
0
 public override void GetWeaponCrit(Player player, ref int crit)
 {
     crit = crit + ECPlayer.ModPlayer(player).tkCrit;
 }
Beispiel #9
0
 public override void GetWeaponKnockback(Player player, ref float knockback)
 {
     knockback += ECPlayer.ModPlayer(player).tkKnockback;
 }
Beispiel #10
0
 public override void ModifyWeaponDamage(Player player, ref float add, ref float mult, ref float flat)
 {
     mult *= ECPlayer.ModPlayer(player).tkDamage;
 }
Beispiel #11
0
 public override void ModifyWeaponDamage(Player player, ref float add, ref float mult, ref float flat)
 {
     //damage = (int)(damage * ECPlayer.ModPlayer(player).tkDamage + 5E-06f);
     mult *= ECPlayer.ModPlayer(player).tkDamage;
 }