Reduced the explosion radius of Fate's Reveal. Removed insane damage boost for last few frames.
This commit is contained in:
1 parent
1bfa04f219
commit
76a9edd121
2 files changed
+19
-19
No files matched your search
@@ -29,26 +29,21 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 5.5f;
|
||||
item.value = Item.buyPrice(1, 40, 0, 0);
|
||||
item.rare = ItemRarityID.Red;
|
||||
item.UseSound = SoundID.Item20;
|
||||
item.autoReuse = true;
|
||||
item.shoot = ModContent.ProjectileType<FatesRevealFlame>();
|
||||
item.shootSpeed = 1f;
|
||||
|
||||
item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
||||
item.Calamity().customRarity = CalamityRarity.PureGreen;
|
||||
}
|
||||
|
||||
/*public override Vector2? HoldoutOrigin()
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
return new Vector2(15, 15);
|
||||
}*/
|
||||
item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/FatesRevealGlow"));
|
||||
}
|
||||
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/FatesRevealGlow"));
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
Vector2 vector = player.RotatedRelativePoint(player.MountedCenter, true);
|
||||
float num78 = (float)Main.mouseX + Main.screenPosition.X - vector.X;
|
||||
@@ -69,11 +64,12 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
num80 = item.shootSpeed / num80;
|
||||
}
|
||||
vector += new Vector2(num78, num79);
|
||||
int num107 = 5;
|
||||
for (int num108 = 0; num108 < num107; num108++)
|
||||
|
||||
int numProjectiles = 5;
|
||||
for (int i = 0; i < numProjectiles; i++)
|
||||
{
|
||||
vector.X += (float)Main.rand.Next(-100, 101);
|
||||
vector.Y += (float)(Main.rand.Next(-25, 26) * num108);
|
||||
vector.Y += (float)(Main.rand.Next(-25, 26) * i);
|
||||
float spawnX = vector.X;
|
||||
float spawnY = vector.Y;
|
||||
Projectile.NewProjectile(spawnX, spawnY, 0f, 0f, type, damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(3));
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fireball");
|
||||
DisplayName.SetDefault("Fate's Reveal");
|
||||
Main.projFrames[projectile.type] = 4;
|
||||
}
|
||||
|
||||
@@ -88,7 +88,8 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.position = projectile.Center;
|
||||
projectile.width = projectile.height = 180;
|
||||
projectile.Center = projectile.position;
|
||||
projectile.damage = 800;
|
||||
// Ozzatron 15FEB2021 -- What the actual fuck is this
|
||||
// projectile.damage = 800;
|
||||
for (int num955 = 0; num955 < 10; num955 = num3 + 1)
|
||||
{
|
||||
Dust dust13 = Main.dust[Dust.NewDust(projectile.position, projectile.width, projectile.height, 60, 0f, -2f, 0, default, 1f)];
|
||||
@@ -133,16 +134,19 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
Main.PlaySound(SoundID.Item14, projectile.Center);
|
||||
|
||||
projectile.position = projectile.Center;
|
||||
projectile.width = projectile.height = 192;
|
||||
projectile.width = projectile.height = 84;
|
||||
projectile.position.X = projectile.position.X - (float)(projectile.width / 2);
|
||||
projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2);
|
||||
projectile.maxPenetrate = -1;
|
||||
projectile.penetrate = -1;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 10;
|
||||
projectile.localNPCHitCooldown = -1;
|
||||
projectile.Damage();
|
||||
Main.PlaySound(SoundID.Item14, projectile.Center);
|
||||
|
||||
// Dust code
|
||||
int num3;
|
||||
for (int num122 = 0; num122 < 3; num122 = num3 + 1)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user