Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
5282ef9598
5 files changed
+24
-15
No files matched your search
@@ -1488,7 +1488,7 @@ namespace CalamityMod.Items
|
||||
#region Enchanted Rarity Text Drawing
|
||||
public override bool PreDrawTooltipLine(Item item, DrawableTooltipLine line, ref int yOffset)
|
||||
{
|
||||
if (line.Name == "ItemName" && line.Mod == "Terraria" && item.type == ModContent.ItemType<XyksBlessingBlue>() && !CalamityClientConfig.Instance.TextEffects)
|
||||
if (line.Name == "ItemName" && line.Mod == "Terraria" && item.type == ModContent.ItemType<XyksBlessingBlue>() && CalamityClientConfig.Instance.TextEffects)
|
||||
{
|
||||
Color rarityColor = Color.White;
|
||||
Vector2 basePosition = new Vector2(line.X, line.Y);
|
||||
|
||||
@@ -54,6 +54,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Paintings
|
||||
"Atalya",
|
||||
"Ben-TK",
|
||||
"Big E",
|
||||
"carnymassacre",
|
||||
"CDMusic",
|
||||
"Cei",
|
||||
"CongratsIsTrash",
|
||||
|
||||
@@ -191,7 +191,7 @@ BloodBoiler: {
|
||||
Tooltip:
|
||||
'''
|
||||
Fires twin streams of bloodfire that returns to you
|
||||
Retuning bloodfire reduces [cbuff:PotionSickness] if it struck an enemy
|
||||
Returning bloodfire reduces [cbuff:PotionSickness] if it struck an enemy
|
||||
Uses your health as ammo
|
||||
20% chance to save health
|
||||
'''
|
||||
|
||||
@@ -1311,6 +1311,8 @@ namespace CalamityMod.NPCs
|
||||
if (type == NPCID.Painter)
|
||||
{
|
||||
shop.AddWithCustomValue(ItemID.PainterPaintballGun, Item.buyPrice(gold: 15))
|
||||
.Add(ItemType<CalamityCanvas2023>())
|
||||
.Add(ItemType<CalamityCanvas2024>())
|
||||
.Add(ItemType<AmidiasPainting>(), CalamityConditions.InSunken, Condition.NpcIsPresent(NPCType<SeaKing>()));
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using System.Linq;
|
||||
|
||||
namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
@@ -182,20 +183,25 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
int dustID = ModContent.DustType<SquashDust>();
|
||||
int numDust = 9;
|
||||
float triangleAngle = Main.rand.NextFloat(MathHelper.TwoPi);
|
||||
for (int i = 0; i < numDust; ++i)
|
||||
for (int j = 0; j < 3; ++j)
|
||||
{
|
||||
float lerp = i / (float)(numDust - 1);
|
||||
float speed = MathHelper.Lerp(0.2f, 3.6f, lerp);
|
||||
Vector2 dustVel = Vector2.UnitX.RotatedBy(triangleAngle) * speed * 2;
|
||||
Dust d = Dust.NewDustDirect(Projectile.Center, 0, 0, dustID);
|
||||
d.position = Projectile.Center;
|
||||
d.velocity = dustVel;
|
||||
d.noGravity = true;
|
||||
d.fadeIn = 1.5f;
|
||||
d.scale *= Main.rand.NextFloat(1.4f, 1.9f) - lerp * 0.5f;
|
||||
d.color = Color.Lerp(Color.Cyan, Color.Magenta, lerp);
|
||||
Dust.CloneDust(d).velocity = dustVel.RotatedBy(MathHelper.Pi * 2f / 3f);
|
||||
Dust.CloneDust(d).velocity = dustVel.RotatedBy(MathHelper.Pi * 4f / 3f);
|
||||
float angleOffset = MathHelper.TwoPi / 3f * j;
|
||||
float currentAngle = triangleAngle + angleOffset;
|
||||
|
||||
for (int i = 0; i < numDust; ++i)
|
||||
{
|
||||
float lerp = i / (float)(numDust - 1);
|
||||
float speed = MathHelper.Lerp(0.2f, 3.6f, lerp);
|
||||
|
||||
Vector2 dustVel = Vector2.UnitX.RotatedBy(currentAngle) * speed * 2f;
|
||||
Dust d = Dust.NewDustDirect(Projectile.Center, 0, 0, dustID);
|
||||
d.position = Projectile.Center;
|
||||
d.velocity = dustVel;
|
||||
d.noGravity = true;
|
||||
d.fadeIn = 1.5f;
|
||||
d.scale *= Main.rand.NextFloat(1.4f, 1.9f) - lerp * 0.5f;
|
||||
d.color = Color.Lerp(Color.Cyan, Color.Magenta, lerp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user