.
This commit is contained in:
commit
ca03704094
32 files changed
+84
-277
No files matched your search
@@ -4391,7 +4391,6 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
#endregion
|
||||
|
||||
// Currently not used due to god slayer and silva armor changes
|
||||
#region Use Time Mult
|
||||
public override float UseTimeMultiplier(Item item)
|
||||
{
|
||||
|
||||
@@ -537,6 +537,10 @@ namespace CalamityMod.CalPlayer
|
||||
(modPlayer.cShard ? 50 : 0) +
|
||||
(modPlayer.starBeamRye ? 50 : 0);
|
||||
|
||||
// Shield of Cthulhu immunity frame nerf, nerfed from 10 to 6
|
||||
if (player.eocDash > 6 && player.dashDelay > 0)
|
||||
player.eocDash = 6;
|
||||
|
||||
// Life Steal nerf
|
||||
// Reduces normal mode life steal recovery rate from 0.6/s to 0.5/s
|
||||
// Reduces expert mode life steal recovery rate from 0.5/s to 0.35/s
|
||||
|
||||
@@ -114,6 +114,16 @@ namespace CalamityMod
|
||||
|
||||
[Header("General Gameplay Changes")]
|
||||
|
||||
[Label("Early Hardmode Progression Rework")]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(true)]
|
||||
[Tooltip("Demon Altars no longer spawn ores and crimson/corruption blocks when broken.\n" +
|
||||
"Wall of Flesh spawns Cobalt and Palladium ore on first kill.\n" +
|
||||
"The first mech boss you fight has 20% less HP and damage and spawns Mythril and Orichalcum ore on first kill.\n" +
|
||||
"The second mech boss you fight has 10% less HP and damage and spawns Adamantite and Titanium ore on first kill.\n" +
|
||||
"The third mech boss spawns Hallowed Ore on first kill")]
|
||||
public bool EarlyHardmodeProgressionRework { get; set; }
|
||||
|
||||
[Label("Lethal Lava")]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(true)]
|
||||
|
||||
+17
-7
@@ -36,10 +36,10 @@ namespace CalamityMod.ILEditing
|
||||
private static int aLabDoorOpen = -1;
|
||||
private static int aLabDoorClosed = -1;
|
||||
|
||||
/// <summary>
|
||||
/// Loads all IL Editing changes in the mod.
|
||||
/// </summary>
|
||||
internal static void Load()
|
||||
/// <summary>
|
||||
/// Loads all IL Editing changes in the mod.
|
||||
/// </summary>
|
||||
internal static void Load()
|
||||
{
|
||||
// Wrap the vanilla town NPC spawning function in a delegate so that it can be tossed around and called at will.
|
||||
var updateTime = typeof(Main).GetMethod("UpdateTime_SpawnTownNPCs", BindingFlags.Static | BindingFlags.NonPublic);
|
||||
@@ -58,6 +58,7 @@ namespace CalamityMod.ILEditing
|
||||
BlockLivingTreesNearOcean();
|
||||
LabDoorFixes();
|
||||
AlterTownNPCSpawnRate();
|
||||
DisableDemonAltarGeneration();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -202,10 +203,19 @@ namespace CalamityMod.ILEditing
|
||||
Main.worldRate = oldWorldRate;
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region IL Editing Injected/Hooked Functions
|
||||
private static void BossRushLifeBytes(On.Terraria.Main.orig_InitLifeBytes orig)
|
||||
private static void DisableDemonAltarGeneration()
|
||||
{
|
||||
IL.Terraria.WorldGen.SmashAltar += (il) =>
|
||||
{
|
||||
var cursor = new ILCursor(il);
|
||||
cursor.Emit(OpCodes.Ret);
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region IL Editing Injected/Hooked Functions
|
||||
private static void BossRushLifeBytes(On.Terraria.Main.orig_InitLifeBytes orig)
|
||||
{
|
||||
orig();
|
||||
foreach (int npcType in NeedsFourLifeBytes)
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace CalamityMod.Items.Accessories
|
||||
recipe.AddIngredient(ModContent.ItemType<RadiantOoze>());
|
||||
recipe.AddIngredient(ModContent.ItemType<HoneyDew>());
|
||||
recipe.AddIngredient(ModContent.ItemType<Stardust>(), 15);
|
||||
recipe.AddIngredient(ModContent.ItemType<CryoBar>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<VerstaltiteBar>(), 5);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
@@ -71,7 +71,7 @@ namespace CalamityMod.Items.Accessories
|
||||
recipe.AddIngredient(ModContent.ItemType<RadiantOoze>());
|
||||
recipe.AddIngredient(ModContent.ItemType<HoneyDew>());
|
||||
recipe.AddIngredient(ModContent.ItemType<Stardust>(), 15);
|
||||
recipe.AddIngredient(ModContent.ItemType<CryoBar>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<VerstaltiteBar>(), 5);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Ammo
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CryoBar>());
|
||||
recipe.AddIngredient(ModContent.ItemType<VerstaltiteBar>());
|
||||
recipe.AddTile(TileID.IceMachine);
|
||||
recipe.SetResult(this, 250);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Ammo
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.MusketBall, 150);
|
||||
recipe.AddIngredient(ModContent.ItemType<CryoBar>());
|
||||
recipe.AddIngredient(ModContent.ItemType<VerstaltiteBar>());
|
||||
recipe.AddTile(TileID.IceMachine);
|
||||
recipe.SetResult(this, 150);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
using CalamityMod.Tiles;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Materials
|
||||
{
|
||||
public class CryoBar : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Frigid Bar");
|
||||
Tooltip.SetDefault("Cold to the touch");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.createTile = ModContent.TileType<FrigidBar>();
|
||||
item.width = 30;
|
||||
item.height = 24;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.buyPrice(0, 3, 0, 0);
|
||||
item.rare = ItemRarityID.Pink;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 553 B |
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -51,9 +52,11 @@ namespace CalamityMod.Items.Tools.ClimateChange
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<Daylight>());
|
||||
recipe.AddIngredient(ModContent.ItemType<Moonlight>());
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.AddIngredient(ItemID.SoulofLight, 7);
|
||||
recipe.AddIngredient(ItemID.SoulofNight, 7);
|
||||
recipe.AddIngredient(ItemID.HellstoneBar, 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<VerstaltiteBar>(), 5);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Tools.ClimateChange
|
||||
{
|
||||
public class Daylight : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Daylight");
|
||||
Tooltip.SetDefault("Summons the sun");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 20;
|
||||
item.height = 20;
|
||||
item.rare = ItemRarityID.Pink;
|
||||
item.useAnimation = 20;
|
||||
item.useTime = 20;
|
||||
item.useStyle = ItemUseStyleID.HoldingUp;
|
||||
item.UseSound = SoundID.Item60;
|
||||
item.consumable = false;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
return !Main.dayTime && !CalamityPlayer.areThereAnyDamnBosses;
|
||||
}
|
||||
|
||||
public override bool UseItem(Player player)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
Main.dayTime = true;
|
||||
CalamityNetcode.SyncWorld();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SoulofLight, 7);
|
||||
recipe.AddIngredient(ItemID.HellstoneBar, 5);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 507 B |
@@ -1,54 +0,0 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Tools.ClimateChange
|
||||
{
|
||||
public class Moonlight : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Moonlight");
|
||||
Tooltip.SetDefault("Summons the moon");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 20;
|
||||
item.height = 20;
|
||||
item.rare = ItemRarityID.Pink;
|
||||
item.useAnimation = 20;
|
||||
item.useTime = 20;
|
||||
item.useStyle = ItemUseStyleID.HoldingUp;
|
||||
item.UseSound = SoundID.Item60;
|
||||
item.consumable = false;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
return Main.dayTime && !CalamityPlayer.areThereAnyDamnBosses;
|
||||
}
|
||||
|
||||
public override bool UseItem(Player player)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
Main.dayTime = false;
|
||||
CalamityNetcode.SyncWorld();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SoulofNight, 7);
|
||||
recipe.AddIngredient(ModContent.ItemType<CryoBar>(), 5);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 499 B |
@@ -46,7 +46,6 @@ namespace CalamityMod.Items.TreasureBags
|
||||
player.TryGettingDevArmor();
|
||||
|
||||
// Materials
|
||||
DropHelper.DropItem(player, ModContent.ItemType<CryoBar>(), 20, 40);
|
||||
DropHelper.DropItem(player, ModContent.ItemType<EssenceofEleum>(), 5, 9);
|
||||
DropHelper.DropItem(player, ItemID.FrostCore);
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
recipe.AddIngredient(ItemID.IceRod);
|
||||
recipe.AddIngredient(ModContent.ItemType<IcicleStaff>());
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 23);
|
||||
recipe.AddIngredient(ModContent.ItemType<CryoBar>(), 18);
|
||||
recipe.AddIngredient(ModContent.ItemType<VerstaltiteBar>(), 18);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CryoBar>(), 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<VerstaltiteBar>(), 8);
|
||||
recipe.AddIngredient(ItemID.HellstoneBar, 8);
|
||||
recipe.AddIngredient(ItemID.HallowedBar, 4);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CryoBar>(), 15);
|
||||
recipe.AddIngredient(ModContent.ItemType<VerstaltiteBar>(), 15);
|
||||
recipe.AddIngredient(ItemID.Ectoplasm, 5);
|
||||
recipe.AddTile(TileID.IceMachine);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -76,7 +76,7 @@ Stealth strikes throw three short ranged boomerangs along with a spread of icicl
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<Kylie>());
|
||||
recipe.AddIngredient(ModContent.ItemType<CryoBar>(), 6);
|
||||
recipe.AddIngredient(ModContent.ItemType<VerstaltiteBar>(), 6);
|
||||
recipe.AddIngredient(ModContent.ItemType<Voidstone>(), 40);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofEleum>(), 5);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<IceStar>(), 200);
|
||||
recipe.AddIngredient(ItemID.FrozenKey);
|
||||
recipe.AddIngredient(ModContent.ItemType<CryoBar>(), 20);
|
||||
recipe.AddIngredient(ModContent.ItemType<VerstaltiteBar>(), 20);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofEleum>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Avalanche>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<BittercoldStaff>(), 2);
|
||||
|
||||
@@ -320,7 +320,7 @@ namespace CalamityMod
|
||||
BossDifficulty.TryGetValue("Cryogen", out float order);
|
||||
int type = NPCType<Cryogen>();
|
||||
int summon = ItemType<CryoKey>();
|
||||
List<int> loot = new List<int>() { ItemType<CryogenBag>(), ItemType<CryoBar>(), ItemType<EssenceofEleum>(), ItemID.FrostCore, ItemType<Avalanche>(), ItemType<GlacialCrusher>(), ItemType<EffluviumBow>(), ItemType<BittercoldStaff>(), ItemType<SnowstormStaff>(), ItemType<Icebreaker>(), ItemType<IceStar>(), ItemType<ColdDivinity>(), ItemType<CryoStone>(), ItemType<Regenator>(), ItemType<SoulofCryogen>(), ItemType<FrostFlare>(), ItemID.FrozenKey, ItemID.GreaterHealingPotion };
|
||||
List<int> loot = new List<int>() { ItemType<CryogenBag>(), ItemType<EssenceofEleum>(), ItemID.FrostCore, ItemType<Avalanche>(), ItemType<GlacialCrusher>(), ItemType<EffluviumBow>(), ItemType<BittercoldStaff>(), ItemType<SnowstormStaff>(), ItemType<Icebreaker>(), ItemType<IceStar>(), ItemType<ColdDivinity>(), ItemType<CryoStone>(), ItemType<Regenator>(), ItemType<SoulofCryogen>(), ItemType<FrostFlare>(), ItemID.FrozenKey, ItemID.GreaterHealingPotion };
|
||||
List<int> collection = new List<int>() { ItemType<CryogenTrophy>(), ItemType<CryogenMask>(), ItemType<KnowledgeCryogen>() };
|
||||
string instructions = $"Use a [i:{summon}] in the Snow Biome";
|
||||
string despawn = CalamityUtils.ColorMessage("Cryogen drifts away, carried on a freezing wind.", new Color(0x00, 0xFF, 0xFF));
|
||||
|
||||
+1
-1
@@ -1168,7 +1168,7 @@ namespace CalamityMod.NPCs
|
||||
lifeRatio = calamityGlobalNPC.killTimeRatio_IncreasedAggression;
|
||||
|
||||
// Spawn phase 2 Cal
|
||||
if (lifeRatio <= 0.75f && Main.netMode != NetmodeID.MultiplayerClient && !phase2)
|
||||
if (npc.life / (float)npc.lifeMax <= 0.75f && Main.netMode != NetmodeID.MultiplayerClient && !phase2)
|
||||
{
|
||||
NPC.NewNPC((int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType<CalamitasRun3>(), npc.whoAmI);
|
||||
string key = "Mods.CalamityMod.CalamitasBossText";
|
||||
|
||||
@@ -1670,9 +1670,6 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
float DRScalar = !GetDownedBossVariable(npc.type) || CalamityConfig.Instance.FullPowerReactiveBossDR ? 1.5f : 1f;
|
||||
|
||||
/*if (Main.masterMode)
|
||||
DRScalar = 5f;*/
|
||||
|
||||
// Boost Providence timed DR during the night, Destroyer, Aquatic Scourge, Astrum Deus, Storm Weaver and DoG body timed DR
|
||||
if (npc.type == NPCType<Providence.Providence>() && !Main.dayTime)
|
||||
DRScalar = 10f;
|
||||
|
||||
@@ -1041,7 +1041,6 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
if (!Main.expertMode)
|
||||
{
|
||||
// Materials
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<CryoBar>(), 15, 25);
|
||||
DropHelper.DropItemSpray(npc, ModContent.ItemType<EssenceofEleum>(), 4, 8);
|
||||
DropHelper.DropItem(npc, ItemID.FrostCore);
|
||||
|
||||
|
||||
@@ -980,10 +980,10 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
player.AddBuff(ModContent.BuffType<GodSlayerInferno>(), 300, true);
|
||||
player.AddBuff(ModContent.BuffType<WhisperingDeath>(), 420, true);
|
||||
player.AddBuff(BuffID.Frostburn, 300, true);
|
||||
if (CalamityWorld.death && !player.Calamity().lol)
|
||||
/*if (CalamityWorld.death && !player.Calamity().lol)
|
||||
{
|
||||
player.KillMe(PlayerDeathReason.ByCustomReason(player.name + "'s essence was consumed by the devourer."), 1000.0, 0, false);
|
||||
}
|
||||
}*/
|
||||
|
||||
if (player.Calamity().dogTextCooldown <= 0)
|
||||
{
|
||||
|
||||
@@ -48,7 +48,6 @@ namespace CalamityMod.NPCs.Yharon
|
||||
private const float ai2GateValue = 0.55f;
|
||||
|
||||
public static float normalDR = 0.22f;
|
||||
public static float ChargeTelegraph_DR = 0.4f;
|
||||
public static float EnragedDR = 0.9f;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
@@ -381,7 +380,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
// Set DR based on protection boost (aka enrage)
|
||||
bool chargeTelegraph = (npc.ai[0] == 0f || npc.ai[0] == 6f || npc.ai[0] == 13f) && npc.localAI[1] > 0f;
|
||||
bool bulletHell = npc.ai[0] == 8f || npc.ai[0] == 15f;
|
||||
calamityGlobalNPC.DR = protectionBoost ? EnragedDR : ((chargeTelegraph || bulletHell) ? ChargeTelegraph_DR : normalDR);
|
||||
calamityGlobalNPC.DR = protectionBoost ? EnragedDR : normalDR;
|
||||
|
||||
if (bulletHell)
|
||||
npc.damage = 0;
|
||||
@@ -1620,7 +1619,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
// Set DR based on protection boost (aka enrage)
|
||||
bool chargeTelegraph = npc.ai[0] < 2f && npc.localAI[1] > 0f;
|
||||
bool bulletHell = npc.ai[0] == 5f;
|
||||
calamityGlobalNPC.DR = protectionBoost ? EnragedDR : ((chargeTelegraph || bulletHell) ? ChargeTelegraph_DR : normalDR);
|
||||
calamityGlobalNPC.DR = protectionBoost ? EnragedDR : normalDR;
|
||||
|
||||
if (bulletHell)
|
||||
npc.damage = 0;
|
||||
|
||||
@@ -1195,7 +1195,7 @@ namespace CalamityMod.Projectiles
|
||||
|
||||
if (rogue)
|
||||
{
|
||||
if (modPlayer.nanotech && rogue && projectile.type != ProjectileType<MoonSigil>() && projectile.type != ProjectileType<DragonShit>())
|
||||
if (modPlayer.nanotech && projectile.type != ProjectileType<MoonSigil>() && projectile.type != ProjectileType<DragonShit>())
|
||||
{
|
||||
if (Main.player[projectile.owner].miscCounter % 30 == 0 && projectile.FinalExtraUpdate())
|
||||
{
|
||||
@@ -1206,13 +1206,15 @@ namespace CalamityMod.Projectiles
|
||||
}
|
||||
}
|
||||
// Moon Crown gets overridden by Nanotech
|
||||
else if (modPlayer.moonCrown)
|
||||
else if (modPlayer.moonCrown && projectile.type != ProjectileType<MoonSigil>() && projectile.type != ProjectileType<DragonShit>())
|
||||
{
|
||||
// Summon moon sigils infrequently
|
||||
if (Main.rand.NextBool(300) && projectile.type != ProjectileType<MoonSigil>() && projectile.type != ProjectileType<DragonShit>())
|
||||
{
|
||||
Projectile.NewProjectile(projectile.Center, Vector2.Zero, ProjectileType<MoonSigil>(), (int)(projectile.damage * 0.2), 0, projectile.owner);
|
||||
}
|
||||
if (Main.player[projectile.owner].miscCounter % 300 == 0 && projectile.FinalExtraUpdate())
|
||||
{
|
||||
if (projectile.owner == Main.myPlayer && player.ownedProjectileCounts[ProjectileType<MoonSigil>()] < 15)
|
||||
{
|
||||
Projectile.NewProjectile(projectile.Center, Vector2.Zero, ProjectileType<MoonSigil>(), (int)(projectile.damage * 0.2), 0, projectile.owner);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (modPlayer.dragonScales && projectile.type != ProjectileType<MoonSigil>() && projectile.type != ProjectileType<DragonShit>())
|
||||
{
|
||||
|
||||
@@ -573,9 +573,6 @@ namespace CalamityMod.Tiles
|
||||
|
||||
public override bool CanKillTile(int i, int j, int type, ref bool blockDamaged)
|
||||
{
|
||||
if (type == TileID.DemonAltar)
|
||||
return false;
|
||||
|
||||
int[] invincibleTiles = new int[]
|
||||
{
|
||||
ModContent.TileType<DraedonLabTurret>(),
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
{
|
||||
public class FrigidBar : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileShine[Type] = 1000;
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileSolidTop[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style1x1);
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.LavaDeath = false;
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
dustType = 67;
|
||||
drop = ModContent.ItemType<CryoBar>();
|
||||
|
||||
AddMapEntry(new Color(229, 141, 246));
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
type = 67;
|
||||
}
|
||||
else
|
||||
{
|
||||
type = 68;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
WorldGen.Check1x1(i, j, Type);
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void PlaceInWorld(int i, int j, Item item)
|
||||
{
|
||||
Main.tile[i, j].frameX = 0;
|
||||
Main.tile[i, j].frameY = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 269 B |
@@ -30,6 +30,8 @@ namespace CalamityMod
|
||||
EditLeatherRecipe();
|
||||
EditTerraBladeRecipe();
|
||||
EditFireGauntletRecipe();
|
||||
EditMechBossSummonRecipes();
|
||||
EditWingRecipes();
|
||||
AstralAlternatives();
|
||||
|
||||
AddPotionRecipes();
|
||||
@@ -165,8 +167,26 @@ namespace CalamityMod
|
||||
});
|
||||
}
|
||||
|
||||
#region Astral Alternatives
|
||||
private static void AstralAlternatives()
|
||||
private static void EditMechBossSummonRecipes()
|
||||
{
|
||||
List<Recipe> rec = Main.recipe.ToList();
|
||||
rec.Where(x => x.createItem.type == ItemID.MechanicalWorm || x.createItem.type == ItemID.MechanicalEye || x.createItem.type == ItemID.MechanicalSkull).ToList().ForEach(s =>
|
||||
{
|
||||
s.requiredTile[0] = TileID.Anvils;
|
||||
});
|
||||
}
|
||||
|
||||
private static void EditWingRecipes()
|
||||
{
|
||||
List<Recipe> rec = Main.recipe.ToList();
|
||||
rec.Where(x => x.createItem.type == ItemID.AngelWings || x.createItem.type == ItemID.DemonWings).ToList().ForEach(s =>
|
||||
{
|
||||
s.requiredTile[0] = TileID.Anvils;
|
||||
});
|
||||
}
|
||||
|
||||
#region Astral Alternatives
|
||||
private static void AstralAlternatives()
|
||||
{
|
||||
//Bowl
|
||||
ModRecipe r = GetNewRecipe();
|
||||
@@ -866,7 +886,7 @@ namespace CalamityMod
|
||||
r.AddIngredient(ItemID.SoulofMight, 10);
|
||||
r.AddIngredient(ItemID.SoulofLight, 5);
|
||||
r.AddIngredient(ItemID.SoulofNight, 5);
|
||||
r.AddIngredient(ModContent.ItemType<CryoBar>(), 3);
|
||||
r.AddIngredient(ModContent.ItemType<VerstaltiteBar>(), 3);
|
||||
r.AddTile(TileID.MythrilAnvil);
|
||||
r.SetResult(ItemID.CelestialMagnet);
|
||||
r.AddRecipe();
|
||||
@@ -889,30 +909,6 @@ namespace CalamityMod
|
||||
r.SetResult(ItemID.MagicQuiver);
|
||||
r.AddRecipe();
|
||||
|
||||
// Frost Helmet w/ Frigid Bars
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ModContent.ItemType<CryoBar>(), 6);
|
||||
r.AddIngredient(ItemID.FrostCore);
|
||||
r.AddTile(TileID.IceMachine);
|
||||
r.SetResult(ItemID.FrostHelmet);
|
||||
r.AddRecipe();
|
||||
|
||||
// Frost Breastplate w/ Frigid Bars
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ModContent.ItemType<CryoBar>(), 10);
|
||||
r.AddIngredient(ItemID.FrostCore);
|
||||
r.AddTile(TileID.IceMachine);
|
||||
r.SetResult(ItemID.FrostBreastplate);
|
||||
r.AddRecipe();
|
||||
|
||||
// Frost Leggings w/ Frigid Bars
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ModContent.ItemType<CryoBar>(), 8);
|
||||
r.AddIngredient(ItemID.FrostCore);
|
||||
r.AddTile(TileID.IceMachine);
|
||||
r.SetResult(ItemID.FrostLeggings);
|
||||
r.AddRecipe();
|
||||
|
||||
// Terra Blade w/ True Bloody Edge
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ModContent.ItemType<TrueBloodyEdge>());
|
||||
|
||||
@@ -1606,19 +1606,6 @@ namespace CalamityMod.World
|
||||
}
|
||||
}
|
||||
|
||||
if (Main.dayTime && Main.hardMode)
|
||||
{
|
||||
if (player.townNPCs >= 2f)
|
||||
{
|
||||
if (Main.rand.NextBool(2000))
|
||||
{
|
||||
int steamGril = NPC.FindFirstNPC(NPCID.Steampunker);
|
||||
if (steamGril == -1 && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
NPC.SpawnOnPlayer(closestPlayer, NPCID.Steampunker); //Steampunker has awoken!
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (modPlayer.ZoneAbyss)
|
||||
{
|
||||
if (player.chaosState)
|
||||
|
||||
Reference in new issue
Block a user