Merge branch '1.4' of https://github.com/CalamityTeam/CalamityMod into 1.4
No files matched your search
@@ -275,6 +275,11 @@ namespace CalamityMod.CalPlayer
|
||||
target.AddBuff(BuffType<WhisperingDeath>(), 60);
|
||||
break;
|
||||
|
||||
// TODO -- REMOVE IN 1.4.4 LABOR OF LOVE PORT
|
||||
case ProjectileID.DarkLance:
|
||||
target.AddBuff(BuffID.ShadowFlame, 120);
|
||||
break;
|
||||
|
||||
case ProjectileID.PoisonedKnife:
|
||||
target.AddBuff(BuffID.Poisoned, 300);
|
||||
break;
|
||||
@@ -495,6 +500,11 @@ namespace CalamityMod.CalPlayer
|
||||
target.AddBuff(BuffType<WhisperingDeath>(), 60);
|
||||
break;
|
||||
|
||||
// TODO -- REMOVE IN 1.4.4 LABOR OF LOVE PORT
|
||||
case ProjectileID.DarkLance:
|
||||
target.AddBuff(BuffType<Shadowflame>(), 120);
|
||||
break;
|
||||
|
||||
case ProjectileID.PoisonedKnife:
|
||||
target.AddBuff(BuffID.Poisoned, 300);
|
||||
break;
|
||||
|
||||
@@ -1114,6 +1114,11 @@ namespace CalamityMod.Items
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
}
|
||||
|
||||
// TODO -- DELETE THIS LINE IN 1.4.4 PORT
|
||||
// Ankh Charm+ grants immunity to Petrification.
|
||||
if (item.type == ItemID.AnkhCharm || item.type == ItemID.AnkhShield)
|
||||
player.buffImmune[BuffID.Stoned] = true;
|
||||
|
||||
// Nightwither immunity pre-Moon Lord and Holy Flames immunity pre-Profaned Guardians.
|
||||
if (item.type == ItemID.MoonStone)
|
||||
player.buffImmune[ModContent.BuffType<Nightwither>()] = true;
|
||||
|
||||
@@ -266,10 +266,6 @@ namespace CalamityMod.Items
|
||||
EditTooltipByNum(0, (line) => line.Text = "Throws a mixture of slime and sparkling crystals"
|
||||
+ "\nSlimed enemies take more damage from fire-based debuffs");
|
||||
|
||||
// Add a tooltip about location of Shadow Chests
|
||||
if (item.type == ItemID.ShadowKey)
|
||||
EditTooltipByNum(0, (line) => line.Text += "\nShadow Chests can be found in the Abyss, Brimstone Crag and Underworld");
|
||||
|
||||
// Flesh Knuckles giving extra max life.
|
||||
if (item.type == ItemID.FleshKnuckles || item.type == ItemID.HeroShield || item.type == ItemID.BerserkerGlove)
|
||||
EditTooltipByNum(0, (line) => line.Text += "\nMax life increased by 45");
|
||||
@@ -965,8 +961,10 @@ namespace CalamityMod.Items
|
||||
if (item.type == ItemID.SteampunkWings)
|
||||
AddWingStats(7.5f, 1f, 1, 180, "+8 defense, 10% increased movement speed,\n" + "4% increased damage, and 2% increased critical strike chance");
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
if (item.type == ItemID.LeafWings)
|
||||
AddWingStats(7.5f, 1f, 1, 160, "+5 defense, 5% increased damage reduction,\n" + "and permanent Dryad's Blessing while wearing the Tiki Armor");
|
||||
AddWingStats(6.25f, 1f, 1, 100, "+5 defense, 5% increased damage reduction,\n" + "and permanent Dryad's Blessing while wearing the Tiki Armor");
|
||||
// AddWingStats(7.5f, 1f, 1, 160, "+5 defense, 5% increased damage reduction,\n" + "and permanent Dryad's Blessing while wearing the Tiki Armor");
|
||||
|
||||
if (item.type == ItemID.BatWings)
|
||||
AddWingStats(7.5f, 1f, 1, 160, "At night or during an eclipse, you will gain the following boosts:\n" +
|
||||
|
||||
@@ -35,7 +35,11 @@ namespace CalamityMod.Items
|
||||
{ ItemID.AdamantiteGlaive, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(65), ShootSpeedRatio(1.25f)) },
|
||||
{ ItemID.AdamantitePickaxe, Do(PickPower(180), UseTimeExact(8), TileBoostExact(+1)) },
|
||||
{ ItemID.AdamantiteRepeater, Do(PointBlank, UseExact(18), DamageExact(61)) },
|
||||
{ ItemID.AdamantiteSword, Do(UseTurn, ScaleRatio(1.45f), DamageExact(77)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.AdamantiteSword, Do(UseTurn, ScaleRatio(1.5f), UseRatio(0.8f), DamageExact(77)) },
|
||||
// { ItemID.AdamantiteSword, Do(UseTurn, ScaleRatio(1.45f), DamageExact(77)) },
|
||||
|
||||
{ ItemID.AdamantiteWaraxe, Do(AxePower(160), UseTimeExact(10), TileBoostExact(+1)) },
|
||||
{ ItemID.Amarok, autoReuse },
|
||||
{ ItemID.AmberStaff, Do(UseTimeExact(15), UseAnimationExact(45), ReuseDelayExact(10)) },
|
||||
@@ -44,7 +48,11 @@ namespace CalamityMod.Items
|
||||
{ ItemID.AncientHallowedGreaves, Do(DefenseDelta(+2)) },
|
||||
{ ItemID.AncientHallowedPlateMail, Do(DefenseDelta(+3)) },
|
||||
{ ItemID.AnkhShield, Do(DefenseDelta(+8)) },
|
||||
{ ItemID.AntlionClaw, Do(ScaleRatio(1.4f), DamageRatio(1.5f), UseExact(14)) }, //Mandible Blade
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.AntlionClaw, Do(ScaleRatio(1.5f), DamageRatio(1.5f), UseExact(14)) },
|
||||
// { ItemID.AntlionClaw, Do(ScaleRatio(1.4f), DamageRatio(1.5f), UseExact(14)) }, // Mandible Blade
|
||||
|
||||
{ ItemID.AquaScepter, Do(DamageExact(21), ShootSpeedExact(25f)) },
|
||||
{ ItemID.Arkhalis, trueMeleeNoSpeed },
|
||||
{ ItemID.BabyBirdStaff, Do(AutoReuse, UseExact(35)) },
|
||||
@@ -53,7 +61,11 @@ namespace CalamityMod.Items
|
||||
{ ItemID.BatScepter, Do(DamageExact(56)) },
|
||||
{ ItemID.BeamSword, Do(AutoReuse, UseMeleeSpeed, DamageExact(360), UseAnimationExact(60), ShootSpeedExact(23f)) },
|
||||
{ ItemID.BeeGun, Do(DamageExact(11)) },
|
||||
{ ItemID.BeeKeeper, Do(UseTurn, ScaleRatio(1.2f), DamageExact(60)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.BeeKeeper, Do(UseTurn, ScaleRatio(1.5f), DamageExact(60)) },
|
||||
// { ItemID.BeeKeeper, Do(UseTurn, ScaleRatio(1.2f), DamageExact(60)) },
|
||||
|
||||
{ ItemID.BeesKnees, Do(PointBlank, DamageExact(18), UseExact(38)) },
|
||||
{ ItemID.BladedGlove, Do(DamageExact(15), UseExact(7)) },
|
||||
{ ItemID.BladeofGrass, Do(AutoReuse, UseTurn, ScaleRatio(1.8f), DamageExact(35)) },
|
||||
@@ -67,19 +79,35 @@ namespace CalamityMod.Items
|
||||
{ ItemID.Blowgun, Do(PointBlank, DamageExact(40)) },
|
||||
{ ItemID.Blowpipe, Do(PointBlank, DamageExact(16), UseExact(35)) },
|
||||
{ ItemID.BluePhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(51)) },
|
||||
{ ItemID.BluePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.BluePhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) },
|
||||
// { ItemID.BluePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
{ ItemID.BlueSolution, Do(Value(Item.buyPrice(silver: 5))) },
|
||||
{ ItemID.BoneArrow, Do(DamageExact(7)) },
|
||||
{ ItemID.BonePickaxe, Do(PickPower(55), UseTimeExact(6)) },
|
||||
{ ItemID.BoneSword, Do(AutoReuse, UseTurn, ScaleRatio(1.3f)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.BoneSword, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageRatio(1.25f)) },
|
||||
// { ItemID.BoneSword, Do(AutoReuse, UseTurn, ScaleRatio(1.3f)) },
|
||||
|
||||
{ ItemID.BoneWhip, autoReuse },
|
||||
{ ItemID.BookofSkulls, Do(ManaExact(12), ShootSpeedExact(5.5f)) },
|
||||
{ ItemID.BookStaff, Do(ManaExact(14)) }, // Tome of Infinite Wisdom
|
||||
{ ItemID.Boomstick, Do(PointBlank, DamageExact(11)) },
|
||||
{ ItemID.BorealWoodBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.BorealWoodBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.BorealWoodBow, pointBlank },
|
||||
|
||||
{ ItemID.BorealWoodHammer, Do(HammerPower(25), UseTimeExact(11), TileBoostExact(+0)) },
|
||||
{ ItemID.BorealWoodSword, Do(AutoReuse, UseTurn) },
|
||||
{ ItemID.BreakerBlade, Do(AutoReuse, UseTurn, ScaleRatio(1.4f), DamageExact(97)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.BreakerBlade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(97)) },
|
||||
// { ItemID.BreakerBlade, Do(AutoReuse, UseTurn, ScaleRatio(1.4f), DamageExact(97)) },
|
||||
|
||||
{ ItemID.ButchersChainsaw, Do(TrueMeleeNoSpeed, AxePower(150), UseTimeExact(3), TileBoostExact(+0)) },
|
||||
{ ItemID.CactusPickaxe, Do(PickPower(34), UseTimeExact(9)) },
|
||||
{ ItemID.CactusSword, Do(AutoReuse, UseTurn) },
|
||||
@@ -109,24 +137,47 @@ namespace CalamityMod.Items
|
||||
{ ItemID.ChristmasTreeSword, Do(AutoReuse, UseTurn, UseMeleeSpeed, DamageExact(114)) },
|
||||
{ ItemID.ClingerStaff, Do(DamageExact(118)) },
|
||||
{ ItemID.ClockworkAssaultRifle, Do(PointBlank, DamageExact(21)) },
|
||||
{ ItemID.CobaltBreastplate, Do(DefenseDelta(+1)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.CobaltBreastplate, Do(DefenseDelta(+3)) },
|
||||
// { ItemID.CobaltBreastplate, Do(DefenseDelta(+1)) },
|
||||
|
||||
{ ItemID.CobaltChainsaw, Do(TrueMeleeNoSpeed, AxePower(70), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.CobaltDrill, Do(TrueMeleeNoSpeed, PickPower(130), UseTimeExact(5)) },
|
||||
{ ItemID.CobaltHat, Do(DefenseDelta(+1)) },
|
||||
{ ItemID.CobaltHelmet, Do(DefenseDelta(+2)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.CobaltHat, Do(DefenseDelta(+2)) },
|
||||
// { ItemID.CobaltHat, Do(DefenseDelta(+1)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.CobaltHelmet, Do(DefenseDelta(+4)) },
|
||||
// { ItemID.CobaltHelmet, Do(DefenseDelta(+2)) },
|
||||
|
||||
{ ItemID.CobaltLeggings, Do(DefenseDelta(+2)) },
|
||||
{ ItemID.CobaltMask, Do(DefenseDelta(+2)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.CobaltMask, Do(DefenseDelta(+3)) },
|
||||
// { ItemID.CobaltMask, Do(DefenseDelta(+2)) },
|
||||
|
||||
{ ItemID.CobaltNaginata, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(90)) },
|
||||
{ ItemID.CobaltPickaxe, Do(PickPower(130), UseTimeExact(9)) },
|
||||
{ ItemID.CobaltRepeater, Do(PointBlank, DamageExact(50), UseExact(20)) },
|
||||
{ ItemID.CobaltShield, Do(DefenseDelta(+3)) },
|
||||
{ ItemID.CobaltSword, Do(UseTurn, ScaleRatio(1.4f), DamageExact(80)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.CobaltSword, Do(UseTurn, ScaleRatio(1.5f), UseRatio(0.8f), DamageExact(80)) },
|
||||
// { ItemID.CobaltSword, Do(UseTurn, ScaleRatio(1.4f), DamageExact(80)) },
|
||||
|
||||
{ ItemID.CobaltWaraxe, Do(AxePower(125), UseTimeExact(12), TileBoostExact(+0)) },
|
||||
{ ItemID.Code1, Do(AutoReuse, DamageExact(25)) },
|
||||
{ ItemID.Code2, autoReuse },
|
||||
{ ItemID.CoolWhip, autoReuse },
|
||||
{ ItemID.CopperAxe, Do(AxePower(50), UseTimeExact(16), TileBoostExact(+0)) },
|
||||
{ ItemID.CopperBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.CopperBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.CopperBow, pointBlank },
|
||||
|
||||
{ ItemID.CopperBroadsword, Do(AutoReuse, UseTurn) },
|
||||
{ ItemID.CopperHammer, Do(HammerPower(35), UseTimeExact(12), TileBoostExact(+0)) },
|
||||
{ ItemID.CopperPickaxe, Do(PickPower(35), UseTimeExact(10), TileBoostExact(+0)) },
|
||||
@@ -139,7 +190,11 @@ namespace CalamityMod.Items
|
||||
{ ItemID.CursedArrow, Do(DamageRatio(1.1f)) },
|
||||
{ ItemID.CursedBullet, Do(DamageExact(16)) },
|
||||
{ ItemID.CursedDart, Do(DamageExact(25)) },
|
||||
{ ItemID.Cutlass, Do(UseRatio(0.9f), DamageRatio(1.85f)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.Cutlass, Do(UseRatio(0.8f), DamageRatio(2f)) },
|
||||
// { ItemID.Cutlass, Do(UseRatio(0.9f), DamageRatio(1.85f)) },
|
||||
|
||||
// Vanilla 1.4 nerfed Daedalus Stormbow themselves. If further nerfs are needed, apply them here.
|
||||
// { ItemID.DaedalusStormbow, Do(DamageRatio(0.9f)) },
|
||||
{ ItemID.DaoofPow, Do(DamageExact(160)) },
|
||||
@@ -147,19 +202,36 @@ namespace CalamityMod.Items
|
||||
{ ItemID.DarkLance, Do(AutoReuse, TrueMelee, DamageExact(68)) },
|
||||
{ ItemID.DartPistol, pointBlank },
|
||||
{ ItemID.DartRifle, Do(PointBlank, DamageExact(58)) },
|
||||
|
||||
// if Daybreak still needs a buff after the 1.4 explosion change, apply it here
|
||||
// { ItemID.DayBreak, Do(DamageRatio(1.0f)) }
|
||||
{ ItemID.DD2BallistraTowerT1Popper, autoReuse }, // Ballista Tier 1
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.DD2BallistraTowerT1Popper, Do(AutoReuse, UseExact(30)) }, // Ballista Tier 1
|
||||
// { ItemID.DD2BallistraTowerT1Popper, autoReuse }, // Ballista Tier 1
|
||||
|
||||
{ ItemID.DD2BallistraTowerT2Popper, Do(AutoReuse, UseExact(25)) }, // Ballista Tier 2
|
||||
{ ItemID.DD2BallistraTowerT3Popper, Do(AutoReuse, UseExact(20)) }, // Ballista Tier 3
|
||||
{ ItemID.DD2BetsyBow, Do(DamageRatio(1.1f)) }, // Aerial Bane's ridiculous multiplier is removed, so this compensates for that
|
||||
{ ItemID.DD2ExplosiveTrapT1Popper, autoReuse }, // Explosive Trap Tier 1
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.DD2ExplosiveTrapT1Popper, Do(AutoReuse, UseExact(30)) }, // Explosive Trap Tier 1
|
||||
// { ItemID.DD2ExplosiveTrapT1Popper, autoReuse }, // Explosive Trap Tier 1
|
||||
|
||||
{ ItemID.DD2ExplosiveTrapT2Popper, Do(AutoReuse, UseExact(25)) }, // Explosive Trap Tier 2
|
||||
{ ItemID.DD2ExplosiveTrapT3Popper, Do(AutoReuse, UseExact(20)) }, // Explosive Trap Tier 3
|
||||
{ ItemID.DD2FlameburstTowerT1Popper, autoReuse }, // Flameburst Tier 1
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.DD2FlameburstTowerT1Popper, Do(AutoReuse, UseExact(30)) }, // Flameburst Tier 1
|
||||
// { ItemID.DD2FlameburstTowerT1Popper, autoReuse }, // Flameburst Tier 1
|
||||
|
||||
{ ItemID.DD2FlameburstTowerT2Popper, Do(AutoReuse, UseExact(25)) }, // Flameburst Tier 2
|
||||
{ ItemID.DD2FlameburstTowerT3Popper, Do(AutoReuse, UseExact(20)) }, // Flameburst Tier 3
|
||||
{ ItemID.DD2LightningAuraT1Popper, autoReuse }, // Lightning Aura Tier 1
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.DD2LightningAuraT1Popper, Do(AutoReuse, UseExact(30)) }, // Lightning Aura Tier 1
|
||||
// { ItemID.DD2LightningAuraT1Popper, autoReuse }, // Lightning Aura Tier 1
|
||||
|
||||
{ ItemID.DD2LightningAuraT2Popper, Do(AutoReuse, UseExact(25)) }, // Lightning Aura Tier 2
|
||||
{ ItemID.DD2LightningAuraT3Popper, Do(AutoReuse, UseExact(20)) }, // Lightning Aura Tier 3
|
||||
{ ItemID.DD2PhoenixBow, Do(PointBlank, UseExact(18)) }, // Phantom Phoenix
|
||||
@@ -174,26 +246,50 @@ namespace CalamityMod.Items
|
||||
{ ItemID.DiamondStaff, Do(DamageExact(26)) },
|
||||
{ ItemID.Drax, Do(TrueMeleeNoSpeed, PickPower(200), AxePower(110), UseTimeExact(4), TileBoostExact(+1)) },
|
||||
{ ItemID.DyeTradersScimitar, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageRatio(1.33f)) },
|
||||
{ ItemID.EbonwoodBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.EbonwoodBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.EbonwoodBow, pointBlank },
|
||||
|
||||
{ ItemID.EbonwoodHammer, Do(HammerPower(25), UseTimeExact(9), TileBoostExact(+0)) },
|
||||
{ ItemID.EbonwoodSword, Do(AutoReuse, UseTurn) },
|
||||
{ ItemID.ElectrosphereLauncher, Do(DamageRatio(1.1f)) },
|
||||
{ ItemID.EldMelter, Do(DamageExact(113), ShootSpeedDelta(+3f)) }, // Elf Melter, intentionally not in alphabetical order to correct for typo
|
||||
{ ItemID.EmeraldStaff, Do(DamageExact(28)) },
|
||||
{ ItemID.EmpressBlade, Do(AutoReuse, DamageExact(60), UseExact(20)) }, // Terraprisma
|
||||
{ ItemID.EnchantedBoomerang, Do(DamageExact(26), UseExact(28)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.EnchantedBoomerang, Do(DamageRatio(2f), UseExact(28)) },
|
||||
// { ItemID.EnchantedBoomerang, Do(DamageExact(26), UseExact(28)) },
|
||||
|
||||
{ ItemID.EnchantedSword, Do(UseMeleeSpeed, ScaleRatio(1.5f), DamageExact(42), UseAnimationExact(20), ShootSpeedExact(15f)) },
|
||||
|
||||
// TODO -- DELETE THIS LINE IN 1.4.4 PORT
|
||||
{ ItemID.EndlessQuiver, Do(DamageRatio(1.1f)) },
|
||||
|
||||
{ ItemID.EoCShield, Do(DefenseDelta(+1)) },
|
||||
{ ItemID.FairyQueenRangedItem, pointBlank },
|
||||
{ ItemID.Excalibur, Do(UseTurn, ScaleRatio(1.5f), UseRatio(0.8f), DamageExact(125), UseAnimationExact(45)) },
|
||||
{ ItemID.FairyQueenMagicItem, Do(DamageExact(54)) },
|
||||
{ ItemID.FalconBlade, Do(UseTurn, ScaleRatio(1.35f), DamageExact(35), UseExact(15)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.FalconBlade, Do(UseTurn, ScaleRatio(1.5f), DamageExact(35), UseExact(15)) },
|
||||
// { ItemID.FalconBlade, Do(UseTurn, ScaleRatio(1.35f), DamageExact(35), UseExact(15)) },
|
||||
|
||||
{ ItemID.FieryGreatsword, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(72), UseExact(45)) },
|
||||
{ ItemID.FireWhip, autoReuse },
|
||||
// Unsure what to do with Celebration. Should it be treated as a serious weapon or not? Currently not changing it from vanilla.
|
||||
// { ItemID.FireworksLauncher, Do(DamageRatio(2f)) }, // Celebration
|
||||
|
||||
// TODO -- DELETE THIS LINE IN 1.4.4 PORT
|
||||
{ ItemID.Flamarang, Do(DamageExact(45)) },
|
||||
|
||||
{ ItemID.Flamelash, Do(DamageRatio(1.25f)) },
|
||||
{ ItemID.Flamethrower, Do(DamageExact(47), ShootSpeedDelta(+3f)) },
|
||||
|
||||
// TODO -- DELETE THIS LINE IN 1.4.4 PORT
|
||||
{ ItemID.FlamingArrow, Do(DamageRatio(1.1f)) },
|
||||
|
||||
{ ItemID.FlareGun, pointBlank },
|
||||
{ ItemID.FleshGrinder, Do(HammerPower(70), UseTimeExact(13), TileBoostExact(+0)) },
|
||||
{ ItemID.FlintlockPistol, pointBlank },
|
||||
@@ -202,19 +298,31 @@ namespace CalamityMod.Items
|
||||
{ ItemID.FlowerofFrost, Do(AutoReuse, ManaExact(7), UseExact(30), DamageExact(70), ShootSpeedExact(14)) },
|
||||
{ ItemID.FlyingKnife, Do(DamageExact(70)) },
|
||||
{ ItemID.FormatC, autoReuse },
|
||||
{ ItemID.Frostbrand, Do(UseMeleeSpeed, DamageExact(97)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.Frostbrand, Do(UseMeleeSpeed, DamageExact(97), UseExact(23)) },
|
||||
// { ItemID.Frostbrand, Do(UseMeleeSpeed, DamageExact(97)) },
|
||||
|
||||
{ ItemID.FrostburnArrow, Do(DamageExact(8)) },
|
||||
{ ItemID.FrostStaff, Do(DamageExact(160), UseExact(37), ShootSpeedExact(20f)) }, // has 1 extra update
|
||||
{ ItemID.FrozenShield, Do(DefenseDelta(+7)) },
|
||||
{ ItemID.FrozenTurtleShell, Do(DefenseExact(6)) },
|
||||
{ ItemID.FruitcakeChakram, Do(DamageRatio(1.5f)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.FruitcakeChakram, Do(DamageRatio(2f)) },
|
||||
// { ItemID.FruitcakeChakram, Do(DamageRatio(1.5f)) },
|
||||
|
||||
{ ItemID.Gatligator, Do(PointBlank, UseExact(6)) },
|
||||
{ ItemID.Gladius, Do(AutoReuse, TrueMelee) },
|
||||
{ ItemID.GlowingMushroom, Do(Value(0)) },
|
||||
{ ItemID.GoblinBattleStandard, nonConsumableBossSummon },
|
||||
{ ItemID.GoldAxe, Do(AxePower(80), UseTimeExact(14), TileBoostExact(+0)) },
|
||||
{ ItemID.GoldBow, Do(PointBlank, DamageExact(12)) },
|
||||
{ ItemID.GoldBroadsword, Do(AutoReuse, UseTurn, ScaleRatio(1.25f), DamageRatio(1.75f)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.GoldBroadsword, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageRatio(2f)) },
|
||||
// { ItemID.GoldBroadsword, Do(AutoReuse, UseTurn, ScaleRatio(1.25f), DamageRatio(1.75f)) },
|
||||
|
||||
{ ItemID.GoldenShower, Do(DamageExact(44)) },
|
||||
{ ItemID.GoldHammer, Do(HammerPower(60), UseTimeExact(9), TileBoostExact(+0)) },
|
||||
{ ItemID.GoldPickaxe, Do(PickPower(55), UseTimeExact(9)) },
|
||||
@@ -222,7 +330,11 @@ namespace CalamityMod.Items
|
||||
{ ItemID.GolemFist, Do(DamageExact(150)) },
|
||||
{ ItemID.Gradient, autoReuse },
|
||||
{ ItemID.GreenPhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(51)) },
|
||||
{ ItemID.GreenPhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.GreenPhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) },
|
||||
// { ItemID.GreenPhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
{ ItemID.GreenSolution, Do(Value(Item.buyPrice(silver: 5))) },
|
||||
{ ItemID.GrenadeLauncher, Do(DamageRatio(1.5f)) },
|
||||
{ ItemID.GuideVoodooDoll, maxStack9999 },
|
||||
@@ -248,18 +360,36 @@ namespace CalamityMod.Items
|
||||
{ ItemID.IceSickle, Do(AutoReuse, UseMeleeSpeed, DamageExact(95), ShootSpeedExact(20f)) },
|
||||
{ ItemID.IchorArrow, Do(DamageExact(15)) },
|
||||
{ ItemID.ImpStaff, Do(AutoReuse, UseExact(30)) },
|
||||
{ ItemID.InfernoFork, Do(DamageRatio(1.2f)) },
|
||||
{ ItemID.InfluxWaver, Do(UseMeleeSpeed, DamageExact(82)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.InfernoFork, Do(DamageRatio(1.66f)) },
|
||||
// { ItemID.InfernoFork, Do(DamageRatio(1.2f)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.InfluxWaver, Do(UseMeleeSpeed, DamageRatio(0.75f)) },
|
||||
// { ItemID.InfluxWaver, Do(UseMeleeSpeed, DamageExact(82)) },
|
||||
|
||||
{ ItemID.IronAxe, Do(AxePower(60), UseTimeExact(15), TileBoostExact(+0)) },
|
||||
{ ItemID.IronBow, pointBlank },
|
||||
{ ItemID.IronBroadsword, Do(AutoReuse, UseTurn) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.IronBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.IronBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.IronBroadsword, Do(AutoReuse, UseTurn, DamageRatio(1.25f), ScaleRatio(1.2f)) },
|
||||
// { ItemID.IronBroadsword, Do(AutoReuse, UseTurn) },
|
||||
|
||||
{ ItemID.IronHammer, Do(HammerPower(45), UseTimeExact(11), TileBoostExact(+0)) },
|
||||
{ ItemID.IronPickaxe, Do(PickPower(40), UseTimeExact(8)) },
|
||||
{ ItemID.IronShortsword, Do(AutoReuse, TrueMelee, DamageRatio(1.25f)) },
|
||||
{ ItemID.JestersArrow, Do(DamageExact(6)) },
|
||||
{ ItemID.JoustingLance, trueMelee },
|
||||
{ ItemID.JungleYoyo, autoReuse },
|
||||
{ ItemID.Katana, Do(UseExact(15), DamageRatio(1.35f), CritDelta(+30)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.Katana, Do(UseExact(15), DamageRatio(1.5f), CritDelta(+30)) },
|
||||
// { ItemID.Katana, Do(UseExact(15), DamageRatio(1.35f), CritDelta(+30)) },
|
||||
|
||||
{ ItemID.Keybrand, Do(UseTurn, ScaleRatio(1.5f), DamageExact(110)) },
|
||||
{ ItemID.KOCannon, Do(DamageRatio(2.65f)) },
|
||||
{ ItemID.Kraken, autoReuse },
|
||||
@@ -268,8 +398,15 @@ namespace CalamityMod.Items
|
||||
{ ItemID.LastPrism, Do(DamageRatio(0.75f)) },
|
||||
{ ItemID.LavaSkull, Do(DefenseExact(4)) },
|
||||
{ ItemID.LeadAxe, Do(AxePower(60), UseTimeExact(15), TileBoostExact(+0)) },
|
||||
{ ItemID.LeadBow, pointBlank },
|
||||
{ ItemID.LeadBroadsword, Do(AutoReuse, UseTurn) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.LeadBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.LeadBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.LeadBroadsword, Do(AutoReuse, UseTurn, DamageRatio(1.25f), ScaleRatio(1.2f)) },
|
||||
// { ItemID.LeadBroadsword, Do(AutoReuse, UseTurn) },
|
||||
|
||||
{ ItemID.LeadHammer, Do(HammerPower(45), UseTimeExact(11), TileBoostExact(+0)) },
|
||||
{ ItemID.LeadPickaxe, Do(PickPower(40), UseTimeExact(8)) },
|
||||
{ ItemID.LeadShortsword, Do(AutoReuse, TrueMelee, DamageRatio(1.25f)) },
|
||||
@@ -308,7 +445,11 @@ namespace CalamityMod.Items
|
||||
{ ItemID.MonkStaffT2, Do(AutoReuse, TrueMelee, DamageRatio(2f)) }, // Ghastly Glaive
|
||||
{ ItemID.MonkStaffT3, Do(DamageExact(225)) }, // Sky Dragon's Fury
|
||||
{ ItemID.MoonlordArrow, Do(DamageRatio(1.1f)) }, // Luminite Arrow
|
||||
{ ItemID.MoonlordTurretStaff, Do(UseExact(15)) }, //Lunar Portal Staff
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.MoonlordTurretStaff, Do(UseExact(15), DamageRatio(1.5f)) },
|
||||
// { ItemID.MoonlordTurretStaff, Do(UseExact(15)) }, // Lunar Portal Staff
|
||||
|
||||
{ ItemID.Muramasa, Do(ScaleRatio(1.5f), DamageRatio(1.5f), UseExact(14), CritDelta(+30)) },
|
||||
{ ItemID.Mushroom, Do(Value(0)) },
|
||||
{ ItemID.MushroomSpear, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(100)) },
|
||||
@@ -318,7 +459,11 @@ namespace CalamityMod.Items
|
||||
{ ItemID.MythrilHalberd, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(95), ShootSpeedRatio(1.25f)) },
|
||||
{ ItemID.MythrilPickaxe, Do(PickPower(160), UseTimeExact(8)) },
|
||||
{ ItemID.MythrilRepeater, Do(PointBlank, DamageExact(58), UseExact(19)) },
|
||||
{ ItemID.MythrilSword, Do(UseTurn, ScaleRatio(1.45f), DamageExact(100)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.MythrilSword, Do(UseTurn, ScaleRatio(1.5f), DamageExact(100), UseExact(25)) },
|
||||
// { ItemID.MythrilSword, Do(UseTurn, ScaleRatio(1.45f), DamageExact(100)) },
|
||||
|
||||
{ ItemID.MythrilWaraxe, Do(AxePower(140), UseTimeExact(11), TileBoostExact(+0)) },
|
||||
{ ItemID.NaughtyPresent, nonConsumableBossSummon },
|
||||
{ ItemID.NebulaChainsaw, trueMeleeNoSpeed },
|
||||
@@ -333,9 +478,17 @@ namespace CalamityMod.Items
|
||||
{ ItemID.ObsidianSkullRose, Do(DefenseExact(4)) },
|
||||
{ ItemID.ObsidianSwordfish, Do(AutoReuse, TrueMelee, DamageExact(45)) },
|
||||
{ ItemID.OnyxBlaster, Do(PointBlank, UseTurn) },
|
||||
{ ItemID.OpticStaff, Do(AutoReuse, UseExact(25)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.OpticStaff, Do(AutoReuse, UseExact(25), DamageRatio(0.75f)) }, // NOTE: Optic Staff minions have local iframes, so they should be much better overall
|
||||
// { ItemID.OpticStaff, Do(AutoReuse, UseExact(25)) },
|
||||
|
||||
{ ItemID.OrangePhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(51)) },
|
||||
{ ItemID.OrangePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.OrangePhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) },
|
||||
// { ItemID.OrangePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
{ ItemID.OrichalcumBreastplate, Do(DefenseDelta(+3)) },
|
||||
{ ItemID.OrichalcumChainsaw, Do(TrueMeleeNoSpeed, AxePower(80), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.OrichalcumDrill, Do(TrueMeleeNoSpeed, PickPower(160), UseTimeExact(4)) },
|
||||
@@ -346,7 +499,11 @@ namespace CalamityMod.Items
|
||||
{ ItemID.OrichalcumMask, Do(DefenseDelta(+3)) },
|
||||
{ ItemID.OrichalcumPickaxe, Do(PickPower(160), UseTimeExact(8)) },
|
||||
{ ItemID.OrichalcumRepeater, Do(PointBlank, DamageExact(86), UseExact(27)) },
|
||||
{ ItemID.OrichalcumSword, Do(UseTurn, ScaleRatio(1.45f), DamageExact(82)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.OrichalcumSword, Do(UseTurn, ScaleRatio(1.5f), UseRatio(0.8f), DamageExact(82)) },
|
||||
// { ItemID.OrichalcumSword, Do(UseTurn, ScaleRatio(1.45f), DamageExact(82)) },
|
||||
|
||||
{ ItemID.OrichalcumWaraxe, Do(AxePower(140), UseTimeExact(11), TileBoostExact(+0)) },
|
||||
{ ItemID.PainterPaintballGun, Do(PointBlank, DamageExact(8)) },
|
||||
{ ItemID.PaladinsHammer, Do(AutoReuse, DamageExact(100)) },
|
||||
@@ -359,18 +516,34 @@ namespace CalamityMod.Items
|
||||
{ ItemID.PalladiumMask, Do(DefenseDelta(+1)) },
|
||||
{ ItemID.PalladiumLeggings, Do(DefenseDelta(+3)) },
|
||||
{ ItemID.PalladiumPickaxe, Do(PickPower(130), UseTimeExact(9)) },
|
||||
{ ItemID.PalladiumPike, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(96)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.PalladiumPike, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageRatio(3f)) },
|
||||
// { ItemID.PalladiumPike, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(96)) },
|
||||
|
||||
{ ItemID.PalladiumRepeater, Do(PointBlank, UseExact(25), DamageExact(75)) },
|
||||
{ ItemID.PalladiumSword, Do(UseTurn, ScaleRatio(1.4f), DamageExact(100)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.PalladiumSword, Do(UseTurn, ScaleRatio(1.5f), UseRatio(0.8f), DamageExact(100)) },
|
||||
// { ItemID.PalladiumSword, Do(UseTurn, ScaleRatio(1.4f), DamageExact(100)) },
|
||||
|
||||
{ ItemID.PalladiumWaraxe, Do(AxePower(125), UseTimeExact(12), TileBoostExact(+0)) },
|
||||
{ ItemID.PalmWoodBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.PalmWoodBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.PalmWoodBow, pointBlank },
|
||||
|
||||
{ ItemID.PalmWoodHammer, Do(HammerPower(25), UseTimeExact(11), TileBoostExact(+0)) },
|
||||
{ ItemID.PalmWoodSword, Do(AutoReuse, UseTurn) },
|
||||
{ ItemID.PaperAirplaneA, autoReuse },
|
||||
{ ItemID.PaperAirplaneB, autoReuse },
|
||||
{ ItemID.PearlwoodBow, Do(AutoReuse, PointBlank, DamageRatio(2.31f), UseDelta(+8), ShootSpeedDelta(+3.4f), KnockbackDelta(+1f)) },
|
||||
{ ItemID.PearlwoodHammer, Do(HammerPower(25), UseTimeExact(4), UseAnimationExact(20), DamageRatio(4f), TileBoostExact(+0)) },
|
||||
{ ItemID.PearlwoodSword, Do(UseTurn, DamageRatio(1.5f)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.PearlwoodSword, Do(AutoReuse, UseTurn, DamageRatio(4f)) },
|
||||
// { ItemID.PearlwoodSword, Do(UseTurn, DamageRatio(1.5f)) },
|
||||
|
||||
{ ItemID.PewMaticHorn, Do(DamageExact(23)) },
|
||||
{ ItemID.Phantasm, pointBlank },
|
||||
{ ItemID.PhoenixBlaster, Do(AutoReuse, PointBlank, DamageExact(36), UseExact(27)) },
|
||||
@@ -380,8 +553,15 @@ namespace CalamityMod.Items
|
||||
{ ItemID.PirateMap, nonConsumableBossSummon },
|
||||
{ ItemID.PirateStaff, Do(AutoReuse, UseExact(25)) },
|
||||
{ ItemID.PlatinumAxe, Do(AxePower(80), UseTimeExact(14), TileBoostExact(+0)) },
|
||||
{ ItemID.PlatinumBow, pointBlank },
|
||||
{ ItemID.PlatinumBroadsword, Do(AutoReuse, UseTurn, ScaleRatio(1.25f), DamageExact(30)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.PlatinumBow, Do(PointBlank, DamageExact(13)) },
|
||||
// { ItemID.PlatinumBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.PlatinumBroadsword, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageRatio(2f)) },
|
||||
// { ItemID.PlatinumBroadsword, Do(AutoReuse, UseTurn, ScaleRatio(1.25f), DamageExact(30)) },
|
||||
|
||||
{ ItemID.PlatinumHammer, Do(HammerPower(60), UseTimeExact(9), TileBoostExact(+0)) },
|
||||
{ ItemID.PlatinumPickaxe, Do(PickPower(55), UseTimeExact(9)) },
|
||||
{ ItemID.PlatinumShortsword, Do(AutoReuse, TrueMelee, DamageRatio(2f)) },
|
||||
@@ -392,7 +572,11 @@ namespace CalamityMod.Items
|
||||
{ ItemID.PumpkinMoonMedallion, nonConsumableBossSummon },
|
||||
{ ItemID.PurpleClubberfish, Do(UseTurn, ScaleRatio(1.5f), DamageExact(45), KnockbackExact(10f)) },
|
||||
{ ItemID.PurplePhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(51)) },
|
||||
{ ItemID.PurplePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.PurplePhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) },
|
||||
// { ItemID.PurplePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
{ ItemID.PurpleSolution, Do(Value(Item.buyPrice(silver: 5))) },
|
||||
{ ItemID.Pwnhammer, Do(HammerPower(80), UseTimeExact(11), TileBoostExact(+1)) },
|
||||
{ ItemID.PygmyStaff, Do(AutoReuse, UseExact(20)) },
|
||||
@@ -407,12 +591,20 @@ namespace CalamityMod.Items
|
||||
{ ItemID.Razorpine, Do(DamageRatio(0.75f)) },
|
||||
{ ItemID.ReaverShark, Do(PickPower(100), UseTimeExact(16)) },
|
||||
{ ItemID.RedPhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(51)) },
|
||||
{ ItemID.RedPhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.RedPhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) },
|
||||
// { ItemID.RedPhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
{ ItemID.RedRyder, Do(PointBlank, DamageExact(24)) },
|
||||
{ ItemID.RedSolution, Do(Value(Item.buyPrice(silver: 5))) },
|
||||
{ ItemID.RedsYoyo, autoReuse },
|
||||
{ ItemID.Revolver, Do(PointBlank, AutoReuse) },
|
||||
{ ItemID.RichMahoganyBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.RichMahoganyBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.RichMahoganyBow, pointBlank },
|
||||
|
||||
{ ItemID.RichMahoganyHammer, Do(HammerPower(25), UseTimeExact(10), TileBoostExact(+0)) },
|
||||
{ ItemID.RichMahoganySword, Do(AutoReuse, UseTurn) },
|
||||
{ ItemID.RocketIII, Do(DamageRatio(0.75f)) },
|
||||
@@ -429,7 +621,11 @@ namespace CalamityMod.Items
|
||||
{ ItemID.SDMG, pointBlank },
|
||||
{ ItemID.Seedler, Do(UseMeleeSpeed, DamageRatio(1.5f)) },
|
||||
{ ItemID.Shackle, Do(DefenseDelta(+2)) },
|
||||
{ ItemID.ShadewoodBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.ShadewoodBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.ShadewoodBow, pointBlank },
|
||||
|
||||
{ ItemID.ShadewoodHammer, Do(HammerPower(25), UseTimeExact(9), TileBoostExact(+0)) },
|
||||
{ ItemID.ShadewoodSword, Do(AutoReuse, UseTurn) },
|
||||
{ ItemID.ShadowbeamStaff, Do(DamageRatio(1.75f)) },
|
||||
@@ -437,16 +633,25 @@ namespace CalamityMod.Items
|
||||
{ ItemID.ShadowFlameHexDoll, Do(DamageExact(69), ShootSpeedExact(30)) },
|
||||
{ ItemID.ShadowFlameKnife, Do(DamageExact(70)) },
|
||||
{ ItemID.ShadowJoustingLance, trueMelee },
|
||||
// 1.4.4 items
|
||||
//{ ItemID.Shellphone, Do(UseExact(30)) },
|
||||
//{ ItemID.ShellphoneSpawn, Do(UseExact(30)) },
|
||||
//{ ItemID.ShellphoneOcean, Do(UseExact(30)) },
|
||||
//{ ItemID.ShellphoneHell, Do(UseExact(30)) },
|
||||
|
||||
// TODO -- UNCOMMENT THE FOLLOWING LINES IN 1.4.4 PORT
|
||||
// { ItemID.Shellphone, Do(UseExact(30)) },
|
||||
// { ItemID.ShellphoneSpawn, Do(UseExact(30)) },
|
||||
// { ItemID.ShellphoneOcean, Do(UseExact(30)) },
|
||||
// { ItemID.ShellphoneHell, Do(UseExact(30)) },
|
||||
|
||||
{ ItemID.Shotgun, Do(PointBlank, DamageExact(36), AutoReuse) },
|
||||
{ ItemID.ShroomiteDiggingClaw, Do(PickPower(200), AxePower(125), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.SilverAxe, Do(AxePower(70), UseTimeExact(14), TileBoostExact(+0)) },
|
||||
{ ItemID.SilverBow, pointBlank },
|
||||
{ ItemID.SilverBroadsword, Do(AutoReuse, UseTurn, DamageRatio(1.15f), ScaleRatio(1.1f)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.SilverBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.SilverBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.SilverBroadsword, Do(AutoReuse, UseTurn, DamageRatio(1.5f), ScaleRatio(1.3f)) },
|
||||
// { ItemID.SilverBroadsword, Do(AutoReuse, UseTurn, DamageRatio(1.15f), ScaleRatio(1.1f)) },
|
||||
|
||||
{ ItemID.SilverBullet, Do(DamageExact(8)) },
|
||||
{ ItemID.SilverHammer, Do(HammerPower(55), UseTimeExact(10), TileBoostExact(+0)) },
|
||||
{ ItemID.SilverPickaxe, Do(PickPower(50), UseTimeExact(11)) },
|
||||
@@ -497,20 +702,28 @@ namespace CalamityMod.Items
|
||||
{ ItemID.TentacleSpike, autoReuse },
|
||||
{ ItemID.TerraBlade, Do(UseMeleeSpeed) },
|
||||
{ ItemID.Terragrim, trueMeleeNoSpeed },
|
||||
// Vanilla damage 190. After fixing iframes so yoyo and shots can hit simultaneously,
|
||||
// Terrarian is extremely overpowered and requires a heavy nerf.
|
||||
// Vanilla damage 190. After fixing iframes so yoyo and shots can hit simultaneously,
|
||||
// Terrarian is extremely overpowered and requires a heavy nerf.
|
||||
{ ItemID.Terrarian, Do(AutoReuse, DamageExact(106)) },
|
||||
{ ItemID.TheAxe, Do(HammerPower(100), AxePower(175), UseTimeExact(7), TileBoostExact(+1)) },
|
||||
{ ItemID.TheBreaker, Do(HammerPower(70), UseTimeExact(13), TileBoostExact(+0)) },
|
||||
{ ItemID.TheEyeOfCthulhu, autoReuse },
|
||||
{ ItemID.TheHorsemansBlade, Do(UseTurn, UseRatio(0.8f)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.TheHorsemansBlade, Do(UseTurn, ScaleRatio(1.5f), UseRatio(0.8f), DamageExact(95)) },
|
||||
// { ItemID.TheHorsemansBlade, Do(UseTurn, UseRatio(0.8f)) },
|
||||
|
||||
{ ItemID.TheRottedFork, Do(AutoReuse, TrueMelee, DamageExact(20)) },
|
||||
{ ItemID.TheUndertaker, Do(PointBlank, AutoReuse, UseExact(21)) },
|
||||
{ ItemID.ThornChakram, Do(DamageExact(32)) },
|
||||
{ ItemID.ThornWhip, autoReuse },
|
||||
{ ItemID.ThunderSpear, Do(AutoReuse, UseMeleeSpeed) }, // Storm Spear
|
||||
{ ItemID.TinAxe, Do(AxePower(50), UseTimeExact(16), TileBoostExact(+0)) },
|
||||
{ ItemID.TinBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.TinBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.TinBow, pointBlank },
|
||||
|
||||
{ ItemID.TinBroadsword, Do(AutoReuse, UseTurn) },
|
||||
{ ItemID.TinHammer, Do(HammerPower(35), UseTimeExact(12), TileBoostExact(+0)) },
|
||||
{ ItemID.TinPickaxe, Do(PickPower(35), UseTimeExact(10), TileBoostExact(+0)) },
|
||||
@@ -519,7 +732,11 @@ namespace CalamityMod.Items
|
||||
{ ItemID.TitaniumDrill, Do(TrueMeleeNoSpeed, PickPower(180), UseTimeExact(4), TileBoostExact(+1)) },
|
||||
{ ItemID.TitaniumPickaxe, Do(PickPower(180), UseTimeExact(8), TileBoostExact(+1)) },
|
||||
{ ItemID.TitaniumRepeater, Do(PointBlank, UseExact(29), DamageExact(122)) },
|
||||
{ ItemID.TitaniumSword, Do(UseTurn, ScaleRatio(1.45f), DamageExact(77)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.TitaniumSword, Do(UseTurn, ScaleRatio(1.5f), UseRatio(0.8f), DamageExact(77)) },
|
||||
// { ItemID.TitaniumSword, Do(UseTurn, ScaleRatio(1.45f), DamageExact(77)) },
|
||||
|
||||
{ ItemID.TitaniumTrident, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(72), ShootSpeedRatio(1.25f)) },
|
||||
{ ItemID.TitaniumWaraxe, Do(AxePower(160), UseTimeExact(10), TileBoostExact(+1)) },
|
||||
{ ItemID.TopazStaff, Do(ManaExact(2)) },
|
||||
@@ -559,9 +776,20 @@ namespace CalamityMod.Items
|
||||
{ ItemID.WaterBolt, Do(DamageExact(23)) },
|
||||
{ ItemID.WeatherPain, autoReuse },
|
||||
{ ItemID.WhitePhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(51)) },
|
||||
{ ItemID.WhitePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.WhitePhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) },
|
||||
// { ItemID.WhitePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
// TODO -- DELETE THIS LINE IN 1.4.4 PORT
|
||||
{ ItemID.WoodenArrow, Do(DamageRatio(1.1f)) },
|
||||
|
||||
{ ItemID.WoodenBoomerang, Do(DamageRatio(2f), Value(Item.sellPrice(copper: 20))) },
|
||||
{ ItemID.WoodenBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.WoodenBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.WoodenBow, pointBlank },
|
||||
|
||||
{ ItemID.WoodenHammer, Do(HammerPower(25), UseTimeExact(11), TileBoostExact(+0)) },
|
||||
{ ItemID.WoodenSword, Do(AutoReuse, UseTurn) },
|
||||
{ ItemID.WoodYoyo, autoReuse },
|
||||
@@ -570,10 +798,17 @@ namespace CalamityMod.Items
|
||||
{ ItemID.XenoStaff, Do(AutoReuse, UseExact(20)) },
|
||||
{ ItemID.Yelets, autoReuse },
|
||||
{ ItemID.YellowPhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(51)) },
|
||||
{ ItemID.YellowPhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.YellowPhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) },
|
||||
// { ItemID.YellowPhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
{ ItemID.ZapinatorGray, autoReuse },
|
||||
{ ItemID.ZapinatorOrange, autoReuse },
|
||||
{ ItemID.ZombieArm, Do(AutoReuse, UseTurn, ScaleRatio(1.25f), KnockbackExact(12f)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.ZombieArm, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(12), KnockbackExact(12f)) },
|
||||
// { ItemID.ZombieArm, Do(AutoReuse, UseTurn, ScaleRatio(1.25f), KnockbackExact(12f)) },
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.Abyss;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Furniture
|
||||
{
|
||||
public class AbyssTreasureChest : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Ancient Treasure Chest");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 26;
|
||||
Item.height = 22;
|
||||
Item.maxStack = 99;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.value = 500;
|
||||
Item.createTile = ModContent.TileType<Tiles.Abyss.AbyssTreasureChest>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 388 B |
@@ -19,8 +19,9 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
private void ApplyAnyPieceEffect(Player player)
|
||||
{
|
||||
// Remove the vanilla +3% damage and add the new damage value at the same time
|
||||
player.GetDamage<GenericDamageClass>() += ArmorPieceDamage - 0.03f;
|
||||
// TODO -- CHANGE THIS TO 3% IN THE 1.4.4 PORT
|
||||
// Remove the vanilla +2% damage and add the new damage value at the same time
|
||||
player.GetDamage<GenericDamageClass>() += ArmorPieceDamage - 0.02f;
|
||||
|
||||
// Give life regen
|
||||
player.lifeRegen += ArmorPieceLifeRegen;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
// Not sure why it doesn't say Set bonus automatically
|
||||
// Not sure why it doesn't say Set bonus automatically
|
||||
setBonusText = "Set bonus: Multiplies all cold-based debuff damage by 1.25\n" +
|
||||
"Cold enemies will deal reduced contact damage to the player\n" +
|
||||
"Provides immunity to the Chilled, Frozen, Frostburn and Glacial State debuffs";
|
||||
@@ -35,6 +35,11 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
{
|
||||
player.Calamity().eskimoSet = true;
|
||||
|
||||
// TODO -- DELETE THE FOLLOWING 2 LINES IN THE 1.4.4 PORT
|
||||
player.buffImmune[BuffID.Chilled] = true;
|
||||
player.buffImmune[BuffID.Frozen] = true;
|
||||
|
||||
player.buffImmune[BuffID.Frostburn] = true;
|
||||
player.buffImmune[ModContent.BuffType<GlacialState>()] = true;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -15,22 +15,18 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override string ArmorSetName => "Mining";
|
||||
|
||||
public const float MiningSpeed = 0.2f;
|
||||
public const int BonusOreChance = 4;
|
||||
public const int CooldownMin = 180;
|
||||
public const int CooldownMax = 360;
|
||||
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
setBonusText = setBonusText.Replace("10%", "20%");
|
||||
setBonusText += "\nMining ore will sometimes have additional yield";
|
||||
setBonusText += "\nMining ore will sometimes have additional yield";
|
||||
}
|
||||
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
{
|
||||
// Remove the vanilla +30% pick speed and add (subtract?) the new pick speed value at the same time
|
||||
player.pickSpeed -= MiningSpeed + 0.1f;
|
||||
player.Calamity().miningSet = true;
|
||||
player.Calamity().miningSet = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,8 @@ namespace CalamityMod.Localization
|
||||
new [] { "AuricOreText", "Ancient draconic power manifests in the caverns, lacing itself through the rock." },
|
||||
new [] { "FutureOreText", "A cold and dark energy has materialized in space." },
|
||||
|
||||
new [] { "SkeletronAbyssChestNotification", "The First Dryad's vines deem you worthy of their abyssal treasures." },
|
||||
|
||||
new [] { "UglyBossText", "The Sunken Sea trembles..." },
|
||||
|
||||
new [] { "SteelSkullBossText", "A blood red inferno lingers in the night..." },
|
||||
|
||||
@@ -191,7 +191,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (spawnInfo.Player.Calamity().ZoneAbyssLayer1 && spawnInfo.Water)
|
||||
{
|
||||
return SpawnCondition.OceanMonster.Chance * 2.5f;
|
||||
return SpawnCondition.CaveJellyfish.Chance * 2.5f;
|
||||
}
|
||||
return SpawnCondition.OceanMonster.Chance * 0.1f;
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (spawnInfo.Player.Calamity().ZoneAbyssLayer1 && spawnInfo.Water)
|
||||
{
|
||||
return SpawnCondition.OceanMonster.Chance * 2.2f;
|
||||
return SpawnCondition.CaveJellyfish.Chance * 2.2f;
|
||||
}
|
||||
return SpawnCondition.OceanMonster.Chance * 0.1f;
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (spawnInfo.Player.Calamity().ZoneAbyssLayer2 && spawnInfo.Water)
|
||||
{
|
||||
return SpawnCondition.CaveJellyfish.Chance * 1.0f;
|
||||
return SpawnCondition.CaveJellyfish.Chance * 2.0f;
|
||||
}
|
||||
return 0f;
|
||||
}
|
||||
|
||||
@@ -1678,6 +1678,13 @@ namespace CalamityMod.NPCs
|
||||
case NPCID.SkeletronHead:
|
||||
SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.Dryad, NPCID.Demolitionist }, NPC.downedBoss3);
|
||||
SetNewBossJustDowned(npc);
|
||||
|
||||
// First kill: Notify of Abyss chests being unlocked.
|
||||
if (!NPC.downedBoss3)
|
||||
{
|
||||
string keysk = "Mods.CalamityMod.SkeletronAbyssChestNotification";
|
||||
CalamityUtils.DisplayLocalizedText(keysk, new Color(76, 181, 76));
|
||||
}
|
||||
break;
|
||||
|
||||
case NPCID.WallofFlesh:
|
||||
|
||||
@@ -134,6 +134,10 @@ namespace CalamityMod.Projectiles
|
||||
{ ProjectileID.LostSoulFriendly, pointBlank }, // TODO -- why does LostSoulFriendly have point blank enabled
|
||||
{ ProjectileID.LostSoulHostile, Do(TileCollide) },
|
||||
{ ProjectileID.MeteorShot, standardBulletTweaks },
|
||||
|
||||
// TODO -- DELETE THIS LINE IN 1.4.4 PORT
|
||||
{ ProjectileID.MiniRetinaLaser, Do(LocalIFrames(10)) },
|
||||
|
||||
{ ProjectileID.MonkStaffT1, Do(TrueMeleeNoSpeed, ScaleExact(3f)) }, // Sleepy Octopod
|
||||
{ ProjectileID.MonkStaffT2, Do(TrueMelee, IDStaticIFrames(18)) }, // Ghastly Glaive
|
||||
{ ProjectileID.MonkStaffT3, Do(ScaleRatio(2f)) }, // Sky Dragon's Fury
|
||||
@@ -173,6 +177,10 @@ namespace CalamityMod.Projectiles
|
||||
{ ProjectileID.Rally, Do(LocalIFrames(10)) },
|
||||
{ ProjectileID.RedCounterweight, counterweightTweaks },
|
||||
{ ProjectileID.RedsYoyo, Do(LocalIFrames(10)) },
|
||||
|
||||
// TODO -- DELETE THIS LINE IN 1.4.4 PORT
|
||||
{ ProjectileID.Retanimini, Do(LocalIFrames(10)) }, // Optic Staff (Mini Retinazer)
|
||||
|
||||
{ ProjectileID.RocketSkeleton, defenseDamage }, // Skeleton Commando rockets
|
||||
{ ProjectileID.RockGolemRock, defenseDamage },
|
||||
{ ProjectileID.RulerStab, trueMelee },
|
||||
@@ -192,6 +200,10 @@ namespace CalamityMod.Projectiles
|
||||
{ ProjectileID.SnowBallFriendly, pointBlank },
|
||||
{ ProjectileID.SolarFlareChainsaw, trueMeleeNoSpeed },
|
||||
{ ProjectileID.SolarFlareDrill, trueMeleeNoSpeed },
|
||||
|
||||
// TODO -- DELETE THIS LINE IN 1.4.4 PORT
|
||||
{ ProjectileID.Spazmamini, Do(IDStaticIFrames(12)) }, // Optic Staff (Mini Spazmatism)
|
||||
|
||||
{ ProjectileID.Spear, trueMelee },
|
||||
{ ProjectileID.Spike, defenseDamage }, // Santank spike balls
|
||||
{ ProjectileID.Stake, pointBlank },
|
||||
|
||||
@@ -60,6 +60,9 @@ namespace CalamityMod.Schematics
|
||||
|
||||
internal const string SurfaceShrineKey = "Surface Shrine";
|
||||
internal const string SurfaceShrineFilename = "Schematics/Shrine_Surface.csch";
|
||||
|
||||
internal const string VernalKey = "Vernal Pass";
|
||||
internal const string VernalFilename = "Schematics/VernalPass.csch";
|
||||
|
||||
|
||||
internal const string AstralBeaconKey = "Astral Beacon";
|
||||
@@ -116,6 +119,8 @@ namespace CalamityMod.Schematics
|
||||
[MushroomShrineKey] = CalamitySchematicIO.LoadSchematic(MushroomShrineFilename),
|
||||
[SurfaceShrineKey] = CalamitySchematicIO.LoadSchematic(SurfaceShrineFilename),
|
||||
|
||||
[VernalKey] = CalamitySchematicIO.LoadSchematic(VernalFilename),
|
||||
|
||||
// Astral world gen structures
|
||||
[AstralBeaconKey] = CalamitySchematicIO.LoadSchematic(AstralBeaconFilename),
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Systems
|
||||
#region ModifyWorldGenTasks
|
||||
public override void ModifyWorldGenTasks(List<GenPass> tasks, ref float totalWeight)
|
||||
{
|
||||
// Evil Floating Island
|
||||
//Evil Floating Island
|
||||
int islandIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Floating Island Houses"));
|
||||
if (islandIndex != -1)
|
||||
{
|
||||
@@ -40,14 +40,14 @@ namespace CalamityMod.Systems
|
||||
}));
|
||||
}
|
||||
|
||||
// Calamity's biome chests in the dungeon
|
||||
//Calamity's biome chests in the dungeon
|
||||
int DungeonChestIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Dungeon"));
|
||||
if (DungeonChestIndex != -1)
|
||||
{
|
||||
tasks.Insert(DungeonChestIndex + 1, new PassLegacy("CalamityDungeonBiomeChests", MiscWorldgenRoutines.GenerateBiomeChests));
|
||||
}
|
||||
|
||||
// Larger Jungle Temple
|
||||
//Larger Jungle Temple
|
||||
int JungleTempleIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Jungle Temple"));
|
||||
tasks[JungleTempleIndex] = new PassLegacy("Jungle Temple", (progress, config) =>
|
||||
{
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Systems
|
||||
CustomTemple.NewJungleTemple();
|
||||
});
|
||||
|
||||
// Improved Golem arena
|
||||
//Improved Golem arena
|
||||
int JungleTempleIndex2 = tasks.FindIndex(genpass => genpass.Name.Equals("Temple"));
|
||||
tasks[JungleTempleIndex2] = new PassLegacy("Temple", (progress, config) =>
|
||||
{
|
||||
@@ -66,7 +66,7 @@ namespace CalamityMod.Systems
|
||||
Main.tileSolid[232] = false;
|
||||
});
|
||||
|
||||
// Better Lihzahrd altar (consistency?)
|
||||
//Better Lihzahrd altar (consistency?)
|
||||
int LihzahrdAltarIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Lihzahrd Altars"));
|
||||
tasks[LihzahrdAltarIndex] = new PassLegacy("Lihzahrd Altars", (progress, config) =>
|
||||
{
|
||||
@@ -74,7 +74,7 @@ namespace CalamityMod.Systems
|
||||
CustomTemple.NewJungleTempleLihzahrdAltar();
|
||||
});
|
||||
|
||||
// Giant beehive
|
||||
//Giant beehive
|
||||
int giantHiveIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Hives"));
|
||||
if (giantHiveIndex != -1)
|
||||
{
|
||||
@@ -92,7 +92,18 @@ namespace CalamityMod.Systems
|
||||
}));
|
||||
}
|
||||
|
||||
// Sunken sea
|
||||
//Vernal pass
|
||||
int vernalIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Smooth World"));
|
||||
if (vernalIndex != -1)
|
||||
{
|
||||
tasks.Insert(vernalIndex + 1, new PassLegacy("Vernal Pass", (progress, config) =>
|
||||
{
|
||||
progress.Message = "Blessing a flourishing jungle grove";
|
||||
VernalPass.PlaceVernalPass(WorldGen.structures);
|
||||
}));
|
||||
}
|
||||
|
||||
//Sunken sea
|
||||
int SunkenSeaIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Settle Liquids Again"));
|
||||
if (SunkenSeaIndex != -1)
|
||||
{
|
||||
@@ -107,11 +118,11 @@ namespace CalamityMod.Systems
|
||||
}));
|
||||
}
|
||||
|
||||
// All further tasks occur after vanilla worldgen is completed
|
||||
//All further tasks occur after vanilla worldgen is completed
|
||||
int FinalIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Final Cleanup"));
|
||||
if (FinalIndex != -1)
|
||||
{
|
||||
// Reallocate gems so rarity corresponds to depth
|
||||
//Reallocate gems so rarity corresponds to depth
|
||||
int currentFinalIndex = FinalIndex;
|
||||
tasks.Insert(++currentFinalIndex, new PassLegacy("Gem Depth Adjustment", (progress, config) =>
|
||||
{
|
||||
@@ -119,17 +130,17 @@ namespace CalamityMod.Systems
|
||||
MiscWorldgenRoutines.SmartGemGen();
|
||||
}));
|
||||
|
||||
// Forsaken Archive structure in the Dungeon
|
||||
//Forsaken Archive structure in the Dungeon
|
||||
tasks.Insert(++currentFinalIndex, new PassLegacy("Forsaken Archive", (progress, config) =>
|
||||
{
|
||||
progress.Message = "Entombing occult literature";
|
||||
DungeonArchive.PlaceArchive();
|
||||
}));
|
||||
|
||||
// Planetoids
|
||||
//Planetoids
|
||||
tasks.Insert(++currentFinalIndex, new PassLegacy("Planetoids", Planetoid.GenerateAllBasePlanetoids));
|
||||
|
||||
// Sulphurous Sea (Step 1)
|
||||
//Sulphurous Sea (Step 1)
|
||||
int SulphurIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Micro Biomes"));
|
||||
if (SulphurIndex != -1)
|
||||
{
|
||||
@@ -140,14 +151,14 @@ namespace CalamityMod.Systems
|
||||
}));
|
||||
}
|
||||
|
||||
// Brimstone Crags
|
||||
//Brimstone Crags
|
||||
tasks.Insert(++currentFinalIndex, new PassLegacy("Brimstone Crag", (progress, config) =>
|
||||
{
|
||||
progress.Message = "Incinerating Azafure";
|
||||
BrimstoneCrag.GenAllCragsStuff();
|
||||
}));
|
||||
|
||||
// Biome shrines
|
||||
//Biome shrines
|
||||
tasks.Insert(++currentFinalIndex, new PassLegacy("Special Shrines", (progress, config) =>
|
||||
{
|
||||
progress.Message = "Hiding forbidden shrines";
|
||||
@@ -192,7 +203,7 @@ namespace CalamityMod.Systems
|
||||
AerialiteOreGen.Generate(false);
|
||||
}));
|
||||
|
||||
// Draedon Labs
|
||||
//Draedon Labs
|
||||
tasks.Insert(++currentFinalIndex, new PassLegacy("Draedon Structures", (progress, config) =>
|
||||
{
|
||||
progress.Message = "Rust and Dust";
|
||||
@@ -240,21 +251,21 @@ namespace CalamityMod.Systems
|
||||
}
|
||||
}));
|
||||
|
||||
// Abyss
|
||||
//Abyss
|
||||
tasks.Insert(++currentFinalIndex, new PassLegacy("Abyss", (progress, config) =>
|
||||
{
|
||||
progress.Message = "Disposing of Silva's remains";
|
||||
Abyss.PlaceAbyss();
|
||||
}));
|
||||
|
||||
// Sulphurous Sea (Part 2, after Abyss)
|
||||
//Sulphurous Sea (Part 2, after Abyss)
|
||||
tasks.Insert(++currentFinalIndex, new PassLegacy("Sulphur Sea 2", (progress, config) =>
|
||||
{
|
||||
progress.Message = "Irradiating one of the oceans";
|
||||
SulphurousSea.SulphurSeaGenerationAfterAbyss();
|
||||
}));
|
||||
|
||||
// Roxcalibur
|
||||
//Roxcalibur
|
||||
tasks.Insert(++currentFinalIndex, new PassLegacy("Roxcalibur", (progress, config) =>
|
||||
{
|
||||
progress.Message = "I wanna rock";
|
||||
@@ -263,7 +274,7 @@ namespace CalamityMod.Systems
|
||||
}
|
||||
}
|
||||
|
||||
// An Astral Meteor always falls at the beginning of Hardmode.
|
||||
//An Astral Meteor always falls at the beginning of Hardmode.
|
||||
public override void ModifyHardmodeTasks(List<GenPass> tasks)
|
||||
{
|
||||
int announceIndex = tasks.FindIndex(match => match.Name == "Hardmode Announcement");
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(76, 72, 35));
|
||||
AddMapEntry(new Color(92, 93, 42));
|
||||
DustType = DustID.Grass;
|
||||
HitSound = SoundID.Grass;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(76, 72, 35));
|
||||
AddMapEntry(new Color(92, 93, 42));
|
||||
DustType = DustID.Grass;
|
||||
HitSound = SoundID.Grass;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(76, 72, 35));
|
||||
AddMapEntry(new Color(92, 93, 42));
|
||||
DustType = DustID.Grass;
|
||||
HitSound = SoundID.Grass;
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ using System;
|
||||
using Terraria.ID;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent.Metadata;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
@@ -29,7 +28,7 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
TileMaterials.SetForTileId(Type, TileMaterials._materialsByName["Plant"]);
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style1x2);
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(76, 72, 35));
|
||||
AddMapEntry(new Color(92, 93, 42));
|
||||
DustType = DustID.Grass;
|
||||
HitSound = SoundID.Grass;
|
||||
|
||||
@@ -38,14 +37,14 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
|
||||
public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY)
|
||||
{
|
||||
offsetY = -12;
|
||||
offsetY = -16;
|
||||
height = 32;
|
||||
}
|
||||
|
||||
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
|
||||
{
|
||||
Tile tile = Framing.GetTileSafely(i, j);
|
||||
if (tile.TileFrameX >= 72)
|
||||
if (tile.TileFrameX >= 146)
|
||||
{
|
||||
float brightness = 0.7f;
|
||||
float declareThisHereToPreventRunningTheSameCalculationMultipleTimes = Main.GameUpdateCount * 0.01f;
|
||||
|
||||
|
Before Width: | Height: | Size: 588 B After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,49 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
{
|
||||
public class GravelPile1 : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
TileObjectData.newTile.Width = 3;
|
||||
TileObjectData.newTile.Height = 2;
|
||||
TileObjectData.newTile.Origin = new Point16(1, 1);
|
||||
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.Table | AnchorType.SolidSide, TileObjectData.newTile.Width, 0);
|
||||
TileObjectData.newTile.UsesCustomCanPlace = true;
|
||||
TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16 };
|
||||
TileObjectData.newTile.CoordinateWidth = 16;
|
||||
TileObjectData.newTile.CoordinatePadding = 2;
|
||||
TileObjectData.newTile.WaterDeath = false;
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(17, 19, 38));
|
||||
DustType = 33;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 2;
|
||||
}
|
||||
}
|
||||
|
||||
public class GravelPile2 : ShalePile1
|
||||
{
|
||||
}
|
||||
|
||||
public class GravelPile3 : ShalePile1
|
||||
{
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 580 B |
|
After Width: | Height: | Size: 595 B |
|
After Width: | Height: | Size: 649 B |
|
After Width: | Height: | Size: 298 B |
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(64, 36, 39));
|
||||
AddMapEntry(new Color(91, 128, 13));
|
||||
DustType = 32;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
TileMaterials.SetForTileId(Type, TileMaterials._materialsByName["Plant"]);
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style1x2);
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(111, 89, 127));
|
||||
AddMapEntry(new Color(32, 65, 65));
|
||||
DustType = 32;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using System;
|
||||
using Terraria.ID;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent.Metadata;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
{
|
||||
public class TenebrisRemnant : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileCut[Type] = true;
|
||||
Main.tileSolid[Type] = false;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileLavaDeath[Type] = true;
|
||||
Main.tileWaterDeath[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
TileID.Sets.ReplaceTileBreakUp[Type] = true;
|
||||
TileID.Sets.SwaysInWindBasic[Type] = true;
|
||||
TileMaterials.SetForTileId(Type, TileMaterials._materialsByName["Plant"]);
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style1x2);
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(46, 103, 96));
|
||||
DustType = DustID.Grass;
|
||||
HitSound = SoundID.Grass;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY)
|
||||
{
|
||||
offsetY = -30;
|
||||
height = 48;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1002 B |
@@ -53,8 +53,8 @@ namespace CalamityMod.Tiles.Abyss
|
||||
up.HasTile = true;
|
||||
up.TileFrameY = 0;
|
||||
|
||||
//7 different frames, choose a random one
|
||||
up.TileFrameX = (short)(WorldGen.genRand.Next(7) * 18);
|
||||
//16 different frames, choose a random one
|
||||
up.TileFrameX = (short)(WorldGen.genRand.Next(16) * 18);
|
||||
WorldGen.SquareTileFrame(i, j - 1, true);
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
|
||||
@@ -0,0 +1,211 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.Localization;
|
||||
using Terraria.Audio;
|
||||
using Terraria.GameContent.ObjectInteractions;
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
namespace CalamityMod.Tiles.Abyss
|
||||
{
|
||||
public class AbyssTreasureChest : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileSpelunker[Type] = true;
|
||||
Main.tileContainer[Type] = true;
|
||||
Main.tileShine2[Type] = true;
|
||||
Main.tileShine[Type] = 1200;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
Main.tileOreFinderPriority[Type] = 500;
|
||||
TileID.Sets.HasOutlines[Type] = true;
|
||||
TileID.Sets.BasicChest[Type] = true;
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
AdjTiles = new int[] { TileID.Containers };
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.newTile.Origin = new Point16(0, 1);
|
||||
TileObjectData.newTile.CoordinateHeights = new[] { 16, 18 };
|
||||
TileObjectData.newTile.HookCheckIfCanPlace = new PlacementHook(Chest.FindEmptyChest, -1, 0, true);
|
||||
TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(Chest.AfterPlacement_Hook, -1, 0, false);
|
||||
TileObjectData.newTile.AnchorInvalidTiles = new int[] { TileID.MagicalIceBlock };
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.LavaDeath = false;
|
||||
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0);
|
||||
TileObjectData.addTile(Type);
|
||||
ContainerName.SetDefault("Abyssal Chest");
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Ancient Treasure Chest");
|
||||
AddMapEntry(new Color(71, 49, 41), name);
|
||||
DustType = 33;
|
||||
HitSound = SoundID.Dig;
|
||||
}
|
||||
|
||||
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool IsLockedChest(int i, int j) => Main.tile[i, j].TileFrameX / 36 == 1;
|
||||
|
||||
public override bool UnlockChest(int i, int j, ref short frameXAdjustment, ref int dustType, ref bool manual)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = 1;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 32, ModContent.ItemType<Items.Placeables.Furniture.AbyssTreasureChest>());
|
||||
Chest.DestroyChest(i, j);
|
||||
}
|
||||
|
||||
public override bool RightClick(int i, int j)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
Tile tile = Main.tile[i, j];
|
||||
Main.mouseRightRelease = false;
|
||||
int left = i;
|
||||
int top = j;
|
||||
if (tile.TileFrameX % 36 != 0)
|
||||
{
|
||||
left--;
|
||||
}
|
||||
|
||||
if (tile.TileFrameY != 0)
|
||||
{
|
||||
top--;
|
||||
}
|
||||
|
||||
if (player.sign >= 0)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.MenuClose);
|
||||
player.sign = -1;
|
||||
Main.editSign = false;
|
||||
Main.npcChatText = "";
|
||||
}
|
||||
|
||||
if (Main.editChest)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.MenuTick);
|
||||
Main.editChest = false;
|
||||
Main.npcChatText = "";
|
||||
}
|
||||
|
||||
if (player.editedChestName)
|
||||
{
|
||||
NetMessage.SendData(MessageID.SyncPlayerChest, -1, -1, NetworkText.FromLiteral(Main.chest[player.chest].name), player.chest, 1f);
|
||||
player.editedChestName = false;
|
||||
}
|
||||
|
||||
bool isLocked = IsLockedChest(left, top);
|
||||
if (Main.netMode == NetmodeID.MultiplayerClient && !isLocked)
|
||||
{
|
||||
if (left == player.chestX && top == player.chestY && player.chest >= 0)
|
||||
{
|
||||
player.chest = -1;
|
||||
Recipe.FindRecipes();
|
||||
SoundEngine.PlaySound(SoundID.MenuClose);
|
||||
}
|
||||
else
|
||||
{
|
||||
NetMessage.SendData(MessageID.RequestChestOpen, -1, -1, null, left, top);
|
||||
Main.stackSplit = 600;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (isLocked)
|
||||
{
|
||||
if (NPC.downedBoss3 && Chest.Unlock(left, top))
|
||||
{
|
||||
if (Main.netMode == NetmodeID.MultiplayerClient)
|
||||
{
|
||||
NetMessage.SendData(MessageID.Unlock, -1, -1, null, player.whoAmI, 1f, left, top);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
int chest = Chest.FindChest(left, top);
|
||||
if (chest >= 0)
|
||||
{
|
||||
Main.stackSplit = 600;
|
||||
if (chest == player.chest)
|
||||
{
|
||||
player.chest = -1;
|
||||
SoundEngine.PlaySound(SoundID.MenuClose);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.chest = chest;
|
||||
Main.playerInventory = true;
|
||||
Main.recBigList = false;
|
||||
player.chestX = left;
|
||||
player.chestY = top;
|
||||
SoundEngine.PlaySound(player.chest < 0 ? SoundID.MenuOpen : SoundID.MenuTick);
|
||||
}
|
||||
|
||||
Recipe.FindRecipes();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
Tile tile = Main.tile[i, j];
|
||||
int left = i;
|
||||
int top = j;
|
||||
if (tile.TileFrameX % 36 != 0)
|
||||
{
|
||||
left--;
|
||||
}
|
||||
|
||||
if (tile.TileFrameY != 0)
|
||||
{
|
||||
top--;
|
||||
}
|
||||
|
||||
int chest = Chest.FindChest(left, top);
|
||||
if (chest < 0)
|
||||
{
|
||||
player.cursorItemIconText = Language.GetTextValue("LegacyChestType.0");
|
||||
}
|
||||
else
|
||||
{
|
||||
player.cursorItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : "Abyssal Chest";
|
||||
if (player.cursorItemIconText == "Abyssal Chest")
|
||||
{
|
||||
player.cursorItemIconID = ModContent.ItemType<Items.Placeables.Furniture.AbyssTreasureChest>();
|
||||
|
||||
player.cursorItemIconText = "";
|
||||
}
|
||||
}
|
||||
|
||||
player.noThrow = 2;
|
||||
player.cursorItemIconEnabled = true;
|
||||
}
|
||||
|
||||
public override void MouseOverFar(int i, int j)
|
||||
{
|
||||
MouseOver(i, j);
|
||||
Player player = Main.LocalPlayer;
|
||||
if (player.cursorItemIconText == "")
|
||||
{
|
||||
player.cursorItemIconEnabled = false;
|
||||
player.cursorItemIconID = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 684 B |
@@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
}
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AbyssGravel>(), false, false, false, false, resetFrame);
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<SulphurousShale>(), false, false, false, false, resetFrame);
|
||||
return false;
|
||||
}
|
||||
public override void RandomUpdate(int i, int j)
|
||||
|
||||
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 14 KiB |
@@ -44,29 +44,6 @@ namespace CalamityMod.Tiles.Abyss
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void RandomUpdate(int i, int j)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
Tile up = Main.tile[i, j - 1];
|
||||
Tile up2 = Main.tile[i, j - 2];
|
||||
|
||||
//place kelp
|
||||
if (WorldGen.genRand.Next(25) == 0 && !up.HasTile && !up2.HasTile && up.LiquidAmount > 0 && up2.LiquidAmount > 0 && !tile.LeftSlope && !tile.RightSlope && !tile.IsHalfBlock)
|
||||
{
|
||||
up.TileType = (ushort)ModContent.TileType<AbyssKelp>();
|
||||
up.HasTile = true;
|
||||
up.TileFrameY = 0;
|
||||
|
||||
//7 different frames, choose a random one
|
||||
up.TileFrameX = (short)(WorldGen.genRand.Next(7) * 18);
|
||||
WorldGen.SquareTileFrame(i, j - 1, true);
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
{
|
||||
NetMessage.SendTileSquare(-1, i, j - 1, 3, TileChangeType.None);
|
||||
}
|
||||
}
|
||||
}
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AbyssGravel>(), false, false, false, false, resetFrame);
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
this.SetUpChest();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Rusty Chest");
|
||||
AddMapEntry(new Color(191, 142, 111), name, MapChestName);
|
||||
AddMapEntry(new Color(113, 90, 71), name, MapChestName);
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
AdjTiles = new int[] { TileID.Containers };
|
||||
ContainerName.SetDefault("Rusty Chest");
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
TileObjectData.addTile(Type);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Geyser");
|
||||
AddMapEntry(new Color(150, 100, 50), name);
|
||||
AddMapEntry(new Color(103, 65, 64), name);
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
}
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AbyssGravel>(), false, false, false, false, resetFrame);
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<HardenedSulphurousSandstone>(), false, false, false, false, resetFrame);
|
||||
return false;
|
||||
}
|
||||
public override void RandomUpdate(int i, int j)
|
||||
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
CalamityUtils.MergeWithAbyss(Type);
|
||||
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.SulphurousShale>();
|
||||
AddMapEntry(new Color(77, 60, 93));
|
||||
AddMapEntry(new Color(57, 44, 93));
|
||||
MineResist = 5f;
|
||||
MinPick = 65;
|
||||
HitSound = MineSound;
|
||||
|
||||
@@ -53,15 +53,15 @@ namespace CalamityMod.Tiles.Abyss
|
||||
Tile up = Main.tile[i, j - 1];
|
||||
Tile up2 = Main.tile[i, j - 2];
|
||||
|
||||
//place kelp
|
||||
//place Tenebris
|
||||
if (WorldGen.genRand.Next(25) == 0 && !up.HasTile && !up2.HasTile && up.LiquidAmount > 0 && up2.LiquidAmount > 0 && !tile.LeftSlope && !tile.RightSlope && !tile.IsHalfBlock)
|
||||
{
|
||||
up.TileType = (ushort)ModContent.TileType<AbyssKelp>();
|
||||
up.TileType = (ushort)ModContent.TileType<TenebrisRemnant>();
|
||||
up.HasTile = true;
|
||||
up.TileFrameY = 0;
|
||||
|
||||
//7 different frames, choose a random one
|
||||
up.TileFrameX = (short)(WorldGen.genRand.Next(7) * 18);
|
||||
//6 different frames, choose a random one
|
||||
up.TileFrameX = (short)(WorldGen.genRand.Next(6) * 18);
|
||||
WorldGen.SquareTileFrame(i, j - 1, true);
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
|
||||
|
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 5.3 KiB |
@@ -53,6 +53,7 @@ namespace CalamityMod.Tiles
|
||||
(ushort)ModContent.TileType<CinderBlossomTallPlants>(),
|
||||
(ushort)ModContent.TileType<SulphurTentacleCorals>(),
|
||||
(ushort)ModContent.TileType<AbyssKelp>(),
|
||||
(ushort)ModContent.TileType<TenebrisRemnant>(),
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 3.4 KiB |
@@ -76,7 +76,7 @@ namespace CalamityMod.Tiles.Crags
|
||||
up.TileType = (ushort)ModContent.TileType<CinderBlossomTallPlants>();
|
||||
up.HasTile = true;
|
||||
up.TileFrameY = 0;
|
||||
up.TileFrameX = (short)(WorldGen.genRand.Next(21) * 18);
|
||||
up.TileFrameX = (short)(WorldGen.genRand.Next(20) * 18);
|
||||
WorldGen.SquareTileFrame(i, j - 1, true);
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
@@ -92,12 +92,12 @@ namespace CalamityMod.Tiles.Crags
|
||||
Main.tile[i, j].TileType = (ushort)ModContent.TileType<ScorchedRemains>();
|
||||
}
|
||||
|
||||
if (WorldGen.genRand.Next(10) == 0 && !up.HasTile && !up2.HasTile && up.LiquidAmount == 0)
|
||||
if (WorldGen.genRand.Next(60) == 0 && !up.HasTile && !up2.HasTile && up.LiquidAmount == 0)
|
||||
{
|
||||
up.TileType = (ushort)ModContent.TileType<LavaPistil>();
|
||||
up.HasTile = true;
|
||||
up.TileFrameY = 0;
|
||||
up.TileFrameX = (short)(WorldGen.genRand.Next(21) * 18);
|
||||
up.TileFrameX = (short)(WorldGen.genRand.Next(8) * 18);
|
||||
WorldGen.SquareTileFrame(i, j - 1, true);
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.Ores
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (closer && Main.rand.NextBool(300))
|
||||
if (closer && Main.rand.NextBool(400))
|
||||
{
|
||||
int tileLocationY = j + 1;
|
||||
if (Main.tile[i, tileLocationY] != null)
|
||||
|
||||
|
Before Width: | Height: | Size: 555 B After Width: | Height: | Size: 441 B |
@@ -794,6 +794,10 @@ namespace CalamityMod
|
||||
ChangeIngredientStack(ItemID.CrystalShard, 20) // TODO -- PORT: 1.4.4 reduces Phasesaber crystals to 25, remove this
|
||||
},
|
||||
{ Vanilla(ItemID.ChlorophyteBar), ChangeIngredientStack(ItemID.ChlorophyteOre, 4) },
|
||||
|
||||
// TODO -- DELETE THIS LINE IN 1.4.4 PORT
|
||||
{ Vanilla(ItemID.AnkhCharm), AddIngredient(ItemID.PocketMirror) },
|
||||
|
||||
{ Vanilla(ItemID.ShroomiteBar), ChangeIngredientStack(ItemID.GlowingMushroom, 5) },
|
||||
{ Vanilla(ItemID.TrueNightsEdge), TrueNightsEdgeRecipeEdit },
|
||||
{ Vanilla(ItemID.TrueExcalibur), ChangeIngredientStack(ItemID.ChlorophyteBar, 12) },
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Tiles.Abyss;
|
||||
using CalamityMod.Tiles.Abyss.AbyssAmbient;
|
||||
using CalamityMod.Tiles.Astral;
|
||||
using CalamityMod.Tiles.AstralDesert;
|
||||
using CalamityMod.Tiles.AstralSnow;
|
||||
@@ -63,7 +64,8 @@ namespace CalamityMod
|
||||
PlantCheckAgainst[ModContent.TileType<AstralTallPlants>()] = new int[1] { ModContent.TileType<AstralGrass>() };
|
||||
PlantCheckAgainst[ModContent.TileType<CinderBlossomTallPlants>()] = new int[1] { ModContent.TileType<ScorchedRemainsGrass>() };
|
||||
PlantCheckAgainst[ModContent.TileType<SulphurTentacleCorals>()] = new int[1] { ModContent.TileType<SulphurousShale>() };
|
||||
PlantCheckAgainst[ModContent.TileType<AbyssKelp>()] = new int[3] { ModContent.TileType<AbyssGravel>(), ModContent.TileType<PyreMantle>(), ModContent.TileType<Voidstone>() };
|
||||
PlantCheckAgainst[ModContent.TileType<AbyssKelp>()] = new int[2] { ModContent.TileType<AbyssGravel>(), ModContent.TileType<PyreMantle>()};
|
||||
PlantCheckAgainst[ModContent.TileType<TenebrisRemnant>()] = new int[1] { ModContent.TileType<Voidstone>() };
|
||||
|
||||
VineToGrass = new Dictionary<ushort, ushort>
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 318 B |
|
Before Width: | Height: | Size: 886 B After Width: | Height: | Size: 858 B |
@@ -46,13 +46,6 @@ namespace CalamityMod.World
|
||||
AbyssChasmBottom = abyssChasmY - 100; //850 small 1450 medium 2050 large
|
||||
int abyssChasmX = AtLeftSideOfWorld ? genLimit - (genLimit - 135) + 35 : genLimit + (genLimit - 135) - 35; //2100 - 1965 = 135 : 2100 + 1965 = 4065
|
||||
|
||||
bool plantyMushSide = true;
|
||||
|
||||
if (abyssChasmX < genLimit)
|
||||
{
|
||||
plantyMushSide = false;
|
||||
}
|
||||
|
||||
int abyssMinX = AtLeftSideOfWorld ? 0 : abyssChasmX - 150;
|
||||
int abyssMaxX = AtLeftSideOfWorld ? abyssChasmX + 150 : x;
|
||||
|
||||
@@ -64,8 +57,8 @@ namespace CalamityMod.World
|
||||
|
||||
if (tile.LiquidType == LiquidID.Lava && tile.LiquidAmount > 0)
|
||||
{
|
||||
tile.LiquidType = LiquidID.Water;
|
||||
tile.LiquidAmount = 255;
|
||||
tile.Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
tile.LiquidAmount = byte.MaxValue;
|
||||
}
|
||||
|
||||
bool canConvert = tile.HasTile && tile.TileType < TileID.Count && tile.TileType != ModContent.TileType<SulphurousSandstone>();
|
||||
@@ -478,16 +471,16 @@ namespace CalamityMod.World
|
||||
{
|
||||
case 0:
|
||||
//1 island, to the left
|
||||
AbyssIsland(abyssChasmX - WorldGen.genRand.Next(65, 78), voidIslandY, 65, 85, 35, 45, ModContent.TileType<Voidstone>(), false, true, false);
|
||||
AbyssIsland(abyssChasmX - WorldGen.genRand.Next(65, 78), voidIslandY, 65, 85, 35, 45, ModContent.TileType<Voidstone>(), false, false, false);
|
||||
break;
|
||||
case 1:
|
||||
//1 island, to the right
|
||||
AbyssIsland(abyssChasmX + WorldGen.genRand.Next(65, 78), voidIslandY, 65, 85, 35, 45, ModContent.TileType<Voidstone>(), false, true, false);
|
||||
AbyssIsland(abyssChasmX + WorldGen.genRand.Next(65, 78), voidIslandY, 65, 85, 35, 45, ModContent.TileType<Voidstone>(), false, false, false);
|
||||
break;
|
||||
case 2:
|
||||
//2 islands, left and right
|
||||
AbyssIsland(abyssChasmX - WorldGen.genRand.Next(65, 78), voidIslandY, 65, 85, 35, 45, ModContent.TileType<Voidstone>(), false, true, false);
|
||||
AbyssIsland(abyssChasmX + WorldGen.genRand.Next(65, 78), voidIslandY, 65, 85, 35, 45, ModContent.TileType<Voidstone>(), false, true, false);
|
||||
AbyssIsland(abyssChasmX - WorldGen.genRand.Next(65, 78), voidIslandY, 65, 85, 35, 45, ModContent.TileType<Voidstone>(), false, false, false);
|
||||
AbyssIsland(abyssChasmX + WorldGen.genRand.Next(65, 78), voidIslandY, 65, 85, 35, 45, ModContent.TileType<Voidstone>(), false, false, false);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -536,8 +529,8 @@ namespace CalamityMod.World
|
||||
if (!tile.HasTile && tile.WallType > 0)
|
||||
{
|
||||
//fill up any air pockets with water
|
||||
tile.LiquidType = LiquidID.Water;
|
||||
tile.LiquidAmount = 255;
|
||||
tile.Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
tile.LiquidAmount = byte.MaxValue;
|
||||
}
|
||||
|
||||
//kill obsidian
|
||||
@@ -562,19 +555,25 @@ namespace CalamityMod.World
|
||||
//above the 4th layer
|
||||
if (abyssIndex2 < (int)(rockLayer + y * 0.262) && WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1))
|
||||
{
|
||||
//giant kelp, more often in upper layers
|
||||
if (WorldGen.genRand.NextBool(16) && tile.TileType == ModContent.TileType<AbyssGravel>() ||
|
||||
WorldGen.genRand.NextBool(25) && tile.TileType == ModContent.TileType<PyreMantle>())
|
||||
//giant kelp on abyss gravel
|
||||
if (WorldGen.genRand.NextBool(15) && tile.TileType == ModContent.TileType<AbyssGravel>())
|
||||
{
|
||||
ushort[] Kelps = new ushort[] { (ushort)ModContent.TileType<AbyssGiantKelp1>(), (ushort)ModContent.TileType<AbyssGiantKelp2>(),
|
||||
(ushort)ModContent.TileType<AbyssGiantKelp3>(), (ushort)ModContent.TileType<AbyssGiantKelp4>() };
|
||||
|
||||
WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(Kelps));
|
||||
}
|
||||
//Gravel rock piles
|
||||
if (WorldGen.genRand.NextBool(15) && tile.TileType == ModContent.TileType<AbyssGravel>())
|
||||
{
|
||||
ushort[] ShalePiles = new ushort[] { (ushort)ModContent.TileType<GravelPile1>(),
|
||||
(ushort)ModContent.TileType<GravelPile2>(), (ushort)ModContent.TileType<GravelPile3>() };
|
||||
|
||||
//thermal vents
|
||||
if (WorldGen.genRand.NextBool(72) && tile.TileType == ModContent.TileType<AbyssGravel>() ||
|
||||
WorldGen.genRand.NextBool(15) && tile.TileType == ModContent.TileType<PyreMantle>())
|
||||
WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(ShalePiles));
|
||||
}
|
||||
|
||||
//thermal vents on pyre mantle
|
||||
if (WorldGen.genRand.NextBool(15) && tile.TileType == ModContent.TileType<PyreMantle>())
|
||||
{
|
||||
ushort[] Vents = new ushort[] { (ushort)ModContent.TileType<ThermalVent1>(),
|
||||
(ushort)ModContent.TileType<ThermalVent2>(), (ushort)ModContent.TileType<ThermalVent3>() };
|
||||
@@ -829,7 +828,7 @@ namespace CalamityMod.World
|
||||
//essentially places molten blocks if scoria is enabled
|
||||
//if scoria is not enabled, then it places planty mush with a 1 in 5 chance, and otherwise place actual scoria
|
||||
//very backwards logic of having scoria not place when enabled but it makes it place more often so whatever
|
||||
num16 = hasScoria ? ModContent.TileType<PyreMantleMolten>() : WorldGen.genRand.Next(5) == 0 ? ModContent.TileType<PlantyMush>() : ModContent.TileType<ScoriaOre>();
|
||||
num16 = hasScoria ? ModContent.TileType<PyreMantleMolten>() : WorldGen.genRand.Next(3) == 0 ? ModContent.TileType<PlantyMush>() : ModContent.TileType<ScoriaOre>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -846,7 +845,6 @@ namespace CalamityMod.World
|
||||
Main.tile[n, num17].Get<TileWallWireStateData>().HasTile = true;
|
||||
|
||||
Main.tile[n, num17].TileType = (ushort)num16;
|
||||
|
||||
CalamityUtils.SafeSquareTileFrame(n, num17, true);
|
||||
}
|
||||
}
|
||||
@@ -924,6 +922,7 @@ namespace CalamityMod.World
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
num23 += WorldGen.genRand.Next(num25, (int)(num25 * 1.5));
|
||||
}
|
||||
}
|
||||
@@ -1008,7 +1007,12 @@ namespace CalamityMod.World
|
||||
}
|
||||
|
||||
//place the chest itself
|
||||
WorldGen.AddBuriedChest(i, j - 1, itemChoice, false, 4);
|
||||
//TODO: will create a proper loot pool to go in abyss chests along with the main item
|
||||
int ChestIndex = WorldGen.PlaceChest(i, j - 2, (ushort)ModContent.TileType<Tiles.Abyss.AbyssTreasureChest>(), false, 1);
|
||||
if (ChestIndex != -1)
|
||||
{
|
||||
Main.chest[ChestIndex].item[0].SetDefaults(itemChoice);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -249,21 +249,25 @@ namespace CalamityMod.World
|
||||
//place crag ruins
|
||||
bool place = true;
|
||||
|
||||
int house1Offset = WorldGen.genRand.Next(0, 55);
|
||||
SchematicManager.PlaceSchematic<Action<Chest>>(SchematicManager.CragRuinKey3,
|
||||
new Point(biomeStart + 150, Main.maxTilesY - 125), SchematicAnchor.BottomCenter, ref place);
|
||||
PlaceSquareForCragHouses(biomeStart + 150, Main.maxTilesY - 125);
|
||||
new Point(biomeStart + 150 + house1Offset, Main.maxTilesY - 125), SchematicAnchor.BottomCenter, ref place);
|
||||
PlaceSquareForCragHouses(biomeStart + 150 + house1Offset, Main.maxTilesY - 125);
|
||||
|
||||
int house2Offset = WorldGen.genRand.Next(-55, 0);
|
||||
SchematicManager.PlaceSchematic<Action<Chest>>(SchematicManager.CragRuinKey1,
|
||||
new Point(biomeMiddle - 235, Main.maxTilesY - 125), SchematicAnchor.BottomCenter, ref place);
|
||||
PlaceSquareForCragHouses(biomeMiddle - 235, Main.maxTilesY - 125);
|
||||
new Point(biomeMiddle - 235 + house2Offset, Main.maxTilesY - 125), SchematicAnchor.BottomCenter, ref place);
|
||||
PlaceSquareForCragHouses(biomeMiddle - 235 + house2Offset, Main.maxTilesY - 125);
|
||||
|
||||
int house3Offset = WorldGen.genRand.Next(0, 55);
|
||||
SchematicManager.PlaceSchematic<Action<Chest>>(SchematicManager.CragRuinKey4,
|
||||
new Point(biomeMiddle + 235, Main.maxTilesY - 125), SchematicAnchor.BottomCenter, ref place);
|
||||
PlaceSquareForCragHouses(biomeMiddle + 235, Main.maxTilesY - 125);
|
||||
new Point(biomeMiddle + 235 + house3Offset, Main.maxTilesY - 125), SchematicAnchor.BottomCenter, ref place);
|
||||
PlaceSquareForCragHouses(biomeMiddle + 235 + house3Offset, Main.maxTilesY - 125);
|
||||
|
||||
int house4Offset = WorldGen.genRand.Next(-55, 0);
|
||||
SchematicManager.PlaceSchematic<Action<Chest>>(SchematicManager.CragRuinKey2,
|
||||
new Point(biomeEdge - 150, Main.maxTilesY - 125), SchematicAnchor.BottomCenter, ref place);
|
||||
PlaceSquareForCragHouses(biomeEdge - 150, Main.maxTilesY - 125);
|
||||
new Point(biomeEdge - 150 + house4Offset, Main.maxTilesY - 125), SchematicAnchor.BottomCenter, ref place);
|
||||
PlaceSquareForCragHouses(biomeEdge - 150 + house4Offset, Main.maxTilesY - 125);
|
||||
|
||||
//lava clean up again
|
||||
for (int x = biomeStart; x <= biomeEdge; x++)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Schematics;
|
||||
using CalamityMod.Schematics;
|
||||
using static CalamityMod.Schematics.SchematicManager;
|
||||
using Terraria;
|
||||
using Terraria.IO;
|
||||
@@ -34,7 +34,6 @@ namespace CalamityMod.World
|
||||
|
||||
bool shouldContinue = true;
|
||||
bool placedArchive = false;
|
||||
int color = 0;
|
||||
|
||||
while (shouldContinue)
|
||||
{
|
||||
@@ -148,4 +147,4 @@ namespace CalamityMod.World
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
using System;
|
||||
using CalamityMod.Schematics;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.WorldBuilding;
|
||||
using static CalamityMod.Schematics.SchematicManager;
|
||||
|
||||
namespace CalamityMod.World
|
||||
{
|
||||
public class VernalPass
|
||||
{
|
||||
public static bool ShouldAvoidLocation(Point placementPoint)
|
||||
{
|
||||
Tile tile = CalamityUtils.ParanoidTileRetrieval(placementPoint.X, placementPoint.Y);
|
||||
|
||||
//avoid hive and jungle temple blocks
|
||||
if (tile.TileType == TileID.LihzahrdBrick || tile.WallType == WallID.LihzahrdBrickUnsafe ||
|
||||
tile.TileType == TileID.Hive || tile.WallType == WallID.HiveUnsafe)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void PlaceVernalPass(StructureMap structures)
|
||||
{
|
||||
int tries = 0;
|
||||
string mapKey = VernalKey;
|
||||
|
||||
do
|
||||
{
|
||||
int placementPositionX = WorldGen.genRand.Next((int)(Main.maxTilesX * 0.1f), (int)(Main.maxTilesX * 0.9f));
|
||||
int placementPositionY = WorldGen.genRand.Next((int)(Main.maxTilesY / 2), (int)((Main.maxTilesY - 300)));
|
||||
Point placementPoint = new Point(placementPositionX, placementPositionY);
|
||||
|
||||
Vector2 schematicSize = new Vector2(TileMaps[mapKey].GetLength(0), TileMaps[mapKey].GetLength(1));
|
||||
int jungleGrassInArea = 0;
|
||||
bool canGenerateInLocation = true;
|
||||
|
||||
float totalTiles = schematicSize.X * schematicSize.Y;
|
||||
for (int x = placementPoint.X; x < placementPoint.X + schematicSize.X; x++)
|
||||
{
|
||||
for (int y = placementPoint.Y; y < placementPoint.Y + schematicSize.Y; y++)
|
||||
{
|
||||
Tile tile = CalamityUtils.ParanoidTileRetrieval(x, y);
|
||||
|
||||
if (ShouldAvoidLocation(new Point(x, y)))
|
||||
{
|
||||
canGenerateInLocation = false;
|
||||
}
|
||||
|
||||
if (tile.TileType == TileID.JungleGrass || tile.TileType == TileID.JunglePlants || tile.TileType == TileID.JungleVines)
|
||||
{
|
||||
jungleGrassInArea++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!canGenerateInLocation || jungleGrassInArea < totalTiles * 0.1f || !structures.CanPlace(new Rectangle(placementPoint.X, placementPoint.Y, (int)schematicSize.X, (int)schematicSize.Y)))
|
||||
{
|
||||
tries++;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool place = true;
|
||||
|
||||
//TODO: this needs to have items placed in chests, will do that later
|
||||
SchematicManager.PlaceSchematic<Action<Chest>>(mapKey, new Point(placementPoint.X, placementPoint.Y), SchematicAnchor.Center, ref place);
|
||||
structures.AddProtectedStructure(new Rectangle(placementPoint.X, placementPoint.Y, (int)schematicSize.X, (int)schematicSize.Y), 4);
|
||||
break;
|
||||
}
|
||||
|
||||
} while (tries <= 20000);
|
||||
}
|
||||
}
|
||||
}
|
||||