Wildfire Bloom
This commit is contained in:
1 parent
f465003f65
commit
c248cc33c3
11 files changed
+40
-38
No files matched your search
@@ -434,7 +434,7 @@ namespace CalamityMod.CalPlayer
|
||||
ModContent.ItemType<DeadSunsWind>(),
|
||||
ModContent.ItemType<Meowthrower>(),
|
||||
ModContent.ItemType<OverloadedBlaster>(),
|
||||
ModContent.ItemType<TerraFlameburster>(),
|
||||
ModContent.ItemType<WildfireBloom>(),
|
||||
ModContent.ItemType<Photoviscerator>(),
|
||||
ModContent.ItemType<Shadethrower>(),
|
||||
ModContent.ItemType<BloodBoiler>(),
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<TerraFlameburster>().
|
||||
AddIngredient<WildfireBloom>().
|
||||
AddIngredient(ItemID.LunarBar, 5).
|
||||
AddIngredient<LifeAlloy>(5).
|
||||
AddIngredient<GalacticaSingularity>(5).
|
||||
|
||||
@@ -9,12 +9,12 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
public class TerraFlameburster : ModItem, ILocalizedModType
|
||||
public class WildfireBloom : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public int FlareCounter = 0;
|
||||
public int TerraUseTime = 8;
|
||||
public int WildfireUseTime = 8;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -22,8 +22,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.height = 58;
|
||||
Item.damage = 78;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useTime = TerraUseTime;
|
||||
Item.useAnimation = TerraUseTime;
|
||||
Item.useTime = WildfireUseTime;
|
||||
Item.useAnimation = WildfireUseTime;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noUseGraphic = true;
|
||||
Item.noMelee = true;
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<TerraFlamebursterHoldout>();
|
||||
Item.shoot = ModContent.ProjectileType<WildfireBloomHoldout>();
|
||||
Item.shootSpeed = 10f;
|
||||
Item.useAmmo = AmmoID.Gel;
|
||||
Item.channel = true;
|
||||
@@ -50,7 +50,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Ranged/TerraFlamebursterGlow").Value);
|
||||
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Ranged/WildfireBloomGlow").Value);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
File renamed without changes.
|
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B |
@@ -683,6 +683,16 @@ ArcNovaDiffuser: {
|
||||
'''
|
||||
}
|
||||
|
||||
MagnaCannon: {
|
||||
DisplayName: Magna Cannon
|
||||
Tooltip:
|
||||
'''
|
||||
Charges up a rapid fire burst of crystal bolts
|
||||
Charging for longer increases the number of bolts fired
|
||||
Fully charged shots fire an even longer and more rapid burst
|
||||
'''
|
||||
}
|
||||
|
||||
MagnomalyCannon: {
|
||||
DisplayName: Magnomaly Cannon
|
||||
Tooltip:
|
||||
@@ -1229,16 +1239,6 @@ TelluricGlare: {
|
||||
Tooltip: Fires volleys of four colossal radiant arrows which can pass through walls
|
||||
}
|
||||
|
||||
TerraFlameburster: {
|
||||
DisplayName: Terra Flameburster
|
||||
Tooltip:
|
||||
'''
|
||||
Charges up to emit a stream of energized flames and pairs of homing terra flares
|
||||
Uses gel for ammo
|
||||
50% chance to save ammo
|
||||
'''
|
||||
}
|
||||
|
||||
TheBallista: {
|
||||
DisplayName: The Ballista
|
||||
Tooltip: Converts wooden arrows into greatarrows that crush enemy armor and break into shards
|
||||
@@ -1363,6 +1363,16 @@ Vortexpopper: {
|
||||
Tooltip: Fires bubbles everywhere that pop into bullets
|
||||
}
|
||||
|
||||
WildfireBloom: {
|
||||
DisplayName: Wildfire Bloom
|
||||
Tooltip:
|
||||
'''
|
||||
Charges up to emit a stream of energized flames and pairs of homing wildfire flares
|
||||
Uses gel for ammo
|
||||
50% chance to save ammo
|
||||
'''
|
||||
}
|
||||
|
||||
WulfrumBlunderbuss: {
|
||||
DisplayName: Wulfrum Blunderbuss
|
||||
Tooltip:
|
||||
@@ -1374,13 +1384,3 @@ WulfrumBlunderbuss: {
|
||||
[c/83B87E:In fact, it is quite common for a robot to be turned into ammo right after it stops functioning.']
|
||||
'''
|
||||
}
|
||||
|
||||
MagnaCannon: {
|
||||
DisplayName: Magna Cannon
|
||||
Tooltip:
|
||||
'''
|
||||
Charges up a rapid fire burst of crystal bolts
|
||||
Charging for longer increases the number of bolts fired
|
||||
Fully charged shots fire an even longer and more rapid burst
|
||||
'''
|
||||
}
|
||||
@@ -221,8 +221,6 @@ TerraArrowMain.DisplayName: Terra Arrow
|
||||
TerraArrowSplit.DisplayName: Terra Arrow
|
||||
TerraBulletMain.DisplayName: Terra Bullet
|
||||
TerraBulletSplit.DisplayName: Terra Bullet
|
||||
TerraFire.DisplayName: Terra Fire
|
||||
TerraFlare.DisplayName: Terra Flare
|
||||
TheMaelstromExplosion.DisplayName: Reaper Explosion
|
||||
TheMaelstromShark.DisplayName: Reaper Shark
|
||||
ThePackMinissile.DisplayName: Pack Minissile
|
||||
@@ -247,4 +245,6 @@ VernalBolt.DisplayName: Vernal Bolt
|
||||
Voidragon.DisplayName: Voidragon Blast
|
||||
VoidragonTentacle.DisplayName: Voidragon Tentacle
|
||||
WaterSpout.DisplayName: Spout
|
||||
WildfireBloomFire.DisplayName: Wildfire Fire
|
||||
WildfireBloomFlare.DisplayName: Wildfire Flare
|
||||
WulfrumScrapBullet.DisplayName: High Speed Scrap
|
||||
@@ -7,7 +7,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
public class TerraFire : ModProjectile, ILocalizedModType
|
||||
public class WildfireBloomFire : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Ranged";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
@@ -9,7 +9,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
public class TerraFlare : ModProjectile, ILocalizedModType
|
||||
public class WildfireBloomFlare : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Ranged";
|
||||
public override string Texture => "CalamityMod/ExtraTextures/SmallGreyscaleCircle";
|
||||
+8
-6
@@ -2,18 +2,20 @@
|
||||
using CalamityMod.Projectiles.BaseProjectiles;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
public class TerraFlamebursterHoldout : BaseGunHoldoutProjectile
|
||||
public class WildfireBloomHoldout : BaseGunHoldoutProjectile
|
||||
{
|
||||
public override int AssociatedItemID => ModContent.ItemType<TerraFlameburster>();
|
||||
public override string Texture => "CalamityMod/Projectiles/Ranged/TerraFlamebursterHoldout";
|
||||
public override int AssociatedItemID => ModContent.ItemType<WildfireBloom>();
|
||||
public override string Texture => "CalamityMod/Projectiles/Ranged/WildfireBloomHoldout";
|
||||
public override Vector2 GunTipPosition => base.GunTipPosition - Vector2.UnitX.RotatedBy(Projectile.rotation) * 17f - (Vector2.UnitY.RotatedBy(Projectile.rotation) * 7f * Projectile.spriteDirection);
|
||||
public override float MaxOffsetLengthFromArm => 20f;
|
||||
public override float OffsetXUpwards => -5f;
|
||||
@@ -44,16 +46,16 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item34, Projectile.Center);
|
||||
Owner.PickAmmo(Owner.ActiveItem(), out _, out float shootSpeed, out int damage, out float knockback, out _, Main.rand.NextBool(2));
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, (Projectile.velocity * 9).RotatedByRandom(0.08f), ModContent.ProjectileType<TerraFire>(), damage, knockback, Projectile.owner);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, (Projectile.velocity * 9).RotatedByRandom(0.08f), ModContent.ProjectileType<WildfireBloomFire>(), damage, knockback, Projectile.owner);
|
||||
ShotsFired++;
|
||||
ShotCooldown = HeldItem.useTime;
|
||||
if (FireBlobs == 0)
|
||||
{
|
||||
float randAngle = Main.rand.NextFloat(8f, 15f);
|
||||
Vector2 newVel = (Projectile.velocity * 9).RotatedBy(MathHelper.ToRadians(randAngle)) * 2f;
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, newVel, ModContent.ProjectileType<TerraFlare>(), damage, knockback, Projectile.owner);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, newVel, ModContent.ProjectileType<WildfireBloomFlare>(), damage, knockback, Projectile.owner);
|
||||
newVel = (Projectile.velocity * 9).RotatedBy(MathHelper.ToRadians(-randAngle)) * 2f;
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, newVel, ModContent.ProjectileType<TerraFlare>(), damage, knockback, Projectile.owner);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, newVel, ModContent.ProjectileType<WildfireBloomFlare>(), damage, knockback, Projectile.owner);
|
||||
FireBlobs = 3;
|
||||
}
|
||||
else
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Reference in new issue
Block a user