Commit of decompiled and "updated" code.
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.ShimadaSword.Stacks;
|
||||
|
||||
public class DreamFive : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Dream Sap - Five");
|
||||
Description.SetDefault(" - Accumulating dreams!\n - A stack of 6 will heal your HP and Mana");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
int dust1 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust>());
|
||||
Main.dust[dust1].scale = 2f;
|
||||
Main.dust[dust1].velocity.X *= 1.5f;
|
||||
Main.dust[dust1].velocity.Y -= 1.4f;
|
||||
Main.dust[dust1].noGravity = true;
|
||||
int dust2 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust2>());
|
||||
Main.dust[dust2].scale = 2f;
|
||||
Main.dust[dust2].velocity.X *= 1.5f;
|
||||
Main.dust[dust2].velocity.Y -= 1.4f;
|
||||
Main.dust[dust2].noGravity = true;
|
||||
int dust3 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust3>());
|
||||
Main.dust[dust3].scale = 2f;
|
||||
Main.dust[dust3].velocity.X *= 1.5f;
|
||||
Main.dust[dust3].velocity.Y -= 1.4f;
|
||||
Main.dust[dust3].noGravity = true;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,37 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.ShimadaSword.Stacks;
|
||||
|
||||
public class DreamFour : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Dream Sap - Four");
|
||||
Description.SetDefault(" - Accumulating dreams!\n - A stack of 6 will heal your HP and Mana");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
if (Utils.NextFloat(Main.rand) < 0.8f)
|
||||
{
|
||||
int num1 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust>());
|
||||
Main.dust[num1].scale = 1.8f;
|
||||
Main.dust[num1].velocity.X *= 1f;
|
||||
Main.dust[num1].velocity.Y -= 1f;
|
||||
Main.dust[num1].noGravity = true;
|
||||
int num2 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust2>());
|
||||
Main.dust[num2].scale = 1.8f;
|
||||
Main.dust[num2].velocity.X *= 1f;
|
||||
Main.dust[num2].velocity.Y -= 1f;
|
||||
Main.dust[num2].noGravity = true;
|
||||
int num3 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust3>());
|
||||
Main.dust[num3].scale = 1.8f;
|
||||
Main.dust[num3].velocity.X *= 1f;
|
||||
Main.dust[num3].velocity.Y -= 1f;
|
||||
Main.dust[num3].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,37 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.ShimadaSword.Stacks;
|
||||
|
||||
public class DreamOne : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Dream Sap - One");
|
||||
Description.SetDefault(" - Accumulating dreams!\n - A stack of 6 will heal your HP and Mana");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
if (Utils.NextFloat(Main.rand) < 0.2f)
|
||||
{
|
||||
int dust1 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust>());
|
||||
Main.dust[dust1].scale = 1.2f;
|
||||
Main.dust[dust1].velocity.X = 0f;
|
||||
Main.dust[dust1].velocity.Y -= 0.4f;
|
||||
Main.dust[dust1].noGravity = true;
|
||||
int dust2 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust2>());
|
||||
Main.dust[dust2].scale = 1.2f;
|
||||
Main.dust[dust2].velocity.X = 0f;
|
||||
Main.dust[dust2].velocity.Y -= 0.4f;
|
||||
Main.dust[dust2].noGravity = true;
|
||||
int dust3 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust3>());
|
||||
Main.dust[dust3].scale = 1.2f;
|
||||
Main.dust[dust3].velocity.X = 0f;
|
||||
Main.dust[dust3].velocity.Y -= 0.4f;
|
||||
Main.dust[dust3].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1023 B |
@@ -0,0 +1,37 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.ShimadaSword.Stacks;
|
||||
|
||||
public class DreamThree : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Dream Sap - Three");
|
||||
Description.SetDefault(" - Accumulating dreams!\n - A stack of 6 will heal your HP and Mana");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
if (Utils.NextFloat(Main.rand) < 0.6f)
|
||||
{
|
||||
int num1 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust>());
|
||||
Main.dust[num1].scale = 1.6f;
|
||||
Main.dust[num1].velocity.X *= 0.5f;
|
||||
Main.dust[num1].velocity.Y -= 0.8f;
|
||||
Main.dust[num1].noGravity = true;
|
||||
int num2 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust2>());
|
||||
Main.dust[num2].scale = 1.6f;
|
||||
Main.dust[num2].velocity.X *= 0.5f;
|
||||
Main.dust[num2].velocity.Y -= 0.8f;
|
||||
Main.dust[num2].noGravity = true;
|
||||
int num3 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust3>());
|
||||
Main.dust[num3].scale = 1.6f;
|
||||
Main.dust[num3].velocity.X *= 0.5f;
|
||||
Main.dust[num3].velocity.Y -= 0.8f;
|
||||
Main.dust[num3].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,37 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.ShimadaSword.Stacks;
|
||||
|
||||
public class DreamTwo : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Dream Sap - Two");
|
||||
Description.SetDefault(" - Accumulating dreams!\n - A stack of 6 will heal your HP and Mana");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
if (Utils.NextFloat(Main.rand) < 0.4f)
|
||||
{
|
||||
int dust1 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust>());
|
||||
Main.dust[dust1].scale = 1.4f;
|
||||
Main.dust[dust1].velocity.X = 0f;
|
||||
Main.dust[dust1].velocity.Y -= 0.6f;
|
||||
Main.dust[dust1].noGravity = true;
|
||||
int dust2 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust2>());
|
||||
Main.dust[dust2].scale = 1.4f;
|
||||
Main.dust[dust2].velocity.X = 0f;
|
||||
Main.dust[dust2].velocity.Y -= 0.6f;
|
||||
Main.dust[dust2].noGravity = true;
|
||||
int dust3 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust3>());
|
||||
Main.dust[dust3].scale = 1.4f;
|
||||
Main.dust[dust3].velocity.X = 0f;
|
||||
Main.dust[dust3].velocity.Y -= 0.6f;
|
||||
Main.dust[dust3].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.ShimadaSword.Stacks;
|
||||
|
||||
public class EnrichmentFive : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Enrichment - Five");
|
||||
Description.SetDefault(" - Accumulating riches!\n - A stack of 6 will heal your HP and Mana");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
int dust = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.MeatDust>());
|
||||
Main.dust[dust].scale = 2f;
|
||||
Main.dust[dust].velocity.X *= 1.5f;
|
||||
Main.dust[dust].velocity.Y -= 1.4f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1010 B |
@@ -0,0 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.ShimadaSword.Stacks;
|
||||
|
||||
public class EnrichmentFour : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Enrichment - Four");
|
||||
Description.SetDefault(" - Accumulating riches!\n - A stack of 6 will heal your HP and Mana");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
if (Utils.NextFloat(Main.rand) < 0.8f)
|
||||
{
|
||||
int dust = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.MeatDust>());
|
||||
Main.dust[dust].scale = 1.8f;
|
||||
Main.dust[dust].velocity.X *= 1f;
|
||||
Main.dust[dust].velocity.Y -= 1f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 845 B |
@@ -0,0 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.ShimadaSword.Stacks;
|
||||
|
||||
public class EnrichmentOne : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Enrichment - One");
|
||||
Description.SetDefault(" - Accumulating riches!\n - A stack of 6 will heal your HP and Mana");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
if (Utils.NextFloat(Main.rand) < 0.2f)
|
||||
{
|
||||
int dust = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.MeatDust>());
|
||||
Main.dust[dust].scale = 1.2f;
|
||||
Main.dust[dust].velocity.X = 0f;
|
||||
Main.dust[dust].velocity.Y -= 0.4f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 763 B |
@@ -0,0 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.ShimadaSword.Stacks;
|
||||
|
||||
public class EnrichmentThree : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Enrichment - Three");
|
||||
Description.SetDefault(" - Accumulating riches!\n - A stack of 6 will heal your HP and Mana");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
if (Utils.NextFloat(Main.rand) < 0.6f)
|
||||
{
|
||||
int dust = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.MeatDust>());
|
||||
Main.dust[dust].scale = 1.6f;
|
||||
Main.dust[dust].velocity.X *= 0.5f;
|
||||
Main.dust[dust].velocity.Y -= 0.8f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 820 B |
@@ -0,0 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.ShimadaSword.Stacks;
|
||||
|
||||
public class EnrichmentTwo : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Enrichment - Two");
|
||||
Description.SetDefault(" - Accumulating riches!\n - A stack of 6 will heal your HP and Mana");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
if (Utils.NextFloat(Main.rand) < 0.4f)
|
||||
{
|
||||
int dust = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.MeatDust>());
|
||||
Main.dust[dust].scale = 1.4f;
|
||||
Main.dust[dust].velocity.X = 0f;
|
||||
Main.dust[dust].velocity.Y -= 0.6f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 792 B |
@@ -0,0 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.ShimadaSword.Stacks;
|
||||
|
||||
public class SouleaterFive : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Souleater - Five");
|
||||
Description.SetDefault(" - Accumulating souls!\n - A stack of 6 will heal your HP and Mana");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
int dust = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.OniDust>());
|
||||
Main.dust[dust].scale = 2f;
|
||||
Main.dust[dust].velocity.X *= 1.5f;
|
||||
Main.dust[dust].velocity.Y -= 1.4f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1001 B |
@@ -0,0 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.ShimadaSword.Stacks;
|
||||
|
||||
public class SouleaterFour : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Souleater - Four");
|
||||
Description.SetDefault(" - Accumulating souls!\n - A stack of 6 will heal your HP and Mana");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
if (Utils.NextFloat(Main.rand) < 0.8f)
|
||||
{
|
||||
int dust = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.OniDust>());
|
||||
Main.dust[dust].scale = 1.8f;
|
||||
Main.dust[dust].velocity.X *= 1f;
|
||||
Main.dust[dust].velocity.Y -= 1f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 839 B |
@@ -0,0 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.ShimadaSword.Stacks;
|
||||
|
||||
public class SouleaterOne : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Souleater - One");
|
||||
Description.SetDefault(" - Accumulating souls!\n - A stack of 6 will heal your HP and Mana");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
if (Utils.NextFloat(Main.rand) < 0.2f)
|
||||
{
|
||||
int dust = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.OniDust>());
|
||||
Main.dust[dust].scale = 1.2f;
|
||||
Main.dust[dust].velocity.X = 0f;
|
||||
Main.dust[dust].velocity.Y -= 0.4f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 753 B |
@@ -0,0 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.ShimadaSword.Stacks;
|
||||
|
||||
public class SouleaterThree : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Souleater - Three");
|
||||
Description.SetDefault(" - Accumulating souls!\n - A stack of 6 will heal your HP and Mana");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
if (Utils.NextFloat(Main.rand) < 0.6f)
|
||||
{
|
||||
int dust = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.OniDust>());
|
||||
Main.dust[dust].scale = 1.6f;
|
||||
Main.dust[dust].velocity.X *= 0.5f;
|
||||
Main.dust[dust].velocity.Y -= 0.8f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 813 B |
@@ -0,0 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.ShimadaSword.Stacks;
|
||||
|
||||
public class SouleaterTwo : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Souleater - Two");
|
||||
Description.SetDefault(" - Accumulating souls!\n - A stack of 6 will heal your HP and Mana");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
if (Utils.NextFloat(Main.rand) < 0.4f)
|
||||
{
|
||||
int dust = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.OniDust>());
|
||||
Main.dust[dust].scale = 1.4f;
|
||||
Main.dust[dust].velocity.X = 0f;
|
||||
Main.dust[dust].velocity.Y -= 0.6f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 783 B |