-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
631 changed files
with
23,581 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]); | ||
} | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.