Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
This commit is contained in:
commit
73a31ca21d
9 files changed
+20
-18
No files matched your search
@@ -850,7 +850,7 @@ namespace CalamityMod.Items
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.IronHelmet || item.type == ItemID.IronChainmail || item.type == ItemID.IronGreaves)
|
||||
if (item.type == ItemID.AncientIronHelmet || item.type == ItemID.IronHelmet || item.type == ItemID.IronChainmail || item.type == ItemID.IronGreaves)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
@@ -890,7 +890,7 @@ namespace CalamityMod.Items
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.GoldHelmet || item.type == ItemID.GoldChainmail || item.type == ItemID.GoldGreaves)
|
||||
if (item.type == ItemID.AncientGoldHelmet || item.type == ItemID.GoldHelmet || item.type == ItemID.GoldChainmail || item.type == ItemID.GoldGreaves)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
@@ -1991,7 +1991,7 @@ Grants immunity to fire blocks, and temporary immunity to lava";
|
||||
return "Copper";
|
||||
if (head.type == ItemID.TinHelmet && body.type == ItemID.TinChainmail && legs.type == ItemID.TinGreaves)
|
||||
return "Tin";
|
||||
if (head.type == ItemID.IronHelmet && body.type == ItemID.IronChainmail && legs.type == ItemID.IronGreaves)
|
||||
if ((head.type == ItemID.IronHelmet || head.type == ItemID.AncientIronHelmet) && body.type == ItemID.IronChainmail && legs.type == ItemID.IronGreaves)
|
||||
return "Iron";
|
||||
if (head.type == ItemID.LeadHelmet && body.type == ItemID.LeadChainmail && legs.type == ItemID.LeadGreaves)
|
||||
return "Lead";
|
||||
@@ -1999,7 +1999,7 @@ Grants immunity to fire blocks, and temporary immunity to lava";
|
||||
return "Silver";
|
||||
if (head.type == ItemID.TungstenHelmet && body.type == ItemID.TungstenChainmail && legs.type == ItemID.TungstenGreaves)
|
||||
return "Tungsten";
|
||||
if (head.type == ItemID.GoldHelmet && body.type == ItemID.GoldChainmail && legs.type == ItemID.GoldGreaves)
|
||||
if ((head.type == ItemID.GoldHelmet || head.type == ItemID.AncientGoldHelmet) && body.type == ItemID.GoldChainmail && legs.type == ItemID.GoldGreaves)
|
||||
return "Gold";
|
||||
if (head.type == ItemID.PlatinumHelmet && body.type == ItemID.PlatinumChainmail && legs.type == ItemID.PlatinumGreaves)
|
||||
return "Platinum";
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Items.Fishing.SulphurCatches
|
||||
}
|
||||
|
||||
// Equipment
|
||||
DropHelper.DropItemFromSetCondition(player, Main.hardMode, 0.2f,
|
||||
DropHelper.DropItemFromSetCondition(player, NPC.downedBoss3, 0.25f,
|
||||
ModContent.ItemType<StrangeOrb>(),
|
||||
ModContent.ItemType<DepthCharm>(),
|
||||
ModContent.ItemType<IronBoots>(),
|
||||
@@ -85,7 +85,7 @@ namespace CalamityMod.Items.Fishing.SulphurCatches
|
||||
DropHelper.DropItemChance(player, ModContent.ItemType<AnechoicCoating>(), 10, 1, 3);
|
||||
if (Main.hardMode)
|
||||
{
|
||||
DropHelper.DropItem(player, Main.rand.Next(100) >= 49 ? ItemID.GreaterHealingPotion: ItemID.GreaterManaPotion, 5, 10);
|
||||
DropHelper.DropItem(player, Main.rand.Next(100) >= 49 ? ItemID.GreaterHealingPotion : ItemID.GreaterManaPotion, 5, 10);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -50,6 +50,7 @@ namespace CalamityMod.Items.TreasureBags
|
||||
DropHelper.DropItemChance(player, ModContent.ItemType<Fungicide>(), 3);
|
||||
DropHelper.DropItemChance(player, ModContent.ItemType<HyphaeRod>(), 3);
|
||||
DropHelper.DropItemChance(player, ModContent.ItemType<Mycoroot>(), 3);
|
||||
DropHelper.DropItemChance(player, ModContent.ItemType<Shroomerang>(), 3);
|
||||
|
||||
// Equipment
|
||||
DropHelper.DropItem(player, ModContent.ItemType<FungalClump>());
|
||||
|
||||
@@ -39,10 +39,10 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.Calamity().postMoonLordRarity = 14;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOrigin()
|
||||
/*public override Vector2? HoldoutOrigin()
|
||||
{
|
||||
return new Vector2(15, 15);
|
||||
}
|
||||
}*/
|
||||
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
|
||||
@@ -41,10 +41,10 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.Calamity().postMoonLordRarity = 17;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOrigin()
|
||||
/*public override Vector2? HoldoutOrigin()
|
||||
{
|
||||
return new Vector2(30, 30);
|
||||
}
|
||||
}*/
|
||||
|
||||
public override bool AltFunctionUse(Player player)
|
||||
{
|
||||
|
||||
@@ -506,6 +506,7 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<Fungicide>(), 4);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<HyphaeRod>(), 4);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<Mycoroot>(), 4);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<Shroomerang>(), 4);
|
||||
|
||||
// Vanity
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<CrabulonMask>(), 7);
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
double deltaAngle = spread / 8f;
|
||||
double offsetAngle;
|
||||
int i;
|
||||
if (projectile.owner == Main.myPlayer) //bringing super efficient and readable code to a CalamityMod near you
|
||||
if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType<PhantasmalSoul>()] < 16)
|
||||
{
|
||||
for (i = 0; i < 8; i++)
|
||||
{
|
||||
@@ -79,8 +79,8 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
float randomSpeed = (float)Main.rand.Next(1, 7);
|
||||
float randomSpeed2 = (float)Main.rand.Next(1, 7);
|
||||
offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i;
|
||||
int num23 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f) + randomSpeed, ModContent.ProjectileType<PhantasmalSoul>(), (int)((double)projectile.damage * 0.2), 0f, projectile.owner, 1f, ai1);
|
||||
int num24 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f) + randomSpeed2, ModContent.ProjectileType<PhantasmalSoul>(), (int)((double)projectile.damage * 0.2), 0f, projectile.owner, 1f, ai1);
|
||||
int num23 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f) + randomSpeed, ModContent.ProjectileType<PhantasmalSoul>(), (int)((double)projectile.damage * 0.1), 0f, projectile.owner, 1f, ai1);
|
||||
int num24 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f) + randomSpeed2, ModContent.ProjectileType<PhantasmalSoul>(), (int)((double)projectile.damage * 0.1), 0f, projectile.owner, 1f, ai1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.penetrate = -1;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 10;
|
||||
projectile.damage /= 2;
|
||||
projectile.damage /= 4;
|
||||
projectile.Damage();
|
||||
int num226 = 36;
|
||||
for (int num227 = 0; num227 < num226; num227++)
|
||||
|
||||
@@ -1201,22 +1201,22 @@ namespace CalamityMod.World
|
||||
WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(12, 18), WorldGen.genRand.Next(12, 18), (ushort)type);
|
||||
}
|
||||
else if (type == ModContent.TileType<UelibloomOre>())
|
||||
{
|
||||
{ //mud
|
||||
if (Main.tile[tilesX, tilesY].type == 59)
|
||||
{
|
||||
WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type);
|
||||
}
|
||||
}
|
||||
else if (type == ModContent.TileType<PerennialOre>())
|
||||
{
|
||||
{ //dirt, stone
|
||||
if (Main.tile[tilesX, tilesY].type == 0 || Main.tile[tilesX, tilesY].type == 1)
|
||||
{
|
||||
WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type);
|
||||
}
|
||||
}
|
||||
else if (type == ModContent.TileType<CryonicOre>())
|
||||
{
|
||||
if (Main.tile[tilesX, tilesY].type == 147 || Main.tile[tilesX, tilesY].type == 161 || Main.tile[tilesX, tilesY].type == 163 || Main.tile[tilesX, tilesY].type == 164 || Main.tile[tilesX, tilesY].type == 200)
|
||||
{ //snow, ice, purple ice, pink ice, red ice, astral snow, astral ice
|
||||
if (Main.tile[tilesX, tilesY].type == 147 || Main.tile[tilesX, tilesY].type == 161 || Main.tile[tilesX, tilesY].type == 163 || Main.tile[tilesX, tilesY].type == 164 || Main.tile[tilesX, tilesY].type == 200 || Main.tile[tilesX, tilesY].type == ModContent.TileType<AstralSnow>() || Main.tile[tilesX, tilesY].type == ModContent.TileType<AstralIce>())
|
||||
{
|
||||
WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user