Merge branch 'master' of https://github.com/CalamityTeam/CalamityMod
No files matched your search
|
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;
|
||||
@@ -783,7 +784,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;
|
||||
@@ -2444,7 +2447,7 @@ namespace CalamityMod.CalPlayer
|
||||
silvaMage = false;
|
||||
silvaSummon = false;
|
||||
hasSilvaEffect = false;
|
||||
silvaCountdown = 480;
|
||||
silvaCountdown = silvaReviveDuration;
|
||||
auricSet = false;
|
||||
GemTechSet = false;
|
||||
omegaBlueChestplate = false;
|
||||
@@ -2582,10 +2585,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>;
|
||||
@@ -2663,15 +2663,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())
|
||||
{
|
||||
@@ -2840,7 +2832,6 @@ namespace CalamityMod.CalPlayer
|
||||
if (!mediumcoreDeath)
|
||||
{
|
||||
items.Add(createItem(ModContent.ItemType<StarterBag>()));
|
||||
items.Add(createItem(ModContent.ItemType<Revenge>()));
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -4485,11 +4476,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)
|
||||
{
|
||||
@@ -5751,6 +5742,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5766,7 +5768,7 @@ 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;
|
||||
}
|
||||
@@ -6788,10 +6790,6 @@ namespace CalamityMod.CalPlayer
|
||||
player.yoraiz0rEye = 0;
|
||||
}
|
||||
|
||||
private void RemoveWingTime()
|
||||
{
|
||||
player.wingTimeMax = 0;
|
||||
}
|
||||
private void DisableDashes()
|
||||
{
|
||||
// Set the player to have no registered dashes.
|
||||
|
||||
@@ -6,7 +6,7 @@ using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
|
||||
@@ -1322,6 +1322,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)
|
||||
@@ -1352,7 +1354,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++)
|
||||
{
|
||||
@@ -1367,6 +1373,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)
|
||||
|
||||
@@ -1324,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)
|
||||
{
|
||||
@@ -1468,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;
|
||||
|
||||
@@ -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())
|
||||
{
|
||||
|
||||
@@ -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: 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 |
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -1251,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)
|
||||
|
||||
@@ -551,8 +551,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
|
||||
|
||||
|
Before Width: | Height: | Size: 408 B After Width: | Height: | Size: 422 B |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 373 B After Width: | Height: | Size: 476 B |
|
Before Width: | Height: | Size: 355 B After Width: | Height: | Size: 447 B |
|
Before Width: | Height: | Size: 471 B After Width: | Height: | Size: 552 B |
|
Before Width: | Height: | Size: 375 B After Width: | Height: | Size: 413 B |
|
Before Width: | Height: | Size: 404 B After Width: | Height: | Size: 556 B |
|
Before Width: | Height: | Size: 388 B After Width: | Height: | Size: 568 B |
@@ -22,8 +22,8 @@ namespace CalamityMod.Items.Potions
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 18;
|
||||
item.width = 50;
|
||||
item.height = 44;
|
||||
item.useTurn = true;
|
||||
item.maxStack = 30;
|
||||
item.rare = ItemRarityID.Orange;
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
recipe.AddIngredient(ModContent.ItemType<SulphurousSand>(), 20);
|
||||
recipe.AddIngredient(ItemID.Starfish, 10);
|
||||
recipe.AddIngredient(ItemID.SharkFin, 5);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
@@ -54,7 +54,8 @@ namespace CalamityMod.Items.TreasureBags
|
||||
// Malice item
|
||||
DropHelper.DropItem(player, ModContent.ItemType<Malice>());
|
||||
|
||||
// Difficulty items (Death doesn't drop in Normal)
|
||||
// Difficulty items (Revengeance and Death don't drop in Normal)
|
||||
DropHelper.DropItemCondition(player, ModContent.ItemType<Revenge>(), Main.expertMode);
|
||||
DropHelper.DropItemCondition(player, ModContent.ItemType<Death>(), Main.expertMode);
|
||||
|
||||
// The Lad
|
||||
|
||||
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
@@ -21,8 +21,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.damage = 160;
|
||||
item.mana = 40;
|
||||
item.magic = true;
|
||||
item.width = 48;
|
||||
item.height = 22;
|
||||
item.width = 72;
|
||||
item.height = 20;
|
||||
item.useTime = item.useAnimation = 8;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 687 B After Width: | Height: | Size: 512 B |
|
Before Width: | Height: | Size: 932 B After Width: | Height: | Size: 881 B |
@@ -34,7 +34,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
item.Calamity().donorItem = true;
|
||||
}
|
||||
|
||||
public override void MeleeEffects(Player player, Rectangle hitbox)
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -20,8 +20,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
item.damage = 89;
|
||||
item.melee = true;
|
||||
item.width = 60;
|
||||
item.height = 64;
|
||||
item.width = 80;
|
||||
item.height = 92;
|
||||
item.useTime = 21;
|
||||
item.useAnimation = 21;
|
||||
item.useTurn = true;
|
||||
@@ -35,6 +35,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.shootSpeed = 18f;
|
||||
}
|
||||
|
||||
public override void UseStyle(Player player)
|
||||
{
|
||||
player.itemLocation += new Vector2(-4f * player.direction, 2f * player.gravDir).RotatedBy(player.itemRotation);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
|
||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 828 B After Width: | Height: | Size: 836 B |
@@ -1,5 +1,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -51,9 +53,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<TrueBiomeBlade>());
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralBar>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 3);
|
||||
recipe.AddIngredient(ItemID.LunarBar, 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<ExodiumClusterOre>(), 5);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 18;
|
||||
item.width = 44;
|
||||
item.damage = 400;
|
||||
item.melee = true;
|
||||
item.noMelee = true;
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 3f;
|
||||
item.UseSound = SoundID.Item39;
|
||||
item.autoReuse = true;
|
||||
item.height = 20;
|
||||
item.height = 62;
|
||||
|
||||
item.value = CalamityGlobalItem.Rarity16BuyPrice;
|
||||
item.Calamity().customRarity = CalamityRarity.HotPink;
|
||||
|
||||
|
Before Width: | Height: | Size: 503 B After Width: | Height: | Size: 1.6 KiB |
@@ -21,8 +21,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
item.damage = 3240;
|
||||
item.ranged = true;
|
||||
item.width = 76;
|
||||
item.height = 30;
|
||||
item.width = 140;
|
||||
item.height = 36;
|
||||
item.useTime = 60;
|
||||
item.useAnimation = 60;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
|
||||
|
Before Width: | Height: | Size: 960 B After Width: | Height: | Size: 1.4 KiB |
@@ -11,7 +11,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fetid Emesis");
|
||||
Tooltip.SetDefault("Has a chance to release rotten chunks instead of bullets");
|
||||
Tooltip.SetDefault("40% chance to not consume ammo\n" +
|
||||
"Has a chance to release rotten chunks instead of bullets");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -35,6 +36,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.Calamity().canFirePointBlankShots = true;
|
||||
}
|
||||
|
||||
public override bool ConsumeAmmo(Player player) => Main.rand.Next(100) > 40;
|
||||
|
||||
public override Vector2? HoldoutOffset() => new Vector2(-5, 0);
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.3 KiB |
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
item.damage = 90;
|
||||
item.ranged = true;
|
||||
item.width = 36;
|
||||
item.width = 40;
|
||||
item.height = 20;
|
||||
item.useTime = 25;
|
||||
item.useAnimation = 25;
|
||||
|
||||
|
Before Width: | Height: | Size: 471 B After Width: | Height: | Size: 659 B |
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Alpha Virus");
|
||||
Tooltip.SetDefault("Throws a giant plague cell with a lethal aura that splits into 6 plague seekers in death\n" +
|
||||
Tooltip.SetDefault("Throws a giant plague cell with a lethal aura that splits into 6 plague seekers on death\n" +
|
||||
"Stealth strikes cause the plague cell to move slower, accumulating an aura of swirling plague seekers as it flies");
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 40;
|
||||
item.width = 32;
|
||||
item.damage = 14;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.knockBack = 1f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 36;
|
||||
item.height = 26;
|
||||
item.maxStack = 1;
|
||||
item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
item.rare = ItemRarityID.Blue;
|
||||
|
||||
|
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 334 B |
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 40;
|
||||
item.width = 32;
|
||||
item.damage = 14;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.knockBack = 1f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 36;
|
||||
item.height = 26;
|
||||
item.maxStack = 1;
|
||||
item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
item.rare = ItemRarityID.Blue;
|
||||
|
||||
|
Before Width: | Height: | Size: 365 B After Width: | Height: | Size: 339 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.3 KiB |
@@ -10,31 +10,32 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
public class SearedPan : RogueWeapon
|
||||
{
|
||||
// Attacks must be within 48 frames of each other to count as "consecutive" hits
|
||||
// Attacks must be within 40 frames of each other to count as "consecutive" hits
|
||||
// This is a little less than double the use time
|
||||
public static int ConsecutiveHitOpening = 48;
|
||||
public static int ConsecutiveHitOpening = 40;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Seared Pan");
|
||||
Tooltip.SetDefault("dAMaGe iS rAthEr cOnSisTeNT\n" +
|
||||
"Fires a frying pan at high velocity\n" +
|
||||
"Enemy hits summon fireballs that linger around the target\n" +
|
||||
"Landing three consecutive hits grants full stealth\n" +
|
||||
"Stealth strikes explode into golden sparks, and after hitting an enemy,\n" +
|
||||
"they cause all fireballs to aggressively home in on their target");
|
||||
"Landing three consecutive hits grants will launch a golden pan\n" +
|
||||
"Golden pans cause all fireballs to aggressively home in on their target\n" +
|
||||
"Stealth strikes act similar to golden pans but also explode into golden sparks\n" +
|
||||
"Stealth strikes also summon additional fireballs on hit");
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 60;
|
||||
item.height = 36;
|
||||
item.damage = 666;
|
||||
item.damage = 777;
|
||||
item.Calamity().rogue = true;
|
||||
item.knockBack = 10f;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useTime = item.useAnimation = 28;
|
||||
item.useTime = item.useAnimation = 25;
|
||||
item.reuseDelay = 1;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
@@ -47,11 +48,23 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
int pan = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
if (player.Calamity().StealthStrikeAvailable() && pan.WithinBounds(Main.maxProjectiles))
|
||||
float mode = 1f;
|
||||
if (player.Calamity().searedPanCounter >= 3)
|
||||
{
|
||||
player.Calamity().searedPanCounter = 0;
|
||||
mode = 2f;
|
||||
}
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
player.Calamity().searedPanCounter = 0;
|
||||
mode = 3f;
|
||||
}
|
||||
int pan = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, mode);
|
||||
if (mode > 1f && pan.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[pan].Calamity().stealthStrike = true;
|
||||
Main.projectile[pan].extraUpdates++;
|
||||
if (mode == 3f)
|
||||
Main.projectile[pan].Calamity().stealthStrike = true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
item.damage = 5;
|
||||
item.mana = 10;
|
||||
item.width = 40;
|
||||
item.height = 40;
|
||||
item.height = 42;
|
||||
item.useTime = item.useAnimation = 35;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.noMelee = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 801 B After Width: | Height: | Size: 972 B |
@@ -21,8 +21,8 @@ Fire rate and range increase the longer it targets an enemy");
|
||||
item.mana = 10;
|
||||
item.summon = true;
|
||||
item.sentry = true;
|
||||
item.width = 40;
|
||||
item.height = 40;
|
||||
item.width = 82;
|
||||
item.height = 84;
|
||||
item.useTime = item.useAnimation = 25;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.noMelee = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 900 B After Width: | Height: | Size: 761 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -1466,6 +1466,12 @@ namespace CalamityMod
|
||||
public static bool SetBossHealthBarVisible(bool visible) => Main.LocalPlayer.Calamity().drawBossHPBar = visible;
|
||||
#endregion
|
||||
|
||||
#region Dodge Disabling
|
||||
public static bool AreDodgesDisabled() => Main.LocalPlayer.Calamity().disableAllDodges;
|
||||
|
||||
public static bool DisableAllDodges(bool disable) => Main.LocalPlayer.Calamity().disableAllDodges = disable;
|
||||
#endregion
|
||||
|
||||
#region Item Rarity
|
||||
public static int GetCalamityRarity(Item item)
|
||||
{
|
||||
@@ -1802,6 +1808,18 @@ namespace CalamityMod
|
||||
return new ArgumentNullException("ERROR: Must specify a bool.");
|
||||
return SetBossHealthBarVisible(bossBarEnabled);
|
||||
|
||||
case "NoDodges":
|
||||
case "DodgesDisabled":
|
||||
case "GetDodgesDisabled":
|
||||
return AreDodgesDisabled();
|
||||
|
||||
case "DisableDodges":
|
||||
case "DisableAllDodges":
|
||||
case "SetDodgesDisabled":
|
||||
if (args.Length < 2 || !(args[1] is bool disableDodges))
|
||||
return new ArgumentNullException("ERROR: Must specify a bool.");
|
||||
return DisableAllDodges(disableDodges);
|
||||
|
||||
case "GetRarity":
|
||||
case "GetItemRarity":
|
||||
case "GetCalamityRarity":
|
||||
|
||||
@@ -29,8 +29,8 @@ using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.Items.Weapons.Typeless;
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
@@ -617,7 +617,7 @@ namespace CalamityMod
|
||||
List<int> collection = new List<int>() { };
|
||||
string instructions = $"While in the Abyss, use an item that inflicts Chaos State";
|
||||
string despawn = CalamityUtils.ColorMessage("...", new Color(0x7F, 0xFF, 0xD4));
|
||||
string bossLogTex = "CalamityMod/NPCs/Abyss/AdultEidolonWyrm_BossChecklist";
|
||||
string bossLogTex = "CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrm_BossChecklist";
|
||||
AddBoss(bossChecklist, calamity, "Adult Eidolon Wyrm", order, type, DownedAdultEidolonWyrm, summon, loot, collection, instructions, despawn, bossLogTex);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -503,8 +503,9 @@ namespace CalamityMod.NPCs.Abyss
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<Voidstone>(), 30, 40);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<SoulEdge>(), CalamityWorld.downedPolterghast, 3, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<EidolicWail>(), CalamityWorld.downedPolterghast, 3, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas, 1, 6, 8);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas && Main.expertMode, 2, 2, 3);
|
||||
int minLumenyl = Main.expertMode ? 8 : 6;
|
||||
int maxLumenyl = Main.expertMode ? 11 : 8;
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas, 1f, minLumenyl, maxLumenyl);
|
||||
DropHelper.DropItemCondition(npc, ItemID.Ectoplasm, NPC.downedPlantBoss, 1, 8, 12);
|
||||
}
|
||||
|
||||
|
||||
@@ -339,8 +339,9 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas, 0.5f, 2, 3);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas && Main.expertMode, 0.5f);
|
||||
int minLumenyl = Main.expertMode ? 3 : 2;
|
||||
int maxLumenyl = Main.expertMode ? 4 : 3;
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas, 0.5f, minLumenyl, maxLumenyl);
|
||||
int minCells = Main.expertMode ? 8 : 6;
|
||||
int maxCells = Main.expertMode ? 11 : 8;
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas, 0.5f, minCells, maxCells);
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.Abyss
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
public class AEWScreenShaderData : ScreenShaderData
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using Terraria;
|
||||
using Terraria.Graphics.Effects;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.Abyss
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
public class AEWSky : CustomSky
|
||||
{
|
||||
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -7,13 +7,13 @@ using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.Abyss
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
public class EidolonWyrmBodyAltHuge : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Eidolon Wyrm");
|
||||
DisplayName.SetDefault("Adult Eidolon Wyrm");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -183,10 +183,10 @@ namespace CalamityMod.NPCs.Abyss
|
||||
Vector2 center = new Vector2(npc.Center.X, npc.Center.Y);
|
||||
Vector2 vector11 = new Vector2(Main.npcTexture[npc.type].Width / 2, Main.npcTexture[npc.type].Height / 2);
|
||||
Vector2 vector = center - Main.screenPosition;
|
||||
vector -= new Vector2(ModContent.GetTexture("CalamityMod/NPCs/Abyss/EidolonWyrmBodyAltGlowHuge").Width, ModContent.GetTexture("CalamityMod/NPCs/Abyss/EidolonWyrmBodyAltGlowHuge").Height) * 0.5f;
|
||||
vector -= new Vector2(ModContent.GetTexture("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltGlowHuge").Width, ModContent.GetTexture("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltGlowHuge").Height) * 0.5f;
|
||||
vector += vector11 * 1f + new Vector2(0f, 4f + npc.gfxOffY);
|
||||
Color color = new Color(127, 127, 127, 0).MultiplyRGBA(Color.LightYellow) * npc.Opacity;
|
||||
Main.spriteBatch.Draw(ModContent.GetTexture("CalamityMod/NPCs/Abyss/EidolonWyrmBodyAltGlowHuge"), vector,
|
||||
Main.spriteBatch.Draw(ModContent.GetTexture("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltGlowHuge"), vector,
|
||||
new Microsoft.Xna.Framework.Rectangle?(npc.frame), color, npc.rotation, vector11, 1f, spriteEffects, 0f);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
@@ -7,13 +7,13 @@ using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.Abyss
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
public class EidolonWyrmBodyHuge : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Eidolon Wyrm");
|
||||
DisplayName.SetDefault("Adult Eidolon Wyrm");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -183,10 +183,10 @@ namespace CalamityMod.NPCs.Abyss
|
||||
Vector2 center = new Vector2(npc.Center.X, npc.Center.Y);
|
||||
Vector2 vector11 = new Vector2(Main.npcTexture[npc.type].Width / 2, Main.npcTexture[npc.type].Height / 2);
|
||||
Vector2 vector = center - Main.screenPosition;
|
||||
vector -= new Vector2(ModContent.GetTexture("CalamityMod/NPCs/Abyss/EidolonWyrmBodyGlowHuge").Width, ModContent.GetTexture("CalamityMod/NPCs/Abyss/EidolonWyrmBodyGlowHuge").Height) * 0.5f;
|
||||
vector -= new Vector2(ModContent.GetTexture("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmBodyGlowHuge").Width, ModContent.GetTexture("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmBodyGlowHuge").Height) * 0.5f;
|
||||
vector += vector11 * 1f + new Vector2(0f, 4f + npc.gfxOffY);
|
||||
Color color = new Color(127, 127, 127, 0).MultiplyRGBA(Color.LightYellow) * npc.Opacity;
|
||||
Main.spriteBatch.Draw(ModContent.GetTexture("CalamityMod/NPCs/Abyss/EidolonWyrmBodyGlowHuge"), vector,
|
||||
Main.spriteBatch.Draw(ModContent.GetTexture("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmBodyGlowHuge"), vector,
|
||||
new Microsoft.Xna.Framework.Rectangle?(npc.frame), color, npc.rotation, vector11, 1f, spriteEffects, 0f);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
@@ -6,6 +6,7 @@ using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -16,7 +17,7 @@ using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.Abyss
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class EidolonWyrmHeadHuge : ModNPC
|
||||
@@ -72,7 +73,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Eidolon Wyrm");
|
||||
DisplayName.SetDefault("Adult Eidolon Wyrm");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -1339,10 +1340,10 @@ namespace CalamityMod.NPCs.Abyss
|
||||
Vector2 center = npc.Center;
|
||||
Vector2 vector11 = new Vector2(Main.npcTexture[npc.type].Width / 2, Main.npcTexture[npc.type].Height / 2);
|
||||
Vector2 vector = center - Main.screenPosition;
|
||||
vector -= new Vector2(ModContent.GetTexture("CalamityMod/NPCs/Abyss/EidolonWyrmHeadGlowHuge").Width, ModContent.GetTexture("CalamityMod/NPCs/Abyss/EidolonWyrmHeadGlowHuge").Height) * 0.5f;
|
||||
vector -= new Vector2(ModContent.GetTexture("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmHeadGlowHuge").Width, ModContent.GetTexture("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmHeadGlowHuge").Height) * 0.5f;
|
||||
vector += vector11 * 1f + new Vector2(0f, 4f + npc.gfxOffY);
|
||||
Color color = new Color(127, 127, 127, 0).MultiplyRGBA(Color.LightYellow) * npc.Opacity;
|
||||
Main.spriteBatch.Draw(ModContent.GetTexture("CalamityMod/NPCs/Abyss/EidolonWyrmHeadGlowHuge"), vector,
|
||||
Main.spriteBatch.Draw(ModContent.GetTexture("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmHeadGlowHuge"), vector,
|
||||
new Microsoft.Xna.Framework.Rectangle?(npc.frame), color, npc.rotation, vector11, 1f, spriteEffects, 0f);
|
||||
}
|
||||
|
||||
@@ -1360,8 +1361,9 @@ namespace CalamityMod.NPCs.Abyss
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<SoulEdge>());
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<HalibutCannon>());
|
||||
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas, 1, 50, 108);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas && Main.expertMode, 2, 15, 27);
|
||||
int minLumenyl = Main.expertMode ? 65 : 50;
|
||||
int maxLumenyl = Main.expertMode ? 135 : 108;
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas, 1f, minLumenyl, maxLumenyl);
|
||||
DropHelper.DropItemCondition(npc, ItemID.Ectoplasm, NPC.downedPlantBoss, 1, 21, 32);
|
||||
|
||||
// Mark Adult Eidolon Wyrm as defeated
|
||||
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 630 B After Width: | Height: | Size: 630 B |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
@@ -6,13 +6,13 @@ using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.Abyss
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
public class EidolonWyrmTailHuge : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Eidolon Wyrm");
|
||||
DisplayName.SetDefault("Adult Eidolon Wyrm");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -148,10 +148,10 @@ namespace CalamityMod.NPCs.Abyss
|
||||
Vector2 center = new Vector2(npc.Center.X, npc.Center.Y);
|
||||
Vector2 vector11 = new Vector2(Main.npcTexture[npc.type].Width / 2, Main.npcTexture[npc.type].Height / 2);
|
||||
Vector2 vector = center - Main.screenPosition;
|
||||
vector -= new Vector2(ModContent.GetTexture("CalamityMod/NPCs/Abyss/EidolonWyrmTailGlowHuge").Width, ModContent.GetTexture("CalamityMod/NPCs/Abyss/EidolonWyrmTailGlowHuge").Height) * 0.5f;
|
||||
vector -= new Vector2(ModContent.GetTexture("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmTailGlowHuge").Width, ModContent.GetTexture("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmTailGlowHuge").Height) * 0.5f;
|
||||
vector += vector11 * 1f + new Vector2(0f, 4f + npc.gfxOffY);
|
||||
Color color = new Color(127, 127, 127, 0).MultiplyRGBA(Color.LightYellow) * npc.Opacity;
|
||||
Main.spriteBatch.Draw(ModContent.GetTexture("CalamityMod/NPCs/Abyss/EidolonWyrmTailGlowHuge"), vector,
|
||||
Main.spriteBatch.Draw(ModContent.GetTexture("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmTailGlowHuge"), vector,
|
||||
new Microsoft.Xna.Framework.Rectangle?(npc.frame), color, npc.rotation, vector11, 1f, spriteEffects, 0f);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
@@ -214,11 +214,11 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void NPCLoot()
|
||||
public override bool PreNPCLoot()
|
||||
{
|
||||
// Unsplit Deus does not drop anything when killed/despawned.
|
||||
if (npc.Calamity().newAI[0] == 0f)
|
||||
return;
|
||||
if (npc.Calamity().newAI[0] == 0f)
|
||||
return false;
|
||||
|
||||
// Killing ANY split Deus makes all other Deus heads die immediately.
|
||||
for (int i = 0; i < Main.maxNPCs; ++i)
|
||||
@@ -233,6 +233,14 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
otherWormHead.netUpdate = true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
// Unsplit Deus does not drop anything when killed/despawned.
|
||||
if (npc.Calamity().newAI[0] == 0f)
|
||||
return;
|
||||
|
||||
CalamityGlobalNPC.SetNewBossJustDowned(npc);
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Tools;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
|
||||
@@ -334,8 +334,9 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
DropHelper.DropItem(npc, ItemID.BlueLunaticRobe);
|
||||
}
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<EidolonTablet>(), !NPC.LunarApocalypseIsUp, 0.25f);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas, 1f, 8, 10);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas && Main.expertMode, 0.5f, 2, 4);
|
||||
int minLumenyl = Main.expertMode ? 10 : 8;
|
||||
int maxLumenyl = Main.expertMode ? 14 : 10;
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas, 1f, minLumenyl, maxLumenyl);
|
||||
DropHelper.DropItemCondition(npc, ItemID.Ectoplasm, NPC.downedPlantBoss, 1f, 3, 5);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
if (spawnInfo.playerSafe || spawnInfo.player.Calamity().ZoneSulphur)
|
||||
return 0f;
|
||||
|
||||
return SpawnCondition.OverworldDaySlime.Chance * (Main.hardMode ? 0.025f : 0.1f) * pylonMult;
|
||||
return SpawnCondition.OverworldDaySlime.Chance * (Main.hardMode ? 0.010f : 0.1f) * pylonMult;
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||