Merge branch 'master' into biome-blade-unshits-itself
No files matched your search
@@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cinnamon Roll");
|
||||
Description.SetDefault("Mana regen rate and fire weapon damage boosted, defense reduced");
|
||||
Description.SetDefault("Mana regen rate and fire debuff damage boosted, defense reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Evergreen Gin");
|
||||
Description.SetDefault("Nature-based weapon damage and damage reduction boosted, life regen reduced");
|
||||
Description.SetDefault("Sickness and water debuff damage and damage reduction boosted, life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fireball");
|
||||
Description.SetDefault("Fire weapon damage boosted, life regen reduced");
|
||||
Description.SetDefault("Fire debuff damage boosted, life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
|
||||
|
Before Width: | Height: | Size: 519 B After Width: | Height: | Size: 517 B |
|
Before Width: | Height: | Size: 545 B After Width: | Height: | Size: 661 B |
|
Before Width: | Height: | Size: 528 B After Width: | Height: | Size: 520 B |
@@ -25,6 +25,7 @@ using CalamityMod.Items.Weapons.Typeless;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
using CalamityMod.NPCs.BrimstoneElemental;
|
||||
using CalamityMod.NPCs.Calamitas;
|
||||
@@ -115,7 +116,6 @@ namespace CalamityMod.CalPlayer
|
||||
public int searedPanTimer = 0;
|
||||
public int potionTimer = 0;
|
||||
public bool cirrusDress = false;
|
||||
public bool noWings = false;
|
||||
public bool blockAllDashes = false;
|
||||
public bool resetHeightandWidth = false;
|
||||
public bool noLifeRegen = false;
|
||||
@@ -514,7 +514,6 @@ namespace CalamityMod.CalPlayer
|
||||
public bool sirenIceCooldown = false;
|
||||
public bool aSpark = false;
|
||||
public bool aSparkRare = false;
|
||||
public bool aBulwark = false;
|
||||
public bool aBulwarkRare = false;
|
||||
public bool dAmulet = false;
|
||||
public bool fCarapace = false;
|
||||
@@ -545,7 +544,6 @@ namespace CalamityMod.CalPlayer
|
||||
public bool frostFlare = false;
|
||||
public bool beeResist = false;
|
||||
public bool uberBees = false;
|
||||
public bool projRef = false;
|
||||
public bool projRefRare = false;
|
||||
public int projRefRareLifeRegenCounter = 0;
|
||||
public bool nanotech = false;
|
||||
@@ -660,7 +658,6 @@ namespace CalamityMod.CalPlayer
|
||||
public int icicleCooldown = 0;
|
||||
public bool rustyMedal = false;
|
||||
public bool noStupidNaturalARSpawns = false;
|
||||
public bool burdenBreakerYeet = false;
|
||||
public bool roverDrive = false;
|
||||
public int roverDriveTimer = 0;
|
||||
public int roverFrameCounter = 0;
|
||||
@@ -785,7 +782,9 @@ namespace CalamityMod.CalPlayer
|
||||
public int silvaMageCooldown = 0;
|
||||
public bool silvaSummon = false;
|
||||
public bool hasSilvaEffect = false;
|
||||
public int silvaCountdown = 480;
|
||||
public static int silvaReviveDuration = 480;
|
||||
public int silvaCountdown = silvaReviveDuration;
|
||||
public int silvaReviveCooldown = 0;
|
||||
public bool auricSet = false;
|
||||
public bool omegaBlueChestplate = false;
|
||||
public bool omegaBlueSet = false;
|
||||
@@ -1627,7 +1626,6 @@ namespace CalamityMod.CalPlayer
|
||||
wearingRogueArmor = false;
|
||||
cirrusDress = false;
|
||||
|
||||
noWings = false;
|
||||
blockAllDashes = false;
|
||||
blazingCursorDamage = false;
|
||||
blazingCursorVisuals = false;
|
||||
@@ -1652,7 +1650,6 @@ namespace CalamityMod.CalPlayer
|
||||
badgeOfBraveryRare = false;
|
||||
aSpark = false;
|
||||
aSparkRare = false;
|
||||
aBulwark = false;
|
||||
aBulwarkRare = false;
|
||||
dAmulet = false;
|
||||
fCarapace = false;
|
||||
@@ -1669,7 +1666,6 @@ namespace CalamityMod.CalPlayer
|
||||
frostFlare = false;
|
||||
beeResist = false;
|
||||
uberBees = false;
|
||||
projRef = false;
|
||||
projRefRare = false;
|
||||
nanotech = false;
|
||||
eQuiver = false;
|
||||
@@ -1749,7 +1745,6 @@ namespace CalamityMod.CalPlayer
|
||||
corrosiveSpine = false;
|
||||
rustyMedal = false;
|
||||
noStupidNaturalARSpawns = false;
|
||||
burdenBreakerYeet = false;
|
||||
roverDrive = false;
|
||||
rottenDogTooth = false;
|
||||
angelicAlliance = false;
|
||||
@@ -2447,7 +2442,7 @@ namespace CalamityMod.CalPlayer
|
||||
silvaMage = false;
|
||||
silvaSummon = false;
|
||||
hasSilvaEffect = false;
|
||||
silvaCountdown = 480;
|
||||
silvaCountdown = silvaReviveDuration;
|
||||
auricSet = false;
|
||||
GemTechSet = false;
|
||||
omegaBlueChestplate = false;
|
||||
@@ -2586,10 +2581,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
public override void UpdateBiomeVisuals()
|
||||
{
|
||||
bool useBossRushBackground = BossRushEvent.BossRushActive && BossRushEvent.StartTimer > 100;
|
||||
|
||||
player.ManageSpecialBiomeVisuals("CalamityMod:BossRush", useBossRushBackground);
|
||||
if (useBossRushBackground)
|
||||
if (BossRushSky.DetermineDrawEligibility())
|
||||
{
|
||||
// Clear all other skies, including the vanilla ones.
|
||||
Dictionary<string, CustomSky> skies = EffectsField.GetValue(SkyManager.Instance) as Dictionary<string, CustomSky>;
|
||||
@@ -2667,15 +2659,7 @@ namespace CalamityMod.CalPlayer
|
||||
bool inAstral = ZoneAstral;
|
||||
player.ManageSpecialBiomeVisuals("CalamityMod:Astral", inAstral);
|
||||
|
||||
bool cryogenActive = NPC.AnyNPCs(ModContent.NPCType<Cryogen>());
|
||||
|
||||
if (SkyManager.Instance["CalamityMod:Cryogen"] != null && cryogenActive != SkyManager.Instance["CalamityMod:Cryogen"].IsActive())
|
||||
{
|
||||
if (cryogenActive)
|
||||
SkyManager.Instance.Activate("CalamityMod:Cryogen");
|
||||
else
|
||||
SkyManager.Instance.Deactivate("CalamityMod:Cryogen");
|
||||
}
|
||||
CryogenSky.UpdateDrawEligibility();
|
||||
|
||||
if (SkyManager.Instance["CalamityMod:StormWeaverFlash"] != null && useFlash != SkyManager.Instance["CalamityMod:StormWeaverFlash"].IsActive())
|
||||
{
|
||||
@@ -2844,8 +2828,6 @@ namespace CalamityMod.CalPlayer
|
||||
if (!mediumcoreDeath)
|
||||
{
|
||||
items.Add(createItem(ModContent.ItemType<StarterBag>()));
|
||||
items.Add(createItem(ModContent.ItemType<Revenge>()));
|
||||
items.Add(createItem(ModContent.ItemType<IronHeart>()));
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -4490,11 +4472,11 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (silvaSet && silvaCountdown > 0)
|
||||
{
|
||||
if (silvaCountdown == 480 && !hasSilvaEffect)
|
||||
if (silvaCountdown == silvaReviveDuration && !hasSilvaEffect)
|
||||
{
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SilvaActivation"), (int)player.position.X, (int)player.position.Y);
|
||||
|
||||
player.AddBuff(ModContent.BuffType<SilvaRevival>(), 480);
|
||||
player.AddBuff(ModContent.BuffType<SilvaRevival>(), silvaReviveDuration);
|
||||
|
||||
if (draconicSurge && !draconicSurgeCooldown)
|
||||
{
|
||||
@@ -4671,12 +4653,6 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (CalamityWorld.ironHeart)
|
||||
{
|
||||
KillPlayer();
|
||||
return false;
|
||||
}
|
||||
|
||||
deathCount++;
|
||||
if (player.whoAmI == Main.myPlayer && Main.netMode == NetmodeID.MultiplayerClient)
|
||||
{
|
||||
@@ -4731,8 +4707,6 @@ namespace CalamityMod.CalPlayer
|
||||
(coreOfTheBloodGod ? 0.15 : 0) +
|
||||
(bloodPactBoost ? 0.5 : 0);
|
||||
healValue = (int)(healValue * healMult);
|
||||
if (CalamityWorld.ironHeart)
|
||||
healValue = 0;
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -4745,25 +4719,6 @@ namespace CalamityMod.CalPlayer
|
||||
if (flamethrowerBoost && item.ranged && (item.useAmmo == AmmoID.Gel || CalamityLists.flamethrowerList.Contains(item.type)))
|
||||
mult += hoverboardBoost ? 0.35f : 0.25f;
|
||||
|
||||
if (fireball && cinnamonRoll && CalamityLists.fireWeaponList.Contains(item.type))
|
||||
{
|
||||
mult += 0.125f;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (fireball && CalamityLists.fireWeaponList.Contains(item.type))
|
||||
mult += 0.05f;
|
||||
|
||||
if (cinnamonRoll && CalamityLists.fireWeaponList.Contains(item.type))
|
||||
mult += 0.1f;
|
||||
}
|
||||
|
||||
if (evergreenGin && CalamityLists.natureWeaponList.Contains(item.type))
|
||||
mult += 0.1f;
|
||||
|
||||
if (eskimoSet && CalamityLists.iceWeaponList.Contains(item.type))
|
||||
mult += 0.1f;
|
||||
|
||||
if (item.ranged)
|
||||
acidRoundMultiplier = item.useTime / 20D;
|
||||
else
|
||||
@@ -5611,16 +5566,6 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (CalamityWorld.ironHeart)
|
||||
{
|
||||
int damageMin = 40 + (player.statLifeMax2 / 10);
|
||||
if (damage < damageMin)
|
||||
{
|
||||
player.endurance = 0f;
|
||||
damage = damageMin;
|
||||
}
|
||||
}
|
||||
|
||||
if (aBulwarkRare)
|
||||
{
|
||||
aBulwarkRareMeleeBoostTimer += 3 * damage;
|
||||
@@ -5654,25 +5599,6 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
dodgeCooldownTimer = EvolutionReflectCooldown;
|
||||
// Send a Calamity dodge cooldown packet.
|
||||
if (Main.netMode == NetmodeID.MultiplayerClient && player.whoAmI == Main.myPlayer)
|
||||
SyncDodgeCooldown(false);
|
||||
return;
|
||||
}
|
||||
|
||||
// Arcanum of the Void
|
||||
else if (projRef)
|
||||
{
|
||||
proj.hostile = false;
|
||||
proj.friendly = true;
|
||||
proj.velocity *= -1f;
|
||||
proj.extraUpdates += 1;
|
||||
proj.penetrate = 1;
|
||||
player.GiveIFrames(20, false);
|
||||
|
||||
damage = 0;
|
||||
|
||||
dodgeCooldownTimer = ArcanumReflectCooldown;
|
||||
// Send a Calamity dodge cooldown packet.
|
||||
if (Main.netMode == NetmodeID.MultiplayerClient && player.whoAmI == Main.myPlayer)
|
||||
SyncDodgeCooldown(false);
|
||||
return;
|
||||
@@ -5793,6 +5719,17 @@ namespace CalamityMod.CalPlayer
|
||||
hasBanner = true;
|
||||
}
|
||||
}
|
||||
if (tile.type == ModContent.TileType<MonsterBanner>())
|
||||
{
|
||||
int bannerType = tile.frameX / 18;
|
||||
|
||||
int bannerItemType = CalamityUtils.GetBannerItem(bannerType);
|
||||
if (ItemID.Sets.BannerStrength[bannerItemType].Enabled)
|
||||
{
|
||||
NPCBannerBuff[bannerType] = true;
|
||||
hasBanner = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5808,13 +5745,13 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (aSparkRare)
|
||||
{
|
||||
if (proj.type == ProjectileID.MartianTurretBolt || proj.type == ProjectileID.GigaZapperSpear || proj.type == ProjectileID.CultistBossLightningOrbArc || proj.type == ModContent.ProjectileType<LightningMark>() || proj.type == ProjectileID.VortexLightning ||
|
||||
if (proj.type == ProjectileID.MartianTurretBolt || proj.type == ProjectileID.GigaZapperSpear || proj.type == ProjectileID.CultistBossLightningOrbArc || proj.type == ModContent.ProjectileType<LightningMark>() || proj.type == ProjectileID.VortexLightning || proj.type == ModContent.ProjectileType<DestroyerElectricLaser>() ||
|
||||
proj.type == ProjectileID.BulletSnowman || proj.type == ProjectileID.BulletDeadeye || proj.type == ProjectileID.SniperBullet || proj.type == ProjectileID.VortexLaser)
|
||||
projectileDamageReduction += 0.5;
|
||||
}
|
||||
if (CalamityLists.projectileDestroyExceptionList.TrueForAll(x => proj.type != x) && proj.active && !proj.friendly && proj.hostile && damage > 0)
|
||||
{
|
||||
if (dodgeCooldownTimer == 0 && !disableAllDodges && daedalusReflect && !projRef && !projRefRare)
|
||||
if (dodgeCooldownTimer == 0 && !disableAllDodges && daedalusReflect && !projRefRare)
|
||||
{
|
||||
projectileDamageReduction += 0.5;
|
||||
}
|
||||
@@ -5909,16 +5846,6 @@ namespace CalamityMod.CalPlayer
|
||||
projectileDamageReduction = 1D / (1D + projectileDamageReduction);
|
||||
damage = (int)(damage * projectileDamageReduction);
|
||||
}
|
||||
|
||||
if (CalamityWorld.ironHeart)
|
||||
{
|
||||
int damageMin = (Main.expertMode ? 10 : 20) + (player.statLifeMax2 / (Main.expertMode ? 40 : 20));
|
||||
if (damage < damageMin)
|
||||
{
|
||||
player.endurance = 0f;
|
||||
damage = damageMin;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -6575,7 +6502,7 @@ namespace CalamityMod.CalPlayer
|
||||
// Reflects count as dodges. They share the timer and can be disabled by Armageddon right click.
|
||||
if (dodgeCooldownTimer == 0 && !disableAllDodges)
|
||||
{
|
||||
if (daedalusReflect && !projRef && !projRefRare)
|
||||
if (daedalusReflect && !projRefRare)
|
||||
{
|
||||
proj.hostile = false;
|
||||
proj.friendly = true;
|
||||
@@ -6813,8 +6740,6 @@ namespace CalamityMod.CalPlayer
|
||||
#region Limitations
|
||||
private void ForceVariousEffects()
|
||||
{
|
||||
if (noWings)
|
||||
RemoveWingTime();
|
||||
if (blockAllDashes || (CalamityConfig.Instance.BossRushDashCurse && BossRushEvent.BossRushActive))
|
||||
DisableDashes();
|
||||
if (weakPetrification)
|
||||
@@ -6842,10 +6767,6 @@ namespace CalamityMod.CalPlayer
|
||||
player.yoraiz0rEye = 0;
|
||||
}
|
||||
|
||||
private void RemoveWingTime()
|
||||
{
|
||||
player.wingTimeMax = 0;
|
||||
}
|
||||
private void DisableDashes()
|
||||
{
|
||||
// Set the player to have no registered dashes.
|
||||
@@ -7021,17 +6942,6 @@ namespace CalamityMod.CalPlayer
|
||||
if (purpleCandle)
|
||||
damage = (int)(damage - (player.statDefense * 0.05));
|
||||
|
||||
if (CalamityWorld.ironHeart)
|
||||
{
|
||||
int damageMin = 80 + (player.statLifeMax2 / 10);
|
||||
playSound = false;
|
||||
hurtSoundTimer = 20;
|
||||
if (damage <= damageMin)
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/IronHeartHurt"), (int)player.position.X, (int)player.position.Y);
|
||||
else
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/IronHeartBigHurt"), (int)player.position.X, (int)player.position.Y);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
#endregion
|
||||
@@ -7385,15 +7295,11 @@ namespace CalamityMod.CalPlayer
|
||||
CalamityUtils.ProjectileRain(player.Center, 400f, 100f, 500f, 800f, 20f, ModContent.ProjectileType<StickyFeatherAero>(), (int)(20 * player.AverageDamage()), 1f, player.whoAmI);
|
||||
}
|
||||
}
|
||||
if (aBulwark)
|
||||
if (aBulwarkRare)
|
||||
{
|
||||
if (aBulwarkRare)
|
||||
{
|
||||
Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 74);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType<GodSlayerBlaze>(), (int)(25 * player.AverageDamage()), 5f, player.whoAmI, 0f, 1f);
|
||||
}
|
||||
int starAmt = aBulwarkRare ? 12 : 5;
|
||||
for (int n = 0; n < starAmt; n++)
|
||||
Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 74);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType<GodSlayerBlaze>(), (int)(25 * player.AverageDamage()), 5f, player.whoAmI, 0f, 1f);
|
||||
for (int n = 0; n < 12; n++)
|
||||
{
|
||||
CalamityUtils.ProjectileRain(player.Center, 400f, 100f, 500f, 800f, 29f, ModContent.ProjectileType<AstralStar>(), (int)(320 * player.AverageDamage()), 5f, player.whoAmI);
|
||||
}
|
||||
@@ -7411,34 +7317,6 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
}
|
||||
if (theBee)
|
||||
{
|
||||
for (int n = 0; n < 3; n++)
|
||||
{
|
||||
Projectile star = CalamityUtils.ProjectileRain(player.Center, 400f, 100f, 500f, 800f, 29f, ProjectileID.HallowStar, (int)(150 * player.AverageDamage()), 4f, player.whoAmI);
|
||||
if (star.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
star.Calamity().forceTypeless = true;
|
||||
star.usesLocalNPCImmunity = true;
|
||||
star.localNPCHitCooldown = 5;
|
||||
}
|
||||
}
|
||||
int num = 1;
|
||||
if (Main.rand.NextBool(3))
|
||||
++num;
|
||||
if (Main.rand.NextBool(3))
|
||||
++num;
|
||||
if (player.strongBees && Main.rand.NextBool(3))
|
||||
++num;
|
||||
for (int index = 0; index < num; ++index)
|
||||
{
|
||||
int bee = Projectile.NewProjectile(player.position.X, player.position.Y, Main.rand.Next(-35, 36) * 0.02f, Main.rand.Next(-35, 36) * 0.02f, Main.rand.NextBool(4) ? ModContent.ProjectileType<PlaguenadeBee>() : player.beeType(), player.beeDamage(7), player.beeKB(0f), Main.myPlayer, 0f, 0f);
|
||||
Main.projectile[bee].usesLocalNPCImmunity = true;
|
||||
Main.projectile[bee].localNPCHitCooldown = 5;
|
||||
if (bee.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[bee].Calamity().forceTypeless = true;
|
||||
}
|
||||
}
|
||||
if (fCarapace)
|
||||
{
|
||||
if (damage > 0)
|
||||
@@ -7639,7 +7517,6 @@ namespace CalamityMod.CalPlayer
|
||||
player.lastDeathPostion = player.Center;
|
||||
player.lastDeathTime = DateTime.Now;
|
||||
player.showLastDeath = true;
|
||||
bool specialDeath = CalamityWorld.ironHeart;
|
||||
int coinsOwned = (int)Utils.CoinsCount(out bool flag, player.inventory, new int[0]);
|
||||
if (Main.myPlayer == player.whoAmI)
|
||||
{
|
||||
@@ -7686,14 +7563,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.KillMeForGood();
|
||||
}
|
||||
}
|
||||
if (specialDeath)
|
||||
{
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/IronHeartDeath"), (int)player.position.X, (int)player.position.Y);
|
||||
}
|
||||
else
|
||||
{
|
||||
Main.PlaySound(SoundID.PlayerKilled, (int)player.position.X, (int)player.position.Y, 1, 1f, 0f);
|
||||
}
|
||||
Main.PlaySound(SoundID.PlayerKilled, (int)player.position.X, (int)player.position.Y, 1, 1f, 0f);
|
||||
player.headVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f;
|
||||
player.bodyVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f;
|
||||
player.legVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f;
|
||||
@@ -7708,7 +7578,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
for (int j = 0; j < 100; j++)
|
||||
{
|
||||
Dust.NewDust(player.position, player.width, player.height, specialDeath ? 91 : 235, (float)(2 * 0), -2f, 0, default, 1f);
|
||||
Dust.NewDust(player.position, player.width, player.height, 235, (float)(2 * 0), -2f, 0, default, 1f);
|
||||
}
|
||||
player.mount.Dismount(player);
|
||||
player.dead = true;
|
||||
@@ -7734,10 +7604,6 @@ namespace CalamityMod.CalPlayer
|
||||
damageSource = PlayerDeathReason.ByCustomReason("Oxygen failed to reach " + player.name + " from the depths of the Abyss.");
|
||||
}
|
||||
}
|
||||
else if (specialDeath)
|
||||
{
|
||||
damageSource = PlayerDeathReason.ByCustomReason(player.name + " was defeated.");
|
||||
}
|
||||
else if (CalamityWorld.death && deathModeBlizzardTime > 1980)
|
||||
{
|
||||
deathModeBlizzardTime = 0;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
Point point = player.Center.ToTileCoordinates();
|
||||
|
||||
if (CalamityWorld.ironHeart || player.ownedProjectileCounts[ModContent.ProjectileType<BloodBoilerFire>()] > 0)
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<BloodBoilerFire>()] > 0)
|
||||
noLifeRegen = true;
|
||||
|
||||
bool death = CalamityWorld.death || CalamityWorld.malice || BossRushEvent.BossRushActive;
|
||||
|
||||
@@ -68,36 +68,6 @@ namespace CalamityMod.CalPlayer
|
||||
if (player.wingsLogic > 0)
|
||||
player.jumpSpeedBoost += 1.2f;
|
||||
|
||||
// Defiled jump boosts
|
||||
if (noWings)
|
||||
{
|
||||
/* 8% post-Skeletron
|
||||
* 10% post-WoF
|
||||
* 20% post-ML
|
||||
*/
|
||||
|
||||
float extraJumpSpeedBoost = 0f +
|
||||
(NPC.downedBoss3 ? 0.4f : 0f) +
|
||||
(Main.hardMode ? (!NPC.downedBoss3 ? 0.5f : 0.1f) : 0f) +
|
||||
(NPC.downedMoonlord ? 0.5f : 0f);
|
||||
|
||||
// 10% extra jump speed per extra jump
|
||||
if (player.doubleJumpCloud)
|
||||
player.jumpSpeedBoost += extraJumpSpeedBoost;
|
||||
|
||||
if (player.doubleJumpBlizzard)
|
||||
player.jumpSpeedBoost += extraJumpSpeedBoost;
|
||||
|
||||
if (player.doubleJumpSandstorm)
|
||||
player.jumpSpeedBoost += extraJumpSpeedBoost;
|
||||
|
||||
if (player.doubleJumpFart)
|
||||
player.jumpSpeedBoost += extraJumpSpeedBoost;
|
||||
|
||||
if (player.doubleJumpSail)
|
||||
player.jumpSpeedBoost += extraJumpSpeedBoost;
|
||||
}
|
||||
|
||||
// Decrease the counter on Fearmonger set turbo regeneration
|
||||
if (fearmongerRegenFrames > 0)
|
||||
fearmongerRegenFrames--;
|
||||
@@ -1364,6 +1334,8 @@ namespace CalamityMod.CalPlayer
|
||||
auralisAurora--;
|
||||
if (auralisAuroraCooldown > 0)
|
||||
auralisAuroraCooldown--;
|
||||
if (silvaReviveCooldown > 0 && !areThereAnyDamnBosses && !areThereAnyDamnEvents)
|
||||
silvaReviveCooldown--;
|
||||
|
||||
// God Slayer Armor dash debuff immunity
|
||||
if (dashMod == 9 && player.dashDelay < 0)
|
||||
@@ -1394,7 +1366,11 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
silvaCountdown -= 1;
|
||||
if (silvaCountdown <= 0)
|
||||
{
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SilvaDispel"), player.Center);
|
||||
// 5 minutes
|
||||
silvaReviveCooldown = 18000;
|
||||
}
|
||||
|
||||
for (int j = 0; j < 2; j++)
|
||||
{
|
||||
@@ -1409,6 +1385,11 @@ namespace CalamityMod.CalPlayer
|
||||
Main.dust[green].scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
}
|
||||
}
|
||||
if (silvaReviveCooldown <= 0 && hasSilvaEffect && silvaCountdown <= 0 && !areThereAnyDamnBosses && !areThereAnyDamnEvents)
|
||||
{
|
||||
silvaCountdown = 480;
|
||||
hasSilvaEffect = false;
|
||||
}
|
||||
|
||||
// Tarragon cloak effects
|
||||
if (tarragonCloak)
|
||||
|
||||
@@ -46,7 +46,13 @@ namespace CalamityMod.CalPlayer
|
||||
witheringDamageDone += (int)(damage * (crit ? 2D : 1D));
|
||||
|
||||
if (flamingItemEnchant)
|
||||
target.AddBuff(ModContent.BuffType<VulnerabilityHex>(), VulnerabilityHex.AflameDuration);
|
||||
target.AddBuff(BuffType<VulnerabilityHex>(), VulnerabilityHex.AflameDuration);
|
||||
|
||||
target.Calamity().IncreasedHeatEffects = fireball || cinnamonRoll;
|
||||
|
||||
target.Calamity().IncreasedColdEffects = eskimoSet;
|
||||
|
||||
target.Calamity().IncreasedSicknessAndWaterEffects = evergreenGin;
|
||||
|
||||
switch (item.type)
|
||||
{
|
||||
@@ -96,12 +102,12 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ItemID.DeathSickle:
|
||||
target.AddBuff(ModContent.BuffType<WhisperingDeath>(), 120);
|
||||
target.AddBuff(BuffType<WhisperingDeath>(), 120);
|
||||
break;
|
||||
|
||||
case ItemID.Excalibur:
|
||||
case ItemID.TrueExcalibur:
|
||||
target.AddBuff(ModContent.BuffType<HolyFlames>(), 120);
|
||||
target.AddBuff(BuffType<HolyFlames>(), 120);
|
||||
break;
|
||||
|
||||
case ItemID.FieryGreatsword:
|
||||
@@ -129,7 +135,7 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ItemID.BloodButcherer:
|
||||
target.AddBuff(ModContent.BuffType<BurningBlood>(), 60);
|
||||
target.AddBuff(BuffType<BurningBlood>(), 60);
|
||||
break;
|
||||
|
||||
case ItemID.IceSickle:
|
||||
@@ -147,7 +153,7 @@ namespace CalamityMod.CalPlayer
|
||||
NPCDebuffs(target, item.melee, item.ranged, item.magic, item.summon, item.Calamity().rogue, false);
|
||||
|
||||
// Shattered Community tracks all damage dealt with Rage Mode (ignoring dummies).
|
||||
if (target.type == NPCID.TargetDummy || target.type == ModContent.NPCType<SuperDummyNPC>())
|
||||
if (target.type == NPCID.TargetDummy || target.type == NPCType<SuperDummyNPC>())
|
||||
return;
|
||||
if (rageModeActive && shatteredCommunity)
|
||||
ShatteredCommunity.AccumulateRageDamage(player, this, damage);
|
||||
@@ -167,7 +173,13 @@ namespace CalamityMod.CalPlayer
|
||||
if (witheringWeaponEnchant)
|
||||
witheringDamageDone += (int)(damage * (crit ? 2D : 1D));
|
||||
|
||||
switch (proj.type)
|
||||
target.Calamity().IncreasedHeatEffects = fireball || cinnamonRoll;
|
||||
|
||||
target.Calamity().IncreasedColdEffects = eskimoSet;
|
||||
|
||||
target.Calamity().IncreasedSicknessAndWaterEffects = evergreenGin;
|
||||
|
||||
switch (proj.type)
|
||||
{
|
||||
case ProjectileID.CobaltNaginata:
|
||||
target.Calamity().miscDefenseLoss = (int)(target.defense * 0.25);
|
||||
@@ -207,7 +219,7 @@ namespace CalamityMod.CalPlayer
|
||||
case ProjectileID.CrimsonYoyo:
|
||||
case ProjectileID.BloodCloudRaining:
|
||||
case ProjectileID.BloodRain:
|
||||
target.AddBuff(ModContent.BuffType<BurningBlood>(), 60);
|
||||
target.AddBuff(BuffType<BurningBlood>(), 60);
|
||||
break;
|
||||
|
||||
case ProjectileID.BallOHurt:
|
||||
@@ -239,17 +251,17 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ProjectileID.GolemFist:
|
||||
target.AddBuff(ModContent.BuffType<ArmorCrunch>(), 180);
|
||||
target.AddBuff(BuffType<ArmorCrunch>(), 180);
|
||||
break;
|
||||
|
||||
case ProjectileID.DeathSickle:
|
||||
target.AddBuff(ModContent.BuffType<WhisperingDeath>(), 60);
|
||||
target.AddBuff(BuffType<WhisperingDeath>(), 60);
|
||||
break;
|
||||
|
||||
case ProjectileID.LightBeam:
|
||||
case ProjectileID.Gungnir:
|
||||
case ProjectileID.PaladinsHammerFriendly:
|
||||
target.AddBuff(ModContent.BuffType<HolyFlames>(), 120);
|
||||
target.AddBuff(BuffType<HolyFlames>(), 120);
|
||||
break;
|
||||
|
||||
case ProjectileID.DarkLance:
|
||||
@@ -275,7 +287,7 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ProjectileID.BoneArrow:
|
||||
target.AddBuff(ModContent.BuffType<ArmorCrunch>(), 300);
|
||||
target.AddBuff(BuffType<ArmorCrunch>(), 300);
|
||||
break;
|
||||
|
||||
case ProjectileID.FrostBlastFriendly:
|
||||
@@ -317,9 +329,9 @@ namespace CalamityMod.CalPlayer
|
||||
if (!proj.npcProj && !proj.trap && proj.friendly)
|
||||
{
|
||||
if ((plaguebringerCarapace || uberBees) && CalamityLists.friendlyBeeList.Contains(proj.type))
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 300);
|
||||
target.AddBuff(BuffType<Plague>(), 300);
|
||||
|
||||
if (proj.type == ProjectileID.IchorArrow && player.ActiveItem().type == ModContent.ItemType<RaidersGlory>())
|
||||
if (proj.type == ProjectileID.IchorArrow && player.ActiveItem().type == ItemType<RaidersGlory>())
|
||||
target.AddBuff(BuffID.Midas, 300, false);
|
||||
|
||||
ProjLifesteal(target, proj, damage, crit);
|
||||
@@ -327,7 +339,7 @@ namespace CalamityMod.CalPlayer
|
||||
NPCDebuffs(target, proj.melee, proj.ranged, proj.magic, proj.IsSummon(), proj.Calamity().rogue, true);
|
||||
|
||||
// Shattered Community tracks all damage dealt with Rage Mode (ignoring dummies).
|
||||
if (target.type == NPCID.TargetDummy || target.type == ModContent.NPCType<SuperDummyNPC>())
|
||||
if (target.type == NPCID.TargetDummy || target.type == NPCType<SuperDummyNPC>())
|
||||
return;
|
||||
|
||||
if (rageModeActive && shatteredCommunity)
|
||||
@@ -365,12 +377,12 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ItemID.DeathSickle:
|
||||
target.AddBuff(ModContent.BuffType<WhisperingDeath>(), 120);
|
||||
target.AddBuff(BuffType<WhisperingDeath>(), 120);
|
||||
break;
|
||||
|
||||
case ItemID.Excalibur:
|
||||
case ItemID.TrueExcalibur:
|
||||
target.AddBuff(ModContent.BuffType<HolyFlames>(), 120);
|
||||
target.AddBuff(BuffType<HolyFlames>(), 120);
|
||||
break;
|
||||
|
||||
case ItemID.FieryGreatsword:
|
||||
@@ -389,16 +401,16 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
case ItemID.LightsBane:
|
||||
case ItemID.NightsEdge:
|
||||
target.AddBuff(ModContent.BuffType<Shadowflame>(), 120);
|
||||
target.AddBuff(BuffType<Shadowflame>(), 120);
|
||||
break;
|
||||
|
||||
case ItemID.TrueNightsEdge:
|
||||
target.AddBuff(BuffID.CursedInferno, 60);
|
||||
target.AddBuff(ModContent.BuffType<Shadowflame>(), 120);
|
||||
target.AddBuff(BuffType<Shadowflame>(), 120);
|
||||
break;
|
||||
|
||||
case ItemID.BloodButcherer:
|
||||
target.AddBuff(ModContent.BuffType<BurningBlood>(), 60);
|
||||
target.AddBuff(BuffType<BurningBlood>(), 60);
|
||||
break;
|
||||
|
||||
case ItemID.IceSickle:
|
||||
@@ -440,7 +452,7 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ProjectileID.TheRottedFork:
|
||||
target.AddBuff(ModContent.BuffType<BurningBlood>(), 60);
|
||||
target.AddBuff(BuffType<BurningBlood>(), 60);
|
||||
break;
|
||||
|
||||
case ProjectileID.ObsidianSwordfish:
|
||||
@@ -467,21 +479,21 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ProjectileID.GolemFist:
|
||||
target.AddBuff(ModContent.BuffType<ArmorCrunch>(), 180);
|
||||
target.AddBuff(BuffType<ArmorCrunch>(), 180);
|
||||
break;
|
||||
|
||||
case ProjectileID.DeathSickle:
|
||||
target.AddBuff(ModContent.BuffType<WhisperingDeath>(), 60);
|
||||
target.AddBuff(BuffType<WhisperingDeath>(), 60);
|
||||
break;
|
||||
|
||||
case ProjectileID.LightBeam:
|
||||
case ProjectileID.Gungnir:
|
||||
case ProjectileID.PaladinsHammerFriendly:
|
||||
target.AddBuff(ModContent.BuffType<HolyFlames>(), 120);
|
||||
target.AddBuff(BuffType<HolyFlames>(), 120);
|
||||
break;
|
||||
|
||||
case ProjectileID.DarkLance:
|
||||
target.AddBuff(ModContent.BuffType<Shadowflame>(), 120);
|
||||
target.AddBuff(BuffType<Shadowflame>(), 120);
|
||||
break;
|
||||
|
||||
case ProjectileID.PoisonedKnife:
|
||||
@@ -503,7 +515,7 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ProjectileID.BoneArrow:
|
||||
target.AddBuff(ModContent.BuffType<ArmorCrunch>(), 300);
|
||||
target.AddBuff(BuffType<ArmorCrunch>(), 300);
|
||||
break;
|
||||
|
||||
case ProjectileID.FrostBlastFriendly:
|
||||
@@ -535,7 +547,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
case ProjectileID.NightBeam:
|
||||
target.AddBuff(BuffID.CursedInferno, 60);
|
||||
target.AddBuff(ModContent.BuffType<Shadowflame>(), 120);
|
||||
target.AddBuff(BuffType<Shadowflame>(), 120);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -543,7 +555,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if ((plaguebringerCarapace || uberBees) && CalamityLists.friendlyBeeList.Contains(proj.type))
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 300);
|
||||
target.AddBuff(BuffType<Plague>(), 300);
|
||||
}
|
||||
ProjOnHit(proj, target.Center, crit, true);
|
||||
PvpDebuffs(target, proj.melee, proj.ranged, proj.magic, proj.IsSummon(), proj.Calamity().rogue, true);
|
||||
@@ -1312,7 +1324,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (titanHeartMask)
|
||||
{
|
||||
target.AddBuff(BuffType<AstralInfectionDebuff>(), 60 * Main.rand.Next(1, 6), false); // 1 to 5 seconds
|
||||
target.AddBuff(BuffType<AstralInfectionDebuff>(), 120);
|
||||
}
|
||||
if (corrosiveSpine)
|
||||
{
|
||||
@@ -1456,7 +1468,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (titanHeartMask)
|
||||
{
|
||||
target.AddBuff(BuffType<AstralInfectionDebuff>(), 60 * Main.rand.Next(1, 6), false); // 1 to 5 seconds
|
||||
target.AddBuff(BuffType<AstralInfectionDebuff>(), 120);
|
||||
}
|
||||
if (corrosiveSpine)
|
||||
{
|
||||
|
||||
@@ -24,6 +24,7 @@ using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
using CalamityMod.NPCs.AstrumAureus;
|
||||
@@ -94,9 +95,6 @@ namespace CalamityMod
|
||||
public static List<int> friendlyBeeList;
|
||||
public static List<int> hardModeNerfList;
|
||||
public static List<int> debuffList;
|
||||
public static List<int> fireWeaponList;
|
||||
public static List<int> iceWeaponList;
|
||||
public static List<int> natureWeaponList;
|
||||
public static List<int> alcoholList;
|
||||
public static List<int> spearAutoreuseList;
|
||||
public static List<int> pumpkinMoonBuffList;
|
||||
@@ -955,353 +953,6 @@ namespace CalamityMod
|
||||
BuffType<VulnerabilityHex>()
|
||||
};
|
||||
|
||||
fireWeaponList = new List<int>() // Includes drops and crafts from the Betsy, Yharon, and Providence, listed A-Z.
|
||||
{
|
||||
ItemType<AegisBlade>(),
|
||||
ItemID.ApprenticeStaffT3,
|
||||
ItemType<AngryChickenStaff>(),
|
||||
ItemType<BalefulHarvester>(),
|
||||
ItemType<BlastBarrel>(),
|
||||
ItemType<BlissfulBombardier>(),
|
||||
ItemID.BookofSkulls,
|
||||
ItemType<BouncingBetty>(),
|
||||
ItemType<TheBurningSky>(),
|
||||
ItemID.Cascade,
|
||||
ItemType<Chaotrix>(),
|
||||
ItemType<ChickenCannon>(),
|
||||
ItemType<CinderBlossomStaff>(),
|
||||
ItemType<CometQuasher>(),
|
||||
ItemID.DayBreak,
|
||||
ItemType<DazzlingStabberStaff>(),
|
||||
ItemID.DD2BetsyBow,
|
||||
ItemID.DD2FlameburstTowerT1Popper,
|
||||
ItemID.DD2FlameburstTowerT2Popper,
|
||||
ItemID.DD2FlameburstTowerT3Popper,
|
||||
ItemID.DD2PhoenixBow,
|
||||
ItemID.DD2SquireDemonSword,
|
||||
ItemType<DivineHatchet>(),
|
||||
ItemType<DivineRetribution>(),
|
||||
ItemType<DraconicDestruction>(),
|
||||
ItemType<DragonPow>(),
|
||||
ItemType<DragonRage>(),
|
||||
ItemType<DragonsBreath>(),
|
||||
ItemType<Drataliornus>(),
|
||||
ItemID.EldMelter,
|
||||
ItemType<EnergyStaff>(),
|
||||
ItemType<ExsanguinationLance>(),
|
||||
ItemType<FinalDawn>(),
|
||||
ItemID.FieryGreatsword,
|
||||
ItemType<FirestormCannon>(),
|
||||
ItemID.Flamarang,
|
||||
ItemType<FlameburstShortsword>(),
|
||||
ItemID.Flamelash,
|
||||
ItemType<FlameScythe>(),
|
||||
ItemID.Flamethrower,
|
||||
ItemType<FlareBolt>(),
|
||||
ItemID.FlareGun,
|
||||
ItemType<FlarewingBow>(),
|
||||
ItemID.FlowerofFire,
|
||||
ItemType<ForbiddenSun>(),
|
||||
ItemType<GreatbowofTurmoil>(),
|
||||
ItemType<HarvestStaff>(),
|
||||
ItemID.HeatRay,
|
||||
ItemID.HelFire,
|
||||
ItemType<HeliumFlash>(),
|
||||
ItemType<Hellborn>(),
|
||||
ItemType<HellBurst>(),
|
||||
ItemType<HellfireFlamberge>(),
|
||||
ItemType<Hellkite>(),
|
||||
ItemID.HellwingBow,
|
||||
ItemType<HellwingStaff>(),
|
||||
ItemType<Helstorm>(),
|
||||
ItemType<HellsSun>(),
|
||||
ItemType<HolyCollider>(),
|
||||
ItemID.TheHorsemansBlade,
|
||||
ItemID.ImpStaff,
|
||||
ItemType<InfernaCutter>(),
|
||||
ItemID.InfernoFork,
|
||||
ItemType<TheLastMourning>(),
|
||||
ItemType<LatcherMine>(),
|
||||
ItemType<Lazhar>(),
|
||||
ItemType<MeteorFist>(),
|
||||
ItemID.MeteorStaff,
|
||||
ItemID.MolotovCocktail,
|
||||
ItemType<MoltenAmputator>(),
|
||||
ItemID.MoltenFury,
|
||||
ItemType<Mourningstar>(),
|
||||
ItemType<PhoenixBlade>(),
|
||||
ItemID.PhoenixBlaster,
|
||||
ItemType<PhoenixFlameBarrage>(),
|
||||
ItemType<ThePrince>(),
|
||||
ItemType<PristineFury>(),
|
||||
ItemType<ProfanedPartisan>(),
|
||||
ItemType<ProfanedTrident>(),
|
||||
ItemType<PurgeGuzzler>(),
|
||||
ItemType<RedSun>(),
|
||||
ItemType<SarosPossession>(),
|
||||
ItemType<ScorchedEarth>(),
|
||||
ItemType<ShatteredSun>(),
|
||||
ItemID.SolarEruption,
|
||||
ItemType<SolarFlare>(),
|
||||
ItemType<SparkSpreader>(),
|
||||
ItemType<SpectralstormCannon>(),
|
||||
ItemType<SunGodStaff>(),
|
||||
ItemID.Sunfury,
|
||||
ItemType<SunSpiritStaff>(),
|
||||
ItemType<TelluricGlare>(),
|
||||
ItemType<TerraFlameburster>(),
|
||||
ItemType<TotalityBreakers>(),
|
||||
ItemType<VenusianTrident>(),
|
||||
ItemType<Vesuvius>(),
|
||||
ItemType<TheWand>(),
|
||||
ItemID.WandofSparking
|
||||
};
|
||||
|
||||
iceWeaponList = new List<int>() // TODO: Fix this list.
|
||||
{
|
||||
ItemID.IceBlade,
|
||||
ItemID.IceSickle,
|
||||
ItemID.Frostbrand,
|
||||
ItemID.Amarok,
|
||||
ItemID.NorthPole,
|
||||
ItemID.IceBoomerang,
|
||||
ItemID.IceBow,
|
||||
ItemID.SnowmanCannon,
|
||||
ItemID.SnowballCannon,
|
||||
ItemID.IceRod,
|
||||
ItemID.FlowerofFrost,
|
||||
ItemID.FrostStaff,
|
||||
ItemID.BlizzardStaff,
|
||||
ItemID.StaffoftheFrostHydra,
|
||||
ItemID.Snowball,
|
||||
ItemType<AbsoluteZero>(),
|
||||
ItemType<Avalanche>(),
|
||||
ItemType<GlacialCrusher>(),
|
||||
ItemType<TemporalFloeSword>(),
|
||||
ItemType<ColdheartIcicle>(),
|
||||
ItemType<CosmicDischarge>(),
|
||||
ItemType<EffluviumBow>(),
|
||||
ItemType<EternalBlizzard>(),
|
||||
ItemType<FrostbiteBlaster>(),
|
||||
ItemType<IcicleStaff>(),
|
||||
ItemType<BittercoldStaff>(),
|
||||
ItemType<CrystalFlareStaff>(),
|
||||
ItemType<IcicleTrident>(),
|
||||
ItemType<SnowstormStaff>(),
|
||||
ItemType<Cryophobia>(),
|
||||
ItemType<FrostBolt>(),
|
||||
ItemType<WintersFury>(),
|
||||
ItemType<ArcticBearPaw>(),
|
||||
ItemType<AncientIceChunk>(),
|
||||
ItemType<CryogenicStaff>(),
|
||||
ItemType<FrostyFlare>(),
|
||||
ItemType<IceStar>(),
|
||||
ItemType<Icebreaker>(),
|
||||
ItemType<KelvinCatalyst>(),
|
||||
ItemType<FrostcrushValari>(),
|
||||
ItemType<Endogenesis>(),
|
||||
ItemType<FlurrystormCannon>(),
|
||||
ItemType<Hypothermia>(),
|
||||
ItemType<IceBarrage>(),
|
||||
ItemType<FrostBlossomStaff>(),
|
||||
ItemType<EndoHydraStaff>(),
|
||||
ItemType<Trinity>(),
|
||||
ItemType<Shimmerspark>(),
|
||||
ItemType<StarnightLance>(),
|
||||
ItemType<DarkechoGreatbow>(),
|
||||
ItemType<ShadecrystalTome>(),
|
||||
ItemType<CrystalPiercer>(),
|
||||
ItemType<DaedalusGolemStaff>()
|
||||
};
|
||||
|
||||
natureWeaponList = new List<int>() // Includes drops and crafts from the Scourges, Giant Clam, Fishrons, Crabulon, Queen Bee, Abyss minibosses, GSS, and Acid Rain, listed A-Z.
|
||||
{
|
||||
ItemType<AbyssBlade>(),
|
||||
ItemType<AbyssShocker>(),
|
||||
ItemType<AcidGun>(),
|
||||
ItemType<AcidicRainBarrel>(),
|
||||
ItemType<Alluvion>(),
|
||||
ItemType<AquamarineStaff>(),
|
||||
ItemType<AquashardShotgun>(),
|
||||
ItemType<AquaticDischarge>(),
|
||||
ItemType<AquaticDissolution>(),
|
||||
ItemType<ArchAmaryllis>(),
|
||||
ItemType<Archerfish>(),
|
||||
ItemType<BallOFugu>(),
|
||||
ItemID.Bananarang,
|
||||
ItemType<Barinade>(),
|
||||
ItemType<Barinautical>(),
|
||||
ItemType<Basher>(),
|
||||
ItemID.BatScepter,
|
||||
ItemID.BeeGun,
|
||||
ItemID.BeeKeeper,
|
||||
ItemID.Beenade,
|
||||
ItemID.BeesKnees,
|
||||
ItemType<BelladonnaSpiritStaff>(),
|
||||
ItemType<BiomeBlade>(),
|
||||
ItemType<BlackAnurian>(),
|
||||
ItemType<BladedgeGreatbow>(),
|
||||
ItemID.BladeofGrass,
|
||||
ItemID.Bladetongue,
|
||||
ItemType<BlossomFlux>(),
|
||||
ItemType<Bonebreaker>(),
|
||||
ItemType<BrackishFlask>(),
|
||||
ItemType<BrinyBaron>(),
|
||||
ItemID.BubbleGun,
|
||||
ItemType<CalamarisLament>(),
|
||||
ItemType<CausticCroakerStaff>(),
|
||||
ItemID.ChlorophyteClaymore,
|
||||
ItemID.ChlorophytePartisan,
|
||||
ItemID.ChlorophyteSaber,
|
||||
ItemID.ChlorophyteShotbow,
|
||||
ItemID.ChristmasTreeSword,
|
||||
ItemType<ClamCrusher>(),
|
||||
ItemType<ClamorRifle>(),
|
||||
ItemType<Cnidarian>(),
|
||||
ItemType<ContaminatedBile>(),
|
||||
ItemType<CoralCannon>(),
|
||||
ItemType<CoralSpout>(),
|
||||
ItemType<CorrodedCaustibow>(),
|
||||
ItemID.CrystalSerpent,
|
||||
ItemType<DeepseaStaff>(),
|
||||
ItemType<DepthBlade>(),
|
||||
ItemType<Downpour>(),
|
||||
ItemType<DukesDecapitator>(),
|
||||
ItemType<DuststormInABottle>(),
|
||||
ItemType<EidolicWail>(),
|
||||
ItemType<EvergladeSpray>(),
|
||||
ItemType<FeralthornClaymore>(),
|
||||
ItemID.Flairon,
|
||||
ItemType<FlakToxicannon>(),
|
||||
ItemType<Floodtide>(),
|
||||
ItemID.FlowerPow,
|
||||
ItemType<FourSeasonsGalaxia>(),
|
||||
ItemID.FrostDaggerfish,
|
||||
ItemType<Fungicide>(),
|
||||
ItemType<GacruxianMollusk>(),
|
||||
ItemType<GammaFusillade>(),
|
||||
ItemType<GammaHeart>(),
|
||||
ItemType<GastricBelcherStaff>(),
|
||||
ItemType<GleamingMagnolia>(),
|
||||
ItemType<Greentide>(),
|
||||
ItemType<HardenedHoneycomb>(),
|
||||
ItemType<HarvestStaff>(),
|
||||
ItemType<HellionFlowerSpear>(),
|
||||
ItemType<HerringStaff>(),
|
||||
ItemID.HornetStaff,
|
||||
ItemType<HyphaeRod>(),
|
||||
ItemID.JungleYoyo,
|
||||
ItemType<Lazhar>(),
|
||||
ItemID.LeafBlower,
|
||||
ItemType<LeviathanTeeth>(),
|
||||
ItemType<Leviatitan>(),
|
||||
ItemType<LifefruitScythe>(),
|
||||
ItemType<Lionfish>(),
|
||||
ItemType<MagicalConch>(),
|
||||
ItemType<ManaRose>(),
|
||||
ItemType<MangroveChakram>(),
|
||||
ItemType<MantisClaws>(),
|
||||
ItemType<Mariana>(),
|
||||
ItemType<Miasma>(),
|
||||
ItemType<Mistlestorm>(),
|
||||
ItemType<Monsoon>(),
|
||||
ItemID.MushroomSpear,
|
||||
ItemType<MycelialClaws>(),
|
||||
ItemType<Mycoroot>(),
|
||||
ItemType<NastyCholla>(),
|
||||
ItemType<Needler>(),
|
||||
ItemType<NeptunesBounty>(),
|
||||
ItemType<NettlelineGreatbow>(),
|
||||
ItemType<OmegaBiomeBlade>(),
|
||||
ItemType<OrthoceraShell>(),
|
||||
ItemType<ParasiticSceptor>(),
|
||||
ItemType<PhosphorescentGauntlet>(),
|
||||
ItemType<PlantationStaff>(),
|
||||
ItemType<PoisonPack>(),
|
||||
ItemID.PoisonStaff,
|
||||
ItemType<PolarisParrotfish>(),
|
||||
ItemType<PolypLauncher>(),
|
||||
ItemType<Poseidon>(),
|
||||
ItemType<Prismalline>(),
|
||||
ItemID.PygmyStaff,
|
||||
ItemType<Quagmire>(),
|
||||
ItemID.QueenSpiderStaff,
|
||||
ItemID.RavenStaff,
|
||||
ItemID.RazorbladeTyphoon,
|
||||
ItemID.Razorpine,
|
||||
ItemType<RedtideSword>(),
|
||||
ItemType<SandDollar>(),
|
||||
ItemType<SandSharknadoStaff>(),
|
||||
ItemType<Sandslasher>(),
|
||||
ItemType<SandstormGun>(),
|
||||
ItemType<ScourgeoftheDesert>(),
|
||||
ItemType<ScourgeoftheSeas>(),
|
||||
ItemType<SeaboundStaff>(),
|
||||
ItemType<Seabow>(),
|
||||
ItemType<SeafoamBomb>(),
|
||||
ItemType<SeashellBoomerang>(),
|
||||
ItemType<SeashineSword>(),
|
||||
ItemType<SeasSearing>(),
|
||||
ItemID.Seedler,
|
||||
ItemType<Serpentine>(),
|
||||
ItemType<ShellfishStaff>(),
|
||||
ItemType<Shellshooter>(),
|
||||
ItemType<ShiftingSands>(),
|
||||
ItemType<Shroomer>(),
|
||||
ItemType<Shroomerang>(),
|
||||
ItemType<SkyfinBombers>(),
|
||||
ItemID.SlimeStaff,
|
||||
ItemType<SlitheringEels>(),
|
||||
ItemType<SnapClam>(),
|
||||
ItemType<SolsticeClaymore>(),
|
||||
ItemType<SoulEdge>(),
|
||||
ItemType<SparklingEmpress>(),
|
||||
ItemType<SpentFuelContainer>(),
|
||||
ItemID.SpiderStaff,
|
||||
ItemType<SporeKnife>(),
|
||||
ItemType<Spyker>(),
|
||||
ItemID.StaffofEarth,
|
||||
ItemType<StormRuler>(),
|
||||
ItemType<StormSaber>(),
|
||||
ItemType<StormSpray>(),
|
||||
ItemType<StormSurge>(),
|
||||
ItemType<SubmarineShocker>(),
|
||||
ItemType<SulphuricAcidCannon>(),
|
||||
ItemType<SulphurousGrabber>(),
|
||||
ItemType<TarragonThrowingDart>(),
|
||||
ItemID.TempestStaff,
|
||||
ItemType<TenebreusTides>(),
|
||||
ItemID.TerraBlade,
|
||||
ItemType<TerraDisk>(),
|
||||
ItemType<TerraEdge>(),
|
||||
ItemType<TerraFlameburster>(),
|
||||
ItemType<TerraLance>(),
|
||||
ItemType<TerraRay>(),
|
||||
ItemType<TerraShiv>(),
|
||||
ItemType<Terratomere>(),
|
||||
ItemType<TheSwarmer>(),
|
||||
ItemType<ThornBlossom>(),
|
||||
ItemID.ThornChakram,
|
||||
ItemType<Toxibow>(),
|
||||
ItemID.Toxikarp,
|
||||
ItemType<TrueBiomeBlade>(),
|
||||
ItemID.Tsunami,
|
||||
ItemType<Tumbleweed>(),
|
||||
ItemType<UrchinFlail>(),
|
||||
ItemType<UrchinSpear>(),
|
||||
ItemType<Valediction>(),
|
||||
ItemID.VenomStaff,
|
||||
ItemType<Verdant>(),
|
||||
ItemType<ViralSprout>(),
|
||||
ItemType<ViridVanguard>(),
|
||||
ItemID.WaspGun,
|
||||
ItemType<Waywasher>(),
|
||||
ItemType<Whirlpool>(),
|
||||
ItemType<YateveoBloom>(),
|
||||
ItemID.Yelets
|
||||
|
||||
};
|
||||
|
||||
alcoholList = new List<int>()
|
||||
{
|
||||
BuffType<BloodyMaryBuff>(),
|
||||
@@ -1641,7 +1292,6 @@ namespace CalamityMod
|
||||
ItemType<Shroomer>(),
|
||||
ItemType<SpectreRifle>(),
|
||||
ItemType<Svantechnical>(),
|
||||
ItemType<Skullmasher>(),
|
||||
ItemType<TyrannysEnd>()
|
||||
};
|
||||
|
||||
@@ -1786,7 +1436,6 @@ namespace CalamityMod
|
||||
ItemType<Malachite>(),
|
||||
ItemType<Mycoroot>(),
|
||||
ItemType<Prismalline>(),
|
||||
ItemType<Quasar>(),
|
||||
ItemType<RadiantStar>(),
|
||||
ItemType<ShatteredSun>(),
|
||||
ItemType<StellarKnife>(),
|
||||
@@ -1831,8 +1480,6 @@ namespace CalamityMod
|
||||
ProjectileType<PrismallineProj>(),
|
||||
ProjectileType<Prismalline2>(),
|
||||
ProjectileType<Prismalline3>(),
|
||||
ProjectileType<QuasarKnife>(),
|
||||
ProjectileType<Quasar2>(),
|
||||
ProjectileType<RadiantStarKnife>(),
|
||||
ProjectileType<RadiantStar2>(),
|
||||
ProjectileType<ShatteredSunKnife>(),
|
||||
@@ -3005,7 +2652,8 @@ namespace CalamityMod
|
||||
ProjectileType<EndoHydraHead>(),
|
||||
ProjectileType<EndoHydraBody>(),
|
||||
ProjectileType<SeekerSummonProj>(),
|
||||
ProjectileType<SepulcherMinion>()
|
||||
ProjectileType<SepulcherMinion>(),
|
||||
ProjectileType<MountedScannerLaser>()
|
||||
};
|
||||
|
||||
ZeroMinionSlotExceptionList = new List<int>()
|
||||
@@ -3044,9 +2692,6 @@ namespace CalamityMod
|
||||
beeProjectileList = null;
|
||||
hardModeNerfList = null;
|
||||
debuffList = null;
|
||||
fireWeaponList = null;
|
||||
iceWeaponList = null;
|
||||
natureWeaponList = null;
|
||||
alcoholList = null;
|
||||
spearAutoreuseList = null;
|
||||
pumpkinMoonBuffList = null;
|
||||
|
||||
@@ -12,6 +12,7 @@ using CalamityMod.Items.Dyes.HairDye;
|
||||
using CalamityMod.Localization;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
@@ -259,6 +260,8 @@ namespace CalamityMod
|
||||
AddEquipTexture(new FeatherCrownHair(), null, EquipType.Head, "FeatherCrownHead", "CalamityMod/Items/Accessories/FeatherCrown_Face");
|
||||
AddEquipTexture(new MoonstoneCrownHair(), null, EquipType.Head, "MoonstoneCrownHead", "CalamityMod/Items/Accessories/MoonstoneCrown_Face");
|
||||
|
||||
AddEquipTexture(null, EquipType.Legs, "CirrusDress_Legs", "CalamityMod/Items/Armor/CirrusDress_Legs");
|
||||
|
||||
AstralCactusTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/Tiles/AstralCactus");
|
||||
AstralCactusGlowTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/Tiles/AstralCactusGlow");
|
||||
AstralSky = ModContent.GetTexture("CalamityMod/ExtraTextures/AstralSky");
|
||||
@@ -893,10 +896,14 @@ namespace CalamityMod
|
||||
if (Main.gameMenu)
|
||||
BossRushEvent.StartTimer = 0;
|
||||
|
||||
if (BossRushEvent.BossRushActive || BossRushEvent.StartTimer > 0)
|
||||
float bossRushWhiteFade = BossRushEvent.StartTimer / (float)BossRushEvent.StartEffectTotalTime;
|
||||
if (BossRushSky.ShouldDrawRegularly)
|
||||
bossRushWhiteFade = 1f;
|
||||
|
||||
if (BossRushEvent.BossRushActive || BossRushEvent.StartTimer > 0 || BossRushSky.ShouldDrawRegularly)
|
||||
{
|
||||
backgroundColor = Color.Lerp(backgroundColor, Color.LightGray, BossRushEvent.StartTimer / (float)BossRushEvent.StartEffectTotalTime);
|
||||
tileColor = Color.Lerp(tileColor, Color.LightGray, BossRushEvent.StartTimer / (float)BossRushEvent.StartEffectTotalTime);
|
||||
backgroundColor = Color.Lerp(backgroundColor, Color.LightGray, bossRushWhiteFade);
|
||||
tileColor = Color.Lerp(tileColor, Color.LightGray, bossRushWhiteFade);
|
||||
}
|
||||
else if (SkyManager.Instance["CalamityMod:ExoMechs"].IsActive())
|
||||
{
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
matrix uWorldViewProjection;
|
||||
float shouldFlip;
|
||||
|
||||
struct VertexShaderInput
|
||||
{
|
||||
float4 Position : POSITION0;
|
||||
float4 Color : COLOR0;
|
||||
float2 TextureCoordinates : TEXCOORD0;
|
||||
};
|
||||
|
||||
struct VertexShaderOutput
|
||||
{
|
||||
float4 Position : SV_POSITION;
|
||||
float4 Color : COLOR0;
|
||||
float2 TextureCoordinates : TEXCOORD0;
|
||||
};
|
||||
|
||||
VertexShaderOutput VertexShaderFunction(in VertexShaderInput input)
|
||||
{
|
||||
VertexShaderOutput output = (VertexShaderOutput)0;
|
||||
float4 pos = mul(input.Position, uWorldViewProjection);
|
||||
output.Position = pos;
|
||||
|
||||
output.Color = input.Color;
|
||||
output.TextureCoordinates = input.TextureCoordinates;
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
float InverseLerp(float a, float b, float x)
|
||||
{
|
||||
return saturate((x - a) / (b - a));
|
||||
}
|
||||
|
||||
float4 PixelShaderFunction(VertexShaderOutput input) : COLOR0
|
||||
{
|
||||
float4 color = input.Color;
|
||||
float2 coords = input.TextureCoordinates;
|
||||
|
||||
// Read the fade map as a streak.
|
||||
float4 fadeMapColor = tex2D(uImage1, coords - float2(uTime * 0.6, 0));
|
||||
float opacity = fadeMapColor.r;
|
||||
float bloomOpacity = sin(coords.y * 3.141) * 1.4;
|
||||
return lerp(color * bloomOpacity, color * opacity, InverseLerp(0, 0.26, coords.x));
|
||||
}
|
||||
|
||||
technique Technique1
|
||||
{
|
||||
pass TrailPass
|
||||
{
|
||||
VertexShader = compile vs_2_0 VertexShaderFunction();
|
||||
PixelShader = compile ps_2_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
@@ -26,6 +26,7 @@ namespace CalamityMod.Effects
|
||||
public static Effect RancorMagicCircleShader;
|
||||
public static Effect BasicTintShader;
|
||||
public static Effect DoGDisintegrationShader;
|
||||
public static Effect ArtAttackTrailShader;
|
||||
|
||||
public static Effect BaseFusableParticleEdgeShader;
|
||||
public static Effect AdditiveFusableParticleEdgeShader;
|
||||
@@ -55,6 +56,7 @@ namespace CalamityMod.Effects
|
||||
RancorMagicCircleShader = CalamityMod.Instance.GetEffect("Effects/RancorMagicCircle");
|
||||
BasicTintShader = CalamityMod.Instance.GetEffect("Effects/BasicTint");
|
||||
DoGDisintegrationShader = CalamityMod.Instance.GetEffect("Effects/DoGDisintegration");
|
||||
ArtAttackTrailShader = CalamityMod.Instance.GetEffect("Effects/ArtAttackTrail");
|
||||
|
||||
BaseFusableParticleEdgeShader = CalamityMod.Instance.GetEffect("Effects/ParticleFusion/BaseFusableParticleEdgeShader");
|
||||
AdditiveFusableParticleEdgeShader = CalamityMod.Instance.GetEffect("Effects/ParticleFusion/AdditiveFusableParticleEdgeShader");
|
||||
@@ -82,6 +84,7 @@ namespace CalamityMod.Effects
|
||||
GameShaders.Misc["CalamityMod:RancorMagicCircle"] = new MiscShaderData(new Ref<Effect>(RancorMagicCircleShader), "ShieldPass");
|
||||
GameShaders.Misc["CalamityMod:BasicTint"] = new MiscShaderData(new Ref<Effect>(BasicTintShader), "TintPass");
|
||||
GameShaders.Misc["CalamityMod:DoGDisintegration"] = new MiscShaderData(new Ref<Effect>(DoGDisintegrationShader), "DisintegrationPass");
|
||||
GameShaders.Misc["CalamityMod:ArtAttack"] = new MiscShaderData(new Ref<Effect>(ArtAttackTrailShader), "TrailPass");
|
||||
|
||||
GameShaders.Misc["CalamityMod:BaseFusableParticleEdge"] = new MiscShaderData(new Ref<Effect>(BaseFusableParticleEdgeShader), "ParticlePass");
|
||||
GameShaders.Misc["CalamityMod:AdditiveFusableParticleEdge"] = new MiscShaderData(new Ref<Effect>(AdditiveFusableParticleEdgeShader), "ParticlePass");
|
||||
|
||||
@@ -9,14 +9,40 @@ namespace CalamityMod.Events
|
||||
{
|
||||
public class BossRushSky : CustomSky
|
||||
{
|
||||
public bool CurrentlyActive = false;
|
||||
public bool CurrentlyActive;
|
||||
public float Intensity = 0f;
|
||||
public static float IdleTimer = 0f;
|
||||
public static float CurrentInterest = 0f;
|
||||
public static float IncrementalInterest = 0f;
|
||||
public static float CurrentInterestMin = 0f;
|
||||
public static bool ShouldDrawRegularly;
|
||||
public static Color GeneralColor => Color.Lerp(Color.LightGray, Color.Black, BossRushEvent.WhiteDimness) * 0.2f;
|
||||
|
||||
public static bool DetermineDrawEligibility()
|
||||
{
|
||||
bool useEffect = (BossRushEvent.BossRushActive && BossRushEvent.StartTimer > 100) || ShouldDrawRegularly;
|
||||
|
||||
if (SkyManager.Instance["CalamityMod:BossRush"] != null && useEffect != SkyManager.Instance["CalamityMod:BossRush"].IsActive())
|
||||
{
|
||||
if (useEffect)
|
||||
SkyManager.Instance.Activate("CalamityMod:BossRush");
|
||||
|
||||
else
|
||||
{
|
||||
SkyManager.Instance.Deactivate("CalamityMod:BossRush", new object[0]);
|
||||
}
|
||||
}
|
||||
if (useEffect != Filters.Scene["CalamityMod:BossRush"].IsActive())
|
||||
{
|
||||
if (useEffect)
|
||||
Filters.Scene.Activate("CalamityMod:BossRush");
|
||||
else
|
||||
Filters.Scene["CalamityMod:BossRush"].Deactivate(new object[0]);
|
||||
}
|
||||
|
||||
return useEffect;
|
||||
}
|
||||
|
||||
public override void Update(GameTime gameTime)
|
||||
{
|
||||
if (CurrentlyActive)
|
||||
@@ -37,7 +63,10 @@ namespace CalamityMod.Events
|
||||
}
|
||||
|
||||
private float GetIntensity()
|
||||
{
|
||||
{
|
||||
if (ShouldDrawRegularly)
|
||||
return 1f;
|
||||
|
||||
float fadeRatio = BossRushEvent.StartTimer / (float)BossRushEvent.StartEffectTotalTime;
|
||||
return Utils.InverseLerp(0.57f, 1f, fadeRatio, true);
|
||||
}
|
||||
@@ -71,8 +100,8 @@ namespace CalamityMod.Events
|
||||
Main.spriteBatch.End();
|
||||
Main.spriteBatch.Begin();
|
||||
|
||||
// Draw the Xeroc eye at the back of the background.
|
||||
if (maxDepth >= float.MaxValue && minDepth < float.MaxValue && BossRushEvent.EndTimer < BossRushEvent.EndVisualEffectTime - 40f)
|
||||
// Draw the Xeroc eye at the back of the sky.
|
||||
if (maxDepth >= float.MaxValue && minDepth < float.MaxValue && (BossRushEvent.EndTimer < BossRushEvent.EndVisualEffectTime - 40f || ShouldDrawRegularly))
|
||||
{
|
||||
Vector2 screenCenter = Main.screenPosition + new Vector2(Main.screenWidth, Main.screenHeight) * 0.5f;
|
||||
float scale = MathHelper.Lerp(0.8f, 0.9f, IncrementalInterest) + (float)Math.Sin(IdleTimer) * 0.01f;
|
||||
@@ -94,6 +123,9 @@ namespace CalamityMod.Events
|
||||
spriteBatch.Draw(eyeTexture, drawPosition + drawOffset, null, fadedColor, 0f, eyeTexture.Size() * 0.5f, scale, SpriteEffects.None, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
if (ShouldDrawRegularly)
|
||||
ShouldDrawRegularly = false;
|
||||
}
|
||||
|
||||
public override float GetCloudAlpha() => 1f - GetIntensity();
|
||||
|
||||
|
Before Width: | Height: | Size: 280 B |
|
Before Width: | Height: | Size: 461 B After Width: | Height: | Size: 491 B |
|
Before Width: | Height: | Size: 428 B After Width: | Height: | Size: 492 B |
|
Before Width: | Height: | Size: 941 B After Width: | Height: | Size: 959 B |
|
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 557 B |
@@ -48,8 +48,6 @@ namespace CalamityMod.ILEditing
|
||||
IL.Terraria.Player.QuickMana += ApplyManaBurnIfNeeded;
|
||||
IL.Terraria.Player.ItemCheck += ApplyManaBurnIfNeeded;
|
||||
IL.Terraria.Player.AddBuff += AllowBuffTimeStackingForManaBurn;
|
||||
IL.Terraria.Main.DoDraw += DrawFusableParticles;
|
||||
IL.Terraria.Main.DoDraw += DrawAshParticles;
|
||||
On.Terraria.Main.DrawInterface += DrawGeneralParticles;
|
||||
On.Terraria.Main.SetDisplayMode += ResetRenderTargetSizes;
|
||||
IL.Terraria.Main.DrawTiles += DrawCustomLava;
|
||||
@@ -123,8 +121,6 @@ namespace CalamityMod.ILEditing
|
||||
IL.Terraria.Player.QuickMana -= ApplyManaBurnIfNeeded;
|
||||
IL.Terraria.Player.ItemCheck -= ApplyManaBurnIfNeeded;
|
||||
IL.Terraria.Player.AddBuff -= AllowBuffTimeStackingForManaBurn;
|
||||
IL.Terraria.Main.DoDraw -= DrawFusableParticles;
|
||||
IL.Terraria.Main.DoDraw -= DrawAshParticles;
|
||||
On.Terraria.Main.DrawInterface -= DrawGeneralParticles;
|
||||
On.Terraria.Main.SetDisplayMode -= ResetRenderTargetSizes;
|
||||
IL.Terraria.Main.DrawTiles -= DrawCustomLava;
|
||||
|
||||
@@ -492,58 +492,14 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
#endregion Fire Cursor Effect for the Calamity Accessory
|
||||
|
||||
#region Fusable Particle Rendering
|
||||
private static void DrawFusableParticles(ILContext il)
|
||||
{
|
||||
ILCursor cursor = new ILCursor(il);
|
||||
|
||||
// Over NPCs but before Projectiles.
|
||||
if (!cursor.TryGotoNext(c => c.MatchCallOrCallvirt<Main>("SortDrawCacheWorms")))
|
||||
{
|
||||
LogFailure("Fusable Particle Rendering", "Could not locate the SortDrawCacheWorms reference method to attach to.");
|
||||
return;
|
||||
}
|
||||
cursor.EmitDelegate<Action>(() => FusableParticleManager.RenderAllFusableParticles(FusableParticleRenderLayer.OverNPCsBeforeProjectiles));
|
||||
|
||||
// Over Players.
|
||||
if (!cursor.TryGotoNext(MoveType.After, c => c.MatchCallOrCallvirt<Main>("DrawPlayers")))
|
||||
{
|
||||
LogFailure("Fusable Particle Rendering", "Could not locate the DrawPlayers reference method to attach to.");
|
||||
return;
|
||||
}
|
||||
cursor.EmitDelegate<Action>(() => FusableParticleManager.RenderAllFusableParticles(FusableParticleRenderLayer.OverPlayers));
|
||||
|
||||
// Over Water.
|
||||
if (!cursor.TryGotoNext(c => c.MatchCallOrCallvirt<MoonlordDeathDrama>("DrawWhite")))
|
||||
{
|
||||
LogFailure("Fusable Particle Rendering", "Could not locate the DrawWhite reference method to attach to.");
|
||||
return;
|
||||
}
|
||||
cursor.EmitDelegate<Action>(() => FusableParticleManager.RenderAllFusableParticles(FusableParticleRenderLayer.OverWater));
|
||||
}
|
||||
#endregion Fusable Particle Rendering
|
||||
|
||||
#region Ash Particle Rendering
|
||||
private static void DrawAshParticles(ILContext il)
|
||||
{
|
||||
ILCursor cursor = new ILCursor(il);
|
||||
|
||||
// Over NPCs but before Projectiles.
|
||||
if (!cursor.TryGotoNext(c => c.MatchCallOrCallvirt<Main>("DrawDust")))
|
||||
{
|
||||
LogFailure("Ash Particle Rendering", "Could not locate the DrawDust reference method to attach to.");
|
||||
return;
|
||||
}
|
||||
cursor.EmitDelegate<Action>(DeathAshParticle.DrawAll);
|
||||
}
|
||||
#endregion Ash Particle Rendering
|
||||
|
||||
#region General Particle Rendering
|
||||
private static void DrawGeneralParticles(On.Terraria.Main.orig_DrawInterface orig, Main self, GameTime gameTime)
|
||||
{
|
||||
FusableParticleManager.RenderAllFusableParticles();
|
||||
Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, default, null, null, Main.GameViewMatrix.ZoomMatrix);
|
||||
GeneralParticleHandler.DrawAllParticles(Main.spriteBatch);
|
||||
Main.spriteBatch.End();
|
||||
DeathAshParticle.DrawAll();
|
||||
|
||||
orig(self, gameTime);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// This list should contain all vanilla NPCs present in Boss Rush which ARE NOT bosses and whose health is boosted over 32,767.
|
||||
private static readonly List<int> NeedsFourLifeBytes = new List<int>()
|
||||
private static List<int> NeedsFourLifeBytes => new List<int>()
|
||||
{
|
||||
// King Slime
|
||||
NPCID.BlueSlime,
|
||||
|
||||
@@ -23,7 +23,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.height = 44;
|
||||
item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Red;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.width = 34;
|
||||
item.height = 34;
|
||||
item.value = CalamityGlobalItem.Rarity4BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.LightRed;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace CalamityMod.Items.Accessories
|
||||
"Increased flight time\n" +
|
||||
"Greater mobility on ice\n" +
|
||||
"Water and lava walking\n" +
|
||||
"Immunity to the On Fire! debuff\n" +
|
||||
"Temporary immunity to lava");
|
||||
}
|
||||
|
||||
@@ -57,6 +58,7 @@ namespace CalamityMod.Items.Accessories
|
||||
player.waterWalk = true;
|
||||
player.fireWalk = true;
|
||||
player.lavaMax += 240;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -25,7 +25,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
item.rare = ItemRarityID.Pink;
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class ArcanumoftheVoid : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Arcanum of the Void");
|
||||
Tooltip.SetDefault("You reflect projectiles when they hit you\n" +
|
||||
"Reflected projectiles deal no damage to you\n" +
|
||||
"This reflect has a 90 second cooldown which is shared with all other dodges and reflects\n");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.accessory = true;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.expert = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.projRef = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 515 B |
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Asgardian Aegis");
|
||||
Tooltip.SetDefault("Grants immunity to fire blocks and knockback\n" +
|
||||
Tooltip.SetDefault("Grants immunity to knockback\n" +
|
||||
"Immune to most debuffs\n" +
|
||||
"+40 max life and increased life regeneration\n" +
|
||||
"Grants a supreme holy flame dash\n" +
|
||||
@@ -59,6 +59,7 @@ namespace CalamityMod.Items.Accessories
|
||||
player.fireWalk = true;
|
||||
player.statLifeMax2 += 40;
|
||||
player.lifeRegen++;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[BuffID.Chilled] = true;
|
||||
player.buffImmune[BuffID.Frostburn] = true;
|
||||
player.buffImmune[BuffID.Weak] = true;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Asgard's Valor");
|
||||
Tooltip.SetDefault("Grants immunity to fire blocks and knockback\n" +
|
||||
Tooltip.SetDefault("Grants immunity to knockback\n" +
|
||||
"Immune to most debuffs and reduces the damage caused by the Brimstone Flames debuff\n" +
|
||||
"+16 defense while submerged in liquid\n" +
|
||||
"+20 max life\n" +
|
||||
@@ -38,6 +38,7 @@ namespace CalamityMod.Items.Accessories
|
||||
player.noKnockback = true;
|
||||
player.fireWalk = true;
|
||||
modPlayer.abaddon = true;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[BuffID.Chilled] = true;
|
||||
player.buffImmune[BuffID.Frostburn] = true;
|
||||
player.buffImmune[BuffID.Weak] = true;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -12,11 +13,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Astral Arcanum");
|
||||
Tooltip.SetDefault("Taking damage drops astral stars from the sky\n" +
|
||||
"Provides immunity to the astral infection debuff\n" +
|
||||
"You reflect projectiles when they hit you\n" +
|
||||
"Reflected projectiles deal no damage to you\n" +
|
||||
"This reflect has a 90 second cooldown which is shared with all other dodges and reflects\n" +
|
||||
Tooltip.SetDefault("Provides immunity to the astral infection debuff\n" +
|
||||
"Boosts life regen even while under the effects of a damaging debuff\n" +
|
||||
"While under the effects of a damaging debuff you will gain 15 defense\n" +
|
||||
"TOOLTIP LINE HERE");
|
||||
@@ -29,7 +26,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.height = 26;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
@@ -49,8 +45,6 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.astralArcanum = true;
|
||||
modPlayer.aBulwark = true;
|
||||
modPlayer.projRef = true;
|
||||
player.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
|
||||
}
|
||||
|
||||
@@ -58,9 +52,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CelestialJewel>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralBulwark>());
|
||||
recipe.AddIngredient(ModContent.ItemType<ArcanumoftheVoid>());
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarkPlasma>(), 3);
|
||||
recipe.AddIngredient(ItemID.LunarBar, 5);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class AstralBulwark : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Astral Bulwark");
|
||||
Tooltip.SetDefault("Taking damage drops astral stars from the sky\n" +
|
||||
"Provides immunity to the astral infection debuff");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = CalamityGlobalItem.Rarity9BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Cyan;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.aBulwark = true;
|
||||
player.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1011 B |
@@ -27,7 +27,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.width = 42;
|
||||
item.height = 46;
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Red;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.width = 26;
|
||||
item.height = 42;
|
||||
item.value = CalamityGlobalItem.Rarity4BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.LightRed;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.width = 12;
|
||||
item.height = 15;
|
||||
item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Orange;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.height = 108;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
item.expert = true;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
item.rare = ItemRarityID.Lime;
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
}
|
||||
|
||||
public override bool CanEquipAccessory(Player player, int slot) => !player.Calamity().calamityRing;
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddRecipeGroup("AnyLargeGem");
|
||||
recipe.AddIngredient(ModContent.ItemType<CrownJewel>());
|
||||
recipe.AddIngredient(ItemID.TeleportationPotion, 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralJelly>(), 15);
|
||||
recipe.AddIngredient(ModContent.ItemType<SeaPrism>(), 15);
|
||||
|
||||
@@ -10,8 +10,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("lul");
|
||||
Tooltip.SetDefault("Instantly kills you...\n" +
|
||||
"Unless...?"); //This is mainly for the wiki, blank tooltips on accessories is bad.
|
||||
Tooltip.SetDefault("Grants complete invulnerability to almost everything");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -25,16 +24,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
bool canUse = player.name == "Fabsol" || player.name == "Totalbiscuit" || player.name == "TotalBiscuit" || player.name == "Total Biscuit" || player.name == "Total biscuit";
|
||||
if (canUse)
|
||||
{
|
||||
modPlayer.lol = true;
|
||||
}
|
||||
else if (!player.immune)
|
||||
{
|
||||
player.KillMe(PlayerDeathReason.ByCustomReason(player.name + " isn't worthy."), 1000.0, 0, false);
|
||||
}
|
||||
player.Calamity().lol = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,6 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = item.height = 48;
|
||||
item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Red;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -24,10 +24,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = CalamityGlobalItem.Rarity2BuyPrice;
|
||||
item.rare = ItemRarityID.Green;
|
||||
item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
item.rare = ItemRarityID.Orange;
|
||||
item.accessory = true;
|
||||
item.Calamity().challengeDrop = true;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
|
||||
@@ -22,7 +22,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
item.rare = ItemRarityID.Blue;
|
||||
item.accessory = true;
|
||||
item.Calamity().challengeDrop = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -22,7 +22,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.rare = ItemRarityID.Pink;
|
||||
item.defense = 8;
|
||||
item.accessory = true;
|
||||
item.Calamity().challengeDrop = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -19,8 +19,8 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.rare = ItemRarityID.Pink;
|
||||
item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
item.rare = ItemRarityID.Cyan;
|
||||
item.value = CalamityGlobalItem.Rarity9BuyPrice;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.width = 52;
|
||||
item.height = 68;
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Red;
|
||||
item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
item.Calamity().customRarity = CalamityRarity.Violet;
|
||||
|
||||
@@ -22,7 +22,6 @@ Ranged weapons have a chance to fire mini swarmers");
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
DisplayName.SetDefault("Elysian Aegis");
|
||||
Tooltip.SetDefault("Blessed by the Profaned Flame\n" +
|
||||
"Grants immunity to fire blocks, knockback, and Holy Flames\n" +
|
||||
"Grants immunity to knockback, and the Burning, On Fire!, and Holy Flames debuffs\n" +
|
||||
"+30 max life\n" +
|
||||
"Grants a supreme holy flame dash\n" +
|
||||
"Can be used to ram enemies\n" +
|
||||
@@ -52,6 +52,7 @@ namespace CalamityMod.Items.Accessories
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.dashMod = 3;
|
||||
modPlayer.elysianAegis = true;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[ModContent.BuffType<HolyFlames>()] = true;
|
||||
player.noKnockback = true;
|
||||
player.fireWalk = true;
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.RedandBlackDye);
|
||||
recipe.AddIngredient(ModContent.ItemType<CounterScarf>());
|
||||
recipe.AddIngredient(ItemID.SoulofNight, 5);
|
||||
recipe.AddIngredient(ItemID.SoulofLight, 5);
|
||||
recipe.AddIngredient(ItemID.Silk, 15);
|
||||
|
||||
@@ -26,7 +26,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
item.rare = ItemRarityID.Pink;
|
||||
item.accessory = true;
|
||||
item.Calamity().challengeDrop = true;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
|
||||
@@ -23,7 +23,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.width = 20;
|
||||
item.height = 26;
|
||||
item.value = CalamityGlobalItem.Rarity2BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Green;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Pink;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class GoldBurdenBreaker : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Burden Breaker");
|
||||
Tooltip.SetDefault("The good time\n" +
|
||||
"Go fast\n" +
|
||||
"WARNING: May have disastrous results\n" +
|
||||
"Increases horizontal movement speed beyond comprehension\n" +
|
||||
"Does not work while a boss is alive");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 28;
|
||||
item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
item.rare = ItemRarityID.Pink;
|
||||
item.accessory = true;
|
||||
item.Calamity().challengeDrop = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
if (CalamityPlayer.areThereAnyDamnBosses)
|
||||
{ return; }
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.dashMod = modPlayer.dashMod == 7 ? 0 : modPlayer.dashMod; //statis belt memes for projectile spam :feelsgreat:
|
||||
modPlayer.burdenBreakerYeet = true;
|
||||
// Completely remove movement restrictions if you're yeeting with the profaned spear
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<RelicOfDeliveranceSpear>()] <= 0)
|
||||
{
|
||||
if (player.velocity.X > 5f)
|
||||
{
|
||||
player.velocity.X *= 1.025f;
|
||||
if (player.velocity.X >= 500f)
|
||||
{
|
||||
player.velocity.X = 0f;
|
||||
}
|
||||
}
|
||||
else if (player.velocity.X < -5f)
|
||||
{
|
||||
player.velocity.X *= 1.025f;
|
||||
if (player.velocity.X <= -500f)
|
||||
{
|
||||
player.velocity.X = 0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.4 KiB |
@@ -20,7 +20,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.height = 22;
|
||||
item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Lime;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,13 +25,11 @@ namespace CalamityMod.Items.Accessories
|
||||
item.value = CalamityGlobalItem.Rarity9BuyPrice;
|
||||
item.rare = ItemRarityID.Cyan;
|
||||
item.accessory = true;
|
||||
item.Calamity().challengeDrop = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.aBulwark = true;
|
||||
player.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
|
||||
modPlayer.aBulwarkRare = true;
|
||||
player.buffImmune[BuffID.CursedInferno] = true;
|
||||
|
||||
@@ -24,7 +24,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.height = 22;
|
||||
item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Lime;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.value = CalamityGlobalItem.Rarity4BuyPrice;
|
||||
item.rare = ItemRarityID.LightRed;
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -23,7 +23,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.height = 26;
|
||||
item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
||||
item.rare = ItemRarityID.Red;
|
||||
item.expert = true;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.height = 14;
|
||||
item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Red;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
|
||||
"Debuffs affected: Darkness, Blackout, Confused, Slow, Weak, Broken Armor,\n" +
|
||||
"Armor Crunch, War Cleave, Chilled, Ichor and Obstructed\n" +
|
||||
"Getting hit causes you to only lose half of your max adrenaline rather than all of it\n" +
|
||||
"Boosts your defense by 5 and max movement speed and acceleration by 5%\n" +
|
||||
"Increases your max movement speed and acceleration by 5%\n" +
|
||||
"Can also be worn as a helmet\n" +
|
||||
"Revengeance item");
|
||||
}
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 82;
|
||||
item.height = 62;
|
||||
|
||||
item.defense = 5;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.DarkBlue;
|
||||
item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
@@ -36,7 +36,6 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.statDefense += 5;
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.laudanum = true;
|
||||
modPlayer.heartOfDarkness = true;
|
||||
|
||||
@@ -19,7 +19,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.value = CalamityGlobalItem.Rarity2BuyPrice;
|
||||
item.rare = ItemRarityID.Green;
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -13,8 +13,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Plague Hive");
|
||||
Tooltip.SetDefault("The power of bees and wasps will rival the Moon Lord himself\n" +
|
||||
"All attacks inflict the Plague debuff\n" +
|
||||
Tooltip.SetDefault("All attacks inflict the Plague debuff\n" +
|
||||
"Releases bees when damaged that inflict the Plague\n" +
|
||||
"Projectiles spawn plague seekers on enemy hits");
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Reaper Tooth Necklace");
|
||||
Tooltip.SetDefault("A grisly trophy from the ultimate predator\n" + "10% increased damage\n" + "Increases armor penetration by 15");
|
||||
Tooltip.SetDefault("A grisly trophy from the ultimate predator\n" + "15% increased damage\n" + "Increases armor penetration by 15");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.allDamage += 0.1f;
|
||||
player.allDamage += 0.15f;
|
||||
player.armorPenetration += 15;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.rare = ItemRarityID.Lime;
|
||||
item.defense = 10;
|
||||
item.accessory = true;
|
||||
item.Calamity().challengeDrop = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -21,7 +21,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.width = 34;
|
||||
item.height = 34;
|
||||
item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Orange;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -21,11 +21,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 32;
|
||||
item.height = 78;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.accessory = true;
|
||||
item.Calamity().challengeDrop = true;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -26,7 +26,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.expert = true;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.width = 34;
|
||||
item.height = 34;
|
||||
item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Cyan;
|
||||
item.accessory = true;
|
||||
}
|
||||
@@ -61,7 +60,7 @@ namespace CalamityMod.Items.Accessories
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemType<AmalgamatedBrain>());
|
||||
recipe.AddIngredient(ItemType<UnholyCore>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<MolluskHusk>(), 10);
|
||||
recipe.AddIngredient(ItemType<MolluskHusk>(), 10);
|
||||
recipe.AddIngredient(ItemType<SulfuricScale>(), 15);
|
||||
recipe.AddIngredient(ItemType<PlagueCellCluster>(), 15);
|
||||
recipe.AddIngredient(ItemType<CosmiliteBar>(), 5);
|
||||
|
||||
@@ -10,8 +10,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("The Bee");
|
||||
Tooltip.SetDefault("Causes stars to fall and releases bees when injured\n" +
|
||||
"When at full HP, your damage is increased based on your damage reduction\n" +
|
||||
Tooltip.SetDefault("When at full HP, your damage is increased based on your damage reduction\n" +
|
||||
"Damage taken at full HP is halved\n" +
|
||||
"This has a 10 second cooldown");
|
||||
}
|
||||
@@ -23,7 +22,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
item.rare = ItemRarityID.Orange;
|
||||
item.accessory = true;
|
||||
item.Calamity().challengeDrop = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -33,7 +33,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.height = 26;
|
||||
item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
item.rare = ItemRarityID.Lime;
|
||||
item.expert = true;
|
||||
item.accessory = true;
|
||||
item.defense = 10;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.rare = ItemRarityID.Lime;
|
||||
item.accessory = true;
|
||||
item.Calamity().customRarity = CalamityRarity.Rainbow;
|
||||
item.Calamity().challengeDrop = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -27,7 +27,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.accessory = true;
|
||||
item.Calamity().challengeDrop = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -22,10 +22,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 42;
|
||||
item.height = 56;
|
||||
item.value = CalamityGlobalItem.Rarity2BuyPrice;
|
||||
item.rare = ItemRarityID.Green;
|
||||
item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
item.rare = ItemRarityID.Pink;
|
||||
item.accessory = true;
|
||||
item.Calamity().challengeDrop = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -22,7 +22,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.width = 28;
|
||||
item.height = 32;
|
||||
item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Yellow;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Yellow;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -25,6 +26,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"50% increased running acceleration\n" +
|
||||
"Greater mobility on ice\n" +
|
||||
"Water and lava walking\n" +
|
||||
"Immunity to the On Fire! debuff\n" +
|
||||
"Temporary immunity to lava\n" +
|
||||
"Being hit for over 200 damage will make you immune for an extended period of time");
|
||||
}
|
||||
@@ -78,6 +80,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
player.waterWalk = true;
|
||||
player.fireWalk = true;
|
||||
player.lavaMax += 240;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.wingTimeMax = 250;
|
||||
player.noFallDmg = true;
|
||||
modPlayer.IBoots = !hideVisual;
|
||||
|
||||
@@ -5,6 +5,7 @@ using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -25,6 +26,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"36% increased running acceleration\n" +
|
||||
"Greater mobility on ice\n" +
|
||||
"Water and lava walking\n" +
|
||||
"Immunity to the On Fire! debuff\n" +
|
||||
"Temporary immunity to lava");
|
||||
}
|
||||
|
||||
@@ -77,6 +79,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
player.waterWalk = true;
|
||||
player.fireWalk = true;
|
||||
player.lavaMax += 240;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.wingTimeMax = 180;
|
||||
player.noFallDmg = true;
|
||||
modPlayer.IBoots = !hideVisual;
|
||||
|
||||
@@ -25,6 +25,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"24% increased running acceleration\n" +
|
||||
"Greater mobility on ice\n" +
|
||||
"Water and lava walking\n" +
|
||||
"Immunity to the On Fire! debuff\n" +
|
||||
"Temporary immunity to lava");
|
||||
}
|
||||
|
||||
@@ -77,6 +78,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
player.waterWalk = true;
|
||||
player.fireWalk = true;
|
||||
player.lavaMax += 240;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.wingTimeMax = 140;
|
||||
player.noFallDmg = true;
|
||||
modPlayer.IBoots = !hideVisual;
|
||||
|
||||
@@ -32,7 +32,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Pink;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
@@ -27,7 +26,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.height = 22;
|
||||
item.value = CalamityGlobalItem.Rarity15BuyPrice;
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Red;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor
|
||||
{
|
||||
[AutoloadEquip(EquipType.Body, EquipType.Legs)]
|
||||
[AutoloadEquip(EquipType.Body)]
|
||||
public class CirrusDress : ModItem
|
||||
{
|
||||
/* How to obtain
|
||||
@@ -37,5 +37,17 @@ namespace CalamityMod.Items.Armor
|
||||
player.magicDamage += 0.05f;
|
||||
player.magicCrit += 5;
|
||||
}
|
||||
|
||||
public override void SetMatch(bool male, ref int equipSlot, ref bool robes)
|
||||
{
|
||||
robes = true;
|
||||
// The equipSlot is added in CalamityMod.cs --> Load hook
|
||||
equipSlot = mod.GetEquipSlot("CirrusDress_Legs", EquipType.Legs);
|
||||
}
|
||||
|
||||
public override void DrawHands(ref bool drawHands, ref bool drawArms)
|
||||
{
|
||||
drawHands = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.Items.Armor
|
||||
"All projectiles spawn healing leaf orbs on enemy hits\n" +
|
||||
"Max run speed and acceleration boosted by 5%\n" +
|
||||
"If you are reduced to 1 HP you will not die from any further damage for 8 seconds\n" +
|
||||
"This effect only triggers once per life\n" +
|
||||
"This effect has a 5 minute cooldown. The cooldown does not decrement if any bosses or events are active.\n" +
|
||||
"Summons an ancient leaf prism to blast your enemies with life energy";
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Armor
|
||||
player.setBonus = "All projectiles spawn healing leaf orbs on enemy hits\n" +
|
||||
"Max run speed and acceleration boosted by 5%\n" +
|
||||
"If you are reduced to 1 HP you will not die from any further damage for 8 seconds\n" +
|
||||
"This effect only triggers once per life\n" +
|
||||
"This effect has a 5 minute cooldown. The cooldown does not decrement if any bosses or events are active.\n" +
|
||||
"Magic projectiles which cannot pierce will occasionally set off potent blasts of nature energy";
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
DisplayName.SetDefault("Titan Heart Mask");
|
||||
Tooltip.SetDefault("5% increased rogue damage and knockback\n" +
|
||||
"Rogue weapons spread the astral infection");
|
||||
"Rogue weapons inflict the Astral Infection debuff");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -80,7 +80,6 @@ namespace CalamityMod.Items
|
||||
public int reforgeTier = 0;
|
||||
public bool donorItem = false;
|
||||
public bool devItem = false;
|
||||
public bool challengeDrop = false;
|
||||
public bool canFirePointBlankShots = false;
|
||||
public bool trueMelee = false;
|
||||
|
||||
@@ -130,10 +129,6 @@ namespace CalamityMod.Items
|
||||
if (item.type == ItemID.StarCannon)
|
||||
item.UseSound = null;
|
||||
|
||||
// Fix Suspicious Looking Tentacle not being marked as Expert
|
||||
if (item.type == ItemID.SuspiciousLookingTentacle)
|
||||
item.expert = true;
|
||||
|
||||
// Fix Bones being attracted to the player when you have open ammo slots
|
||||
if (item.type == ItemID.Bone)
|
||||
item.notAmmo = true;
|
||||
@@ -142,6 +137,27 @@ namespace CalamityMod.Items
|
||||
if (item.type == ItemID.PearlwoodBow || item.type == ItemID.PearlwoodHammer || item.type == ItemID.PearlwoodSword)
|
||||
item.rare = ItemRarityID.LightRed;
|
||||
|
||||
// Make most expert items no longer expert because they drop in all modes now.
|
||||
switch (item.type)
|
||||
{
|
||||
case ItemID.RoyalGel:
|
||||
case ItemID.EoCShield:
|
||||
case ItemID.WormScarf:
|
||||
case ItemID.BrainOfConfusion:
|
||||
case ItemID.HiveBackpack:
|
||||
case ItemID.BoneGlove:
|
||||
case ItemID.MechanicalBatteryPiece:
|
||||
case ItemID.MechanicalWagonPiece:
|
||||
case ItemID.MechanicalWheelPiece:
|
||||
case ItemID.SporeSac:
|
||||
case ItemID.ShinyStone:
|
||||
case ItemID.ShrimpyTruffle:
|
||||
case ItemID.GravityGlobe:
|
||||
case ItemID.SuspiciousLookingTentacle:
|
||||
item.expert = false;
|
||||
break;
|
||||
}
|
||||
|
||||
SetDefaults_ApplyTweaks(item);
|
||||
|
||||
// TODO -- these properties should be some sort of dictionary.
|
||||
@@ -1047,7 +1063,7 @@ namespace CalamityMod.Items
|
||||
player.buffImmune[BuffID.Frostburn] = true;
|
||||
player.buffImmune[ModContent.BuffType<GlacialState>()] = true;
|
||||
string coldImmunity = CalamityWorld.death ? "\nProvides cold protection in Death Mode" : "";
|
||||
player.setBonus = "All ice-themed weapons receive a 10% damage bonus\n" +
|
||||
player.setBonus = "All ice-themed damage over time debuffs receive a 50% damage bonus\n" +
|
||||
"Cold enemies will deal reduced contact damage to the player\n" +
|
||||
"Provides immunity to the Frostburn and Glacial State debuffs" + coldImmunity;
|
||||
}
|
||||
@@ -1235,7 +1251,11 @@ namespace CalamityMod.Items
|
||||
}
|
||||
}
|
||||
|
||||
if (item.type == ItemID.FrogLeg)
|
||||
// Obsidian Skull and its upgrades make you immune to On Fire!
|
||||
if (item.type == ItemID.ObsidianSkull || item.type == ItemID.ObsidianHorseshoe || item.type == ItemID.ObsidianShield || item.type == ItemID.AnkhShield || item.type == ItemID.ObsidianWaterWalkingBoots || item.type == ItemID.LavaWaders)
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
|
||||
if (item.type == ItemID.FrogLeg)
|
||||
player.jumpSpeedBoost -= 1.2f;
|
||||
|
||||
if (item.type == ItemID.FireGauntlet)
|
||||
|
||||
@@ -3,6 +3,8 @@ using CalamityMod.Items.DifficultyItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.PermanentBoosters;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
@@ -43,8 +45,13 @@ namespace CalamityMod.Items
|
||||
|
||||
switch (itemID)
|
||||
{
|
||||
case ItemID.KingSlimeBossBag:
|
||||
DropHelper.DropItemChance(player, ModContent.ItemType<CrownJewel>(), DropHelper.BagWeaponDropRateFloat);
|
||||
break;
|
||||
|
||||
case ItemID.EyeOfCthulhuBossBag:
|
||||
DropHelper.DropItemChance(player, ModContent.ItemType<DeathstareRod>(), DropHelper.BagWeaponDropRateFloat);
|
||||
DropHelper.DropItemChance(player, ModContent.ItemType<TeardropCleaver>(), DropHelper.BagWeaponDropRateFloat);
|
||||
break;
|
||||
|
||||
case ItemID.QueenBeeBossBag:
|
||||
@@ -54,6 +61,7 @@ namespace CalamityMod.Items
|
||||
ItemID.BeeKeeper,
|
||||
ItemID.BeesKnees,
|
||||
ItemID.BeeGun,
|
||||
ModContent.ItemType<TheBee>()
|
||||
};
|
||||
DropHelper.DropEntireSet(player, DropHelper.BagWeaponDropRateFloat, queenBeeWeapons);
|
||||
DropHelper.BlockDrops(queenBeeWeapons);
|
||||
@@ -72,6 +80,7 @@ namespace CalamityMod.Items
|
||||
ItemID.LaserRifle,
|
||||
ModContent.ItemType<BlackHawkRemote>(),
|
||||
ModContent.ItemType<BlastBarrel>(),
|
||||
ModContent.ItemType<Carnage>()
|
||||
};
|
||||
DropHelper.DropEntireSet(player, DropHelper.BagWeaponDropRateFloat, wofWeapons);
|
||||
DropHelper.BlockDrops(wofWeapons);
|
||||
@@ -87,17 +96,29 @@ namespace CalamityMod.Items
|
||||
};
|
||||
DropHelper.DropEntireSet(player, 0.25f, emblems);
|
||||
DropHelper.BlockDrops(emblems);
|
||||
|
||||
DropHelper.DropItemFromSetChance(player, 0.2f, ItemID.CorruptionKey, ItemID.CrimsonKey);
|
||||
DropHelper.DropItemCondition(player, ModContent.ItemType<MLGRune>(), !CalamityWorld.demonMode); // Demon Trophy
|
||||
break;
|
||||
|
||||
case ItemID.DestroyerBossBag:
|
||||
// Only drop hallowed bars after all mechs are down.
|
||||
if ((!NPC.downedMechBoss1 || !NPC.downedMechBoss2 || !NPC.downedMechBoss3) && CalamityConfig.Instance.EarlyHardmodeProgressionRework)
|
||||
DropHelper.BlockDrops(ItemID.HallowedBar);
|
||||
|
||||
DropHelper.DropItemChance(player, ModContent.ItemType<SHPC>(), DropHelper.BagWeaponDropRateFloat);
|
||||
break;
|
||||
|
||||
case ItemID.TwinsBossBag:
|
||||
// Only drop hallowed bars after all mechs are down.
|
||||
if ((!NPC.downedMechBoss1 || !NPC.downedMechBoss2 || !NPC.downedMechBoss3) && CalamityConfig.Instance.EarlyHardmodeProgressionRework)
|
||||
DropHelper.BlockDrops(ItemID.HallowedBar);
|
||||
|
||||
DropHelper.DropItemChance(player, ModContent.ItemType<Arbalest>(), DropHelper.BagWeaponDropRateFloat);
|
||||
break;
|
||||
|
||||
case ItemID.SkeletronPrimeBossBag:
|
||||
// Only drop hallowed bars after all mechs are down.
|
||||
if ((!NPC.downedMechBoss1 || !NPC.downedMechBoss2 || !NPC.downedMechBoss3) && CalamityConfig.Instance.EarlyHardmodeProgressionRework)
|
||||
DropHelper.BlockDrops(ItemID.HallowedBar);
|
||||
|
||||
break;
|
||||
|
||||
case ItemID.PlanteraBossBag:
|
||||
@@ -110,16 +131,14 @@ namespace CalamityMod.Items
|
||||
ItemID.VenusMagnum,
|
||||
ItemID.LeafBlower,
|
||||
ItemID.NettleBurst,
|
||||
ItemID.WaspGun
|
||||
ItemID.WaspGun,
|
||||
ModContent.ItemType<BlossomFlux>(),
|
||||
ModContent.ItemType<BloomStone>()
|
||||
};
|
||||
DropHelper.DropEntireSet(player, DropHelper.BagWeaponDropRateFloat, planteraWeapons);
|
||||
DropHelper.BlockDrops(planteraWeapons);
|
||||
|
||||
// Equipment
|
||||
DropHelper.DropItemChance(player, ModContent.ItemType<BloomStone>(), 5);
|
||||
|
||||
DropHelper.DropItem(player, ModContent.ItemType<LivingShard>(), 16, 22);
|
||||
DropHelper.DropItemChance(player, ItemID.JungleKey, 5);
|
||||
break;
|
||||
|
||||
case ItemID.GolemBossBag:
|
||||
@@ -133,6 +152,7 @@ namespace CalamityMod.Items
|
||||
ItemID.StaffofEarth,
|
||||
ItemID.EyeoftheGolem,
|
||||
ItemID.SunStone,
|
||||
ModContent.ItemType<AegisBlade>()
|
||||
};
|
||||
DropHelper.DropEntireSet(player, DropHelper.BagWeaponDropRateFloat, golemItems);
|
||||
DropHelper.BlockDrops(golemItems);
|
||||
@@ -166,7 +186,9 @@ namespace CalamityMod.Items
|
||||
ItemID.BubbleGun,
|
||||
ItemID.RazorbladeTyphoon,
|
||||
ItemID.TempestStaff,
|
||||
ItemID.FishronWings,
|
||||
ModContent.ItemType<DukesDecapitator>(),
|
||||
ModContent.ItemType<BrinyBaron>()
|
||||
};
|
||||
DropHelper.DropEntireSet(player, DropHelper.BagWeaponDropRateFloat, dukeWeapons);
|
||||
DropHelper.BlockDrops(dukeWeapons);
|
||||
|
||||
@@ -50,9 +50,6 @@ namespace CalamityMod.Items
|
||||
tooltips.Add(line);
|
||||
}
|
||||
|
||||
// If an item has special tags (specifically Ice, Fire, and Nature), show that in the tooltip.
|
||||
ElementTooltip(item, tooltips);
|
||||
|
||||
// If an item has an enchantment, show its prefix in the first tooltip line and append its description to the
|
||||
// tooltip list.
|
||||
EnchantmentTooltips(item, tooltips);
|
||||
@@ -82,11 +79,6 @@ namespace CalamityMod.Items
|
||||
TooltipLine line = new TooltipLine(mod, "CalamityDev", CalamityUtils.ColorMessage("- Developer Item -", CalamityUtils.HotPinkRarityColor));
|
||||
tooltips.Add(line);
|
||||
}
|
||||
|
||||
// Adds "Challenge Drop" or "Legendary Challenge Drop" to Malice Mode drops.
|
||||
// For Legendary Challenge Drops, this tooltip matches their unique rarity color.
|
||||
if (challengeDrop)
|
||||
ChallengeDropTooltip(item, tooltips);
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -203,43 +195,6 @@ namespace CalamityMod.Items
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Challenge Drop Tooltip
|
||||
private void ChallengeDropTooltip(Item item, IList<TooltipLine> tooltips)
|
||||
{
|
||||
Color? legendaryColor = null;
|
||||
if (item.type == ModContent.ItemType<AegisBlade>() || item.type == ModContent.ItemType<YharimsCrystal>())
|
||||
legendaryColor = new Color(255, Main.DiscoG, 53);
|
||||
if (item.type == ModContent.ItemType<BlossomFlux>() || item.type == ModContent.ItemType<Malachite>())
|
||||
legendaryColor = new Color(Main.DiscoR, 203, 103);
|
||||
if (item.type == ModContent.ItemType<BrinyBaron>() || item.type == ModContent.ItemType<ColdDivinity>())
|
||||
legendaryColor = new Color(53, Main.DiscoG, 255);
|
||||
if (item.type == ModContent.ItemType<CosmicDischarge>())
|
||||
legendaryColor = new Color(150, Main.DiscoG, 255);
|
||||
if (item.type == ModContent.ItemType<SeasSearing>())
|
||||
legendaryColor = new Color(60, Main.DiscoG, 190);
|
||||
if (item.type == ModContent.ItemType<SHPC>())
|
||||
legendaryColor = new Color(255, Main.DiscoG, 155);
|
||||
if (item.type == ModContent.ItemType<Vesuvius>() || item.type == ModContent.ItemType<GoldBurdenBreaker>())
|
||||
legendaryColor = new Color(255, Main.DiscoG, 0);
|
||||
if (item.type == ModContent.ItemType<PristineFury>())
|
||||
legendaryColor = CalamityUtils.ColorSwap(new Color(255, 168, 53), new Color(255, 249, 0), 2f);
|
||||
if (item.type == ModContent.ItemType<LeonidProgenitor>())
|
||||
legendaryColor = CalamityUtils.ColorSwap(LeonidProgenitor.blueColor, LeonidProgenitor.purpleColor, 3f);
|
||||
if (item.type == ModContent.ItemType<TheCommunity>())
|
||||
legendaryColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB);
|
||||
if (item.type == ModContent.ItemType<GaelsGreatsword>())
|
||||
legendaryColor = new Color(146, 0, 0);
|
||||
|
||||
Color lineColor = legendaryColor.GetValueOrDefault(CalamityUtils.ChallengeDropColor);
|
||||
string text = legendaryColor.HasValue ? "- Legendary Challenge Drop -" : "- Challenge Drop -";
|
||||
TooltipLine line = new TooltipLine(mod, "CalamityChallengeDrop", text)
|
||||
{
|
||||
overrideColor = lineColor
|
||||
};
|
||||
tooltips.Add(line);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Enchantment Tooltips
|
||||
private void EnchantmentTooltips(Item item, IList<TooltipLine> tooltips)
|
||||
{
|
||||
@@ -370,6 +325,34 @@ namespace CalamityMod.Items
|
||||
EditTooltipByNum(0, (line) => line.text = "Shoots splitting arrows");
|
||||
#endregion
|
||||
|
||||
// For boss summon item clarity
|
||||
#region Boss Summon Tooltip Edits
|
||||
|
||||
if (item.type == ItemID.Abeemination)
|
||||
EditTooltipByNum(0, (line) => line.text += " when used in the jungle");
|
||||
|
||||
if (item.type == ItemID.BloodySpine)
|
||||
EditTooltipByNum(0, (line) => line.text += " when used in the crimson");
|
||||
|
||||
if (item.type == ItemID.ClothierVoodooDoll)
|
||||
EditTooltipByNum(0, (line) => line.text += "\nWhile equipped, summons Skeletron when the Clothier is killed during nighttime");
|
||||
|
||||
if (item.type == ItemID.GuideVoodooDoll)
|
||||
EditTooltipByNum(0, (line) => line.text += "\nSummons the Wall of Flesh if thrown into lava in the underworld while the Guide is alive");
|
||||
|
||||
if (item.type == ItemID.LihzahrdPowerCell)
|
||||
EditTooltipByNum(0, (line) => line.text += " to summon the Golem");
|
||||
|
||||
if (item.type == ItemID.MechanicalEye || item.type == ItemID.MechanicalSkull || item.type == ItemID.MechanicalWorm || item.type == ItemID.SuspiciousLookingEye)
|
||||
EditTooltipByNum(0, (line) => line.text += " when used during nighttime");
|
||||
|
||||
if (item.type == ItemID.TruffleWorm)
|
||||
EditTooltipByName("Consumable", (line) => line.text += "\nSummons Duke Fishron if used as bait in the ocean");
|
||||
|
||||
if (item.type == ItemID.WormFood)
|
||||
EditTooltipByNum(0, (line) => line.text += " when used in the corruption");
|
||||
#endregion
|
||||
|
||||
// Black Belt and Master Ninja Gear have guaranteed dodges on a 90 second cooldown.
|
||||
#region Dodging Belt Tooltips
|
||||
string beltDodgeLine = "Grants the ability to dodge attacks\n" +
|
||||
@@ -596,8 +579,15 @@ namespace CalamityMod.Items
|
||||
EditTooltipByNum(1, (line) => line.text = line.text.Replace("10%", "14%") + extraLine);
|
||||
}
|
||||
|
||||
// Spectre Hood's lifesteal is heavily nerfed, so it only reduces magic damage by 20% instead of 40%
|
||||
if (item.type == ItemID.SpectreHood)
|
||||
// On Fire! debuff immunities
|
||||
if (item.type == ItemID.ObsidianSkull || item.type == ItemID.AnkhShield)
|
||||
EditTooltipByNum(0, (line) => line.text = line.text.Replace("fire blocks", "the Burning and On Fire! debuffs"));
|
||||
|
||||
if (item.type == ItemID.ObsidianHorseshoe || item.type == ItemID.ObsidianShield || item.type == ItemID.ObsidianWaterWalkingBoots || item.type == ItemID.LavaWaders)
|
||||
EditTooltipByNum(1, (line) => line.text = line.text.Replace("fire blocks", "the Burning and On Fire! debuffs"));
|
||||
|
||||
// Spectre Hood's lifesteal is heavily nerfed, so it only reduces magic damage by 20% instead of 40%
|
||||
if (item.type == ItemID.SpectreHood)
|
||||
EditTooltipByNum(0, (line) => line.text = line.text.Replace("40%", "20%"));
|
||||
|
||||
// Yoyo Glove/Bag apply a 0.66x damage multiplier on yoyos
|
||||
@@ -1039,38 +1029,6 @@ namespace CalamityMod.Items
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Element Tooltip
|
||||
private void ElementTooltip(Item item, IList<TooltipLine> tooltips)
|
||||
{
|
||||
if (CalamityLists.fireWeaponList.Contains(item.type))
|
||||
{
|
||||
TooltipLine fireTooltip = new TooltipLine(mod, "FireWeapon", "- Fire Weapon -")
|
||||
{
|
||||
overrideColor = new Color(255, 165, 0)
|
||||
};
|
||||
tooltips.Add(fireTooltip);
|
||||
}
|
||||
|
||||
if (CalamityLists.iceWeaponList.Contains(item.type))
|
||||
{
|
||||
TooltipLine iceTooltip = new TooltipLine(mod, "IceWeapon", "- Ice Weapon -")
|
||||
{
|
||||
overrideColor = new Color(94, 230, 255)
|
||||
};
|
||||
tooltips.Add(iceTooltip);
|
||||
}
|
||||
|
||||
if (CalamityLists.natureWeaponList.Contains(item.type))
|
||||
{
|
||||
TooltipLine natureTooltip = new TooltipLine(mod, "NatureWeapon", "- Nature Weapon -")
|
||||
{
|
||||
overrideColor = new Color(46, 165, 0)
|
||||
};
|
||||
tooltips.Add(natureTooltip);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Enchanted Rarity Text Drawing
|
||||
public override bool PreDrawTooltipLine(Item item, DrawableTooltipLine line, ref int yOffset)
|
||||
{
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.DifficultyItems
|
||||
{
|
||||
public class Armageddon : ModItem
|
||||
{
|
||||
private static readonly Color textColor = Color.Fuchsia;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Armageddon");
|
||||
Tooltip.SetDefault("Enables/disables Armageddon, can be used in any difficulty mode\n" +
|
||||
"While active, any hit while a boss is alive will instantly kill you\n" +
|
||||
"If you defeat a boss for the first time with this mode active, they will drop 5 extra treasure bags\n" +
|
||||
"These extra bags will drop even if you are not in Expert Mode\n" +
|
||||
"Right click with this item to toggle whether your dodges are disabled\n" +
|
||||
"Dodges can be disabled independently of whether or not Armageddon is not enabled");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.width = 28;
|
||||
item.height = 28;
|
||||
item.useAnimation = 45;
|
||||
item.useTime = 45;
|
||||
item.useStyle = ItemUseStyleID.HoldingUp;
|
||||
item.UseSound = SoundID.Item123;
|
||||
item.consumable = false;
|
||||
}
|
||||
|
||||
public override bool AltFunctionUse(Player player) => true;
|
||||
|
||||
public override bool UseItem(Player player)
|
||||
{
|
||||
// Dodge toggling code is per-player and doesn't need any fancy netcode hedging.
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
// You still aren't allowed to toggle it during fights though.
|
||||
if (CalamityPlayer.areThereAnyDamnBosses || CalamityWorld.DoGSecondStageCountdown > 0 || BossRushEvent.BossRushActive)
|
||||
{
|
||||
string key = "Mods.CalamityMod.ChangingTheRules";
|
||||
CalamityUtils.DisplayLocalizedText(key, textColor);
|
||||
return true;
|
||||
}
|
||||
|
||||
CalamityPlayer mp = player.Calamity();
|
||||
mp.disableAllDodges = !mp.disableAllDodges;
|
||||
string dodgeKey = mp.disableAllDodges ? "Mods.CalamityMod.ArmageddonDodgeDisable" : "Mods.CalamityMod.ArmageddonDodgeEnable";
|
||||
CalamityUtils.DisplayLocalizedText(dodgeKey, textColor);
|
||||
return true;
|
||||
}
|
||||
|
||||
// This world syncing code should only be run by one entity- the server, to prevent a race condition
|
||||
// with the packets.
|
||||
if (Main.netMode == NetmodeID.MultiplayerClient)
|
||||
return true;
|
||||
|
||||
if (CalamityPlayer.areThereAnyDamnBosses || CalamityWorld.DoGSecondStageCountdown > 0 || BossRushEvent.BossRushActive)
|
||||
{
|
||||
string key = "Mods.CalamityMod.ChangingTheRules";
|
||||
CalamityUtils.DisplayLocalizedText(key, textColor);
|
||||
return true;
|
||||
}
|
||||
CalamityWorld.armageddon = !CalamityWorld.armageddon;
|
||||
CalamityWorld.DoGSecondStageCountdown = 0;
|
||||
|
||||
string toggleKey = CalamityWorld.armageddon ? "Mods.CalamityMod.ArmageddonText" : "Mods.CalamityMod.ArmageddonText2";
|
||||
CalamityUtils.DisplayLocalizedText(toggleKey, textColor);
|
||||
|
||||
CalamityNetcode.SyncWorld();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddTile(TileID.DemonAltar);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 762 B |
@@ -1,42 +0,0 @@
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.DifficultyItems
|
||||
{
|
||||
public class DefiledRune : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Defiled Feather");
|
||||
Tooltip.SetDefault("It's a long way down from a mountain...\n" +
|
||||
"Favorite this item to disable wings but increase the effectiveness of double jumps.");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(7, 8));
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 40;
|
||||
item.height = 50;
|
||||
item.rare = ItemRarityID.Green;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player) => false;
|
||||
|
||||
public override void UpdateInventory(Player player)
|
||||
{
|
||||
if (item.favorited)
|
||||
player.Calamity().noWings = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.Feather);
|
||||
recipe.AddTile(TileID.DemonAltar);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 4.2 KiB |
@@ -1,70 +0,0 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.DifficultyItems
|
||||
{
|
||||
public class IronHeart : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Iron Heart");
|
||||
Tooltip.SetDefault("Healing with potions and all positive life regen is disabled.\n" +
|
||||
"Enemy damage scales with your max health.\n" +
|
||||
"Can be toggled on and off.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 28;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Cyan;
|
||||
item.useAnimation = 45;
|
||||
item.useTime = 45;
|
||||
item.useStyle = ItemUseStyleID.HoldingUp;
|
||||
item.UseSound = SoundID.Item119;
|
||||
item.consumable = false;
|
||||
}
|
||||
|
||||
public override bool UseItem(Player player)
|
||||
{
|
||||
// This world syncing code should only be run by one entity- the server, to prevent a race condition
|
||||
// with the packets.
|
||||
if (Main.netMode == NetmodeID.MultiplayerClient)
|
||||
return true;
|
||||
|
||||
if (CalamityPlayer.areThereAnyDamnBosses || CalamityWorld.DoGSecondStageCountdown > 0 || BossRushEvent.BossRushActive)
|
||||
{
|
||||
string key = "Mods.CalamityMod.ChangingTheRules";
|
||||
Color messageColor = Color.LightSkyBlue;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
return true;
|
||||
}
|
||||
if (!CalamityWorld.ironHeart)
|
||||
{
|
||||
CalamityWorld.ironHeart = true;
|
||||
string key = "Mods.CalamityMod.IronHeartText";
|
||||
Color messageColor = Color.LightSkyBlue;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
}
|
||||
else
|
||||
{
|
||||
CalamityWorld.ironHeart = false;
|
||||
string key = "Mods.CalamityMod.IronHeartText2";
|
||||
Color messageColor = Color.LightSkyBlue;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
}
|
||||
CalamityWorld.DoGSecondStageCountdown = 0;
|
||||
CalamityNetcode.SyncWorld();
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 953 B |
@@ -1,46 +0,0 @@
|
||||
using CalamityMod.World;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.DifficultyItems
|
||||
{
|
||||
public class MLGRune : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Demon Trophy");
|
||||
Tooltip.SetDefault("Boosts spawn rate by 1.25x\n" +
|
||||
"Effects cannot be reversed");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = item.height = 54;
|
||||
item.maxStack = 99;
|
||||
item.rare = ItemRarityID.Blue;
|
||||
item.useAnimation = 45;
|
||||
item.useTime = 45;
|
||||
item.useStyle = ItemUseStyleID.HoldingUp;
|
||||
item.UseSound = SoundID.Item119;
|
||||
item.consumable = true;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
return !CalamityWorld.demonMode;
|
||||
}
|
||||
|
||||
public override bool UseItem(Player player)
|
||||
{
|
||||
// This world syncing code should only be run by one entity- the server, to prevent a race condition
|
||||
// with the packets.
|
||||
if (Main.netMode == NetmodeID.MultiplayerClient)
|
||||
return true;
|
||||
|
||||
CalamityWorld.demonMode = true;
|
||||
CalamityNetcode.SyncWorld();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.6 KiB |