Add Avali and Protogen progression sets
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Items.Materials;
|
||||
using ForgottenWawiTech.Content.Rarities;
|
||||
using ForgottenWawiTech.Content.Tiles.CraftingStations;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.Armor.ProtogenSentinelSet
|
||||
{
|
||||
[AutoloadEquip(EquipType.Body)]
|
||||
public class ProtogenSentinelChestplate : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = Item.sellPrice(gold: 80);
|
||||
Item.rare = ModContent.RarityType<ProtogenItem>();
|
||||
Item.defense = 36;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage(DamageClass.Generic) += 0.18f;
|
||||
player.GetCritChance(DamageClass.Generic) += 9;
|
||||
player.statLifeMax2 += 75;
|
||||
player.statManaMax2 += 70;
|
||||
player.endurance += 0.08f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient(ModContent.ItemType<MalfunctioningNanites>(), 20)
|
||||
.AddIngredient(ModContent.ItemType<EnergyCore>(), 12)
|
||||
.AddIngredient(ModContent.ItemType<ProtogenInitiateChestplate>(), 1)
|
||||
.AddIngredient(ItemID.Wire, 30)
|
||||
.AddTile(ModContent.TileType<HighTechMarvel>())
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Items.Materials;
|
||||
using ForgottenWawiTech.Content.Rarities;
|
||||
using ForgottenWawiTech.Content.Tiles.CraftingStations;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.Armor.ProtogenSentinelSet
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class ProtogenSentinelCowl : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = Item.sellPrice(gold: 60);
|
||||
Item.rare = ModContent.RarityType<ProtogenItem>();
|
||||
Item.defense = 28;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage(DamageClass.Summon) += 0.30f;
|
||||
player.maxMinions += 4;
|
||||
player.statLifeMax2 += 65;
|
||||
player.statManaMax2 += 60;
|
||||
player.endurance += 0.06f;
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<ProtogenSentinelChestplate>() && legs.type == ModContent.ItemType<ProtogenSentinelLeggings>();
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "Summons an AI core that fires adaptive energy beams\nProjectiles have a 20% chance to split into seeking fragments\n+4 max minions and +25% summon damage\nGrants immunity to most debuffs";
|
||||
player.maxMinions += 4;
|
||||
player.GetDamage(DamageClass.Summon) += 0.25f;
|
||||
player.buffImmune[BuffID.Poisoned] = true;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[BuffID.Bleeding] = true;
|
||||
player.buffImmune[BuffID.Confused] = true;
|
||||
player.buffImmune[BuffID.Slow] = true;
|
||||
player.buffImmune[BuffID.Weak] = true;
|
||||
player.buffImmune[BuffID.Silenced] = true;
|
||||
player.buffImmune[BuffID.Cursed] = true;
|
||||
// TODO: Implement AI core projectile and splitting projectile system
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient(ModContent.ItemType<MalfunctioningNanites>(), 14)
|
||||
.AddIngredient(ModContent.ItemType<ProtogenInitiateCowl>(), 1)
|
||||
.AddIngredient(ModContent.ItemType<EnergyCore>(), 8)
|
||||
.AddIngredient(ItemID.Wire, 20)
|
||||
.AddTile(ModContent.TileType<HighTechMarvel>())
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Items.Materials;
|
||||
using ForgottenWawiTech.Content.Rarities;
|
||||
using ForgottenWawiTech.Content.Tiles.CraftingStations;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.Armor.ProtogenSentinelSet
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class ProtogenSentinelHelmet : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = Item.sellPrice(gold: 60);
|
||||
Item.rare = ModContent.RarityType<ProtogenItem>();
|
||||
Item.defense = 34;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage(DamageClass.Melee) += 0.27f;
|
||||
player.GetCritChance(DamageClass.Melee) += 13;
|
||||
player.statLifeMax2 += 75;
|
||||
player.statManaMax2 += 60;
|
||||
player.GetAttackSpeed(DamageClass.Melee) += 0.12f;
|
||||
player.endurance += 0.06f;
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<ProtogenSentinelChestplate>() && legs.type == ModContent.ItemType<ProtogenSentinelLeggings>();
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "Summons an AI core that fires adaptive energy beams\nProjectiles have a 20% chance to split into seeking fragments\n+18% melee damage and speed\nGrants immunity to most debuffs";
|
||||
player.GetDamage(DamageClass.Melee) += 0.18f;
|
||||
player.GetAttackSpeed(DamageClass.Melee) += 0.18f;
|
||||
player.buffImmune[BuffID.Poisoned] = true;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[BuffID.Bleeding] = true;
|
||||
player.buffImmune[BuffID.Confused] = true;
|
||||
player.buffImmune[BuffID.Slow] = true;
|
||||
player.buffImmune[BuffID.Weak] = true;
|
||||
player.buffImmune[BuffID.Silenced] = true;
|
||||
player.buffImmune[BuffID.Cursed] = true;
|
||||
// TODO: Implement AI core projectile and splitting projectile system
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient(ModContent.ItemType<MalfunctioningNanites>(), 14)
|
||||
.AddIngredient(ModContent.ItemType<EnergyCore>(), 8)
|
||||
.AddIngredient(ModContent.ItemType<ProtogenInitiateHelmet>(), 1)
|
||||
.AddIngredient(ItemID.Wire, 20)
|
||||
.AddTile(ModContent.TileType<HighTechMarvel>())
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Items.Materials;
|
||||
using ForgottenWawiTech.Content.Rarities;
|
||||
using ForgottenWawiTech.Content.Tiles.CraftingStations;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.Armor.ProtogenSentinelSet
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class ProtogenSentinelHood : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = Item.sellPrice(gold: 60);
|
||||
Item.rare = ModContent.RarityType<ProtogenItem>();
|
||||
Item.defense = 26;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage(DamageClass.Magic) += 0.32f;
|
||||
player.statManaMax2 += 150;
|
||||
player.manaCost -= 0.20f;
|
||||
player.GetCritChance(DamageClass.Magic) += 12;
|
||||
player.endurance += 0.06f;
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<ProtogenSentinelChestplate>() && legs.type == ModContent.ItemType<ProtogenSentinelLeggings>();
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "Summons an AI core that fires adaptive energy beams\nProjectiles have a 20% chance to split into seeking fragments\n+25% magic damage and -22% mana cost\nGrants immunity to most debuffs";
|
||||
player.GetDamage(DamageClass.Magic) += 0.25f;
|
||||
player.manaCost -= 0.22f;
|
||||
player.buffImmune[BuffID.Poisoned] = true;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[BuffID.Bleeding] = true;
|
||||
player.buffImmune[BuffID.Confused] = true;
|
||||
player.buffImmune[BuffID.Slow] = true;
|
||||
player.buffImmune[BuffID.Weak] = true;
|
||||
player.buffImmune[BuffID.Silenced] = true;
|
||||
player.buffImmune[BuffID.Cursed] = true;
|
||||
// TODO: Implement AI core projectile and splitting projectile system
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient(ModContent.ItemType<MalfunctioningNanites>(), 14)
|
||||
.AddIngredient(ModContent.ItemType<EnergyCore>(), 8)
|
||||
.AddIngredient(ModContent.ItemType<ProtogenInitiateHood>(), 1)
|
||||
.AddIngredient(ItemID.Wire, 20)
|
||||
.AddTile(ModContent.TileType<HighTechMarvel>())
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Items.Materials;
|
||||
using ForgottenWawiTech.Content.Rarities;
|
||||
using ForgottenWawiTech.Content.Tiles.CraftingStations;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.Armor.ProtogenSentinelSet
|
||||
{
|
||||
[AutoloadEquip(EquipType.Legs)]
|
||||
public class ProtogenSentinelLeggings : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = Item.sellPrice(gold: 70);
|
||||
Item.rare = ModContent.RarityType<ProtogenItem>();
|
||||
Item.defense = 28;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage(DamageClass.Generic) += 0.12f;
|
||||
player.GetCritChance(DamageClass.Generic) += 6;
|
||||
player.statLifeMax2 += 35;
|
||||
player.statManaMax2 += 50;
|
||||
player.moveSpeed += 0.15f;
|
||||
player.endurance += 0.06f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient(ModContent.ItemType<MalfunctioningNanites>(), 17)
|
||||
.AddIngredient(ModContent.ItemType<EnergyCore>(), 10)
|
||||
.AddIngredient(ModContent.ItemType<ProtogenInitiateLeggings>(), 1)
|
||||
.AddIngredient(ItemID.Wire, 25)
|
||||
.AddTile(ModContent.TileType<HighTechMarvel>())
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Items.Materials;
|
||||
using ForgottenWawiTech.Content.Rarities;
|
||||
using ForgottenWawiTech.Content.Tiles.CraftingStations;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.Armor.ProtogenSentinelSet
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class ProtogenSentinelMask : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = Item.sellPrice(gold: 60);
|
||||
Item.rare = ModContent.RarityType<ProtogenItem>();
|
||||
Item.defense = 30;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage(DamageClass.Ranged) += 0.30f;
|
||||
player.GetCritChance(DamageClass.Ranged) += 16;
|
||||
player.statLifeMax2 += 70;
|
||||
player.statManaMax2 += 60;
|
||||
player.endurance += 0.06f;
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<ProtogenSentinelChestplate>() && legs.type == ModContent.ItemType<ProtogenSentinelLeggings>();
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "Summons an AI core that fires adaptive energy beams\nProjectiles have a 20% chance to split into seeking fragments\n+22% ranged damage and critical strike chance\nGrants immunity to most debuffs";
|
||||
player.GetDamage(DamageClass.Ranged) += 0.22f;
|
||||
player.GetCritChance(DamageClass.Ranged) += 22;
|
||||
player.buffImmune[BuffID.Poisoned] = true;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[BuffID.Bleeding] = true;
|
||||
player.buffImmune[BuffID.Confused] = true;
|
||||
player.buffImmune[BuffID.Slow] = true;
|
||||
player.buffImmune[BuffID.Weak] = true;
|
||||
player.buffImmune[BuffID.Silenced] = true;
|
||||
player.buffImmune[BuffID.Cursed] = true;
|
||||
// TODO: Implement AI core projectile and splitting projectile system
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient(ModContent.ItemType<MalfunctioningNanites>(), 14)
|
||||
.AddIngredient(ModContent.ItemType<EnergyCore>(), 8)
|
||||
.AddIngredient(ModContent.ItemType<ProtogenInitiateMask>(), 1)
|
||||
.AddIngredient(ItemID.Wire, 20)
|
||||
.AddTile(ModContent.TileType<HighTechMarvel>())
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user