Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
This commit is contained in:
commit
e45da2c3b8
16 files changed
+61
-33
No files matched your search
@@ -9038,7 +9038,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
else if (dashMod == 4) //Asgardian Aegis
|
||||
{
|
||||
dashDistance = 23.9f;
|
||||
dashDistance = 22.3f;
|
||||
int direction = 0;
|
||||
bool justDashed = false;
|
||||
if (dashTimeMod > 0)
|
||||
@@ -9227,7 +9227,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
else if (dashMod == 7) //Statis' Belt of Curses
|
||||
{
|
||||
dashDistance = 21.9f;
|
||||
dashDistance = 23.9f;
|
||||
int direction = 0;
|
||||
bool justDashed = false;
|
||||
if (dashTimeMod > 0)
|
||||
|
||||
@@ -203,6 +203,8 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
Main.tile[i, j + dy].type = type;
|
||||
Main.tile[i, j + dy].frameY = frameY;
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
WorldGen.TileFrame(i, j + dy, false, false);
|
||||
frameY += 16;
|
||||
if ((int)frameY / 16 >= 4)
|
||||
break;
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
item.width = 112;
|
||||
item.height = 36;
|
||||
item.ranged = true;
|
||||
item.damage = 170;
|
||||
item.damage = 126;
|
||||
item.knockBack = 30f;
|
||||
item.useTime = item.useAnimation = 28;
|
||||
item.autoReuse = true;
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
item.knockBack = 12f;
|
||||
item.width = 56;
|
||||
item.height = 24;
|
||||
item.damage = 70;
|
||||
item.damage = 65;
|
||||
item.hammer = 230;
|
||||
item.UseSound = SoundID.Item23;
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<SubsumingVortex>());
|
||||
recipe.AddIngredient(ItemID.SpellTome);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmicDischarge>());
|
||||
recipe.AddIngredient(ModContent.ItemType<StaffoftheMechworm>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<Excelsus>(), 2);
|
||||
|
||||
@@ -53,8 +53,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
item.useStyle = ItemUseStyleID.HoldingUp;
|
||||
item.useAnimation = 45;
|
||||
item.useTime = 45;
|
||||
item.noMelee = false;
|
||||
item.noUseGraphic = false;
|
||||
item.autoReuse = false;
|
||||
@@ -63,8 +61,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
else
|
||||
{
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useAnimation = 25;
|
||||
item.useTime = 25;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.autoReuse = true;
|
||||
@@ -73,6 +69,13 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
return base.CanUseItem(player);
|
||||
}
|
||||
|
||||
public override float UseTimeMultiplier (Player player)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
return (5f/9f);
|
||||
return 1f;
|
||||
}
|
||||
|
||||
public override void ModifyWeaponDamage(Player player, ref float add, ref float mult, ref float flat)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable() && player.altFunctionUse != 2)
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.autoReuse = true;
|
||||
item.height = 30;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.buyPrice(0, 1, 0, 0);
|
||||
item.value = Item.sellPrice(0, 0, 0, 40);
|
||||
item.rare = 1;
|
||||
item.shoot = ModContent.ProjectileType<SludgeSplotchProj1>();
|
||||
item.shootSpeed = 10f;
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.autoReuse = true;
|
||||
item.height = 38;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.buyPrice(0, 0, 1, 0);
|
||||
item.value = Item.sellPrice(0, 0, 0, 5);
|
||||
item.rare = 1;
|
||||
item.shoot = ModContent.ProjectileType<WulfrumKnifeProj>();
|
||||
item.shootSpeed = 12f;
|
||||
|
||||
@@ -3129,14 +3129,14 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
damage = (int)(damage * 0.5);
|
||||
}
|
||||
else if (projectile.type == ProjectileType<VoltageStream>())
|
||||
{
|
||||
damage = (int)(damage * 0.45);
|
||||
}
|
||||
else if (projectile.type == ProjectileType<SulphuricNukesplosion>())
|
||||
{
|
||||
damage = (int)(damage * 0.38);
|
||||
}
|
||||
else if (projectile.type == ProjectileType<VoltageStream>())
|
||||
{
|
||||
damage = (int)(damage * 0.3);
|
||||
}
|
||||
else if (projectile.type == ProjectileType<SeasSearingSpout>())
|
||||
{
|
||||
damage = (int)(damage * 0.25);
|
||||
|
||||
@@ -57,6 +57,7 @@ namespace CalamityMod.NPCs
|
||||
private static readonly string[] GoblinTinkererNames =
|
||||
{
|
||||
"Verth",
|
||||
"Gormer", // <@!287651204924833795> (Picasso's Bean#2819)
|
||||
};
|
||||
private const int GuideVanillaNames = 34;
|
||||
private static readonly string[] GuideNames =
|
||||
@@ -125,6 +126,7 @@ namespace CalamityMod.NPCs
|
||||
"Inorim, son of Ivukey",
|
||||
"Jensen",
|
||||
"Merasmus", // <@!288066987819663360> (Spider pee pee#3328)
|
||||
"Habolo", // <@!163028025494077441> (ChristmasGoat#7810)
|
||||
};
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
public override void AI()
|
||||
{
|
||||
Time++;
|
||||
projectile.tileCollide = Time > 3f;
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
// Idle dust.
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
projectile.friendly = true;
|
||||
projectile.ranged = true;
|
||||
projectile.tileCollide = false;
|
||||
projectile.penetrate = -1;
|
||||
projectile.penetrate = 3;
|
||||
projectile.timeLeft = 40;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 8;
|
||||
|
||||
@@ -20,14 +20,14 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.width = 56;
|
||||
projectile.height = 26;
|
||||
projectile.height = 56;
|
||||
projectile.friendly = true;
|
||||
projectile.penetrate = -1;
|
||||
projectile.tileCollide = false;
|
||||
projectile.hide = true;
|
||||
projectile.ownerHitCheck = true;
|
||||
projectile.melee = true;
|
||||
projectile.scale = 1.1f;
|
||||
projectile.scale = 1.3f;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -7,6 +7,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
public class TerraArrowMain : ModProjectile
|
||||
{
|
||||
private bool initialized = false;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Arrow");
|
||||
@@ -21,25 +22,31 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
projectile.arrow = true;
|
||||
projectile.penetrate = 1;
|
||||
projectile.timeLeft = 600;
|
||||
projectile.extraUpdates = 1;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
projectile.velocity *= 1.005f;
|
||||
if (projectile.velocity.Length() >= 20f)
|
||||
{
|
||||
projectile.Kill();
|
||||
}
|
||||
if (!initialized)
|
||||
{
|
||||
projectile.velocity *= 0.5f;
|
||||
initialized = true;
|
||||
}
|
||||
if (projectile.FinalExtraUpdate() && initialized)
|
||||
{
|
||||
projectile.velocity *= 1.003f;
|
||||
if (projectile.velocity.Length() >= 22f)
|
||||
{
|
||||
projectile.Kill();
|
||||
}
|
||||
}
|
||||
projectile.rotation = projectile.velocity.ToRotation() + MathHelper.PiOver2;
|
||||
}
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
projectile.position = projectile.Center;
|
||||
projectile.width = projectile.height = 32;
|
||||
projectile.position.X -= (float)(projectile.width / 2);
|
||||
projectile.position.Y -= (float)(projectile.height / 2);
|
||||
Main.PlaySound(SoundID.Item60, projectile.position);
|
||||
CalamityGlobalProjectile.ExpandHitboxBy(projectile, 32);
|
||||
Main.PlaySound(SoundID.Item60, projectile.Center);
|
||||
for (int d = 0; d < 3; d++)
|
||||
{
|
||||
int terra = Dust.NewDust(projectile.position, projectile.width, projectile.height, 107, 0f, 0f, 100, default, 2f);
|
||||
|
||||
@@ -12,8 +12,6 @@ namespace CalamityMod.Projectiles.Summon
|
||||
{
|
||||
DisplayName.SetDefault("Regislash");
|
||||
Main.projFrames[projectile.type] = 6;
|
||||
ProjectileID.Sets.TrailCacheLength[projectile.type] = 5;
|
||||
ProjectileID.Sets.TrailingMode[projectile.type] = 2;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -60,11 +58,26 @@ namespace CalamityMod.Projectiles.Summon
|
||||
{
|
||||
projectile.Kill();
|
||||
}
|
||||
projectile.direction = ((player.Center.X - projectile.Center.X) < 0).ToDirectionInt();
|
||||
projectile.spriteDirection = projectile.direction;
|
||||
}
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type]);
|
||||
Texture2D texture = Main.projectileTexture[projectile.type];
|
||||
Vector2 startPos = projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY);
|
||||
int frameHeight = texture.Height / Main.projFrames[projectile.type];
|
||||
int frameY = frameHeight * projectile.frame;
|
||||
Rectangle rectangle = new Rectangle(0, frameY, texture.Width, frameHeight);
|
||||
Vector2 origin = rectangle.Size() / 2f;
|
||||
float rotation = projectile.rotation;
|
||||
float scale = projectile.scale;
|
||||
|
||||
SpriteEffects spriteEffects = SpriteEffects.None;
|
||||
if (projectile.spriteDirection == -1)
|
||||
spriteEffects = SpriteEffects.FlipVertically;
|
||||
|
||||
Main.spriteBatch.Draw(texture, startPos, rectangle, projectile.GetAlpha(lightColor), rotation, origin, scale, spriteEffects, 0f);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1481,9 +1481,9 @@ namespace CalamityMod.World
|
||||
tile.frameX = (short)(WorldGen.genRand.Next(18) * 18);
|
||||
}
|
||||
|
||||
WorldGen.SquareTileFrame(x, y, true);
|
||||
WorldGen.SquareTileFrame(x, y);
|
||||
|
||||
if (Main.netMode == 2)
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
NetMessage.SendTileSquare(-1, x, y, 1, TileChangeType.None);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user