Commit of decompiled and "updated" code.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.FoxPistol;
|
||||
|
||||
public class FoxBreak : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fox Break");
|
||||
Description.SetDefault(" - Lowered Movement Speed");
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
Main.debuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.moveSpeed -= 0.7f;
|
||||
int dust = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.FoxBreakDust>());
|
||||
Main.dust[dust].scale = 1.4f;
|
||||
Dust obj = Main.dust[dust];
|
||||
obj.velocity *= 0.1f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 541 B |
@@ -0,0 +1,30 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.FoxPistol;
|
||||
|
||||
public class FoxMending : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fox Mending");
|
||||
Description.SetDefault(" - Regenerating HP\n - Increased Movement Speed\n - -12% Damage");
|
||||
Main.debuff[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetDamage(DamageClass.Generic) += 0.88f;
|
||||
player.moveSpeed += 0.8f;
|
||||
if (!player.HasBuff(ModContent.BuffType<FoxWither>()))
|
||||
{
|
||||
player.lifeRegen = 16;
|
||||
}
|
||||
int dust = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.FoxMendingDust>());
|
||||
Main.dust[dust].scale = 2f;
|
||||
Dust obj = Main.dust[dust];
|
||||
obj.velocity *= 0.1f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 557 B |
@@ -0,0 +1,30 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.FoxPistol;
|
||||
|
||||
public class FoxMendingBlue : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fox Mending - Blue");
|
||||
Description.SetDefault(" - Regenerating HP\n - Increased Movement Speed\n - -12% Damage");
|
||||
Main.debuff[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetDamage(DamageClass.Generic) += 0.88f;
|
||||
player.moveSpeed += 0.8f;
|
||||
if (!player.HasBuff(ModContent.BuffType<FoxWither>()))
|
||||
{
|
||||
player.lifeRegen = 16;
|
||||
}
|
||||
int num1 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.FoxMendingDustBlue>());
|
||||
Main.dust[num1].scale = 2f;
|
||||
Dust obj = Main.dust[num1];
|
||||
obj.velocity *= 0.1f;
|
||||
Main.dust[num1].noGravity = true;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 553 B |
@@ -0,0 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.FoxPistol;
|
||||
|
||||
public class FoxWither : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fox Wither");
|
||||
Description.SetDefault(" - Losing life!");
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.lifeRegen -= 22;
|
||||
int dust = Dust.NewDust(npc.position, npc.width, npc.height, ModContent.DustType<Dusts.FoxWitherDust>());
|
||||
Main.dust[dust].scale = 1.6f;
|
||||
Dust obj = Main.dust[dust];
|
||||
obj.velocity *= 1f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.lifeRegen -= 22;
|
||||
int dust = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.FoxWitherDust>());
|
||||
Main.dust[dust].scale = 1.6f;
|
||||
Dust obj = Main.dust[dust];
|
||||
obj.velocity *= 0.1f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 632 B |
@@ -0,0 +1,41 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.FoxPistol;
|
||||
|
||||
public class SpectralMending : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Spectral Mending");
|
||||
Description.SetDefault(" - HP +200\n - Regenerating HP\n - Increased Movement Speed\n - -7% Damage");
|
||||
Main.debuff[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetDamage(DamageClass.Generic) += 0.93f;
|
||||
player.moveSpeed += 0.8f;
|
||||
player.statLifeMax2 += 200;
|
||||
if (!player.HasBuff(ModContent.BuffType<SpectralWither>()))
|
||||
{
|
||||
player.lifeRegen = 32;
|
||||
}
|
||||
int num1 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowWrathDust>());
|
||||
int num2 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowWrathDust2>());
|
||||
int num3 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowWrathDust3>());
|
||||
Main.dust[num1].scale = 0.6f;
|
||||
Dust obj = Main.dust[num1];
|
||||
obj.velocity *= 0.1f;
|
||||
Main.dust[num1].noGravity = true;
|
||||
Main.dust[num2].scale = 0.6f;
|
||||
Dust obj2 = Main.dust[num2];
|
||||
obj2.velocity *= 0.1f;
|
||||
Main.dust[num2].noGravity = true;
|
||||
Main.dust[num3].scale = 0.6f;
|
||||
Dust obj3 = Main.dust[num3];
|
||||
obj3.velocity *= 0.1f;
|
||||
Main.dust[num3].noGravity = true;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,64 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Buffs.FoxPistol;
|
||||
|
||||
public class SpectralWither : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Spectral Wither");
|
||||
Description.SetDefault(" - Losing life!");
|
||||
Main.buffNoTimeDisplay[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.lifeRegen -= 20;
|
||||
int dust1 = Dust.NewDust(npc.position, npc.width, npc.height, ModContent.DustType<Dusts.SpectralWitherDust>());
|
||||
int dust2 = Dust.NewDust(npc.position, npc.width, npc.height, ModContent.DustType<Dusts.RainbowDust>());
|
||||
int dust3 = Dust.NewDust(npc.position, npc.width, npc.height, ModContent.DustType<Dusts.RainbowDust2>());
|
||||
int dust4 = Dust.NewDust(npc.position, npc.width, npc.height, ModContent.DustType<Dusts.RainbowDust3>());
|
||||
Main.dust[dust1].scale = 1f;
|
||||
Dust obj = Main.dust[dust1];
|
||||
obj.velocity *= 0.1f;
|
||||
Main.dust[dust1].noGravity = true;
|
||||
Main.dust[dust2].scale = 0.6f;
|
||||
Dust obj2 = Main.dust[dust2];
|
||||
obj2.velocity *= 0.1f;
|
||||
Main.dust[dust2].noGravity = true;
|
||||
Main.dust[dust3].scale = 0.6f;
|
||||
Dust obj3 = Main.dust[dust3];
|
||||
obj3.velocity *= 0.1f;
|
||||
Main.dust[dust3].noGravity = true;
|
||||
Main.dust[dust4].scale = 0.6f;
|
||||
Dust obj4 = Main.dust[dust4];
|
||||
obj4.velocity *= 0.1f;
|
||||
Main.dust[dust4].noGravity = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.lifeRegen -= 20;
|
||||
int dust1 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.SpectralWitherDust>());
|
||||
int dust2 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust>());
|
||||
int dust3 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust2>());
|
||||
int dust4 = Dust.NewDust(player.position, player.width, player.height, ModContent.DustType<Dusts.RainbowDust3>());
|
||||
Main.dust[dust1].scale = 1f;
|
||||
Dust obj = Main.dust[dust1];
|
||||
obj.velocity *= 0.1f;
|
||||
Main.dust[dust1].noGravity = true;
|
||||
Main.dust[dust2].scale = 0.6f;
|
||||
Dust obj2 = Main.dust[dust2];
|
||||
obj2.velocity *= 0.1f;
|
||||
Main.dust[dust2].noGravity = true;
|
||||
Main.dust[dust3].scale = 0.6f;
|
||||
Dust obj3 = Main.dust[dust3];
|
||||
obj3.velocity *= 0.1f;
|
||||
Main.dust[dust3].noGravity = true;
|
||||
Main.dust[dust4].scale = 0.6f;
|
||||
Dust obj4 = Main.dust[dust4];
|
||||
obj4.velocity *= 0.1f;
|
||||
Main.dust[dust4].noGravity = true;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user