Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
This commit is contained in:
commit
aa4c5cddc0
42 files changed
+577
-328
No files matched your search
+16
-17
@@ -1658,10 +1658,18 @@ namespace CalamityMod.CalPlayer
|
||||
public override bool CustomBiomesMatch(Player other)
|
||||
{
|
||||
CalamityPlayer modOther = other.Calamity();
|
||||
return ZoneCalamity == modOther.ZoneCalamity || ZoneAstral == modOther.ZoneAstral || ZoneAbyss == modOther.ZoneAbyss ||
|
||||
ZoneAbyssLayer1 == modOther.ZoneAbyssLayer1 || ZoneAbyssLayer2 == modOther.ZoneAbyssLayer2 ||
|
||||
ZoneAbyssLayer3 == modOther.ZoneAbyssLayer3 || ZoneAbyssLayer4 == modOther.ZoneAbyssLayer4 ||
|
||||
ZoneSulphur == modOther.ZoneSulphur || ZoneSunkenSea == modOther.ZoneSunkenSea;
|
||||
|
||||
// efficiently short circuits to false if there are any discrepancies
|
||||
// TODO -- order this list by how frequently players are in these various biomes
|
||||
return ZoneSunkenSea == modOther.ZoneSunkenSea &&
|
||||
ZoneCalamity == modOther.ZoneCalamity &&
|
||||
ZoneAstral == modOther.ZoneAstral &&
|
||||
ZoneSulphur == modOther.ZoneSulphur &&
|
||||
ZoneAbyss == modOther.ZoneAbyss &&
|
||||
ZoneAbyssLayer1 == modOther.ZoneAbyssLayer1 &&
|
||||
ZoneAbyssLayer2 == modOther.ZoneAbyssLayer2 &&
|
||||
ZoneAbyssLayer3 == modOther.ZoneAbyssLayer3 &&
|
||||
ZoneAbyssLayer4 == modOther.ZoneAbyssLayer4;
|
||||
}
|
||||
|
||||
public override void CopyCustomBiomesTo(Player other)
|
||||
@@ -7398,19 +7406,14 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (ZoneSunkenSea)
|
||||
{
|
||||
/*switch (Main.rand.Next(2))
|
||||
switch (Main.rand.Next(2))
|
||||
{
|
||||
case 0:
|
||||
rareItemList.Add(ModContent.ItemType<SparklingEmpress>());
|
||||
rareItemList.Add(ModContent.ItemType<SerpentsBite>());
|
||||
break;
|
||||
case 1:
|
||||
rareItemList.Add(ModContent.ItemType<RustedJingleBell>());
|
||||
break;
|
||||
}*/
|
||||
rareItemList.Add(ModContent.ItemType<RustedJingleBell>());
|
||||
if (Main.hardMode)
|
||||
{
|
||||
rareItemList.Add(ModContent.ItemType<SerpentsBite>());
|
||||
}
|
||||
}
|
||||
if (player.ZoneSnow && player.ZoneRockLayerHeight && (player.ZoneCorrupt || player.ZoneCrimson || player.ZoneHoly))
|
||||
@@ -7429,10 +7432,6 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
rareItemList.Add(ItemID.CrystalSerpent);
|
||||
}
|
||||
if (player.ZoneDirtLayerHeight)
|
||||
{
|
||||
rareItemList.Add(ModContent.ItemType<Spadefish>());
|
||||
}
|
||||
|
||||
if (rareItemList.Any())
|
||||
{
|
||||
@@ -7625,10 +7624,10 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
caughtType = ModContent.ItemType<RustedJingleBell>();
|
||||
}
|
||||
/*else if (sunkenFish <= 2 && sunkenFish >= 0) //3%
|
||||
else if (sunkenFish <= 2 && sunkenFish >= 0) //3%
|
||||
{
|
||||
caughtType = ModContent.ItemType<SparklingEmpress>();
|
||||
}*/
|
||||
}
|
||||
else //33% w/o crate pot, 23% w/ crate pot + 28% if prehardmode
|
||||
{
|
||||
caughtType = ModContent.ItemType<ScarredAngelfish>();
|
||||
|
||||
@@ -29,26 +29,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.GoldBar, 4);
|
||||
recipe.AddIngredient(ItemID.CopperBar, 8);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.GoldBar, 4);
|
||||
recipe.AddIngredient(ItemID.TinBar, 8);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.PlatinumBar, 4);
|
||||
recipe.AddIngredient(ItemID.CopperBar, 8);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.PlatinumBar, 4);
|
||||
recipe.AddIngredient(ItemID.TinBar, 8);
|
||||
recipe.AddRecipeGroup("AnyGoldBar", 4);
|
||||
recipe.AddRecipeGroup("AnyCopperBar", 8);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -35,16 +35,7 @@ namespace CalamityMod.Items.Accessories
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.FishingPotion);
|
||||
recipe.AddIngredient(ItemID.CratePotion, 8);
|
||||
recipe.AddIngredient(ItemID.TissueSample, 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<SeaPrism>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<VictideBar>(), 3);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.FishingPotion);
|
||||
recipe.AddIngredient(ItemID.CratePotion, 8);
|
||||
recipe.AddIngredient(ItemID.ShadowScale, 5);
|
||||
recipe.AddRecipeGroup("Boss2Material", 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<SeaPrism>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<VictideBar>(), 3);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
|
||||
@@ -43,13 +43,7 @@ namespace CalamityMod.Items.Ammo
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>());
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>());
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this, 250);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>());
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>());
|
||||
recipe.AddRecipeGroup("NForEE");
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this, 250);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -59,13 +59,7 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 5);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 5);
|
||||
recipe.AddRecipeGroup("NForEE", 5);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
|
||||
{
|
||||
public class SparklingEmpress : ModItem
|
||||
{
|
||||
public static int BaseDamage = 20;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sparkling Empress");
|
||||
Tooltip.SetDefault("Fires a concentrated laser to annihilate your foes\n" +
|
||||
"Defeated enemies explode into prism shards");
|
||||
Item.staff[item.type] = true; //so it doesn't look weird af when holding it
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = BaseDamage;
|
||||
item.noMelee = true;
|
||||
item.magic = true;
|
||||
item.channel = true; //Channel so that you can hold the weapon [Important]
|
||||
item.rare = 2;
|
||||
item.mana = 5;
|
||||
item.width = 42;
|
||||
item.height = 34;
|
||||
item.useTime = 20;
|
||||
item.useAnimation = 20;
|
||||
item.UseSound = SoundID.Item13;
|
||||
item.useStyle = 5;
|
||||
item.shootSpeed = 14f;
|
||||
item.shoot = ModContent.ProjectileType<SparklingBeam>();
|
||||
item.value = Item.sellPrice(silver: 40);
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOrigin() //so it looks normal when holding
|
||||
{
|
||||
return new Vector2(10, 10);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -29,13 +29,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<SilvaCrystal>(), 10);
|
||||
recipe.AddIngredient(ItemID.GoldBar, 5);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddTile(ModContent.TileType<Tiles.Furniture.CraftingStations.DraedonsForge>());
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<SilvaCrystal>(), 10);
|
||||
recipe.AddIngredient(ItemID.PlatinumBar, 5);
|
||||
recipe.AddRecipeGroup("AnyGoldBar", 5);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddTile(ModContent.TileType<Tiles.Furniture.CraftingStations.DraedonsForge>());
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -29,18 +29,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.CrystalBlock, 200);
|
||||
recipe.AddIngredient(ItemID.GoldBar, 25);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>());
|
||||
recipe.AddIngredient(ModContent.ItemType<EffulgentFeather>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>());
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>());
|
||||
recipe.SetResult(this, 400);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.CrystalBlock, 200);
|
||||
recipe.AddIngredient(ItemID.PlatinumBar, 25);
|
||||
recipe.AddRecipeGroup("AnyGoldBar", 25);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>());
|
||||
recipe.AddIngredient(ModContent.ItemType<EffulgentFeather>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 5);
|
||||
|
||||
@@ -45,13 +45,7 @@ namespace CalamityMod.Items.Tools.ClimateChange
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.AncientBattleArmorMaterial);
|
||||
recipe.AddIngredient(ItemID.AdamantiteBar, 5);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.AncientBattleArmorMaterial);
|
||||
recipe.AddIngredient(ItemID.TitaniumBar, 5);
|
||||
recipe.AddRecipeGroup("AnyAdamantiteBar", 5);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -41,13 +41,7 @@ namespace CalamityMod.Items.Tools.ClimateChange
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodlettingEssence>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<UnholyCore>(), 5);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<FetidEssence>(), 2);
|
||||
recipe.AddRecipeGroup("FetidBloodletting", 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<UnholyCore>(), 5);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -38,14 +38,7 @@ namespace CalamityMod.Items.Tools
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.PlatinumBar, 3);
|
||||
recipe.AddIngredient(ItemID.Granite, 5);
|
||||
recipe.AddIngredient(ItemID.Marble, 5);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.GoldBar, 3);
|
||||
recipe.AddRecipeGroup("AnyGoldBar", 3);
|
||||
recipe.AddIngredient(ItemID.Granite, 5);
|
||||
recipe.AddIngredient(ItemID.Marble, 5);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
|
||||
@@ -53,13 +53,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SoulofFright, 10);
|
||||
recipe.AddIngredient(ItemID.AdamantiteBar, 7);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SoulofFright, 10);
|
||||
recipe.AddIngredient(ItemID.TitaniumBar, 7);
|
||||
recipe.AddRecipeGroup("AnyAdamantiteBar", 7);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -48,13 +48,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 6);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 6);
|
||||
recipe.AddRecipeGroup("NForEE", 6);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -59,18 +59,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
recipe.AddIngredient(ItemID.HallowedBar, 10);
|
||||
recipe.AddIngredient(ItemID.CrystalShard, 15);
|
||||
recipe.AddIngredient(ItemID.SoulofNight, 5);
|
||||
recipe.AddIngredient(ItemID.CursedFlame, 5);
|
||||
recipe.AddIngredient(ItemID.SoulofMight, 3);
|
||||
recipe.AddIngredient(ItemID.SoulofSight, 3);
|
||||
recipe.AddIngredient(ItemID.SoulofFright, 3);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.HallowedBar, 10);
|
||||
recipe.AddIngredient(ItemID.CrystalShard, 15);
|
||||
recipe.AddIngredient(ItemID.SoulofNight, 5);
|
||||
recipe.AddIngredient(ItemID.Ichor, 5);
|
||||
recipe.AddRecipeGroup("CursedFlameIchor", 5);
|
||||
recipe.AddIngredient(ItemID.SoulofMight, 3);
|
||||
recipe.AddIngredient(ItemID.SoulofSight, 3);
|
||||
recipe.AddIngredient(ItemID.SoulofFright, 3);
|
||||
|
||||
@@ -47,13 +47,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 11);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 5);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 11);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 5);
|
||||
recipe.AddRecipeGroup("NForEE", 5);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -59,17 +59,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<VictideBar>(), 5);
|
||||
recipe.AddIngredient(ItemID.SharkFin, 2);
|
||||
recipe.AddIngredient(ItemID.AdamantiteBar, 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<DepthCells>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Lumenite>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Tenebris>(), 5);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<VictideBar>(), 5);
|
||||
recipe.AddIngredient(ItemID.SharkFin, 2);
|
||||
recipe.AddIngredient(ItemID.TitaniumBar, 5);
|
||||
recipe.AddRecipeGroup("AnyAdamantiteBar", 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<DepthCells>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Lumenite>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Tenebris>(), 5);
|
||||
|
||||
@@ -37,13 +37,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.AncientBattleArmorMaterial, 2);
|
||||
recipe.AddIngredient(ItemID.AdamantiteBar, 5);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.AncientBattleArmorMaterial, 2);
|
||||
recipe.AddIngredient(ItemID.TitaniumBar, 5);
|
||||
recipe.AddRecipeGroup("AnyAdamantiteBar", 5);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -36,14 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.PlatinumBar, 5);
|
||||
recipe.AddIngredient(ItemID.Granite, 9);
|
||||
recipe.AddIngredient(ItemID.Marble, 9);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.GoldBar, 5);
|
||||
recipe.AddRecipeGroup("AnyGoldBar", 5);
|
||||
recipe.AddIngredient(ItemID.Granite, 9);
|
||||
recipe.AddIngredient(ItemID.Marble, 9);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
|
||||
@@ -61,13 +61,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 14);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 7);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 14);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 7);
|
||||
recipe.AddRecipeGroup("NForEE", 7);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -103,13 +103,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 15);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 7);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 15);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 7);
|
||||
recipe.AddRecipeGroup("NForEE", 7);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -71,13 +71,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 6);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 6);
|
||||
recipe.AddRecipeGroup("NForEE", 6);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -97,15 +97,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.FlareGun);
|
||||
recipe.AddIngredient(ItemID.Boomstick);
|
||||
recipe.AddIngredient(ItemID.GoldBar, 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<VictoryShard>(), 10);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.FlareGun);
|
||||
recipe.AddIngredient(ItemID.Boomstick);
|
||||
recipe.AddIngredient(ItemID.PlatinumBar, 10);
|
||||
recipe.AddRecipeGroup("AnyGoldBar", 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<VictoryShard>(), 10);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -60,15 +60,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<OpalStriker>());
|
||||
recipe.AddIngredient(ModContent.ItemType<MagnaCannon>());
|
||||
recipe.AddIngredient(ItemID.AdamantiteBar, 6);
|
||||
recipe.AddIngredient(ItemID.Ectoplasm, 5);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<OpalStriker>());
|
||||
recipe.AddIngredient(ModContent.ItemType<MagnaCannon>());
|
||||
recipe.AddIngredient(ItemID.TitaniumBar, 6);
|
||||
recipe.AddRecipeGroup("AnyAdamantiteBar", 6);
|
||||
recipe.AddIngredient(ItemID.Ectoplasm, 5);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -34,14 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.PlatinumBar, 7);
|
||||
recipe.AddIngredient(ItemID.Granite, 5);
|
||||
recipe.AddIngredient(ItemID.Marble, 5);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.GoldBar, 7);
|
||||
recipe.AddRecipeGroup("AnyGoldBar", 7);
|
||||
recipe.AddIngredient(ItemID.Granite, 5);
|
||||
recipe.AddIngredient(ItemID.Marble, 5);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
|
||||
@@ -43,13 +43,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.AncientBattleArmorMaterial, 2);
|
||||
recipe.AddIngredient(ItemID.AdamantiteBar, 13);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.AncientBattleArmorMaterial, 2);
|
||||
recipe.AddIngredient(ItemID.TitaniumBar, 13);
|
||||
recipe.AddRecipeGroup("AnyAdamantiteBar", 13);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
public class SeasSearing : ModItem
|
||||
{
|
||||
public static int BaseDamage = 100;
|
||||
public static int BaseDamage = 90;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
item.damage = 150;
|
||||
item.damage = 130;
|
||||
item.useTime = 30;
|
||||
item.useAnimation = 30;
|
||||
item.reuseDelay = 0;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -7,13 +8,16 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
public class DeepSeaDumbbell : RogueWeapon
|
||||
{
|
||||
private int BaseDamage = 900;
|
||||
private static int BaseDamage = 900;
|
||||
private static float MeleeFlexMult = 25f;
|
||||
private float flexBonusDamageMult = 0f;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Deep Sea Dumbbell");
|
||||
Tooltip.SetDefault("Throws a dumbbell that bounces and flings weights with each bounce\n" +
|
||||
"Right click to flex with it");
|
||||
"Right click to flex with it, increasing the power of your next stealth strike\n" +
|
||||
"Flexes are melee attacks, and are boosted by flexing and stealth");
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
@@ -29,6 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.knockBack = 16f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.useTurn = false;
|
||||
item.height = 24;
|
||||
item.value = Item.buyPrice(1, 40, 0, 0);
|
||||
item.rare = 10;
|
||||
@@ -53,7 +58,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.noMelee = false;
|
||||
item.noUseGraphic = false;
|
||||
item.autoReuse = false;
|
||||
item.damage = BaseDamage * 25;
|
||||
item.UseSound = SoundID.Item1;
|
||||
}
|
||||
else
|
||||
@@ -64,18 +68,47 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.autoReuse = true;
|
||||
item.damage = BaseDamage;
|
||||
item.UseSound = SoundID.Item1;
|
||||
}
|
||||
return base.CanUseItem(player);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
public override void ModifyWeaponDamage(Player player, ref float add, ref float mult, ref float flat)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
return false;
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
mult += flexBonusDamageMult;
|
||||
base.ModifyWeaponDamage(player, ref add, ref mult, ref flat);
|
||||
}
|
||||
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, (int)((float)BaseDamage * player.Calamity().throwingDamage), knockBack, player.whoAmI, 0f, 0f);
|
||||
// Flexes deal 25x damage if you actually hit with them directly.
|
||||
public override void ModifyHitNPC(Player player, NPC target, ref int damage, ref float knockBack, ref bool crit)
|
||||
{
|
||||
damage = (int)(damage * MeleeFlexMult);
|
||||
}
|
||||
|
||||
public override void ModifyHitPvp(Player player, Player target, ref int damage, ref bool crit)
|
||||
{
|
||||
damage = (int)(damage * MeleeFlexMult);
|
||||
}
|
||||
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
// Alt fire doesn't actually shoot anything. It flexes, increasing the damage of the next stealth strike
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
flexBonusDamageMult += 1f;
|
||||
if (flexBonusDamageMult > 10f)
|
||||
flexBonusDamageMult = 10f;
|
||||
return false;
|
||||
}
|
||||
|
||||
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
Main.projectile[proj].Calamity().stealthStrike = true;
|
||||
flexBonusDamageMult = 0f;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,13 +47,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 11);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 5);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 11);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 5);
|
||||
recipe.AddRecipeGroup("NForEE", 5);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
public class HellsSun : RogueWeapon
|
||||
{
|
||||
private static int damage = 250;
|
||||
private static int damage = 180;
|
||||
private static int knockBack = 5;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
|
||||
@@ -57,15 +57,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<GrandScale>());
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCinder>(), 6);
|
||||
recipe.AddIngredient(ItemID.GoldBar, 10);
|
||||
recipe.AddIngredient(ItemID.HardenedSand, 25);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<GrandScale>());
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCinder>(), 6);
|
||||
recipe.AddIngredient(ItemID.PlatinumBar, 10);
|
||||
recipe.AddRecipeGroup("AnyGoldBar", 10);
|
||||
recipe.AddIngredient(ItemID.HardenedSand, 25);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -38,13 +38,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.AncientBattleArmorMaterial, 2);
|
||||
recipe.AddIngredient(ItemID.AdamantiteBar, 4);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.AncientBattleArmorMaterial, 2);
|
||||
recipe.AddIngredient(ItemID.TitaniumBar, 4);
|
||||
recipe.AddRecipeGroup("AnyAdamantiteBar", 4);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -89,15 +89,7 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse
|
||||
recipe.AddIngredient(ItemID.IronBar, 20);
|
||||
recipe.anyIronBar = true;
|
||||
recipe.AddIngredient(ItemID.IllegalGunParts);
|
||||
recipe.AddIngredient(ItemID.AdamantiteBar, 15);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.IronBar, 20);
|
||||
recipe.anyIronBar = true;
|
||||
recipe.AddIngredient(ItemID.IllegalGunParts);
|
||||
recipe.AddIngredient(ItemID.TitaniumBar, 15);
|
||||
recipe.AddRecipeGroup("AnyAdamantiteBar", 15);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
+40
-25
@@ -1218,7 +1218,7 @@ namespace CalamityMod.NPCs
|
||||
|
||||
npc.ai[2] += 1f;
|
||||
|
||||
if (npc.ai[2] % 45f == 0f)
|
||||
if (npc.ai[2] % 45f == 0f)
|
||||
{
|
||||
float num19 = CalamityWorld.bossRushActive ? 9f : 6f;
|
||||
Vector2 vector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f);
|
||||
@@ -1256,8 +1256,6 @@ namespace CalamityMod.NPCs
|
||||
|
||||
if (npc.ai[2] >= (horizontalCharge ? 100f : 70f))
|
||||
{
|
||||
npc.TargetClosest(true);
|
||||
|
||||
switch ((int)calamityGlobalNPC.newAI[0])
|
||||
{
|
||||
case 0: // Normal Eye behavior
|
||||
@@ -1284,10 +1282,13 @@ namespace CalamityMod.NPCs
|
||||
calamityGlobalNPC.newAI[0] += 1f;
|
||||
if (calamityGlobalNPC.newAI[0] > 3f)
|
||||
calamityGlobalNPC.newAI[0] = 0f;
|
||||
|
||||
npc.netUpdate = true;
|
||||
}
|
||||
}
|
||||
|
||||
npc.netUpdate = true;
|
||||
|
||||
if (npc.netSpam > 10)
|
||||
npc.netSpam = 10;
|
||||
}
|
||||
|
||||
else if (npc.ai[1] == 6f)
|
||||
{
|
||||
@@ -2685,7 +2686,12 @@ namespace CalamityMod.NPCs
|
||||
|
||||
// Face the correct direction
|
||||
npc.spriteDirection = npc.direction;
|
||||
}
|
||||
|
||||
npc.netUpdate = true;
|
||||
|
||||
if (npc.netSpam > 10)
|
||||
npc.netSpam = 10;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Face the correct direction
|
||||
@@ -2747,7 +2753,12 @@ namespace CalamityMod.NPCs
|
||||
npc.ai[2] = 0f;
|
||||
npc.ai[1] += 1f;
|
||||
}
|
||||
}
|
||||
|
||||
npc.netUpdate = true;
|
||||
|
||||
if (npc.netSpam > 10)
|
||||
npc.netSpam = 10;
|
||||
}
|
||||
}
|
||||
|
||||
// Fly above target before bee spawning phase
|
||||
@@ -6115,9 +6126,13 @@ namespace CalamityMod.NPCs
|
||||
npc.TargetClosest(true);
|
||||
npc.ai[1] = 3f;
|
||||
npc.ai[2] = -1f;
|
||||
npc.netUpdate = true;
|
||||
}
|
||||
}
|
||||
|
||||
npc.netUpdate = true;
|
||||
|
||||
if (npc.netSpam > 10)
|
||||
npc.netSpam = 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9207,21 +9222,21 @@ namespace CalamityMod.NPCs
|
||||
bool phase3 = lifeRatio < 0.4f || golemLifeRatio < 0.7f || CalamityWorld.death || CalamityWorld.bossRushActive;
|
||||
bool phase4 = lifeRatio < 0.1f || golemLifeRatio < 0.55f || CalamityWorld.death || CalamityWorld.bossRushActive;
|
||||
|
||||
// Float through tiles or not
|
||||
bool flag44 = false;
|
||||
if (!Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].Center, 1, 1) || phase3)
|
||||
{
|
||||
npc.noTileCollide = true;
|
||||
flag44 = true;
|
||||
}
|
||||
else
|
||||
npc.noTileCollide = false;
|
||||
|
||||
// Target
|
||||
npc.TargetClosest(true);
|
||||
|
||||
// Enrage if the target isn't inside the temple
|
||||
bool enrage = true;
|
||||
// Float through tiles or not
|
||||
bool flag44 = false;
|
||||
if (!Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].Center, 1, 1) || phase3)
|
||||
{
|
||||
npc.noTileCollide = true;
|
||||
flag44 = true;
|
||||
}
|
||||
else
|
||||
npc.noTileCollide = false;
|
||||
|
||||
// Enrage if the target isn't inside the temple
|
||||
bool enrage = true;
|
||||
if ((double)Main.player[npc.target].Center.Y > Main.worldSurface * 16.0)
|
||||
{
|
||||
int num = (int)Main.player[npc.target].Center.X / 16;
|
||||
@@ -9299,7 +9314,9 @@ namespace CalamityMod.NPCs
|
||||
calamityGlobalNPC.newAI[0] = 0f;
|
||||
calamityGlobalNPC.newAI[1] = -maxDistance;
|
||||
}
|
||||
}
|
||||
|
||||
npc.netUpdate = true;
|
||||
}
|
||||
|
||||
npc.ai[3] -= 1f +
|
||||
(phase2 ? 1f : 0f) +
|
||||
@@ -9392,8 +9409,6 @@ namespace CalamityMod.NPCs
|
||||
|
||||
if (npc.ai[1] >= (float)num705 && Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 160f)
|
||||
{
|
||||
npc.TargetClosest(true);
|
||||
|
||||
npc.ai[1] = 0f;
|
||||
|
||||
Vector2 vector88 = new Vector2(npc.Center.X, npc.Center.Y - 10f);
|
||||
|
||||
@@ -2364,6 +2364,10 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
damage = (int)(damage * 0.75);
|
||||
}
|
||||
if (projectile.type == ModContent.ProjectileType<SeasSearingSpout>())
|
||||
{
|
||||
damage = (int)(damage * 0.25);
|
||||
}
|
||||
}
|
||||
else if (npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail || npc.type == NPCID.Creeper)
|
||||
{
|
||||
|
||||
@@ -41,6 +41,11 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
public class CalamityGlobalNPCLoot : GlobalNPC
|
||||
{
|
||||
#region Instance Per Entity
|
||||
public override bool InstancePerEntity => false;
|
||||
public override bool CloneNewInstances => false;
|
||||
#endregion
|
||||
|
||||
#region PreNPCLoot
|
||||
public override bool PreNPCLoot(NPC npc)
|
||||
{
|
||||
|
||||
@@ -176,7 +176,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
jungleEnrage = true;
|
||||
|
||||
// Despawn
|
||||
if (jungleEnrage || Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 5600f)
|
||||
if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 5600f)
|
||||
{
|
||||
if (despawnTimer > 0)
|
||||
despawnTimer--;
|
||||
@@ -343,7 +343,12 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
|
||||
npc.direction = playerLocation < 0 ? 1 : -1;
|
||||
npc.spriteDirection = npc.direction;
|
||||
}
|
||||
|
||||
npc.netUpdate = true;
|
||||
|
||||
if (npc.netSpam > 10)
|
||||
npc.netSpam = 10;
|
||||
}
|
||||
|
||||
// Slow down after charge
|
||||
else
|
||||
@@ -408,7 +413,12 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
npc.ai[2] = 0f;
|
||||
npc.ai[1] += 1f;
|
||||
}
|
||||
}
|
||||
|
||||
npc.netUpdate = true;
|
||||
|
||||
if (npc.netSpam > 10)
|
||||
npc.netSpam = 10;
|
||||
}
|
||||
}
|
||||
|
||||
// Move closer if too far away
|
||||
@@ -782,7 +792,12 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
|
||||
npc.direction = playerLocation < 0 ? 1 : -1;
|
||||
npc.spriteDirection = npc.direction;
|
||||
}
|
||||
|
||||
npc.netUpdate = true;
|
||||
|
||||
if (npc.netSpam > 10)
|
||||
npc.netSpam = 10;
|
||||
}
|
||||
|
||||
// Slow down after charge
|
||||
else
|
||||
@@ -837,7 +852,12 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
npc.ai[2] = 0f;
|
||||
npc.ai[1] += 1f;
|
||||
}
|
||||
}
|
||||
|
||||
npc.netUpdate = true;
|
||||
|
||||
if (npc.netSpam > 10)
|
||||
npc.netSpam = 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,9 +7,11 @@ using System.IO;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.Polterghast
|
||||
{
|
||||
public class PolterPhantom : ModNPC
|
||||
[AutoloadBossHead]
|
||||
public class PolterPhantom : ModNPC
|
||||
{
|
||||
private int despawnTimer = 600;
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 457 B |
@@ -0,0 +1,301 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using CalamityMod.Items.Fishing.SunkenSeaCatches;
|
||||
|
||||
namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
// The following laser shows a channeled ability, after charging up the laser will be fired
|
||||
// Using custom drawing, dust effects, and custom collision checks for tiles
|
||||
public class SparklingBeam : ModProjectile
|
||||
{
|
||||
// Use a different style for constant so it is very clear in code when a constant is used
|
||||
|
||||
// The maximum charge value
|
||||
private const float MAX_CHARGE = 50f;
|
||||
//The distance charge particle from the player center
|
||||
private const float MOVE_DISTANCE = 60f;
|
||||
|
||||
// The actual distance is stored in the ai0 field
|
||||
// By making a property to handle this it makes our life easier, and the accessibility more readable
|
||||
public float Distance {
|
||||
get => projectile.ai[0];
|
||||
set => projectile.ai[0] = value;
|
||||
}
|
||||
|
||||
// The actual charge value is stored in the localAI0 field
|
||||
public float Charge {
|
||||
get => projectile.localAI[0];
|
||||
set => projectile.localAI[0] = value;
|
||||
}
|
||||
|
||||
// Are we at max charge? With c#6 you can simply use => which indicates this is a get only property
|
||||
public bool IsAtMaxCharge => Charge == MAX_CHARGE;
|
||||
|
||||
private bool playedSound = false;
|
||||
private int manaDrain = 0;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.width = 10;
|
||||
projectile.height = 10;
|
||||
projectile.friendly = true;
|
||||
projectile.penetrate = -1;
|
||||
projectile.tileCollide = false;
|
||||
projectile.magic = true;
|
||||
projectile.hide = true;
|
||||
projectile.usesIDStaticNPCImmunity = true;
|
||||
projectile.idStaticNPCHitCooldown = 10;
|
||||
}
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
// We start drawing the laser if we have charged up
|
||||
if (IsAtMaxCharge)
|
||||
{
|
||||
DrawLaser(spriteBatch, Main.projectileTexture[projectile.type], Main.player[projectile.owner].Center,
|
||||
projectile.velocity, 10, projectile.damage, -1.57f, 1f, 1000f, Color.White, (int)MOVE_DISTANCE);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// The core function of drawing a laser
|
||||
public void DrawLaser(SpriteBatch spriteBatch, Texture2D texture, Vector2 start, Vector2 unit, float step, int damage, float rotation = 0f, float scale = 1f, float maxDist = 2000f, Color color = default(Color), int transDist = 50)
|
||||
{
|
||||
float r = unit.ToRotation() + rotation;
|
||||
|
||||
// Draws the laser 'body'
|
||||
for (float i = transDist; i <= Distance; i += step)
|
||||
{
|
||||
Color c = Color.White;
|
||||
var origin = start + i * unit;
|
||||
spriteBatch.Draw(texture, origin - Main.screenPosition,
|
||||
new Rectangle(0, 26, 28, 26), i < transDist ? Color.Transparent : c, r,
|
||||
new Vector2(28 * .5f, 26 * .5f), scale, 0, 0);
|
||||
}
|
||||
|
||||
// Draws the laser 'tail'
|
||||
spriteBatch.Draw(texture, start + unit * (transDist - step) - Main.screenPosition,
|
||||
new Rectangle(0, 0, 28, 26), Color.White, r, new Vector2(28 * .5f, 26 * .5f), scale, 0, 0);
|
||||
|
||||
// Draws the laser 'head'
|
||||
spriteBatch.Draw(texture, start + (Distance + step) * unit - Main.screenPosition,
|
||||
new Rectangle(0, 52, 28, 26), Color.White, r, new Vector2(28 * .5f, 26 * .5f), scale, 0, 0);
|
||||
}
|
||||
|
||||
// Change the way of collision check of the projectile
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox)
|
||||
{
|
||||
// We can only collide if we are at max charge, which is when the laser is actually fired
|
||||
if (!IsAtMaxCharge) return false;
|
||||
|
||||
Player player = Main.player[projectile.owner];
|
||||
Vector2 unit = projectile.velocity;
|
||||
float point = 0f;
|
||||
// Run an AABB versus Line check to look for collisions, look up AABB collision first to see how it works
|
||||
// It will look for collisions on the given line using AABB
|
||||
return Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), player.Center,
|
||||
player.Center + unit * Distance, 22, ref point);
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
{
|
||||
if (target.life <= 0)
|
||||
{
|
||||
int shardDamage = SparklingEmpress.BaseDamage / 2;
|
||||
int num251 = Main.rand.Next(2, 4);
|
||||
if (projectile.owner == Main.myPlayer)
|
||||
{
|
||||
for (int num252 = 0; num252 < num251; num252++)
|
||||
{
|
||||
Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
while (value15.X == 0f && value15.Y == 0f)
|
||||
{
|
||||
value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
}
|
||||
value15.Normalize();
|
||||
value15 *= (float)Main.rand.Next(70, 101) * 0.1f;
|
||||
int shard = Projectile.NewProjectile(target.Center.X, target.Center.Y, value15.X, value15.Y, ModContent.ProjectileType<AquashardSplit>(), shardDamage, 0f, projectile.owner, 0f, 0f);
|
||||
Main.projectile[shard].Calamity().forceMagic = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// The AI of the projectile
|
||||
public override void AI()
|
||||
{
|
||||
Player player = Main.player[projectile.owner];
|
||||
projectile.position = player.Center + projectile.velocity * MOVE_DISTANCE;
|
||||
projectile.timeLeft = 2;
|
||||
|
||||
// By separating large AI into methods it becomes very easy to see the flow of the AI in a broader sense
|
||||
// First we update player variables that are needed to channel the laser
|
||||
// Then we run our charging laser logic
|
||||
// If we are fully charged, we proceed to update the laser's position
|
||||
// Finally we spawn some effects like dusts and light
|
||||
|
||||
UpdatePlayer(player);
|
||||
ChargeLaser(player);
|
||||
|
||||
// If laser is not charged yet, stop the AI here.
|
||||
if (Charge < MAX_CHARGE) return;
|
||||
|
||||
//Repeatedly drain mana once fully charged. Unaffected by modifiers.
|
||||
//Only normal mode because redcode is EXTREME BRUH moment.
|
||||
if (!Main.expertMode)
|
||||
{
|
||||
manaDrain++;
|
||||
if (manaDrain == 15)
|
||||
{
|
||||
player.statMana -= 5;
|
||||
if (player.statMana <= 0)
|
||||
{
|
||||
player.statMana = 0;
|
||||
projectile.Kill();
|
||||
}
|
||||
manaDrain = 0;
|
||||
}
|
||||
}
|
||||
|
||||
//Play cool sound when fully charged
|
||||
if (playedSound == false)
|
||||
{
|
||||
Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 68);
|
||||
playedSound = true;
|
||||
}
|
||||
|
||||
SetLaserPosition(player);
|
||||
SpawnDusts(player);
|
||||
CastLights();
|
||||
}
|
||||
|
||||
private void SpawnDusts(Player player)
|
||||
{
|
||||
Vector2 unit = projectile.velocity * -1;
|
||||
Vector2 dustPos = player.Center + projectile.velocity * Distance;
|
||||
|
||||
for (int i = 0; i < 2; ++i)
|
||||
{
|
||||
float num1 = projectile.velocity.ToRotation() + (Main.rand.Next(2) == 1 ? -1.0f : 1.0f) * 1.57f;
|
||||
float num2 = (float)(Main.rand.NextDouble() * 0.8f + 1.0f);
|
||||
Vector2 dustVel = new Vector2((float)Math.Cos(num1) * num2, (float)Math.Sin(num1) * num2);
|
||||
Dust dust = Main.dust[Dust.NewDust(dustPos, 0, 0, 226, dustVel.X, dustVel.Y)];
|
||||
dust.noGravity = true;
|
||||
dust.scale = 1.2f;
|
||||
dust = Dust.NewDustDirect(Main.player[projectile.owner].Center, 0, 0, 31,
|
||||
-unit.X * Distance, -unit.Y * Distance);
|
||||
dust.fadeIn = 0f;
|
||||
dust.noGravity = true;
|
||||
dust.scale = 0.88f;
|
||||
dust.color = Color.Cyan;
|
||||
}
|
||||
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
Vector2 offset = projectile.velocity.RotatedBy(1.57f) * ((float)Main.rand.NextDouble() - 0.5f) * projectile.width;
|
||||
Dust dust = Main.dust[Dust.NewDust(dustPos + offset - Vector2.One * 4f, 8, 8, 31, 0.0f, 0.0f, 100, new Color(), 1.5f)];
|
||||
dust.velocity *= 0.5f;
|
||||
dust.velocity.Y = -Math.Abs(dust.velocity.Y);
|
||||
unit = dustPos - Main.player[projectile.owner].Center;
|
||||
unit.Normalize();
|
||||
dust = Main.dust[Dust.NewDust(Main.player[projectile.owner].Center + 55 * unit, 8, 8, 31, 0.0f, 0.0f, 100, new Color(), 1.5f)];
|
||||
dust.velocity = dust.velocity * 0.5f;
|
||||
dust.velocity.Y = -Math.Abs(dust.velocity.Y);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Sets the end of the laser position based on where it collides with something
|
||||
*/
|
||||
private void SetLaserPosition(Player player)
|
||||
{
|
||||
for (Distance = MOVE_DISTANCE; Distance <= 2200f; Distance += 5f)
|
||||
{
|
||||
var start = player.Center + projectile.velocity * Distance;
|
||||
if (!Collision.CanHit(player.Center, 1, 1, start, 1, 1))
|
||||
{
|
||||
Distance -= 5f;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void ChargeLaser(Player player)
|
||||
{
|
||||
// Kill the projectile if the player stops channeling
|
||||
if (!player.channel)
|
||||
{
|
||||
projectile.Kill();
|
||||
}
|
||||
else {
|
||||
// Do we still have enough mana? If not, we kill the projectile because we cannot use it anymore
|
||||
if (Main.time % 10 < 1 && !player.CheckMana(player.inventory[player.selectedItem].mana, true))
|
||||
{
|
||||
projectile.Kill();
|
||||
}
|
||||
Vector2 offset = projectile.velocity;
|
||||
offset *= MOVE_DISTANCE - 20;
|
||||
Vector2 pos = player.Center + offset - new Vector2(10, 10);
|
||||
if (Charge < MAX_CHARGE)
|
||||
{
|
||||
Charge++;
|
||||
}
|
||||
int chargeFact = (int)(Charge / 20f);
|
||||
Vector2 dustVelocity = Vector2.UnitX * 18f;
|
||||
dustVelocity = dustVelocity.RotatedBy(projectile.rotation - 1.57f);
|
||||
Vector2 spawnPos = projectile.Center + dustVelocity;
|
||||
for (int k = 0; k < chargeFact + 1; k++)
|
||||
{
|
||||
Vector2 spawn = spawnPos + ((float)Main.rand.NextDouble() * 6.28f).ToRotationVector2() * (12f - chargeFact * 2);
|
||||
Dust dust = Main.dust[Dust.NewDust(pos, 20, 20, 226, projectile.velocity.X / 2f, projectile.velocity.Y / 2f)];
|
||||
dust.velocity = Vector2.Normalize(spawnPos - spawn) * 1.5f * (10f - chargeFact * 2f) / 10f;
|
||||
dust.noGravity = true;
|
||||
dust.scale = Main.rand.Next(10, 20) * 0.05f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdatePlayer(Player player)
|
||||
{
|
||||
// Multiplayer support here, only run this code if the client running it is the owner of the projectile
|
||||
if (projectile.owner == Main.myPlayer)
|
||||
{
|
||||
Vector2 diff = Main.MouseWorld - player.Center;
|
||||
diff.Normalize();
|
||||
projectile.velocity = diff;
|
||||
projectile.direction = Main.MouseWorld.X > player.position.X ? 1 : -1;
|
||||
projectile.netUpdate = true;
|
||||
}
|
||||
int dir = projectile.direction;
|
||||
player.ChangeDir(dir); // Set player direction to where we are shooting
|
||||
player.heldProj = projectile.whoAmI; // Update player's held projectile
|
||||
player.itemTime = 2; // Set item time to 2 frames while we are used
|
||||
player.itemAnimation = 2; // Set item animation time to 2 frames while we are used
|
||||
player.itemRotation = (float)Math.Atan2(projectile.velocity.Y * dir, projectile.velocity.X * dir); // Set the item rotation to where we are shooting
|
||||
}
|
||||
|
||||
private void CastLights()
|
||||
{
|
||||
// Cast a light along the line of the laser
|
||||
DelegateMethods.v3_1 = new Vector3(0.8f, 0.8f, 1f);
|
||||
Utils.PlotTileLine(projectile.Center, projectile.Center + projectile.velocity * (Distance - MOVE_DISTANCE), 26, DelegateMethods.CastLight);
|
||||
}
|
||||
|
||||
public override bool ShouldUpdatePosition() => false;
|
||||
|
||||
/*
|
||||
* Update CutTiles so the laser will cut tiles (like grass)
|
||||
*/
|
||||
public override void CutTiles()
|
||||
{
|
||||
DelegateMethods.tilecut_0 = TileCuttingContext.AttackProjectile;
|
||||
Vector2 unit = projectile.velocity;
|
||||
Utils.PlotTileLine(projectile.Center, projectile.Center + unit * Distance, (projectile.width + 16) * projectile.scale, DelegateMethods.CutTiles);
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 812 B After Width: | Height: | Size: 640 B |
@@ -29,7 +29,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.timeLeft = 600; //10 seconds and counting
|
||||
aiType = 48; //Throwing Knife AI
|
||||
projectile.Calamity().rogue = true;
|
||||
projectile.usesIDStaticNPCImmunity = true; //afaik, no Calamity projectiles use this and only 1 vanilla projectile
|
||||
projectile.usesIDStaticNPCImmunity = true;
|
||||
projectile.idStaticNPCHitCooldown = 5;
|
||||
projectile.extraUpdates = 1;
|
||||
}
|
||||
|
||||
@@ -303,14 +303,7 @@ namespace CalamityMod
|
||||
// Guide Voodoo Doll
|
||||
ModRecipe r = GetNewRecipe();
|
||||
r.AddIngredient(ItemID.Leather, 2);
|
||||
r.AddIngredient(ModContent.ItemType<FetidEssence>(), 2);
|
||||
r.AddTile(TileID.Hellforge);
|
||||
r.SetResult(ItemID.GuideVoodooDoll);
|
||||
r.AddRecipe();
|
||||
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ItemID.Leather, 2);
|
||||
r.AddIngredient(ModContent.ItemType<BloodlettingEssence>(), 2);
|
||||
r.AddRecipeGroup("FetidBloodletting", 2);
|
||||
r.AddTile(TileID.Hellforge);
|
||||
r.SetResult(ItemID.GuideVoodooDoll);
|
||||
r.AddRecipe();
|
||||
@@ -400,16 +393,9 @@ namespace CalamityMod
|
||||
r.SetResult(ItemID.EnchantedSword);
|
||||
r.AddRecipe();
|
||||
|
||||
// Muramasa w/ Cobalt Bars
|
||||
// Muramasa
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ItemID.CobaltBar, 15);
|
||||
r.AddTile(TileID.MythrilAnvil);
|
||||
r.SetResult(ItemID.Muramasa);
|
||||
r.AddRecipe();
|
||||
|
||||
// Muramasa w/ Palladium Bars
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ItemID.PalladiumBar, 15);
|
||||
r.AddRecipeGroup("AnyCobaltBar", 15);
|
||||
r.AddTile(TileID.MythrilAnvil);
|
||||
r.SetResult(ItemID.Muramasa);
|
||||
r.AddRecipe();
|
||||
@@ -515,20 +501,11 @@ namespace CalamityMod
|
||||
r.SetResult(ItemID.IceSkates);
|
||||
r.AddRecipe();
|
||||
|
||||
// Lucky Horseshoe w/ Gold Bars
|
||||
// Lucky Horseshoe
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ItemID.SunplateBlock, 10);
|
||||
r.AddIngredient(ItemID.Cloud, 10);
|
||||
r.AddIngredient(ItemID.GoldBar, 5);
|
||||
r.AddTile(TileID.Anvils);
|
||||
r.SetResult(ItemID.LuckyHorseshoe);
|
||||
r.AddRecipe();
|
||||
|
||||
// Lucky Horseshoe w/ Platinum Bars
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ItemID.SunplateBlock, 10);
|
||||
r.AddIngredient(ItemID.Cloud, 10);
|
||||
r.AddIngredient(ItemID.PlatinumBar, 5);
|
||||
r.AddRecipeGroup("AnyGoldBar", 5);
|
||||
r.AddTile(TileID.Anvils);
|
||||
r.SetResult(ItemID.LuckyHorseshoe);
|
||||
r.AddRecipe();
|
||||
@@ -583,16 +560,9 @@ namespace CalamityMod
|
||||
// Every base component for the Ankh Shield
|
||||
private static void AddAnkhShieldRecipes()
|
||||
{
|
||||
// Cobalt Shield w/ Cobalt
|
||||
// Cobalt Shield
|
||||
ModRecipe r = GetNewRecipe();
|
||||
r.AddIngredient(ItemID.CobaltBar, 10);
|
||||
r.AddTile(TileID.MythrilAnvil);
|
||||
r.SetResult(ItemID.CobaltShield);
|
||||
r.AddRecipe();
|
||||
|
||||
// Cobalt Shield w/ Palladium
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ItemID.PalladiumBar, 10);
|
||||
r.AddRecipeGroup("AnyCobaltBar", 10);
|
||||
r.AddTile(TileID.MythrilAnvil);
|
||||
r.SetResult(ItemID.CobaltShield);
|
||||
r.AddRecipe();
|
||||
@@ -748,7 +718,63 @@ namespace CalamityMod
|
||||
|
||||
public static void AddRecipeGroups()
|
||||
{
|
||||
RecipeGroup group = new RecipeGroup(() => "Any Silt", new int[]
|
||||
RecipeGroup group = new RecipeGroup(() => "Any Copper Bar", new int[]
|
||||
{
|
||||
ItemID.CopperBar,
|
||||
ItemID.TinBar
|
||||
});
|
||||
RecipeGroup.RegisterGroup("AnyCopperBar", group);
|
||||
|
||||
group = new RecipeGroup(() => "Any Gold Bar", new int[]
|
||||
{
|
||||
ItemID.GoldBar,
|
||||
ItemID.PlatinumBar
|
||||
});
|
||||
RecipeGroup.RegisterGroup("AnyGoldBar", group);
|
||||
|
||||
group = new RecipeGroup(() => "Any Cobalt Bar", new int[]
|
||||
{
|
||||
ItemID.CobaltBar,
|
||||
ItemID.PalladiumBar
|
||||
});
|
||||
RecipeGroup.RegisterGroup("AnyCobaltBar", group);
|
||||
|
||||
group = new RecipeGroup(() => "Any Adamantite Bar", new int[]
|
||||
{
|
||||
ItemID.AdamantiteBar,
|
||||
ItemID.TitaniumBar
|
||||
});
|
||||
RecipeGroup.RegisterGroup("AnyAdamantiteBar", group);
|
||||
|
||||
group = new RecipeGroup(() => "Nightmare Fuel or Endothermic Energy", new int[]
|
||||
{
|
||||
ModContent.ItemType<NightmareFuel>(),
|
||||
ModContent.ItemType<EndothermicEnergy>()
|
||||
});
|
||||
RecipeGroup.RegisterGroup("NForEE", group);
|
||||
|
||||
group = new RecipeGroup(() => "Fetid or Bloodletting Essence", new int[]
|
||||
{
|
||||
ModContent.ItemType<FetidEssence>(),
|
||||
ModContent.ItemType<BloodlettingEssence>()
|
||||
});
|
||||
RecipeGroup.RegisterGroup("FetidBloodletting", group);
|
||||
|
||||
group = new RecipeGroup(() => "Shadow Scale or Tissue Sample", new int[]
|
||||
{
|
||||
ItemID.ShadowScale,
|
||||
ItemID.TissueSample
|
||||
});
|
||||
RecipeGroup.RegisterGroup("Boss2Material", group);
|
||||
|
||||
group = new RecipeGroup(() => "Cursed Flame or Ichor", new int[]
|
||||
{
|
||||
ItemID.CursedFlame,
|
||||
ItemID.Ichor
|
||||
});
|
||||
RecipeGroup.RegisterGroup("CursedFlameIchor", group);
|
||||
|
||||
group = new RecipeGroup(() => "Any Silt", new int[]
|
||||
{
|
||||
ItemID.SiltBlock,
|
||||
ItemID.SlushBlock
|
||||
|
||||
Reference in new issue
Block a user