Plaguebringer
This commit is contained in:
1 parent
91b0b20c83
commit
2f631a97a5
8 files changed
+51
-34
No files matched your search
@@ -415,7 +415,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (!proj.npcProj && !proj.trap && proj.friendly)
|
||||
{
|
||||
if (plaguebringerCarapace && CalamityProjectileSets.IsFriendlyBeeProjectile[proj.type])
|
||||
if (plaguebringerPatronSet && CalamityProjectileSets.IsFriendlyBeeProjectile[proj.type])
|
||||
target.AddBuff(BuffType<Plague>(), 300);
|
||||
|
||||
// All projectiles fired from Soma Prime are marked using CalamityGlobalProjectile
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using CalamityMod.Enums;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Plaguebringer;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -61,12 +61,12 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
if (player.velocity.X != 0f)
|
||||
hitDirection = Math.Sign(player.velocity.X);
|
||||
hitContext.HitDirection = hitDirection;
|
||||
hitContext.PlayerImmunityFrames = AsgardsValor.ShieldSlamIFrames;
|
||||
hitContext.PlayerImmunityFrames = PlaguebringerVisor.PlagueDashIFrames;
|
||||
|
||||
// Define damage parameters.
|
||||
hitContext.damageClass = DamageClass.Summon;
|
||||
hitContext.BaseDamage = 50;
|
||||
hitContext.BaseKnockback = 3f;
|
||||
hitContext.BaseDamage = PlaguebringerVisor.PlagueDashDamage;
|
||||
hitContext.BaseKnockback = PlaguebringerVisor.PlagueDashKnockback;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Plaguebringer
|
||||
@@ -11,6 +12,11 @@ namespace CalamityMod.Items.Armor.Plaguebringer
|
||||
public class PlaguebringerCarapace : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static int MinionSlotBoost = 1;
|
||||
public static float SummonDamageBoost = 0.15f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MinionSlotBoost, SummonDamageBoost.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.dedServ)
|
||||
@@ -26,7 +32,7 @@ namespace CalamityMod.Items.Armor.Plaguebringer
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.defense = 17;
|
||||
Item.defense = 13;
|
||||
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.Calamity().donorItem = true;
|
||||
@@ -35,7 +41,8 @@ namespace CalamityMod.Items.Armor.Plaguebringer
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.Calamity().plaguebringerCarapace = true;
|
||||
player.GetDamage<SummonDamageClass>() += 0.15f;
|
||||
player.maxMinions += MinionSlotBoost;
|
||||
player.GetDamage<SummonDamageClass>() += SummonDamageBoost;
|
||||
player.buffImmune[ModContent.BuffType<Plague>()] = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Plaguebringer
|
||||
@@ -9,11 +10,17 @@ namespace CalamityMod.Items.Armor.Plaguebringer
|
||||
public class PlaguebringerPistons : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static int MinionSlotBoost = 1;
|
||||
public static float SummonDamageBoost = 0.15f;
|
||||
public static float MoveSpeedBoost = 0.15f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MinionSlotBoost, SummonDamageBoost.ToPercent(), MoveSpeedBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.defense = 8;
|
||||
Item.defense = 10;
|
||||
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.Calamity().donorItem = true;
|
||||
@@ -21,8 +28,9 @@ namespace CalamityMod.Items.Armor.Plaguebringer
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<SummonDamageClass>() += 0.15f;
|
||||
player.moveSpeed += 0.15f;
|
||||
player.maxMinions += MinionSlotBoost;
|
||||
player.GetDamage<SummonDamageClass>() += SummonDamageBoost;
|
||||
player.moveSpeed += MoveSpeedBoost;
|
||||
|
||||
//Flower Boots code
|
||||
if (player.whoAmI == Main.myPlayer && player.velocity.Y == 0f && player.grappling[0] == -1)
|
||||
|
||||
@@ -5,6 +5,7 @@ using CalamityMod.Items.Potions.Alcohol;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Plaguebringer
|
||||
@@ -13,14 +14,22 @@ namespace CalamityMod.Items.Armor.Plaguebringer
|
||||
public class PlaguebringerVisor : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
public const int PlagueDashIFrames = 12;
|
||||
|
||||
public static int MinionSlotBoost = 1;
|
||||
public static float SummonDamageBoost = 0.15f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MinionSlotBoost, SummonDamageBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static int PlagueDashDamage = 50;
|
||||
public static float PlagueDashKnockback = 3f;
|
||||
public static int PlagueDashIFrames = 12;
|
||||
public static int BeeMinionDamage = 25;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.defense = 7; // 32 total
|
||||
Item.defense = 9; // 32 total
|
||||
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.Calamity().donorItem = true;
|
||||
@@ -28,18 +37,13 @@ namespace CalamityMod.Items.Armor.Plaguebringer
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<SummonDamageClass>() += 0.15f;
|
||||
player.maxMinions += MinionSlotBoost;
|
||||
player.GetDamage<SummonDamageClass>() += SummonDamageBoost;
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<PlaguebringerCarapace>() && legs.type == ModContent.ItemType<PlaguebringerPistons>();
|
||||
}
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ModContent.ItemType<PlaguebringerCarapace>() && legs.type == ModContent.ItemType<PlaguebringerPistons>();
|
||||
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
player.armorEffectDrawShadow = true;
|
||||
}
|
||||
public override void ArmorSetShadows(Player player) => player.armorEffectDrawShadow = true;
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
@@ -48,7 +52,6 @@ namespace CalamityMod.Items.Armor.Plaguebringer
|
||||
player.Calamity().plaguebringerPatronSet = true;
|
||||
player.Calamity().DashID = PlaguebringerArmorDash.ID;
|
||||
player.dashType = 0;
|
||||
player.maxMinions += 3;
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
var source = player.GetSource_ItemUse(Item);
|
||||
|
||||
@@ -479,11 +479,6 @@ RadiatorBuff: {
|
||||
Description: Radioactive but adorable
|
||||
}
|
||||
|
||||
ReaverOrbBuff: {
|
||||
DisplayName: Reaver Orb
|
||||
Description: The reaver orb will light your way
|
||||
}
|
||||
|
||||
SparksBuff: {
|
||||
DisplayName: Sparks
|
||||
Description: Eats butterflies
|
||||
|
||||
@@ -346,9 +346,9 @@ PlaguebringerCarapace: {
|
||||
DisplayName: Plaguebringer Carapace
|
||||
Tooltip:
|
||||
'''
|
||||
{$CommonItemTooltip.IncreasesMaxMinionsBy}
|
||||
{$CommonItemTooltip.PercentIncreasedSummonDamage@1}
|
||||
Grants immunity to the Plague
|
||||
15% increased summon damage
|
||||
Friendly bees inflict the plague
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -356,19 +356,24 @@ PlaguebringerPistons: {
|
||||
DisplayName: Plaguebringer Pistons
|
||||
Tooltip:
|
||||
'''
|
||||
15% increased summon damage and 15% increased movement speed
|
||||
You grow flowers on the grass beneath you, chance to grow very random dye plants on grassless dirt
|
||||
{$CommonItemTooltip.IncreasesMaxMinionsBy}
|
||||
{$CommonItemTooltip.PercentIncreasedSummonDamage@1} and {$CommonItemTooltip.PercentIncreasedMovementSpeed@2}
|
||||
Flowers grow on the grass you walk on, and dye plants rarely grow on grassless dirt you walk on
|
||||
'''
|
||||
}
|
||||
|
||||
PlaguebringerVisor: {
|
||||
DisplayName: Plaguebringer Visor
|
||||
Tooltip: 15% increased summon damage
|
||||
Tooltip:
|
||||
'''
|
||||
{$CommonItemTooltip.IncreasesMaxMinionsBy}
|
||||
{$CommonItemTooltip.PercentIncreasedSummonDamage@1}
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
Grants a plague dash which can slam through enemies without taking damage
|
||||
Summons a lil' plaguebringer which swarms your foes with little bees
|
||||
+3 max minions
|
||||
Friendly bees inflict the plague
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -110,7 +110,6 @@ ProtolithBangleProjectile.DisplayName: Marble Shatter
|
||||
PscTransformAnimation.DisplayName: Psc Transform Animation
|
||||
PscTransformRocks.DisplayName: Psc Transform Rocks
|
||||
PuddleSplash.DisplayName: Puddle Splash
|
||||
ReaverOrb.DisplayName: Reaver Orb
|
||||
ReaverThornBase.DisplayName: Thorn
|
||||
RedLabSeeker.DisplayName: Seeking Mechanism
|
||||
RelicGuard.DisplayName: Relic Guard
|
||||
|
||||
Reference in new issue
Block a user