Buff icons and touch ups

This commit is contained in:
Xyk committed 2024-06-04 21:24:49 -07:00
1 parent b84660b5b7
commit b1e8674d4a
16 files changed
+36 -20

No files matched your search

@@ -3,7 +3,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
public class PrimordialPowerBuff : ModBuff
public class AeolianEarthBuff : ModBuff
{
public override void SetStaticDefaults()
{
@@ -15,7 +15,7 @@ namespace CalamityMod.Buffs.StatBuffs
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().primordialBuff = true;
player.Calamity().aeolianEarthBuff = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

@@ -3,7 +3,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
public class ForbiddenBuff : ModBuff
public class SandsWindBuff : ModBuff
{
public override void SetStaticDefaults()
{
@@ -15,7 +15,7 @@ namespace CalamityMod.Buffs.StatBuffs
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().forbiddenBuff = true;
player.Calamity().sandsWindBuff = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 795 B

+6 -6
View File
@@ -918,8 +918,8 @@ namespace CalamityMod.CalPlayer
#region Buff
public bool trinketOfChiBuff = false;
public bool forbiddenBuff = false;
public bool primordialBuff = false;
public bool sandsWindBuff = false;
public bool aeolianEarthBuff = false;
public int chiBuffTimer = 0;
public bool corrEffigy = false;
public bool crimEffigy = false;
@@ -1986,8 +1986,8 @@ namespace CalamityMod.CalPlayer
ManaBurn = false;
trinketOfChiBuff = false;
forbiddenBuff = false;
primordialBuff = false;
sandsWindBuff = false;
aeolianEarthBuff = false;
corrEffigy = false;
crimEffigy = false;
decayEffigy = false;
@@ -2451,8 +2451,8 @@ namespace CalamityMod.CalPlayer
aquaticHeartWaterBuff = false;
aquaticHeartIce = false;
trinketOfChiBuff = false;
forbiddenBuff = false;
primordialBuff = false;
sandsWindBuff = false;
aeolianEarthBuff = false;
chiBuffTimer = 0;
corrEffigy = false;
crimEffigy = false;
+2 -2
View File
@@ -3093,12 +3093,12 @@ namespace CalamityMod.CalPlayer
bonusStealthDamage += nanotech ? 0.05f : 0.08f;
}
if (forbiddenBuff)
if (sandsWindBuff)
{
Player.GetDamage<GenericDamageClass>() += 0.12f;
Player.statDefense += 12;
}
if (primordialBuff)
if (aeolianEarthBuff)
{
Player.GetDamage<GenericDamageClass>() += 0.18f;
Player.endurance += 0.08f;
-1
View File
@@ -43,7 +43,6 @@ namespace CalamityMod.Items.Weapons.Magic
CreateRecipe().
AddIngredient(ItemID.SpellTome).
AddIngredient(ItemID.AncientCloth, 2).
AddIngredient(ItemID.AncientBattleArmorMaterial).
AddIngredient(ItemID.FossilOre, 25).
AddTile(TileID.Bookcases).
Register();
+1 -3
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 40;
Item.height = 56;
Item.damage = 2500;
Item.damage = 2800;
Item.DamageType = DamageClass.Magic;
Item.mana = 85;
Item.useTime = 78;
@@ -47,9 +47,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
CreateRecipe().
AddIngredient<PrimordialEarth>().
AddIngredient(ItemID.AncientBattleArmorMaterial, 5).
AddIngredient<CosmiliteBar>(8).
AddIngredient<EndothermicEnergy>(20).
AddTile(TileID.Bookcases).
Register();
}
@@ -1540,3 +1540,21 @@ AuricRebuke: {
DisplayName: Auric Rebuke
Description: Your cells are violently bouncing off each other
}
SandsWindBuff: {
DisplayName: Sand's Wind
Description:
'''
You are strengthened by the powers of sand
Defense increased by 10, damage increased by 12%
'''
}
AeolianEarthBuff: {
DisplayName: Aeolian Earth
Description:
'''
You are strengthened by primordial powers
Damage reduction increased by 8%, damage increased by 18%
'''
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 882 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

@@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Magic
if (buffList[playerIndex] == false)
{
buffList[playerIndex] = true;
player.AddBuff(ModContent.BuffType<ForbiddenBuff>(), 240);
player.AddBuff(ModContent.BuffType<SandsWindBuff>(), 240);
int Dusts = 12;
float radians = MathHelper.TwoPi / Dusts;
@@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Magic
Projectile.rotation = Main.rand.NextFloat(-20, 20);
Projectile.scale = 0.5f;
}
Lighting.AddLight(Projectile.Center, Color.Gold.ToVector3() * 0.5f);
Lighting.AddLight(Projectile.Center, Color.Purple.ToVector3() * 0.3f);
if (!goToCursor)
{
@@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Magic
if (buffList[playerIndex] == false)
{
buffList[playerIndex] = true;
player.AddBuff(ModContent.BuffType<PrimordialPowerBuff>(), 540);
player.AddBuff(ModContent.BuffType<AeolianEarthBuff>(), 540);
int Dusts = 8;
float radians = MathHelper.TwoPi / Dusts;
@@ -164,6 +164,7 @@ namespace CalamityMod.Projectiles.Magic
}
if (goToCursor)
{
mousePos = Main.MouseWorld;
if (time == 355)
{
CenterX = Projectile.Center.X;
@@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Magic
if (buffList[playerIndex] == false)
{
buffList[playerIndex] = true;
player.AddBuff(ModContent.BuffType<ForbiddenBuff>(), 360);
player.AddBuff(ModContent.BuffType<SandsWindBuff>(), 360);
int Dusts = 12;
float radians = MathHelper.TwoPi / Dusts;