Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into movement-speed-change
This commit is contained in:
commit
07762de780
486 files changed
+4401
-1348
No files matched your search
@@ -4,9 +4,6 @@ using System.Linq;
|
||||
using CalamityMod.Balancing;
|
||||
using CalamityMod.BiomeManagers;
|
||||
using CalamityMod.Buffs;
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.Placeables;
|
||||
using CalamityMod.Buffs.StatBuffs;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.CalPlayer.Dashes;
|
||||
@@ -71,6 +68,7 @@ using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ModLoader.IO;
|
||||
using Terraria.Graphics.Effects;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.CalPlayer
|
||||
@@ -919,7 +917,11 @@ namespace CalamityMod.CalPlayer
|
||||
public bool sSpiritAmulet = false;
|
||||
public int sSpiritAmuletTimer = 0;
|
||||
public bool sSpiritAmuletVisual = false;
|
||||
public bool lumenousAmulet = false;
|
||||
public bool dOfTheDeep = false;
|
||||
public int dOfTheDeepTimer = 0;
|
||||
public bool dOfTheDeepVisual = false;
|
||||
public int dOfTheDeepDefenseBuffMax = 420;
|
||||
public int dOfTheDeepDefenseBuffTimer = 0;
|
||||
public bool oceanCrest = false;
|
||||
public bool aquaticEmblem = false;
|
||||
public bool spiritOrigin = false;
|
||||
@@ -1688,6 +1690,11 @@ namespace CalamityMod.CalPlayer
|
||||
#region Mouse Controls Syncing
|
||||
public bool mouseRight = false;
|
||||
private bool oldMouseRight = false;
|
||||
|
||||
public float oldGravDir = 1;
|
||||
public float tempGravDir = 1;
|
||||
public bool justChangedGravity = false;
|
||||
|
||||
public Vector2 mouseWorld;
|
||||
private Vector2 oldMouseWorld;
|
||||
|
||||
@@ -1982,8 +1989,6 @@ namespace CalamityMod.CalPlayer
|
||||
Player.statLifeMax2 += 45;
|
||||
|
||||
int percentMaxLifeIncrease = 0;
|
||||
if (ZoneAbyss && lumenousAmulet)
|
||||
percentMaxLifeIncrease += 25;
|
||||
|
||||
// Blood Pact and Chalice of the Blood God stack their HP bonuses if you want to equip both
|
||||
if (bloodPact)
|
||||
@@ -2337,7 +2342,7 @@ namespace CalamityMod.CalPlayer
|
||||
flameWakerBoots = false;
|
||||
hellfireTreads = false;
|
||||
sSpiritAmulet = false;
|
||||
lumenousAmulet = false;
|
||||
dOfTheDeep = false;
|
||||
oceanCrest = false;
|
||||
aquaticEmblem = false;
|
||||
if (!spiritOrigin)
|
||||
@@ -5634,7 +5639,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
public override void PostUpdate() //needs to be here else it doesn't work properly, otherwise i'd have stuck it with the wing anim stuffs
|
||||
{
|
||||
{
|
||||
bool validEquipSlot = Player.legs == EquipLoader.GetEquipSlot(Mod, "ProfanedSoulCrystal", EquipType.Legs) ||
|
||||
Player.legs == EquipLoader.GetEquipSlot(Mod, "PscNightLegs", EquipType.Legs);
|
||||
if (!profanedCrystalHide && (profanedCrystal || profanedCrystalForce) && validEquipSlot)
|
||||
|
||||
@@ -32,6 +32,7 @@ using CalamityMod.NPCs.ProfanedGuardians;
|
||||
using CalamityMod.NPCs.Providence;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
@@ -1384,11 +1385,11 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
else if (proj.type == ProjectileID.Stinger || proj.type == ProjectileID.QueenBeeStinger)
|
||||
{
|
||||
// 66.6% chance of Poison for 3 seconds, 1 guaranteed second of Poison otherwise (vanilla also has a 33.3% chance of Poison for 10 seconds)
|
||||
// 66.6% chance of Poison for 5 seconds, 2 guaranteed seconds of Poison otherwise (vanilla also has a 33.3% chance of Poison for 10 seconds)
|
||||
if (Main.rand.Next(3) > 0)
|
||||
Player.AddBuff(BuffID.Poisoned, 180);
|
||||
Player.AddBuff(BuffID.Poisoned, 300);
|
||||
else
|
||||
Player.AddBuff(BuffID.Poisoned, 60);
|
||||
Player.AddBuff(BuffID.Poisoned, 120);
|
||||
}
|
||||
else if (proj.type == ProjectileID.PoisonSeedPlantera)
|
||||
{
|
||||
@@ -1400,11 +1401,11 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
else if (proj.type == ProjectileID.ThornBall)
|
||||
{
|
||||
Player.AddBuff(BuffID.Poisoned, 300);
|
||||
Player.AddBuff(BuffID.Poisoned, 420);
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossFireBall)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Daybroken>(), 120);
|
||||
Player.AddBuff(ModContent.BuffType<Daybroken>(), 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossIceMist)
|
||||
{
|
||||
@@ -1415,7 +1416,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossLightningOrbArc)
|
||||
{
|
||||
Player.AddBuff(BuffID.Electrified, 120);
|
||||
Player.AddBuff(BuffID.Electrified, 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.AncientDoomProjectile)
|
||||
{
|
||||
@@ -1423,15 +1424,15 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossFireBallClone)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Shadowflame>(), 120);
|
||||
Player.AddBuff(ModContent.BuffType<Shadowflame>(), 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.PhantasmalBolt || proj.type == ProjectileID.PhantasmalEye)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 60);
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 120);
|
||||
}
|
||||
else if (proj.type == ProjectileID.PhantasmalSphere)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 120);
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 210);
|
||||
}
|
||||
else if (proj.type == ProjectileID.PhantasmalDeathray)
|
||||
{
|
||||
@@ -1439,23 +1440,23 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
else if ((proj.type == ProjectileID.FairyQueenLance || proj.type == ProjectileID.HallowBossRainbowStreak || proj.type == ProjectileID.HallowBossSplitShotCore) && NPC.ShouldEmpressBeEnraged())
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Daybroken>(), 60);
|
||||
Player.AddBuff(ModContent.BuffType<Daybroken>(), 120);
|
||||
}
|
||||
else if (proj.type == ProjectileID.HallowBossLastingRainbow && NPC.ShouldEmpressBeEnraged())
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Daybroken>(), 120);
|
||||
Player.AddBuff(ModContent.BuffType<Daybroken>(), 210);
|
||||
}
|
||||
else if (proj.type == ProjectileID.FairyQueenSunDance && NPC.ShouldEmpressBeEnraged())
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Daybroken>(), 180);
|
||||
Player.AddBuff(ModContent.BuffType<Daybroken>(), 300);
|
||||
}
|
||||
else if (proj.type == ProjectileID.BloodNautilusShot)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<BurningBlood>(), 120);
|
||||
Player.AddBuff(ModContent.BuffType<BurningBlood>(), 240);
|
||||
}
|
||||
else if (proj.type == ProjectileID.BloodShot)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<BurningBlood>(), 60);
|
||||
Player.AddBuff(ModContent.BuffType<BurningBlood>(), 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.RuneBlast && Main.zenithWorld)
|
||||
{
|
||||
@@ -2634,20 +2635,25 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
// TODO -- Make Deific Amulet and Rampart of Deities' retaliation effects way cooler
|
||||
// In the meantime, gave them homing astral bombers instead of the lame falling stars
|
||||
if (dAmulet)
|
||||
{
|
||||
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<DeificAmulet>()));
|
||||
for (int n = 0; n < 3; n++)
|
||||
int projAmount = (rampartOfDeities ? 12 : 6);
|
||||
for (int n = 0; n < projAmount; n++)
|
||||
{
|
||||
int baseDamage = 130 * (Main.masterMode ? 3 : Main.expertMode ? 2 : 1);
|
||||
int deificStarDamage = (int)Player.GetBestClassDamage().ApplyTo(baseDamage);
|
||||
int deificProjDamage = (int)Player.GetBestClassDamage().ApplyTo(baseDamage);
|
||||
|
||||
Projectile star = CalamityUtils.ProjectileRain(source, Player.Center, 400f, 100f, 500f, 800f, 29f, ProjectileID.StarVeilStar, deificStarDamage, 4f, Player.whoAmI);
|
||||
if (star.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
Projectile onHitProj = Main.projectile[Projectile.NewProjectile(source, Player.Center, new Vector2(0,-15).RotatedBy(MathHelper.TwoPi/projAmount*n), ModContent.ProjectileType<AstralStar>(), deificProjDamage, 4f, Player.whoAmI)];
|
||||
if (onHitProj.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
star.DamageType = DamageClass.Generic;
|
||||
star.usesLocalNPCImmunity = true;
|
||||
star.localNPCHitCooldown = 5;
|
||||
onHitProj.DamageType = DamageClass.Generic;
|
||||
onHitProj.usesLocalNPCImmunity = true;
|
||||
onHitProj.localNPCHitCooldown = 5;
|
||||
onHitProj.tileCollide = false;
|
||||
onHitProj.extraUpdates = 1;
|
||||
onHitProj.Calamity().conditionalHomingRange = 500f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.Placeables;
|
||||
using CalamityMod.Buffs.StatBuffs;
|
||||
using CalamityMod.CalPlayer.Dashes;
|
||||
using CalamityMod.Cooldowns;
|
||||
using CalamityMod.Enums;
|
||||
using CalamityMod.Items.Accessories;
|
||||
@@ -105,36 +106,37 @@ namespace CalamityMod.CalPlayer
|
||||
ApplyDoTDebuff(weakBrimstoneFlames, 7);
|
||||
ApplyDoTDebuff(bBlood, 8, purity);
|
||||
ApplyDoTDebuff(brainRot, 8, purity);
|
||||
ApplyDoTDebuff(heavybleeding, 30, purity);
|
||||
ApplyDoTDebuff(laceration, 40, purity);
|
||||
ApplyDoTDebuff(heavybleeding, 16, purity);
|
||||
ApplyDoTDebuff(laceration, 24, purity);
|
||||
ApplyDoTDebuff(vaporfied, 8, purity);
|
||||
int staticDoT = ((Player.controlLeft || Player.controlRight) ? 12 : 3) / (eleResist ? 2 : 1);
|
||||
ApplyDoTDebuff(staticDischarge, staticDoT, purity);
|
||||
ApplyDoTDebuff(bFlames, abaddon ? 10 : 30, purity);
|
||||
ApplyDoTDebuff(demonicFlames, 33, purity);
|
||||
ApplyDoTDebuff(daybroken, reducedDaybrokenDamage ? 20 : 40, purity);
|
||||
ApplyDoTDebuff(nightwither, reducedNightwitherDamage ? 20 : 40, purity);
|
||||
ApplyDoTDebuff(hFlames, 40, purity);
|
||||
ApplyDoTDebuff(voidfrost, 40, purity);
|
||||
ApplyDoTDebuff(vHex, 35);
|
||||
ApplyDoTDebuff(trueVHex, 50);
|
||||
ApplyDoTDebuff(cDepth, 18, purity);
|
||||
ApplyDoTDebuff(astralInfection, 24, infectedJewel || hideOfDeus || purity);
|
||||
ApplyDoTDebuff(hPressure, 40, purity);
|
||||
ApplyDoTDebuff(pFlames, alchFlask ? 10 : 30, purity);
|
||||
ApplyDoTDebuff(cragsLava, 30);
|
||||
ApplyDoTDebuff(bFlames, abaddon ? 10 : 20, purity);
|
||||
ApplyDoTDebuff(demonicFlames, 33, purity); // Never inflicted on the player
|
||||
ApplyDoTDebuff(daybroken, reducedDaybrokenDamage ? 15 : 30, purity);
|
||||
ApplyDoTDebuff(nightwither, reducedNightwitherDamage ? 15 : 30, purity);
|
||||
ApplyDoTDebuff(hFlames, 24, purity);
|
||||
ApplyDoTDebuff(voidfrost, 30, purity);
|
||||
ApplyDoTDebuff(vHex, 24);
|
||||
ApplyDoTDebuff(trueVHex, 36);
|
||||
ApplyDoTDebuff(cDepth, 15, purity);
|
||||
ApplyDoTDebuff(astralInfection, 18, infectedJewel || hideOfDeus || purity);
|
||||
ApplyDoTDebuff(hPressure, 30, purity);
|
||||
ApplyDoTDebuff(pFlames, alchFlask ? 12 : 24, purity);
|
||||
ApplyDoTDebuff(cragsLava, 30); // Being literally submerged in crags lava should do more than brimstone flames
|
||||
ApplyDoTDebuff(shadowflame, 30, purity);
|
||||
ApplyDoTDebuff(elementalMix, 50, purity);
|
||||
ApplyDoTDebuff(banishingFire, 60);
|
||||
ApplyDoTDebuff(elementalMix, 50, purity); // Never inflicted on the player
|
||||
ApplyDoTDebuff(banishingFire, 60); // Never inflicted on the player
|
||||
|
||||
// Profaned Soul Crystal turns you into Providence, a God, and you take more damage from God Slayer Inferno
|
||||
ApplyDoTDebuff(gsInferno, profanedCrystalBuffs ? 60 : 50);
|
||||
int fluxDoT = ((Player.controlLeft || Player.controlRight) ? 60 : 15) / (eleResist ? 2 : 1);
|
||||
ApplyDoTDebuff(gsInferno, profanedCrystalBuffs ? 45 : 35);
|
||||
int fluxDoT = ((Player.controlLeft || Player.controlRight) ? 50 : 10) / (eleResist ? 2 : 1);
|
||||
ApplyDoTDebuff(vermillionFlux, fluxDoT);
|
||||
int dragonfireDoT = ((Player.name == "JFL" || Player.name == "MrJFL") ? 240 : 60) / (dynamoStemCells ? 2 : 1);
|
||||
int dragonfireDoT = ((Player.name == "JFL" || Player.name == "MrJFL") ? 240 : 40) / (dynamoStemCells ? 2 : 1);
|
||||
ApplyDoTDebuff(dragonFire, dragonfireDoT);
|
||||
int rebukeDoT = ((Player.controlLeft || Player.controlRight) ? 75 : 15) / (eleResist ? 2 : 1);
|
||||
ApplyDoTDebuff(auricRebuke, rebukeDoT);
|
||||
ApplyDoTDebuff(miracleBlight, 80);
|
||||
ApplyDoTDebuff(miracleBlight, 50);
|
||||
|
||||
// Slowly increase the sulphuric water poisoning effect. Once it's high enough, the player takes damage and the meter resets.
|
||||
bool nearSafeZone = false;
|
||||
@@ -498,7 +500,7 @@ namespace CalamityMod.CalPlayer
|
||||
#endregion
|
||||
|
||||
// During Silva revive or God Slayer dash, all negative life regen is canceled
|
||||
if ((silvaCountdown > 0 && hasSilvaEffect && silvaSet) || (DashID == GodSlayerDash.ID && Player.dashDelay < 0))
|
||||
if ((silvaCountdown > 0 && hasSilvaEffect && silvaSet) || (LastUsedDashID == GodslayerArmorDash.ID && Player.dashDelay < 0))
|
||||
{
|
||||
if (Player.lifeRegen < 0)
|
||||
Player.lifeRegen = 0;
|
||||
|
||||
@@ -6,6 +6,7 @@ using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.StatBuffs;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Buffs.Summon;
|
||||
using CalamityMod.CalPlayer.Dashes;
|
||||
using CalamityMod.Cooldowns;
|
||||
using CalamityMod.CustomRecipes;
|
||||
using CalamityMod.DataStructures;
|
||||
@@ -68,7 +69,6 @@ using CalamityMod.World;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Mono.Cecil;
|
||||
using ReLogic.Content;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
@@ -1658,15 +1658,18 @@ namespace CalamityMod.CalPlayer
|
||||
Projectile projectile = null;
|
||||
if (Player.dashDelay == -1) // When the player dashes, make all the energies exit idle phase
|
||||
{
|
||||
int energyCount = 0;
|
||||
for (int x = 0; x < Main.maxProjectiles; x++)
|
||||
{
|
||||
projectile = Main.projectile[x];
|
||||
if (projectile.active && projectile.type == ModContent.ProjectileType<AmuletEnergy>() && projectile.ai[2] == 0 && projectile.owner == Player.whoAmI)
|
||||
{
|
||||
projectile.ai[2] = 5;
|
||||
energyCount++;
|
||||
}
|
||||
}
|
||||
sSpiritAmuletTimer = -spawnTime; // The spawn cooldown after launching energies is twice as long
|
||||
if (energyCount > 0)
|
||||
sSpiritAmuletTimer = -spawnTime; // The spawn cooldown after launching energies is twice as long
|
||||
}
|
||||
int numOfEnergy = 0;
|
||||
for (int x = 0; x < Main.maxProjectiles; x++) // Get a count of energies in idle mode
|
||||
@@ -1680,7 +1683,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (numOfEnergy < energyCap)
|
||||
{
|
||||
int energyDamage = (int)Player.GetBestClassDamage().ApplyTo(22);
|
||||
Projectile energy = Projectile.NewProjectileDirect(Player.GetSource_FromThis(), Player.Center, (Vector2.One * 4).RotatedByRandom(Math.PI), ModContent.ProjectileType<AmuletEnergy>(), energyDamage, 0f, Player.whoAmI, 0, numOfEnergy);
|
||||
Projectile energy = Projectile.NewProjectileDirect(Player.GetSource_FromThis(), Player.Center, (Vector2.One * 4).RotatedByRandom(MathHelper.TwoPi), ModContent.ProjectileType<AmuletEnergy>(), energyDamage, 0f, Player.whoAmI, 0, numOfEnergy);
|
||||
if (numOfEnergy + 1 == energyCap && Player.Calamity().sSpiritAmuletVisual)
|
||||
{
|
||||
SoundStyle transform = new("CalamityMod/Sounds/Item/WaterSplash1");
|
||||
@@ -1688,7 +1691,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
for (int i = 0; i <= 14; i++)
|
||||
{
|
||||
Vector2 vel = (Vector2.One * 5).RotatedByRandom(Math.PI) * Main.rand.NextFloat(0.4f, 1.2f);
|
||||
Vector2 vel = (Vector2.One * 5).RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(0.4f, 1.2f);
|
||||
|
||||
Dust dust2 = Dust.NewDustPerfect(Player.Center, ModContent.DustType<LightDust>(), vel);
|
||||
dust2.scale = Main.rand.NextFloat(0.8f, 1.4f);
|
||||
@@ -1751,6 +1754,77 @@ namespace CalamityMod.CalPlayer
|
||||
fallingBootVelCheckTimer = 0;
|
||||
}
|
||||
|
||||
if (dOfTheDeep)
|
||||
{
|
||||
if (dOfTheDeepDefenseBuffTimer > 0)
|
||||
{
|
||||
int maxDefense = 15;
|
||||
int givenDefense = (int)Utils.Remap(dOfTheDeepDefenseBuffTimer, 0, dOfTheDeepDefenseBuffMax * 0.5f, 0, maxDefense);
|
||||
Player.statDefense += givenDefense;
|
||||
dOfTheDeepDefenseBuffTimer--;
|
||||
}
|
||||
|
||||
int spawnTime = 150; // Time between energy spawns
|
||||
int energyCap = 3; // Max number of energies that can be alive at a time
|
||||
|
||||
Projectile projectile = null;
|
||||
if (Player.dashDelay == -1 && dOfTheDeepTimer > 0) // When the player dashes, make all the energies exit idle phase
|
||||
{
|
||||
int energyCount = 0;
|
||||
for (int x = 0; x < Main.maxProjectiles; x++)
|
||||
{
|
||||
projectile = Main.projectile[x];
|
||||
if (projectile.active && projectile.type == ModContent.ProjectileType<DiamondOfTheDeepProjectile>() && projectile.ai[2] == 0 && projectile.owner == Player.whoAmI)
|
||||
{
|
||||
projectile.ai[2] = 5;
|
||||
energyCount++;
|
||||
}
|
||||
}
|
||||
if (energyCount > 0)
|
||||
dOfTheDeepTimer = (int)(-spawnTime * 0.5f); // The spawn cooldown after launching energies is longer
|
||||
}
|
||||
int numOfEnergy = 0;
|
||||
for (int x = 0; x < Main.maxProjectiles; x++) // Get a count of energies in idle mode
|
||||
{
|
||||
projectile = Main.projectile[x];
|
||||
if (projectile.active && projectile.type == ModContent.ProjectileType<DiamondOfTheDeepProjectile>() && projectile.ai[2] == 0 && projectile.owner == Player.whoAmI)
|
||||
numOfEnergy++;
|
||||
}
|
||||
if (dOfTheDeepTimer >= spawnTime)
|
||||
{
|
||||
if (numOfEnergy < energyCap)
|
||||
{
|
||||
int energyDamage = (int)Player.GetBestClassDamage().ApplyTo(400);
|
||||
int energyType = (numOfEnergy % 3);
|
||||
Projectile energy = Projectile.NewProjectileDirect(Player.GetSource_FromThis(), Player.Center, (Vector2.One * 4).RotatedByRandom(MathHelper.TwoPi), ModContent.ProjectileType<DiamondOfTheDeepProjectile>(), energyDamage, 0f, Player.whoAmI, 0, numOfEnergy);
|
||||
energy.localAI[2] = energyType;
|
||||
if (numOfEnergy + 1 == energyCap && Player.Calamity().dOfTheDeepVisual)
|
||||
{
|
||||
SoundStyle max = new("CalamityMod/Sounds/Item/WaterSplash1");
|
||||
SoundEngine.PlaySound(max with { Volume = 0.35f, Pitch = 0.8f, MaxInstances = -1 }, Player.Center);
|
||||
|
||||
for (int i = 0; i <= 14; i++)
|
||||
{
|
||||
Vector2 vel = (Vector2.One * 5).RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(0.4f, 1.2f);
|
||||
|
||||
Dust dust2 = Dust.NewDustPerfect(Player.Center, ModContent.DustType<LightDust>(), vel);
|
||||
dust2.scale = Main.rand.NextFloat(0.8f, 1.4f);
|
||||
dust2.noGravity = false;
|
||||
dust2.alpha = 180;
|
||||
dust2.color = Main.rand.NextBool() ? Color.Turquoise : Color.Aquamarine;
|
||||
dust2.noLight = true;
|
||||
dust2.noLightEmittence = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
dOfTheDeepTimer = 0;
|
||||
}
|
||||
else if (!Player.dead)
|
||||
{
|
||||
dOfTheDeepTimer++;
|
||||
}
|
||||
}
|
||||
|
||||
if (unstableGraniteCore)
|
||||
{
|
||||
zapActivity += 1;
|
||||
@@ -2145,7 +2219,7 @@ namespace CalamityMod.CalPlayer
|
||||
MiniSwarmerCooldown--;
|
||||
|
||||
// God Slayer Armor dash debuff immunity
|
||||
if (DashID == GodSlayerDash.ID && Player.dashDelay < 0)
|
||||
if (LastUsedDashID == GodslayerArmorDash.ID && Player.dashDelay < 0)
|
||||
{
|
||||
foreach (int debuff in DebuffsList.List)
|
||||
Player.buffImmune[debuff] = true;
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace CalamityMod.CalPlayer
|
||||
target.Calamity().IncreasedSicknessEffects_ToxicHeart = toxicHeart;
|
||||
|
||||
target.Calamity().IncreasedWaterEffects_Amulet1 = sSpiritAmulet;
|
||||
target.Calamity().IncreasedWaterEffects_Amulet2 = false;
|
||||
target.Calamity().IncreasedWaterEffects_Amulet2 = dOfTheDeep;
|
||||
|
||||
target.Calamity().IncreasedSicknessAndWaterEffects_EvergreenGin = evergreenGin;
|
||||
target.Calamity().IncreasedSicknessAndWaterEffects_CorrosiveSpine = corrosiveSpine;
|
||||
@@ -222,7 +222,7 @@ namespace CalamityMod.CalPlayer
|
||||
cgn.IncreasedSicknessEffects_ToxicHeart = toxicHeart;
|
||||
|
||||
cgn.IncreasedWaterEffects_Amulet1 = sSpiritAmulet;
|
||||
cgn.IncreasedWaterEffects_Amulet2 = false;
|
||||
cgn.IncreasedWaterEffects_Amulet2 = dOfTheDeep;
|
||||
|
||||
cgn.IncreasedSicknessAndWaterEffects_EvergreenGin = evergreenGin;
|
||||
cgn.IncreasedSicknessAndWaterEffects_CorrosiveSpine = corrosiveSpine;
|
||||
@@ -1255,10 +1255,6 @@ namespace CalamityMod.CalPlayer
|
||||
int duration = 60;
|
||||
target.AddBuff(BuffType<StaticDischarge>(), duration);
|
||||
}
|
||||
if (lumenousAmulet)
|
||||
{
|
||||
CalamityUtils.Inflict246DebuffsNPC(target, BuffType<CrushDepth>());
|
||||
}
|
||||
if (corrosiveSpine)
|
||||
{
|
||||
target.AddBuff(BuffType<Irradiated>(), 120);
|
||||
|
||||
@@ -59,6 +59,10 @@ namespace CalamityMod
|
||||
|
||||
#region Graphics Changes
|
||||
[Header("Graphics")]
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
public bool DisableGravityScreenSwap { get; set; }
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(true)]
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace CalamityMod
|
||||
public static ModKeybind RageHotKey { get; private set; }
|
||||
public static ModKeybind SpectralVeilHotKey { get; private set; }
|
||||
public static ModKeybind TransformerHotKey { get; private set; }
|
||||
public static ModKeybind SwitchGravityHotkey {get; private set;}
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
@@ -38,6 +39,7 @@ namespace CalamityMod
|
||||
RageHotKey = KeybindLoader.RegisterKeybind(Mod, "RageMode", "V");
|
||||
SpectralVeilHotKey = KeybindLoader.RegisterKeybind(Mod, "SpectralVeilTeleport", "Z");
|
||||
TransformerHotKey = KeybindLoader.RegisterKeybind(Mod, "TransformerHotKey", "K");
|
||||
SwitchGravityHotkey = KeybindLoader.RegisterKeybind(Mod, "GravitySwapOverride", "T");
|
||||
}
|
||||
|
||||
public override void Unload()
|
||||
|
||||
@@ -206,6 +206,10 @@ namespace CalamityMod.Effects
|
||||
internal static Effect TeslaTrailShader;
|
||||
#endregion
|
||||
|
||||
#region Doze's Shaders
|
||||
internal static Effect FlipScreenShader;
|
||||
#endregion
|
||||
|
||||
public override void PostSetupContent()
|
||||
{
|
||||
AssetRepository calAss = CalamityMod.Instance.Assets;
|
||||
@@ -408,6 +412,11 @@ namespace CalamityMod.Effects
|
||||
TeslaTrailShader = LoadShader("TeslaTrail");
|
||||
RegisterMiscShader(TeslaTrailShader, "TrailPass", "TeslaTrail");
|
||||
#endregion
|
||||
|
||||
#region Loading Doze's Shaders
|
||||
FlipScreenShader = LoadShader("ScreenShaders/FlipScreen");
|
||||
RegisterScreenShader(FlipScreenShader, "FlipTheScreen", "FlipScreen",EffectPriority.VeryHigh);
|
||||
#endregion
|
||||
}
|
||||
|
||||
// Shorthand to register a loaded shader in Terraria's graphics engine
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
sampler uImage2 : register(s2);
|
||||
sampler uImage3 : register(s3);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float2 uScreenResolution;
|
||||
float2 uScreenPosition;
|
||||
float2 uTargetPosition;
|
||||
float2 uDirection;
|
||||
float uOpacity;
|
||||
float uTime;
|
||||
float uIntensity;
|
||||
float uProgress;
|
||||
float2 uImageSize1;
|
||||
float2 uImageSize2;
|
||||
float2 uImageSize3;
|
||||
float2 uImageOffset;
|
||||
float uSaturation;
|
||||
float4 uSourceRect;
|
||||
float2 uZoom;
|
||||
|
||||
float4 FilterMyShader(float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
float2 newCoords;
|
||||
newCoords.x = coords.x;
|
||||
newCoords.y = 1 - coords.y;
|
||||
float4 color = tex2D(uImage0, newCoords);
|
||||
return color;
|
||||
}
|
||||
|
||||
technique Technique1
|
||||
{
|
||||
pass FlipTheScreen
|
||||
{
|
||||
PixelShader = compile ps_2_0 FilterMyShader();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Effects
|
||||
{
|
||||
public class StormlionEffects
|
||||
{
|
||||
// Energy
|
||||
public static int EnergyDust = ModContent.DustType<LightDust>();
|
||||
public static Color EnergyColor = new Color(5, 187, 177);
|
||||
// Flesh
|
||||
public static int FleshDust = 192;
|
||||
public static Color FleshColor = new Color(171, 113, 91);
|
||||
|
||||
// Sounds
|
||||
public static readonly SoundStyle Hit = new("CalamityMod/Sounds/NPCHit/StormlionAltHit");
|
||||
public static readonly SoundStyle Killed = new("CalamityMod/Sounds/NPCKilled/StormlionAltDeath");
|
||||
public static readonly SoundStyle Attack = new("CalamityMod/Sounds/Custom/StormlionAltShoot");
|
||||
public static readonly SoundStyle Idle1 = new("CalamityMod/Sounds/Custom/StormlionAltIdle1");
|
||||
public static readonly SoundStyle Idle2 = new("CalamityMod/Sounds/Custom/StormlionAltIdle2");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
using CalamityMod.Particles;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.ExtraJumps
|
||||
{
|
||||
public class GravityJump : ExtraJump
|
||||
{
|
||||
public override Position GetDefaultPosition() => BeforeBottleJumps;
|
||||
public override float GetDurationMultiplier(Player player) => 3f;
|
||||
public override void UpdateHorizontalSpeeds(Player player)
|
||||
{
|
||||
player.runAcceleration *= 2f;
|
||||
player.maxRunSpeed *= 4f;
|
||||
}
|
||||
|
||||
public override void OnStarted(Player player, ref bool playSound)
|
||||
{
|
||||
playSound = true;
|
||||
if (player.wingsLogic <= 0) {
|
||||
player.velocity.Y *= player.slowFall ? 2.0f : 2.75f;
|
||||
} else {
|
||||
player.velocity.Y *= 1.7f;
|
||||
}
|
||||
player.StopExtraJumpInProgress();
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Vector2 position = player.Center;
|
||||
Vector2 velocity = (Vector2.UnitY * -(2.5f + 2f*i)) * player.gravDir;
|
||||
int lifetime = 120;
|
||||
float scale = MathHelper.Lerp(0.05f,0.1f,i/3f);
|
||||
Color color = new Color(94,229,163);
|
||||
Vector2 stretch = new Vector2(0.5f,1.5f);
|
||||
float shrink = -0.3f;
|
||||
Particle boostRing = new CustomSpark(position, velocity, "CalamityMod/Particles/HighResHollowCircleHardEdgeAlt", false,lifetime,scale,color,stretch,shrinkSpeed: shrink);
|
||||
GeneralParticleHandler.SpawnParticle(boostRing);
|
||||
}
|
||||
}
|
||||
public override void ShowVisuals(Player player)
|
||||
{
|
||||
player.StopExtraJumpInProgress();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Numerics;
|
||||
using System.Reflection;
|
||||
using CalamityMod.Graphics.Renderers.CalamityRenderers;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.Tiles.DraedonStructures;
|
||||
using CalamityMod.Tiles.FurnitureExo;
|
||||
using MonoMod.RuntimeDetour;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent;
|
||||
@@ -12,6 +16,7 @@ using Terraria.GameContent.ItemDropRules;
|
||||
using Terraria.GameContent.Liquid;
|
||||
using Terraria.GameContent.UI.Elements;
|
||||
using Terraria.GameContent.UI.States;
|
||||
using Terraria.GameInput;
|
||||
using Terraria.Graphics.Light;
|
||||
using Terraria.Map;
|
||||
using Terraria.ModLoader;
|
||||
@@ -209,6 +214,11 @@ namespace CalamityMod.ILEditing
|
||||
On_Player.ItemCheck_UseEventItems += ApplyCelestialSigilChanges;
|
||||
IL_Main.DrawInfoAccs += RemoveDamageConditionFromRadar;
|
||||
On_ShopHelper.ApplyNpcRelationshipEffect += AllowMultipleLikedNPCs;
|
||||
|
||||
On_Player.UpdateControlHolds += DelayGravity;
|
||||
On_PlayerInput.SetZoom_MouseInWorld += GravityMouse;
|
||||
On_Main.DrawPlayerChatBubbles += UI_Unflip_Start;
|
||||
On_Main.DrawInterface += UI_Unflip_End;
|
||||
|
||||
// Fix vanilla bugs exposed by Calamity mechanics
|
||||
IL_NPC.NPCLoot += FixSplittingWormBannerDrops;
|
||||
|
||||
@@ -20,6 +20,8 @@ using Terraria.GameContent.Drawing;
|
||||
using Terraria.GameContent.Personalities;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Graphics.Effects;
|
||||
using Terraria.GameInput;
|
||||
|
||||
namespace CalamityMod.ILEditing
|
||||
{
|
||||
@@ -1183,6 +1185,85 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Allow disabling gravity swap visual && allow gravity keybind
|
||||
private static void DelayGravity(On_Player.orig_UpdateControlHolds orig, Player Player)
|
||||
{
|
||||
var cplay = Player.Calamity();
|
||||
if (CalamityKeybinds.SwitchGravityHotkey.GetAssignedKeys().Count != 0 && (Player.gravControl || Player.gravControl2) && !Player.mount.Active)
|
||||
{
|
||||
if (Player.controlUp && Player.releaseUp) {
|
||||
Player.gravDir *= -1;
|
||||
}
|
||||
if (CalamityKeybinds.SwitchGravityHotkey.JustPressed)
|
||||
{
|
||||
Player.gravDir *= -1;
|
||||
Player.fallStart = (int)(Player.position.Y / 16f);
|
||||
Player.jump = 0;
|
||||
SoundEngine.PlaySound(SoundID.Item8, Player.position);
|
||||
}
|
||||
|
||||
if (Player.forcedGravity > 0) {
|
||||
Player.gravDir = -1f;
|
||||
}
|
||||
}
|
||||
|
||||
if (cplay.justChangedGravity) {
|
||||
Player.gravDir = cplay.oldGravDir;
|
||||
}
|
||||
cplay.justChangedGravity = cplay.oldGravDir != Player.gravDir;
|
||||
|
||||
cplay.oldGravDir = Player.gravDir;
|
||||
if (Main.netMode != NetmodeID.Server && !Main.gameMenu && CalamityClientConfig.Instance.DisableGravityScreenSwap)
|
||||
{
|
||||
if (Player.gravDir == -1) {
|
||||
if (!Filters.Scene["CalamityMod:FlipScreen"].IsActive()) {
|
||||
Filters.Scene.Activate("CalamityMod:FlipScreen");
|
||||
Filters.Scene["CalamityMod:FlipScreen"].Opacity = 1f;
|
||||
|
||||
}
|
||||
} else {
|
||||
if (Filters.Scene["CalamityMod:FlipScreen"].IsActive()) {
|
||||
Filters.Scene["CalamityMod:FlipScreen"].Opacity = 0f;
|
||||
Filters.Scene.Deactivate("CalamityMod:FlipScreen");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
if (cplay.justChangedGravity)
|
||||
{
|
||||
Player.gravDir *= -1;
|
||||
}
|
||||
orig(Player);
|
||||
}
|
||||
|
||||
private static void GravityMouse(On_PlayerInput.orig_SetZoom_MouseInWorld orig) {
|
||||
orig();
|
||||
if (!Main.gameMenu && Filters.Scene["CalamityMod:FlipScreen"].IsActive())//((Main.LocalPlayer.gravDir == -1 && !Main.LocalPlayer.Calamity().justChangedGravity) || (Main.LocalPlayer.Calamity().oldGravDir == -1 && Main.LocalPlayer.Calamity().justChangedGravity))
|
||||
{
|
||||
var center = Main.screenHeight / 2;
|
||||
Main.mouseY = center - (Main.mouseY - center);
|
||||
};
|
||||
}
|
||||
private static void UI_Unflip_Start(On_Main.orig_DrawPlayerChatBubbles orig, Main self)
|
||||
{
|
||||
if (!Main.gameMenu && (Filters.Scene["CalamityMod:FlipScreen"].IsActive() || Main.LocalPlayer.Calamity().justChangedGravity))
|
||||
{
|
||||
Main.LocalPlayer.Calamity().tempGravDir = Main.LocalPlayer.gravDir;
|
||||
Main.LocalPlayer.gravDir = 1;
|
||||
}
|
||||
orig(self);
|
||||
}
|
||||
|
||||
private static void UI_Unflip_End(On_Main.orig_DrawInterface orig, Main self, GameTime gameTime)
|
||||
{
|
||||
orig(self, gameTime);
|
||||
if (!Main.gameMenu && Filters.Scene["CalamityMod:FlipScreen"].IsActive())
|
||||
{
|
||||
Main.LocalPlayer.gravDir = Main.LocalPlayer.Calamity().tempGravDir;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
// 02JUN2024: Ozzatron: The below code is being kept in its initial state for historic value.
|
||||
#region Store The Stupid Fucking Private Wind Map In Public Property
|
||||
[/*TotallyNot*/Obsolete("This function serves no purpose and is included in the Calamity source code for historic value.", error: true)]
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient<AnechoicPlating>().
|
||||
AddIngredient(ItemID.LunarBar, 5).
|
||||
AddIngredient<MolluskHusk>(15).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient<EffulgentFeather>(5).
|
||||
AddIngredient<DivineGeode>(5).
|
||||
AddIngredient(ItemID.SoulofFlight, 10).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using CalamityMod.Items.Placeables.Plates;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -34,7 +35,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient<YharonSoulFragment>(5).
|
||||
AddIngredient<Plagueplate>(25).
|
||||
AddIngredient<ExodiumCluster>(25).
|
||||
AddTile(TileID.DemonAltar).
|
||||
AddTile<CosmicAnvil>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.WarriorEmblem).
|
||||
AddIngredient<UelibloomBar>(2).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Accessories
|
||||
CreateRecipe().
|
||||
AddIngredient<PlaguedFuelPack>().
|
||||
AddIngredient<EffulgentFeather>(8).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient<DubiousPlating>(15).
|
||||
AddIngredient(ItemID.LunarBar, 10).
|
||||
AddIngredient<GalacticaSingularity>(4).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,14 +2,16 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
[LegacyName("LumenousAmulet")]
|
||||
[AutoloadEquip(EquipType.Neck)]
|
||||
public class LumenousAmulet : ModItem, ILocalizedModType
|
||||
public class DiamondOfTheDeep : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void SetDefaults()
|
||||
@@ -24,16 +26,20 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.lumenousAmulet = true;
|
||||
player.buffImmune[ModContent.BuffType<RiptideDebuff>()] = true;
|
||||
player.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
|
||||
modPlayer.dOfTheDeep = true;
|
||||
modPlayer.dOfTheDeepVisual = !hideVisual;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<SeaSpiritAmulet>().
|
||||
AddIngredient<Lumenyl>(15).
|
||||
AddIngredient<AbyssGravel>(10).
|
||||
AddIngredient<DepthCells>(5).
|
||||
AddIngredient<PyreMantle>(10).
|
||||
AddIngredient<ScoriaBar>(5).
|
||||
AddIngredient<Voidstone>(10).
|
||||
AddIngredient<Lumenyl>(5).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 633 B After Width: | Height: | Size: 633 B |
File renamed without changes.
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using CalamityMod.Items.Placeables.Plates;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -33,7 +34,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient<CosmiliteBar>(5).
|
||||
AddIngredient<Elumplate>(25).
|
||||
AddIngredient<ExodiumCluster>(25).
|
||||
AddTile(TileID.DemonAltar).
|
||||
AddTile<CosmicAnvil>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient<Necroplasm>(5).
|
||||
AddIngredient<Navyplate>(25).
|
||||
AddIngredient<ExodiumCluster>(25).
|
||||
AddTile(TileID.DemonAltar).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -183,6 +183,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient<PearlofEnthrallment>().
|
||||
AddIngredient<EyeoftheStorm>().
|
||||
AddIngredient<RoseStone>().
|
||||
AddIngredient(ItemID.FragmentStardust, 6).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient<Laudanum>().
|
||||
AddIngredient<StressPills>().
|
||||
AddIngredient<TwistingNether>(3).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient<RuinousSoul>(5).
|
||||
AddIngredient<Onyxplate>(25).
|
||||
AddIngredient<ExodiumCluster>(20).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient<DivineGeode>(5).
|
||||
AddIngredient<Havocplate>(25).
|
||||
AddIngredient<ExodiumCluster>(25).
|
||||
AddTile(TileID.DemonAltar).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddRecipeGroup("AnyQuiver").
|
||||
AddIngredient<GalacticaSingularity>(5).
|
||||
AddIngredient<DarkPlasma>(3).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Accessories
|
||||
CreateRecipe().
|
||||
AddIngredient<StatisBlessing>().
|
||||
AddIngredient<TheFirstShadowflame>().
|
||||
AddIngredient(ItemID.FragmentStardust, 10).
|
||||
AddIngredient(ItemID.FragmentStardust, 6).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient(ItemID.FrogFlipper).
|
||||
AddIngredient<PurifiedGel>(25).
|
||||
AddIngredient<Necroplasm>(5).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient(ItemID.FrogGear).
|
||||
AddIngredient<PurifiedGel>(25).
|
||||
AddIngredient<Necroplasm>(5).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.SoulofFlight, 20).
|
||||
AddIngredient<UelibloomBar>(5).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Ammo
|
||||
{
|
||||
CreateRecipe(333).
|
||||
AddIngredient<BloodstoneCore>().
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Ammo
|
||||
{
|
||||
CreateRecipe(333).
|
||||
AddIngredient<BloodstoneCore>().
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Ammo
|
||||
CreateRecipe(150).
|
||||
AddIngredient(ItemID.HolyArrow, 150).
|
||||
AddIngredient<UnholyEssence>().
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Ammo
|
||||
CreateRecipe(100).
|
||||
AddIngredient(ItemID.EmptyBullet, 100).
|
||||
AddIngredient(ItemID.HallowedBar).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Ammo
|
||||
CreateRecipe(333).
|
||||
AddIngredient(ItemID.ExplodingBullet, 333).
|
||||
AddIngredient<UnholyEssence>().
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
|
||||
CreateRecipe().
|
||||
AddIngredient<BloodstoneCore>(16).
|
||||
AddIngredient<RuinousSoul>(4).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
|
||||
CreateRecipe().
|
||||
AddIngredient<BloodstoneCore>(13).
|
||||
AddIngredient<RuinousSoul>(3).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
|
||||
CreateRecipe().
|
||||
AddIngredient<BloodstoneCore>(11).
|
||||
AddIngredient<RuinousSoul>(2).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<BloodflareBodyArmor>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
|
||||
CreateRecipe().
|
||||
AddIngredient<BloodstoneCore>(11).
|
||||
AddIngredient<RuinousSoul>(2).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<BloodflareHeadMagic>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
|
||||
CreateRecipe().
|
||||
AddIngredient<BloodstoneCore>(11).
|
||||
AddIngredient<RuinousSoul>(2).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<BloodflareHeadMagic>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
|
||||
CreateRecipe().
|
||||
AddIngredient<BloodstoneCore>(11).
|
||||
AddIngredient<RuinousSoul>(2).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<BloodflareBodyArmor>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
|
||||
CreateRecipe().
|
||||
AddIngredient<BloodstoneCore>(11).
|
||||
AddIngredient<RuinousSoul>(2).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<BloodflareHeadRogue>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
|
||||
AddIngredient<ReaperTooth>(5).
|
||||
AddIngredient<DepthCells>(18).
|
||||
AddIngredient<RuinousSoul>(3).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
|
||||
AddIngredient<ReaperTooth>(3).
|
||||
AddIngredient<DepthCells>(12).
|
||||
AddIngredient<RuinousSoul>().
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<OmegaBlueChestplate>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
|
||||
AddIngredient<ReaperTooth>(4).
|
||||
AddIngredient<DepthCells>(15).
|
||||
AddIngredient<RuinousSoul>(2).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Armor.Prismatic
|
||||
AddIngredient<ExodiumCluster>(5).
|
||||
AddIngredient<DivineGeode>(6).
|
||||
AddIngredient(ItemID.Nanites, 300).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Items.Armor.Prismatic
|
||||
AddIngredient<ExodiumCluster>(5).
|
||||
AddIngredient<DivineGeode>(4).
|
||||
AddIngredient(ItemID.Nanites, 300).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<PrismaticGreaves>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.Armor.Prismatic
|
||||
AddIngredient<ExodiumCluster>(5).
|
||||
AddIngredient<DivineGeode>(8).
|
||||
AddIngredient(ItemID.Nanites, 300).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<PrismaticGreaves>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBar>(15).
|
||||
AddIngredient<DivineGeode>(18).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBar>(7).
|
||||
AddIngredient<DivineGeode>(6).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<TarragonBreastplate>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBar>(7).
|
||||
AddIngredient<DivineGeode>(6).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<TarragonHeadMagic>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBar>(7).
|
||||
AddIngredient<DivineGeode>(6).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<TarragonHeadMagic>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBar>(7).
|
||||
AddIngredient<DivineGeode>(6).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<TarragonBreastplate>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBar>(7).
|
||||
AddIngredient<DivineGeode>(6).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<TarragonHeadRogue>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBar>(11).
|
||||
AddIngredient<DivineGeode>(12).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.UI;
|
||||
using CalamityMod.UI.CalamitasEnchants;
|
||||
using CalamityMod.World;
|
||||
using CalamityMod.ExtraJumps;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -1391,6 +1392,13 @@ namespace CalamityMod.Items
|
||||
|
||||
if (item.type == ItemID.GravityGlobe)
|
||||
{
|
||||
player.GetJumpState<GravityJump>().Enable();
|
||||
if (player.Calamity().justChangedGravity) {
|
||||
player.GetJumpState<GravityJump>().Available = true;
|
||||
}
|
||||
if (player.wingsLogic <= 0 && player.velocity.Y != 0 && player.maxRunSpeed < 8) {
|
||||
player.maxRunSpeed = 5f;
|
||||
}
|
||||
player.jumpSpeedBoost += 1.6f;
|
||||
if (player.controlDown)
|
||||
player.maxFallSpeed *= 1.5f;
|
||||
|
||||
@@ -570,12 +570,17 @@ namespace CalamityMod.Items
|
||||
if (item.healLife > 0 && Main.LocalPlayer.Calamity().healingPotionMultiplier != 1f)
|
||||
EditTooltipByName("HealLife", (line) => line.Text = Language.GetOrRegister("CommonItemTooltip.RestoresLife").Format((int)(item.healLife * Main.LocalPlayer.Calamity().healingPotionMultiplier)));
|
||||
|
||||
// Ancient Manipulator also crafts stuff with Astral Bars
|
||||
if (item.type == ItemID.LunarCraftingStation)
|
||||
EditTooltipByNum(0, (line) => line.Text = EditedTooltip("LunarCraftingStation"));
|
||||
|
||||
// Reworked Gravity Globe
|
||||
if (item.type == ItemID.GravityGlobe)
|
||||
EditTooltipByName("Tooltip1", (line) => line.Text = EditedTooltip("GravityGlobe"));
|
||||
|
||||
EditTooltipByNum(1, (line) => line.Text = EditedTooltip("GravityGlobe"));
|
||||
|
||||
// "Buffed" Step Stool
|
||||
if (item.type == ItemID.PortableStool)
|
||||
EditTooltipByName("Tooltip0", (line) => line.Text += AddedTooltip("Stepstool"));
|
||||
EditTooltipByNum(0, (line) => line.Text += AddedTooltip("PortableStool"));
|
||||
#endregion
|
||||
|
||||
// For boss summon item clarity
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Items.DraedonMisc
|
||||
AddIngredient<UelibloomBar>(5).
|
||||
AddIngredient(ItemID.LunarBar, 5).
|
||||
AddCondition(ArsenalTierGatedRecipe.ConstructRecipeCondition(4, out Func<bool> condition), condition).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.WoodFishingPole).
|
||||
AddIngredient<UelibloomBar>(6).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace CalamityMod.Items.Materials
|
||||
AddIngredient<NightmareFuel>(5).
|
||||
AddIngredient<EndothermicEnergy>(5).
|
||||
AddIngredient<DarksunFragment>(2).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,8 +94,7 @@ namespace CalamityMod.Items.Materials
|
||||
CreateRecipe(5).
|
||||
AddIngredient<AuricOre>(50).
|
||||
AddIngredient<YharonSoulFragment>().
|
||||
//Not Cosmic Anvil because making a bar at an anvil is a little odd? also allows pre-moon lord scal for those who really want to do it. win-win.
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.AdamantiteForge).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Materials
|
||||
AddIngredient<Bloodstone>(5).
|
||||
AddIngredient<BloodOrb>().
|
||||
AddIngredient<Necroplasm>().
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Mounts
|
||||
CreateRecipe().
|
||||
AddIngredient<UnholyCore>(5).
|
||||
AddIngredient<Bloodstone>(20).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.Items
|
||||
AddIngredient(ItemID.FragmentStardust, 30).
|
||||
AddIngredient<Cinderplate>(5).
|
||||
AddIngredient<ExodiumCluster>(10).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,8 +73,7 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
AddIngredient(ItemID.LifeFruit, 5).
|
||||
AddIngredient<LifeAlloy>(5).
|
||||
AddIngredient<LivingShard>(12).
|
||||
//Not an anvil because making fruit at an anvil is a little weird, so here's something more magical.
|
||||
AddTile(TileID.DemonAltar).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
CreateRecipe().
|
||||
AddIngredient<RuinousSoul>(5).
|
||||
AddIngredient<Necroplasm>(25).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,8 +76,7 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
AddIngredient(ItemID.LifeFruit, 5).
|
||||
AddIngredient<YharonSoulFragment>(5).
|
||||
AddIngredient<AscendantSpiritEssence>().
|
||||
//Not an anvil because making fruit at an anvil is a little weird, so here's something more magical.
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile<CosmicAnvil>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,8 +76,7 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
AddIngredient(ItemID.SoulofFright, 5).
|
||||
AddIngredient(ItemID.SoulofMight, 5).
|
||||
AddIngredient(ItemID.SoulofSight, 5).
|
||||
//Not an anvil because making fruit at an anvil is a little weird, so here's something more magical.
|
||||
AddTile(TileID.DemonAltar).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
AddIngredient(ItemID.LifeFruit, 5).
|
||||
AddIngredient<UelibloomBar>(10).
|
||||
AddIngredient<DivineGeode>(8).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Placeables.Furniture
|
||||
AddIngredient<AureusCell>(5).
|
||||
AddIngredient<StarblightSoot>(20).
|
||||
AddIngredient<Items.Placeables.Astral.AstralStone>(30).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.HeavyWorkBench).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBrick>(20).
|
||||
AddIngredient(ItemID.JungleSpores, 5).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
|
||||
AddIngredient(ItemID.LunarCraftingStation).
|
||||
AddIngredient<AuricBar>(15).
|
||||
AddIngredient<ExoPrism>(12).
|
||||
AddIngredient<AscendantSpiritEssence>(25).
|
||||
AddIngredient<AscendantSpiritEssence>(15).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
|
||||
CreateRecipe().
|
||||
AddIngredient<SilvaCrystal>(10).
|
||||
AddRecipeGroup("AnyGoldBar", 5).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
|
||||
CreateRecipe().
|
||||
AddIngredient<ProfanedRock>(10).
|
||||
AddIngredient<UnholyEssence>(5).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Monoliths
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<YharonSoulFragment>(15).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile<CosmicAnvil>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStone>(14).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.Sawmill).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStone>(15).
|
||||
AddIngredient(ItemID.Silk, 5).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.Sawmill).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStone>(20).
|
||||
AddIngredient(ItemID.Book, 10).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.Sawmill).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStone>(5).
|
||||
AddIngredient(ItemID.Torch, 3).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStone>(4).
|
||||
AddIngredient(ItemID.Torch).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStone>(4).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
AddIngredient<OtherworldlyStone>(4).
|
||||
AddIngredient(ItemID.Torch, 4).
|
||||
AddIngredient(ItemID.Chain).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.Anvils).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStone>(8).
|
||||
AddRecipeGroup("IronBar", 2).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
AddIngredient<OtherworldlyStone>(10).
|
||||
AddRecipeGroup("IronBar", 3).
|
||||
AddIngredient(ItemID.Glass, 6).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.Sawmill).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStone>(6).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStone>(16).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.Sawmill).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStone>(3).
|
||||
AddIngredient(ItemID.Torch).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStone>(6).
|
||||
AddIngredient(ItemID.Torch).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
AddIngredient<OtherworldlyStone>(15).
|
||||
AddIngredient(ItemID.Bone, 4).
|
||||
AddIngredient(ItemID.Book).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.Sawmill).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStone>(6).
|
||||
AddIngredient(ItemID.WaterBucket).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStone>(5).
|
||||
AddIngredient(ItemID.Silk, 2).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.Sawmill).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
AddIngredient<ArmoredShell>().
|
||||
AddIngredient<TwistingNether>().
|
||||
AddIngredient(ItemID.Silk, 10).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.AdamantiteForge).
|
||||
Register();
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStoneWall>(4).
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStone>(8).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ namespace CalamityMod.Items.Placeables.FurnitureOtherworldly
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<OtherworldlyStone>(10).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned
|
||||
CreateRecipe(50).
|
||||
AddIngredient(ItemID.Glass, 50).
|
||||
AddIngredient<UnholyEssence>().
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.AdamantiteForge).
|
||||
Register();
|
||||
CreateRecipe().
|
||||
AddIngredient<ProfanedCrystalWall>(4).
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned
|
||||
CreateRecipe(50).
|
||||
AddRecipeGroup("AnyStoneBlock", 50).
|
||||
AddIngredient<UnholyEssence>().
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.AdamantiteForge).
|
||||
Register();
|
||||
CreateRecipe().
|
||||
AddIngredient<ProfanedRockWall>(4).
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned
|
||||
{
|
||||
CreateRecipe(5).
|
||||
AddIngredient<ProfanedRock>(5).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
AddTile(TileID.AdamantiteForge).
|
||||
Register();
|
||||
CreateRecipe().
|
||||
AddIngredient<ProfanedSlabWall>(4).
|
||||
|
||||
Loaded 100 of 486 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user