Skip to content

Commit

Permalink
💎 v1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jofairden committed Aug 5, 2017
1 parent c7731f1 commit ebf4ba2
Show file tree
Hide file tree
Showing 631 changed files with 23,581 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Buffs/ArtilleryCooldown.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class ArtilleryCooldown : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Artillery Cooldown");
Main.buffNoSave[Type] = true;
Main.debuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
}
}
}
Binary file added Buffs/ArtilleryCooldown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions Buffs/BloodArmor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class BloodArmor : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Blood Armor");
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
//todo visual effect, red shader
}
}
}
Binary file added Buffs/BloodArmor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions Buffs/BloodWell.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System;
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class BloodWell : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Blood Well");
Description.SetDefault("");
Main.buffNoSave[Type] = true;
}

public override void Update(Player player, ref int buffIndex)
{
MPlayer modPlayer = (MPlayer)player.GetModPlayer(mod, "MPlayer");
if (player.ownedProjectileCounts[mod.ProjectileType("BloodWell")] > 0)
{
modPlayer.bloodWell = true;
}
if (!modPlayer.bloodWell)
{
player.DelBuff(buffIndex);
buffIndex--;
}
else
{
player.buffTime[buffIndex] = Math.Max(2, player.buffTime[buffIndex]);
player.buffTime[buffIndex] = Math.Min(10800, player.buffTime[buffIndex]);
}
}
}
}
Binary file added Buffs/BloodWell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions Buffs/Bloodied.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class Bloodied : ModBuff
{
public override void Update(NPC npc, ref int buffIndex)
{
//todo visual effects
}
}
}
Binary file added Buffs/Bloodied.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions Buffs/BowTurret.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class BowTurret : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Bow Turret");
Description.SetDefault("");//add this
Main.buffNoSave[Type] = true;
Main.buffNoTimeDisplay[Type] = true;
}

public override void Update(Player player, ref int buffIndex)
{
MPlayer modPlayer = (MPlayer)player.GetModPlayer(mod, "MPlayer");
if (player.ownedProjectileCounts[mod.ProjectileType("BowTurret")] > 0)
{
modPlayer.bowTurret = true;
}
if (!modPlayer.bowTurret)
{
player.DelBuff(buffIndex);
buffIndex--;
}
else
{
player.buffTime[buffIndex] = 18000;
}
}
}
}
Binary file added Buffs/BowTurret.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions Buffs/Counter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class Counter : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Counter!");
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
}
}
}
Binary file added Buffs/Counter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions Buffs/CounterCooldown.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class CounterCooldown : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Counter Cooldown");
Main.buffNoSave[Type] = true;
Main.debuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
MPlayer modPlayer = (MPlayer)player.GetModPlayer(mod, "MPlayer");
if (modPlayer.reducedCounterCD && player.buffTime[buffIndex]>270)
{
player.buffTime[buffIndex] = 270;
}
}
}
}
Binary file added Buffs/CounterCooldown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions Buffs/CounterStanceEpee.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class CounterStanceEpee : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Counter Stance");
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
}
}
}
Binary file added Buffs/CounterStanceEpee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions Buffs/CounterStanceEpee2.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class CounterStanceEpee2 : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Counter Stance");
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
}
}
}
Binary file added Buffs/CounterStanceEpee2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions Buffs/CounterStanceEpee3.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class CounterStanceEpee3 : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Counter Stance");
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
}
}
}
Binary file added Buffs/CounterStanceEpee3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions Buffs/CounterStanceEstoc.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class CounterStanceEstoc : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Counter Stance");
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
}
}
}
Binary file added Buffs/CounterStanceEstoc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions Buffs/CounterStanceFoil.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class CounterStanceFoil : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Counter Stance");
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
}
}
}
Binary file added Buffs/CounterStanceFoil.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions Buffs/CounterStanceFoil2.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class CounterStanceFoil2 : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Counter Stance");
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
}
}
}
Binary file added Buffs/CounterStanceFoil2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions Buffs/CounterStanceFoil3.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class CounterStanceFoil3 : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Counter Stance");
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
}
}
}
Binary file added Buffs/CounterStanceFoil3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions Buffs/CounterStanceFoil4.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class CounterStanceFoil4 : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Counter Stance");
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
}
}
}
Binary file added Buffs/CounterStanceFoil4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions Buffs/CounterStanceRapier.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class CounterStanceRapier : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Counter Stance");
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
}
}
}
Binary file added Buffs/CounterStanceRapier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions Buffs/Dragonslay.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class Dragonslay : ModBuff
{
public override void Update(NPC npc, ref int buffIndex)
{
base.Update(npc, ref buffIndex);
}
}
}
Binary file added Buffs/Dragonslay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions Buffs/GunTurret.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class GunTurret : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Gun Turret");
Description.SetDefault("");//add this
Main.buffNoSave[Type] = true;
Main.buffNoTimeDisplay[Type] = true;
}

public override void Update(Player player, ref int buffIndex)
{
MPlayer modPlayer = (MPlayer)player.GetModPlayer(mod, "MPlayer");
if (player.ownedProjectileCounts[mod.ProjectileType("GunTurret")] > 0)
{
modPlayer.gunTurret = true;
}
if (!modPlayer.gunTurret)
{
player.DelBuff(buffIndex);
buffIndex--;
}
else
{
player.buffTime[buffIndex] = 18000;
}
}
}
}
Binary file added Buffs/GunTurret.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions Buffs/GunbladeDefense.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Terraria;
using Terraria.ModLoader;

namespace EnemyMods.Buffs
{
public class GunbladeDefense : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Gunblade Defense Bonus");
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.statDefense += player.buffTime[buffIndex]/20;
}
}
}
Binary file added Buffs/GunbladeDefense.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ebf4ba2

Please sign in to comment.