water elemental resprite
This commit is contained in:
1 parent
9204256f17
commit
9b862e3b21
2 files changed
+8
-10
No files matched your search
@@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Siren Lure");
|
||||
DisplayName.SetDefault("Anahita");
|
||||
Main.projFrames[projectile.type] = 6;
|
||||
ProjectileID.Sets.MinionSacrificable[projectile.type] = true;
|
||||
ProjectileID.Sets.MinionTargettingFeature[projectile.type] = true;
|
||||
@@ -21,8 +21,8 @@ namespace CalamityMod.Projectiles.Summon
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.width = 70;
|
||||
projectile.height = 120;
|
||||
projectile.width = 100;
|
||||
projectile.height = 190;
|
||||
projectile.netImportant = true;
|
||||
projectile.friendly = true;
|
||||
projectile.ignoreWater = true;
|
||||
@@ -71,8 +71,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
if (player.MinionDamage() != projectile.Calamity().spawnedPlayerMinionDamageValue)
|
||||
{
|
||||
int damage2 = (int)((float)projectile.Calamity().spawnedPlayerMinionProjectileDamageValue /
|
||||
projectile.Calamity().spawnedPlayerMinionDamageValue *
|
||||
player.MinionDamage());
|
||||
projectile.Calamity().spawnedPlayerMinionDamageValue * player.MinionDamage());
|
||||
projectile.damage = damage2;
|
||||
}
|
||||
Lighting.AddLight(projectile.Center, 0f, 0.25f, 1.5f);
|
||||
@@ -82,12 +81,11 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.frame++;
|
||||
projectile.frameCounter = 0;
|
||||
}
|
||||
if (projectile.frame > 5)
|
||||
if (projectile.frame >= 6)
|
||||
{
|
||||
projectile.frame = 0;
|
||||
}
|
||||
projectile.position.X = player.Center.X - (float)(projectile.width / 2);
|
||||
projectile.position.Y = player.Center.Y - (float)(projectile.height / 2) + player.gfxOffY - 180f;
|
||||
projectile.Center = player.Center + Vector2.UnitY * (player.gfxOffY - 180f);
|
||||
if (player.gravDir == -1f)
|
||||
{
|
||||
projectile.position.Y += 360f;
|
||||
@@ -97,8 +95,8 @@ namespace CalamityMod.Projectiles.Summon
|
||||
{
|
||||
projectile.rotation = 0f;
|
||||
}
|
||||
projectile.position.X = (float)(int)projectile.position.X;
|
||||
projectile.position.Y = (float)(int)projectile.position.Y;
|
||||
projectile.position.X = (int)projectile.position.X;
|
||||
projectile.position.Y = (int)projectile.position.Y;
|
||||
if (projectile.owner == Main.myPlayer)
|
||||
{
|
||||
// Prevent firing immediately
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 8.8 KiB |
Reference in new issue
Block a user