Finished Shrimp
This commit is contained in:
1 parent
817bbce40f
commit
9bfa20c677
7 files changed
+20
-27
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 803 B |
@@ -1,12 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Cooldowns;
|
||||
using CalamityMod.CustomRecipes;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.SunkenSea;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using Microsoft.Xna.Framework;
|
||||
using rail;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
@@ -30,7 +28,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.width = 34;
|
||||
Item.height = 32;
|
||||
Item.shootSpeed = 10f;
|
||||
Item.damage = 31;
|
||||
Item.damage = 30;
|
||||
Item.mana = 10;
|
||||
Item.useAnimation = Item.useTime = 30;
|
||||
Item.useStyle = ItemUseStyleID.HoldUp;
|
||||
@@ -47,7 +45,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
{
|
||||
Vector2 mouse = player.ClampedMouseWorld();
|
||||
Point mouseTileCoords = mouse.ToTileCoordinates();
|
||||
if (!CalamityUtils.ParanoidTileRetrieval(mouseTileCoords.X, mouseTileCoords.Y).HasTile /*&& player.ownedProjectileCounts[Item.shoot] <= 0*/)
|
||||
if (!CalamityUtils.ParanoidTileRetrieval(mouseTileCoords.X, mouseTileCoords.Y).HasTile)
|
||||
{
|
||||
int p = Projectile.NewProjectile(source, new Vector2(mouse.X, player.Center.Y - 600), Vector2.Zero, type, damage, knockback, player.whoAmI);
|
||||
Main.projectile[p].localAI[2] = player.ownedProjectileCounts[Item.shoot];
|
||||
|
||||
@@ -1075,7 +1075,7 @@ AquaticStar: {
|
||||
|
||||
AqueousHunterDroneBuff: {
|
||||
DisplayName: Aqueous Hunter Drone Buff
|
||||
Description: shimp
|
||||
Description: Unfortunately incapable of producing fried rice
|
||||
}
|
||||
|
||||
AstralProbeBuff: {
|
||||
|
||||
@@ -15,10 +15,11 @@ AqueousHunterDrone: {
|
||||
Tooltip:
|
||||
'''
|
||||
Summons a shrimp drone that fires bursts of homing plasma missiles
|
||||
Pressing <right> while holding any summon weapon will make the shrimp fire vertical missiles
|
||||
These missiles will fall at your cursor and leave a lingering blast if they hit tiles
|
||||
Each shrimp costs 4 minion slots
|
||||
[c/1FFBFF:'yum shimp.']
|
||||
<right> while holding any summon weapon to command the shrimp to launch a vertical missile barrage
|
||||
Vertical missiles aim towards your cursor and leave a lingering blast if they hit solid ground
|
||||
Each shrimp uses 4 minion slots
|
||||
[c/1FBFF:'When pursuing the adherents of Gods, Yharim believed no stone should be left unturned.]
|
||||
[c/1FBFF:Weaponry for underwater contingencies was an unusually heavy focus, but no models ever saw deployment.']
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ AnomalysNanogunHoldout.DisplayName: The Anomaly's Nanogun
|
||||
AnomalysNanogunMPFBBoom.DisplayName: MPFB Explosion
|
||||
AnomalysNanogunMPFBDevastator.DisplayName: MPFB Devastator
|
||||
AnomalysNanogunPlasmaBeam.DisplayName: Plasma Beam
|
||||
AqueousHunterDroneSummon.DisplayName: Aqueous Hunter Drone
|
||||
AqueousHunterDroneSummon.DisplayName: Plasma Shrimp
|
||||
AugerHoldout.DisplayName: P-GSS Auger
|
||||
AugerSlash.DisplayName: Auger Slash
|
||||
AugerPull.DisplayName: Auger Pull
|
||||
@@ -41,6 +41,7 @@ PulseRifleShot.DisplayName: Pulse Bolt
|
||||
PulseTurret.DisplayName: Pulse Turret
|
||||
PulseTurretShot.DisplayName: Pulse Bolt
|
||||
ShortCircuitHook.DisplayName: Short Circuit Hook
|
||||
ShrimpPlasmaMissile.DisplayName: Plasma Shrimp Missile
|
||||
SnakeEyesSummon.DisplayName: Snake Eyes
|
||||
SnakeEyesProjectile.DisplayName: Inescapable Bolt
|
||||
StarSwallowerAcid.DisplayName: Acid
|
||||
@@ -83,4 +84,3 @@ PlagueShotBuffer.DisplayName: Plague Shot
|
||||
WaterShot.DisplayName: Water Shot
|
||||
WaterShotBuffer.DisplayName: Water Shot
|
||||
FrequencyManipulatorEnergy.DisplayName: Frequency Manipulator Energy
|
||||
ShrimpPlasmaMissile.DisplayName: Shrimp Plasma Missile
|
||||
@@ -4,7 +4,6 @@ using CalamityMod.Cooldowns;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Weapons.DraedonsArsenal;
|
||||
using CalamityMod.Particles;
|
||||
using Microsoft.Build.Construction;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -36,12 +35,12 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
public Vector2 chillSpot; // Stored position for intro animation and some movement
|
||||
public Vector2 spawnAnimStart; // Second stored position for the spawn animation
|
||||
public Vector2 lastTargetCenter;
|
||||
public int attackDowntime = 0;
|
||||
public int surpriseTimer = 0;
|
||||
public int attackDowntime = 0; // Timer used for post attack effects
|
||||
public int surpriseTimer = 0; // Used for the jump animation when surprized
|
||||
public float slidingDirection = 0; // Value that lerps from left to right
|
||||
public int animationClickTime = 70; // Time before body and tail click together in spawn anim
|
||||
public bool doSpin = false; // If the shrimp will spin for it's attack
|
||||
public float specialAttackfx = 0;
|
||||
public float specialAttackfx = 0; // spinnning effect opacity mult
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projPet[Type] = true;
|
||||
@@ -292,7 +291,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
{
|
||||
interactionTimer = 0;
|
||||
facingDir = Math.Sign(Projectile.Center.DirectionTo(lastTargetCenter).X);
|
||||
if (tailRecoil > 1 && doSpin)
|
||||
if (tailRecoil > 1 && doSpin) // Little spin
|
||||
{
|
||||
Projectile.rotation += 0.35f * facingDir;
|
||||
}
|
||||
@@ -306,7 +305,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
Projectile.velocity.Y -= 0.7f;
|
||||
|
||||
Projectile.velocity *= 0.99f;
|
||||
if (attackDowntime > 35)
|
||||
if (attackDowntime > 35) // Reposition to somewhere on the other side of the target
|
||||
{
|
||||
Projectile.velocity.X += 0.8f * Math.Sign(lastTargetCenter.X - lastFirePositionX);
|
||||
TailRotationBasedOnMovement();
|
||||
@@ -316,7 +315,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
CheckForSpecialAttack();
|
||||
tailRot = MathHelper.Lerp(tailRot, 0, 0.1f);
|
||||
}
|
||||
if (attackTimer > 60)
|
||||
if (attackTimer > 60) // Fire the missiles
|
||||
{
|
||||
Vector2 shootVel = tailPlace.DirectionTo(lastTargetCenter);
|
||||
Vector2 shootPlace = tailPlace + shootVel * 10;
|
||||
@@ -403,17 +402,18 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
bool left = facingDir == -1;
|
||||
float rotation = Projectile.rotation;
|
||||
|
||||
// Tail
|
||||
Main.EntitySpriteDraw(tail, tailPlace - Main.screenPosition, null, drawColor, rotation + tailRot, new Vector2(left ? tail.Height : 0, 0), Projectile.scale, left ? SpriteEffects.FlipHorizontally : SpriteEffects.None);
|
||||
Main.EntitySpriteDraw(glow2, tailPlace - Main.screenPosition, null, Color.White, rotation + tailRot, new Vector2(left ? glow2.Height : 0, 0), Projectile.scale, left ? SpriteEffects.FlipHorizontally : SpriteEffects.None);
|
||||
|
||||
float sine = (float)Math.Sin(time * 0.35f / MathHelper.Pi);
|
||||
float headFadeIn = (float)Math.Pow(Utils.GetLerpValue(0, animationClickTime - 25, time, true), 8);
|
||||
// Head
|
||||
Main.EntitySpriteDraw(head, headPlace - Main.screenPosition, null, drawColor * headFadeIn, rotation + sine * 0.1f, head.Size() * 0.5f, Projectile.scale, left ? SpriteEffects.FlipHorizontally : SpriteEffects.None);
|
||||
Main.EntitySpriteDraw(glow, headPlace - Main.screenPosition, null, Color.White * headFadeIn, rotation + sine * 0.1f, glow.Size() * 0.5f, Projectile.scale, left ? SpriteEffects.FlipHorizontally : SpriteEffects.None);
|
||||
|
||||
// Spin effect
|
||||
Main.EntitySpriteDraw(spin, Vector2.Lerp(headPlace, tailPlace, 0f) - Main.screenPosition, null, Effects.ArsenalEffects.ArsenalPlasmaColor with { A = 0 } * specialAttackfx, rotation * 1.8f, spin.Size() * 0.5f, Projectile.scale * 0.53f * specialAttackfx, left ? SpriteEffects.FlipHorizontally : SpriteEffects.None);
|
||||
|
||||
if (tailRecoil > 0)
|
||||
if (tailRecoil > 0) // Glowing on the gun after firing
|
||||
{
|
||||
float fade = Utils.GetLerpValue(0, 15, tailRecoil, true);
|
||||
for (int i = 0; i < 12; i++)
|
||||
@@ -422,7 +422,6 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
Main.EntitySpriteDraw(glow2, tailPlace - Main.screenPosition + vel, null, Color.White with { A = 0 } * fade, rotation + tailRot, new Vector2(left ? glow2.Height : 0, 0), Projectile.scale, left ? SpriteEffects.FlipHorizontally : SpriteEffects.None);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
using System;
|
||||
using System.Composition.Hosting.Core;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Weapons.DraedonsArsenal;
|
||||
using CalamityMod.Particles;
|
||||
using Microsoft.Build.Construction;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
|
||||
Reference in new issue
Block a user