Merge branch '1.4' of https://github.com/CalamityTeam/CalamityMod into 1.4
This commit is contained in:
commit
ad0ac3ec1c
195 files changed
+801
-1576
No files matched your search
@@ -9,7 +9,7 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Bloody Mary");
|
||||
Description.SetDefault("Damage, critical strike chance, movement speed, and melee speed boosted during a Blood Moon, life regen and defense reduced");
|
||||
Description.SetDefault("Damage and movement speed boosted during a Blood Moon, life regen and defense reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
@@ -19,8 +19,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().bloodyMary = true;
|
||||
if (Main.bloodMoon)
|
||||
player.GetAttackSpeed<MeleeDamageClass>() += 0.15f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Tequila");
|
||||
Description.SetDefault("Damage, critical strike chance, damage reduction, defense, and knockback boosted during daytime, life regen reduced");
|
||||
Description.SetDefault("Critical strike chance, defense, and knockback boosted during daytime, life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Tequila Sunrise");
|
||||
Description.SetDefault("Damage, critical strike chance, damage reduction, defense, and knockback boosted during daytime, life regen reduced");
|
||||
Description.SetDefault("Critical strike chance, defense, and knockback boosted during daytime, life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
|
||||
+27
-30
@@ -190,7 +190,7 @@ namespace CalamityMod.CalPlayer
|
||||
#region Timer and Counter
|
||||
public int gaelSwipes = 0;
|
||||
public int gaelRageAttackCooldown = 0;
|
||||
public int aBulwarkRareMeleeBoostTimer = 0;
|
||||
public int hideOfDeusMeleeBoostTimer = 0;
|
||||
public int nebulaManaNerfCounter = 0;
|
||||
public int alcoholPoisonLevel = 0;
|
||||
public int modStealthTimer;
|
||||
@@ -221,7 +221,7 @@ namespace CalamityMod.CalPlayer
|
||||
public int auralisAuroraCounter = 0;
|
||||
public int auralisAuroraCooldown = 0;
|
||||
public int auralisAurora = 0;
|
||||
public int aBulwarkRareTimer = 0;
|
||||
public int hideOfDeusTimer = 0;
|
||||
public int spiritOriginBullseyeShootCountdown = 0;
|
||||
public int spiritOriginConvertedCrit = 0;
|
||||
public int RustyMedallionCooldown = 0;
|
||||
@@ -427,12 +427,10 @@ namespace CalamityMod.CalPlayer
|
||||
public bool evasionScarf = false;
|
||||
public bool badgeOfBravery = false;
|
||||
public bool warbannerOfTheSun = false;
|
||||
public float warBannerBonus = 0f;
|
||||
public bool cryogenSoul = false;
|
||||
public bool yInsignia = false;
|
||||
public bool eGauntlet = false;
|
||||
public bool eTalisman = false;
|
||||
public bool statisBeltOfCurses = false;
|
||||
public int statisTimer = 0;
|
||||
public bool nucleogenesis = false;
|
||||
public bool nuclearRod = false;
|
||||
@@ -445,8 +443,8 @@ namespace CalamityMod.CalPlayer
|
||||
public bool aquaticHeartWaterBuff = false;
|
||||
public bool aquaticHeartIce = false;
|
||||
public bool aSpark = false;
|
||||
public bool aSparkRare = false;
|
||||
public bool aBulwarkRare = false;
|
||||
public bool transformer = false;
|
||||
public bool hideOfDeus = false;
|
||||
public bool dAmulet = false;
|
||||
public bool fCarapace = false;
|
||||
public bool gShell = false;
|
||||
@@ -473,13 +471,14 @@ namespace CalamityMod.CalPlayer
|
||||
public bool frostFlare = false;
|
||||
public bool beeResist = false;
|
||||
public bool uberBees = false;
|
||||
public bool projRefRare = false;
|
||||
public int projRefRareLifeRegenCounter = 0;
|
||||
public bool evolution = false;
|
||||
public int evolutionLifeRegenCounter = 0;
|
||||
public bool nanotech = false;
|
||||
public bool deadshotBrooch = false;
|
||||
public bool shadowMinions = false;
|
||||
public bool holyMinions = false;
|
||||
public bool alchFlask = false;
|
||||
public bool toxicHeart = false;
|
||||
public bool abaddon = false;
|
||||
public bool aeroStone = false;
|
||||
public bool community = false;
|
||||
@@ -880,7 +879,6 @@ namespace CalamityMod.CalPlayer
|
||||
#region Minion
|
||||
public bool wDroid = false;
|
||||
public bool resButterfly = false;
|
||||
public bool glSword = false;
|
||||
public bool mWorm = false;
|
||||
public bool iClasper = false;
|
||||
public bool magicHat = false;
|
||||
@@ -1572,8 +1570,8 @@ namespace CalamityMod.CalPlayer
|
||||
badgeOfBravery = false;
|
||||
warbannerOfTheSun = false;
|
||||
aSpark = false;
|
||||
aSparkRare = false;
|
||||
aBulwarkRare = false;
|
||||
transformer = false;
|
||||
hideOfDeus = false;
|
||||
dAmulet = false;
|
||||
fCarapace = false;
|
||||
gShell = false;
|
||||
@@ -1587,20 +1585,20 @@ namespace CalamityMod.CalPlayer
|
||||
frostFlare = false;
|
||||
beeResist = false;
|
||||
uberBees = false;
|
||||
projRefRare = false;
|
||||
evolution = false;
|
||||
nanotech = false;
|
||||
deadshotBrooch = false;
|
||||
cryogenSoul = false;
|
||||
yInsignia = false;
|
||||
eGauntlet = false;
|
||||
eTalisman = false;
|
||||
statisBeltOfCurses = false;
|
||||
nucleogenesis = false;
|
||||
nuclearRod = false;
|
||||
heartOfDarkness = false;
|
||||
shadowMinions = false;
|
||||
holyMinions = false;
|
||||
alchFlask = false;
|
||||
toxicHeart = false;
|
||||
abaddon = false;
|
||||
aeroStone = false;
|
||||
community = false;
|
||||
@@ -1905,7 +1903,6 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
wDroid = false;
|
||||
resButterfly = false;
|
||||
glSword = false;
|
||||
mWorm = false;
|
||||
iClasper = false;
|
||||
magicHat = false;
|
||||
@@ -2136,7 +2133,7 @@ namespace CalamityMod.CalPlayer
|
||||
auralisAuroraCounter = 0;
|
||||
auralisAuroraCooldown = 0;
|
||||
auralisAurora = 0;
|
||||
aBulwarkRareTimer = 0;
|
||||
hideOfDeusTimer = 0;
|
||||
RustyMedallionCooldown = 0;
|
||||
SulphWaterPoisoningLevel = 0f;
|
||||
spiritOriginConvertedCrit = 0;
|
||||
@@ -2151,7 +2148,7 @@ namespace CalamityMod.CalPlayer
|
||||
bloodflareMageCooldown = 0;
|
||||
tarraRangedCooldown = 0;
|
||||
tarraMageHealCooldown = 0;
|
||||
aBulwarkRareMeleeBoostTimer = 0;
|
||||
hideOfDeusMeleeBoostTimer = 0;
|
||||
acidRoundMultiplier = 1D;
|
||||
externalAbyssLight = 0;
|
||||
externalColdImmunity = externalHeatImmunity = false;
|
||||
@@ -4555,7 +4552,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (aSparkRare)
|
||||
if (transformer)
|
||||
{
|
||||
if (npc.type == NPCID.BlueJellyfish || npc.type == NPCID.PinkJellyfish || npc.type == NPCID.GreenJellyfish ||
|
||||
npc.type == NPCID.FungoFish || npc.type == NPCID.BloodJelly || npc.type == NPCID.AngryNimbus || npc.type == NPCID.GigaZapper ||
|
||||
@@ -4683,11 +4680,11 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (aBulwarkRare)
|
||||
if (hideOfDeus)
|
||||
{
|
||||
aBulwarkRareMeleeBoostTimer += 3 * damage;
|
||||
if (aBulwarkRareMeleeBoostTimer > 900)
|
||||
aBulwarkRareMeleeBoostTimer = 900;
|
||||
hideOfDeusMeleeBoostTimer += 3 * damage;
|
||||
if (hideOfDeusMeleeBoostTimer > 900)
|
||||
hideOfDeusMeleeBoostTimer = 900;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -4701,7 +4698,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (!disableAllDodges && !Player.HasCooldown(GlobalDodge.ID))
|
||||
{
|
||||
// The Evolution
|
||||
if (projRefRare)
|
||||
if (evolution)
|
||||
{
|
||||
proj.hostile = false;
|
||||
proj.friendly = true;
|
||||
@@ -4711,7 +4708,7 @@ namespace CalamityMod.CalPlayer
|
||||
Player.GiveIFrames(20, false);
|
||||
|
||||
damage = 0;
|
||||
projRefRareLifeRegenCounter = 300;
|
||||
evolutionLifeRegenCounter = 300;
|
||||
projTypeJustHitBy = proj.type;
|
||||
|
||||
Player.AddCooldown(GlobalDodge.ID, BalancingConstants.EvolutionReflectCooldown);
|
||||
@@ -4845,13 +4842,13 @@ namespace CalamityMod.CalPlayer
|
||||
// The amount of damage that will be dealt is yet to be determined.
|
||||
//
|
||||
|
||||
if (projRefRare)
|
||||
if (evolution)
|
||||
{
|
||||
if (proj.type == projTypeJustHitBy)
|
||||
projectileDamageReduction += 0.15;
|
||||
}
|
||||
|
||||
if (aSparkRare)
|
||||
if (transformer)
|
||||
{
|
||||
if (proj.type == ProjectileID.MartianTurretBolt || proj.type == ProjectileID.GigaZapperSpear || proj.type == ProjectileID.CultistBossLightningOrbArc || proj.type == ProjectileID.VortexLightning || proj.type == ModContent.ProjectileType<DestroyerElectricLaser>() ||
|
||||
proj.type == ProjectileID.BulletSnowman || proj.type == ProjectileID.BulletDeadeye || proj.type == ProjectileID.SniperBullet || proj.type == ProjectileID.VortexLaser)
|
||||
@@ -4861,7 +4858,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (CalamityLists.projectileDestroyExceptionList.TrueForAll(x => proj.type != x) && proj.active && !proj.friendly && proj.hostile && damage > 0)
|
||||
{
|
||||
// Daedalus Reflect counts as a reflect but doesn't actually stop you from taking damage
|
||||
if (daedalusReflect && !disableAllDodges && !projRefRare && !Player.HasCooldown(GlobalDodge.ID))
|
||||
if (daedalusReflect && !disableAllDodges && !evolution && !Player.HasCooldown(GlobalDodge.ID))
|
||||
projectileDamageReduction += 0.5;
|
||||
}
|
||||
|
||||
@@ -5112,7 +5109,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (CalamityLists.projectileDestroyExceptionList.TrueForAll(x => proj.type != x) && proj.active && !proj.friendly && proj.hostile && damage > 0)
|
||||
{
|
||||
// The Transformer can reflect bullets
|
||||
if (aSparkRare)
|
||||
if (transformer)
|
||||
{
|
||||
if (proj.type == ProjectileID.BulletSnowman || proj.type == ProjectileID.BulletDeadeye || proj.type == ProjectileID.SniperBullet || proj.type == ProjectileID.VortexLaser)
|
||||
{
|
||||
@@ -5128,7 +5125,7 @@ namespace CalamityMod.CalPlayer
|
||||
// Reflects count as dodges. They share the timer and can be disabled by global dodge disabling effects.
|
||||
if (!disableAllDodges && !Player.HasCooldown(GlobalDodge.ID))
|
||||
{
|
||||
if (daedalusReflect && !projRefRare)
|
||||
if (daedalusReflect && !evolution)
|
||||
{
|
||||
proj.hostile = false;
|
||||
proj.friendly = true;
|
||||
@@ -6005,7 +6002,7 @@ namespace CalamityMod.CalPlayer
|
||||
CalamityUtils.ProjectileRain(source, Player.Center, 400f, 100f, 500f, 800f, 20f, ModContent.ProjectileType<StickyFeatherAero>(), featherDamage, 1f, Player.whoAmI);
|
||||
}
|
||||
}
|
||||
if (aBulwarkRare)
|
||||
if (hideOfDeus)
|
||||
{
|
||||
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<HideofAstrumDeus>()));
|
||||
SoundEngine.PlaySound(SoundID.Item74, Player.Center);
|
||||
@@ -6071,7 +6068,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// Start with base damage, then apply the best damage class you can
|
||||
int sDamage = 6;
|
||||
if (aSparkRare)
|
||||
if (transformer)
|
||||
sDamage += 42;
|
||||
sDamage = (int)Player.GetBestClassDamage().ApplyTo(sDamage);
|
||||
if (Player.whoAmI == Main.myPlayer)
|
||||
|
||||
@@ -345,7 +345,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (bloodyMary)
|
||||
{
|
||||
alcoholPoisonLevel++;
|
||||
lifeRegenLost += 2;
|
||||
lifeRegenLost += 4;
|
||||
}
|
||||
if (tequila)
|
||||
{
|
||||
@@ -355,7 +355,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (tequilaSunrise)
|
||||
{
|
||||
alcoholPoisonLevel++;
|
||||
lifeRegenLost += 1;
|
||||
lifeRegenLost += 2;
|
||||
}
|
||||
if (screwdriver)
|
||||
{
|
||||
@@ -378,12 +378,12 @@ namespace CalamityMod.CalPlayer
|
||||
if (starBeamRye)
|
||||
{
|
||||
alcoholPoisonLevel++;
|
||||
lifeRegenLost += 1;
|
||||
lifeRegenLost += 2;
|
||||
}
|
||||
if (moscowMule)
|
||||
{
|
||||
alcoholPoisonLevel++;
|
||||
lifeRegenLost += 2;
|
||||
lifeRegenLost += 4;
|
||||
}
|
||||
if (whiteWine)
|
||||
{
|
||||
@@ -710,7 +710,7 @@ namespace CalamityMod.CalPlayer
|
||||
Player.lifeRegenTime += 1;
|
||||
}
|
||||
|
||||
if (projRefRareLifeRegenCounter > 0)
|
||||
if (evolutionLifeRegenCounter > 0)
|
||||
{
|
||||
Player.lifeRegenTime += 2;
|
||||
Player.lifeRegen += 2;
|
||||
|
||||
@@ -803,7 +803,7 @@ namespace CalamityMod.CalPlayer
|
||||
ProvidenceBurnEffectDrawer.Update();
|
||||
|
||||
// Transformer immunity to Electrified
|
||||
if (aSparkRare)
|
||||
if (transformer)
|
||||
Player.buffImmune[BuffID.Electrified] = true;
|
||||
|
||||
// Reduce breath meter while in icy water instead of chilling
|
||||
@@ -1194,12 +1194,12 @@ namespace CalamityMod.CalPlayer
|
||||
xerocDmg -= 2f;
|
||||
if (xerocDmg < 0f)
|
||||
xerocDmg = 0f;
|
||||
if (aBulwarkRareMeleeBoostTimer > 0)
|
||||
aBulwarkRareMeleeBoostTimer--;
|
||||
if (hideOfDeusMeleeBoostTimer > 0)
|
||||
hideOfDeusMeleeBoostTimer--;
|
||||
if (gaelRageAttackCooldown > 0)
|
||||
gaelRageAttackCooldown--;
|
||||
if (projRefRareLifeRegenCounter > 0)
|
||||
projRefRareLifeRegenCounter--;
|
||||
if (evolutionLifeRegenCounter > 0)
|
||||
evolutionLifeRegenCounter--;
|
||||
if (hurtSoundTimer > 0)
|
||||
hurtSoundTimer--;
|
||||
if (icicleCooldown > 0)
|
||||
@@ -1222,8 +1222,8 @@ namespace CalamityMod.CalPlayer
|
||||
dogTextCooldown--;
|
||||
if (titanCooldown > 0)
|
||||
titanCooldown--;
|
||||
if (aBulwarkRareTimer > 0)
|
||||
aBulwarkRareTimer--;
|
||||
if (hideOfDeusTimer > 0)
|
||||
hideOfDeusTimer--;
|
||||
if (hellbornBoost > 0)
|
||||
hellbornBoost--;
|
||||
if (persecutedEnchantSummonTimer < 1800)
|
||||
@@ -2361,7 +2361,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (astralInjection)
|
||||
{
|
||||
if (Player.statMana < Player.statManaMax2)
|
||||
Player.statMana += 3;
|
||||
Player.statMana += 2;
|
||||
if (Player.statMana > Player.statManaMax2)
|
||||
Player.statMana = Player.statManaMax2;
|
||||
}
|
||||
@@ -2472,8 +2472,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (Main.bloodMoon)
|
||||
{
|
||||
Player.GetDamage<GenericDamageClass>() += 0.15f;
|
||||
Player.GetCritChance<GenericDamageClass>() += BloodyMary.CritBoost;
|
||||
Player.GetDamage<GenericDamageClass>() += 0.1f;
|
||||
Player.moveSpeed += 0.1f;
|
||||
}
|
||||
}
|
||||
@@ -2483,9 +2482,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (Main.dayTime)
|
||||
{
|
||||
Player.statDefense += 5;
|
||||
Player.GetDamage<GenericDamageClass>() += 0.03f;
|
||||
Player.GetCritChance<GenericDamageClass>() += Tequila.CritBoost;
|
||||
Player.endurance += 0.03f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2494,9 +2491,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (Main.dayTime)
|
||||
{
|
||||
Player.statDefense += 10;
|
||||
Player.GetDamage<GenericDamageClass>() += 0.07f;
|
||||
Player.GetCritChance<GenericDamageClass>() += TequilaSunrise.CritBoost;
|
||||
Player.endurance += 0.03f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2522,7 +2517,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
if (whiteWine)
|
||||
Player.GetDamage<MagicDamageClass>() += 0.1f;
|
||||
Player.GetDamage<MagicDamageClass>() += 0.08f;
|
||||
|
||||
// Adjustment to the Tipsy debuff
|
||||
if (Player.tipsy)
|
||||
|
||||
@@ -62,12 +62,17 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (flamingItemEnchant)
|
||||
target.AddBuff(BuffType<VulnerabilityHex>(), VulnerabilityHex.AflameDuration);
|
||||
|
||||
target.Calamity().IncreasedColdEffects_EskimoSet = eskimoSet;
|
||||
target.Calamity().IncreasedColdEffects_CryoStone = CryoStone;
|
||||
|
||||
target.Calamity().IncreasedElectricityEffects_Transformer = transformer;
|
||||
|
||||
target.Calamity().IncreasedHeatEffects_Fireball = fireball;
|
||||
target.Calamity().IncreasedHeatEffects_CinnamonRoll = cinnamonRoll;
|
||||
target.Calamity().IncreasedHeatEffects_HellfireTreads = hellfireTreads;
|
||||
|
||||
target.Calamity().IncreasedColdEffects_EskimoSet = eskimoSet;
|
||||
target.Calamity().IncreasedSicknessEffects_ToxicHeart = toxicHeart;
|
||||
|
||||
target.Calamity().IncreasedSicknessAndWaterEffects_EvergreenGin = evergreenGin;
|
||||
|
||||
@@ -201,11 +206,16 @@ namespace CalamityMod.CalPlayer
|
||||
if (witheringWeaponEnchant)
|
||||
witheringDamageDone += (int)(damage * (crit ? 2D : 1D));
|
||||
|
||||
cgn.IncreasedColdEffects_EskimoSet = eskimoSet;
|
||||
cgn.IncreasedColdEffects_CryoStone = CryoStone;
|
||||
|
||||
cgn.IncreasedElectricityEffects_Transformer = transformer;
|
||||
|
||||
cgn.IncreasedHeatEffects_Fireball = fireball;
|
||||
cgn.IncreasedHeatEffects_CinnamonRoll = cinnamonRoll;
|
||||
cgn.IncreasedHeatEffects_HellfireTreads = hellfireTreads;
|
||||
|
||||
cgn.IncreasedColdEffects_EskimoSet = eskimoSet;
|
||||
cgn.IncreasedSicknessEffects_ToxicHeart = toxicHeart;
|
||||
|
||||
cgn.IncreasedSicknessAndWaterEffects_EvergreenGin = evergreenGin;
|
||||
|
||||
@@ -583,9 +593,9 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (npcCheck)
|
||||
{
|
||||
if (item.CountsAsClass<MeleeDamageClass>() && aBulwarkRare && aBulwarkRareTimer == 0)
|
||||
if (item.CountsAsClass<MeleeDamageClass>() && hideOfDeus && hideOfDeusTimer == 0)
|
||||
{
|
||||
aBulwarkRareTimer = 10;
|
||||
hideOfDeusTimer = 10;
|
||||
int bulwarkStarDamage = (int)Player.GetTotalDamage<MeleeDamageClass>().ApplyTo(320);
|
||||
for (int n = 0; n < 3; n++)
|
||||
CalamityUtils.ProjectileRain(source, Player.Center, 400f, 100f, 500f, 800f, 29f, ProjectileType<AstralStar>(), bulwarkStarDamage, 5f, Player.whoAmI);
|
||||
@@ -722,9 +732,9 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.wingTime > Player.wingTimeMax)
|
||||
Player.wingTime = Player.wingTimeMax;
|
||||
}
|
||||
if (aBulwarkRare && aBulwarkRareTimer == 0)
|
||||
if (hideOfDeus && hideOfDeusTimer == 0)
|
||||
{
|
||||
aBulwarkRareTimer = 10;
|
||||
hideOfDeusTimer = 10;
|
||||
int bulwarkStarDamage = (int)Player.GetTotalDamage<MeleeDamageClass>().ApplyTo(320);
|
||||
for (int n = 0; n < 3; n++)
|
||||
CalamityUtils.ProjectileRain(source, Player.Center, 400f, 100f, 500f, 800f, 29f, ProjectileType<AstralStar>(), bulwarkStarDamage, 5f, Player.whoAmI);
|
||||
|
||||
@@ -526,6 +526,7 @@ namespace CalamityMod
|
||||
ProjectileID.ChargedBlasterCannon,
|
||||
ProjectileID.MedusaHead,
|
||||
|
||||
ProjectileType<UrchinMaceProjectile>(),
|
||||
ProjectileType<BrokenBiomeBladeHoldout>(),
|
||||
ProjectileType<AridGrandeur>(),
|
||||
ProjectileType<BitingEmbrace>(),
|
||||
@@ -1783,6 +1784,7 @@ namespace CalamityMod
|
||||
ProjectileType<DragonRageStaff>(),
|
||||
ProjectileType<YateveoBloomProj>(),
|
||||
ProjectileType<UrchinBall>(),
|
||||
ProjectileType<UrchinMaceProjectile>(),
|
||||
ProjectileType<TyphonsGreedStaff>(),
|
||||
ProjectileType<DevilsSunriseProj>(),
|
||||
ProjectileType<DevilsSunriseCyclone>(),
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Items.Accessories
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Cryo Stone");
|
||||
Tooltip.SetDefault("One of the ancient relics\n" +
|
||||
"Multiplies all cold-based debuff damage by 1.5\n" +
|
||||
"Creates a rotating ice shield around you that damages and slows down enemies on contact");
|
||||
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(4, 4));
|
||||
ItemID.Sets.AnimatesAsSoul[Type] = true;
|
||||
|
||||
@@ -32,8 +32,8 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
player.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
|
||||
modPlayer.aBulwarkRare = true;
|
||||
if (modPlayer.aBulwarkRareMeleeBoostTimer > 0)
|
||||
modPlayer.hideOfDeus = true;
|
||||
if (modPlayer.hideOfDeusMeleeBoostTimer > 0)
|
||||
player.GetDamage<TrueMeleeDamageClass>() += 0.5f;
|
||||
player.buffImmune[BuffID.CursedInferno] = true;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.projRefRare = true;
|
||||
modPlayer.evolution = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,8 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("The Transformer");
|
||||
Tooltip.SetDefault("Taking damage releases a blast of sparks\n" +
|
||||
Tooltip.SetDefault("Multiplies all electricity-based debuff damage by 1.5\n" +
|
||||
"Taking damage releases a blast of sparks\n" +
|
||||
"Immunity to Electrified and you resist all electrical projectile and enemy damage\n" +
|
||||
"Enemy bullets do half damage to you and are reflected back at the enemy for 800% their original damage");
|
||||
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 16));
|
||||
@@ -31,7 +32,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.aSparkRare = true;
|
||||
modPlayer.transformer = true;
|
||||
modPlayer.aSpark = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,8 @@ namespace CalamityMod.Items.Accessories
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Toxic Heart");
|
||||
Tooltip.SetDefault("Summons a plague aura around you that damages nearby enemies\n" +
|
||||
"Makes you immune to the Plague debuff ");
|
||||
"Makes you immune to the Plague debuff\n"+
|
||||
"Multiplies all sickness-based debuff damage by 1.5");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -30,6 +31,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.toxicHeart = true;
|
||||
player.buffImmune[ModContent.BuffType<Plague>()] = true;
|
||||
int plagueCounter = 0;
|
||||
Lighting.AddLight((int)(player.Center.X / 16f), (int)(player.Center.Y / 16f), 0.05f, 1f, 0.1f);
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Ammo
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 20;
|
||||
Item.damage = 18;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 22;
|
||||
Item.height = 36;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Ammo
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 12;
|
||||
Item.damage = 11;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 22;
|
||||
Item.height = 36;
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 2; //4
|
||||
Item.defense = 4; //9
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 1; //4
|
||||
Item.defense = 3; //9
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 1; //4
|
||||
Item.defense = 2; //9
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
|
||||
@@ -690,11 +690,11 @@ namespace CalamityMod.Items
|
||||
|
||||
// Tin
|
||||
if (item.type == ItemID.TinHelmet)
|
||||
AddTooltip("4% increased critical strike chance");
|
||||
AddTooltip("3% increased critical strike chance");
|
||||
if (item.type == ItemID.TinChainmail)
|
||||
AddTooltip("+1 life regen");
|
||||
if (item.type == ItemID.TinGreaves)
|
||||
AddTooltip("10% increased movement speed");
|
||||
AddTooltip("5% increased movement speed");
|
||||
|
||||
// Iron
|
||||
if (item.type == ItemID.IronHelmet || item.type == ItemID.AncientIronHelmet || item.type == ItemID.IronChainmail || item.type == ItemID.IronGreaves)
|
||||
@@ -706,11 +706,11 @@ namespace CalamityMod.Items
|
||||
|
||||
// Silver
|
||||
if (item.type == ItemID.SilverHelmet)
|
||||
AddTooltip("6% increased critical strike chance");
|
||||
AddTooltip("5% increased critical strike chance");
|
||||
if (item.type == ItemID.SilverChainmail)
|
||||
AddTooltip("+2 life regen");
|
||||
if (item.type == ItemID.SilverGreaves)
|
||||
AddTooltip("10% increased movement speed");
|
||||
AddTooltip("8% increased movement speed");
|
||||
|
||||
// Tungsten
|
||||
if (item.type == ItemID.TungstenHelmet)
|
||||
@@ -718,7 +718,7 @@ namespace CalamityMod.Items
|
||||
if (item.type == ItemID.TungstenChainmail)
|
||||
AddTooltip("+1 life regen");
|
||||
if (item.type == ItemID.TungstenGreaves)
|
||||
AddTooltip("10% increased movement speed");
|
||||
AddTooltip("8% increased movement speed");
|
||||
|
||||
// Gold
|
||||
if (item.type == ItemID.GoldHelmet || item.type == ItemID.AncientGoldHelmet)
|
||||
@@ -726,7 +726,7 @@ namespace CalamityMod.Items
|
||||
if (item.type == ItemID.GoldChainmail)
|
||||
AddTooltip("Reduces damage taken by 5%");
|
||||
if (item.type == ItemID.GoldGreaves)
|
||||
AddTooltip("12% increased movement speed");
|
||||
AddTooltip("10% increased movement speed");
|
||||
|
||||
// Platinum
|
||||
if (item.type == ItemID.PlatinumHelmet)
|
||||
@@ -734,7 +734,7 @@ namespace CalamityMod.Items
|
||||
if (item.type == ItemID.PlatinumChainmail)
|
||||
AddTooltip("5% increased critical strike chance");
|
||||
if (item.type == ItemID.PlatinumGreaves)
|
||||
AddTooltip("12% increased movement speed");
|
||||
AddTooltip("10% increased movement speed");
|
||||
|
||||
// Shadow
|
||||
if (item.type == ItemID.ShadowHelmet || item.type == ItemID.AncientShadowHelmet || item.type == ItemID.ShadowScalemail || item.type == ItemID.AncientShadowScalemail || item.type == ItemID.ShadowGreaves || item.type == ItemID.AncientShadowGreaves)
|
||||
@@ -766,10 +766,6 @@ namespace CalamityMod.Items
|
||||
// Mythril
|
||||
if (item.type == ItemID.MythrilHood)
|
||||
EditTooltipByNum(0, (line) => line.Text = $"Increases maximum mana by {MythrilArmorSetChange.MaxManaBoost + 60}");
|
||||
if (item.type == ItemID.MythrilChainmail)
|
||||
EditTooltipByNum(0, (line) => line.Text = $"{MythrilArmorSetChange.ChestplateDamagePercentageBoost + 7}% increased damage");
|
||||
if (item.type == ItemID.MythrilGreaves)
|
||||
EditTooltipByNum(0, (line) => line.Text = $"{MythrilArmorSetChange.LeggingsCritChanceBoost + 10}% increased critical strike chance");
|
||||
|
||||
// Orichalcum
|
||||
if (item.type == ItemID.OrichalcumBreastplate)
|
||||
|
||||
@@ -81,11 +81,10 @@ namespace CalamityMod.Items
|
||||
{ ItemID.BluePhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(51)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.BluePhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) },
|
||||
{ ItemID.BluePhasesaber, Do(ScaleRatio(1.5f), DamageExact(72)) },
|
||||
// { ItemID.BluePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
{ ItemID.BlueSolution, Do(Value(Item.buyPrice(silver: 5))) },
|
||||
{ ItemID.BoneArrow, Do(DamageExact(7)) },
|
||||
{ ItemID.BonePickaxe, Do(PickPower(55), UseTimeExact(6)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
@@ -96,11 +95,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.BookofSkulls, Do(ManaExact(12), ShootSpeedExact(5.5f)) },
|
||||
{ ItemID.BookStaff, Do(ManaExact(14)) }, // Tome of Infinite Wisdom
|
||||
{ ItemID.Boomstick, Do(PointBlank, DamageExact(11)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.BorealWoodBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.BorealWoodBow, pointBlank },
|
||||
|
||||
{ ItemID.BorealWoodBow, pointBlank },
|
||||
{ ItemID.BorealWoodHammer, Do(HammerPower(25), UseTimeExact(11), TileBoostExact(+0)) },
|
||||
{ ItemID.BorealWoodSword, Do(AutoReuse, UseTurn) },
|
||||
|
||||
@@ -134,30 +129,20 @@ namespace CalamityMod.Items
|
||||
{ ItemID.ChlorophyteSaber, Do(UseMeleeSpeed, DamageExact(80), UseExact(10)) },
|
||||
{ ItemID.ChlorophyteShotbow, Do(PointBlank, DamageExact(80), UseExact(50)) },
|
||||
{ ItemID.ChlorophyteWarhammer, Do(HammerPower(90), UseTimeExact(8), TileBoostExact(+2)) },
|
||||
{ ItemID.ChristmasTreeSword, Do(AutoReuse, UseTurn, UseMeleeSpeed, DamageExact(114)) },
|
||||
{ ItemID.ChristmasTreeSword, Do(AutoReuse, UseTurn, UseMeleeSpeed) },
|
||||
{ ItemID.ClingerStaff, Do(DamageExact(118)) },
|
||||
{ ItemID.ClockworkAssaultRifle, Do(PointBlank, DamageExact(21)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.CobaltBreastplate, Do(DefenseDelta(+3)) },
|
||||
// { ItemID.CobaltBreastplate, Do(DefenseDelta(+1)) },
|
||||
// TODO -- DELETE THIS LINE IN 1.4.4 PORT
|
||||
{ ItemID.CobaltBreastplate, Do(DefenseDelta(+2)) },
|
||||
|
||||
{ ItemID.CobaltChainsaw, Do(TrueMeleeNoSpeed, AxePower(70), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.CobaltDrill, Do(TrueMeleeNoSpeed, PickPower(130), UseTimeExact(5)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.CobaltHat, Do(DefenseDelta(+2)) },
|
||||
// { ItemID.CobaltHat, Do(DefenseDelta(+1)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.CobaltHelmet, Do(DefenseDelta(+4)) },
|
||||
// { ItemID.CobaltHelmet, Do(DefenseDelta(+2)) },
|
||||
|
||||
{ ItemID.CobaltLeggings, Do(DefenseDelta(+2)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.CobaltMask, Do(DefenseDelta(+3)) },
|
||||
// { ItemID.CobaltMask, Do(DefenseDelta(+2)) },
|
||||
// TODO -- DELETE THE FOLLOWING THREE LINES IN 1.4.4 PORT
|
||||
{ ItemID.CobaltHat, Do(DefenseDelta(+1)) },
|
||||
{ ItemID.CobaltHelmet, Do(DefenseDelta(+2)) },
|
||||
{ ItemID.CobaltMask, Do(DefenseDelta(+1)) },
|
||||
|
||||
{ ItemID.CobaltNaginata, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(90)) },
|
||||
{ ItemID.CobaltPickaxe, Do(PickPower(130), UseTimeExact(9)) },
|
||||
@@ -173,11 +158,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.Code2, autoReuse },
|
||||
{ ItemID.CoolWhip, autoReuse },
|
||||
{ ItemID.CopperAxe, Do(AxePower(50), UseTimeExact(16), TileBoostExact(+0)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.CopperBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.CopperBow, pointBlank },
|
||||
|
||||
{ ItemID.CopperBow, pointBlank },
|
||||
{ ItemID.CopperBroadsword, Do(AutoReuse, UseTurn) },
|
||||
{ ItemID.CopperHammer, Do(HammerPower(35), UseTimeExact(12), TileBoostExact(+0)) },
|
||||
{ ItemID.CopperPickaxe, Do(PickPower(35), UseTimeExact(10), TileBoostExact(+0)) },
|
||||
@@ -187,8 +168,6 @@ namespace CalamityMod.Items
|
||||
{ ItemID.CrystalDart, Do(DamageExact(20)) },
|
||||
{ ItemID.CrystalSerpent, Do(DamageExact(45)) },
|
||||
{ ItemID.CrystalStorm, Do(DamageExact(40))},
|
||||
{ ItemID.CursedArrow, Do(DamageRatio(1.1f)) },
|
||||
{ ItemID.CursedBullet, Do(DamageExact(16)) },
|
||||
{ ItemID.CursedDart, Do(DamageExact(25)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
@@ -202,36 +181,20 @@ namespace CalamityMod.Items
|
||||
{ ItemID.DarkLance, Do(AutoReuse, TrueMelee, DamageExact(68)) },
|
||||
{ ItemID.DartPistol, pointBlank },
|
||||
{ ItemID.DartRifle, Do(PointBlank, DamageExact(58)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.DD2BallistraTowerT1Popper, Do(AutoReuse, UseExact(30)) }, // Ballista Tier 1
|
||||
// { ItemID.DD2BallistraTowerT1Popper, autoReuse }, // Ballista Tier 1
|
||||
|
||||
{ ItemID.DD2BallistraTowerT1Popper, autoReuse }, // Ballista Tier 1
|
||||
{ ItemID.DD2BallistraTowerT2Popper, Do(AutoReuse, UseExact(25)) }, // Ballista Tier 2
|
||||
{ ItemID.DD2BallistraTowerT3Popper, Do(AutoReuse, UseExact(20)) }, // Ballista Tier 3
|
||||
{ ItemID.DD2BetsyBow, Do(DamageRatio(1.1f)) }, // Aerial Bane's ridiculous multiplier is removed, so this compensates for that
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.DD2ExplosiveTrapT1Popper, Do(AutoReuse, UseExact(30)) }, // Explosive Trap Tier 1
|
||||
// { ItemID.DD2ExplosiveTrapT1Popper, autoReuse }, // Explosive Trap Tier 1
|
||||
|
||||
{ ItemID.DD2ExplosiveTrapT1Popper, autoReuse }, // Explosive Trap Tier 1
|
||||
{ ItemID.DD2ExplosiveTrapT2Popper, Do(AutoReuse, UseExact(25)) }, // Explosive Trap Tier 2
|
||||
{ ItemID.DD2ExplosiveTrapT3Popper, Do(AutoReuse, UseExact(20)) }, // Explosive Trap Tier 3
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.DD2FlameburstTowerT1Popper, Do(AutoReuse, UseExact(30)) }, // Flameburst Tier 1
|
||||
// { ItemID.DD2FlameburstTowerT1Popper, autoReuse }, // Flameburst Tier 1
|
||||
|
||||
{ ItemID.DD2FlameburstTowerT1Popper, autoReuse }, // Flameburst Tier 1
|
||||
{ ItemID.DD2FlameburstTowerT2Popper, Do(AutoReuse, UseExact(25)) }, // Flameburst Tier 2
|
||||
{ ItemID.DD2FlameburstTowerT3Popper, Do(AutoReuse, UseExact(20)) }, // Flameburst Tier 3
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.DD2LightningAuraT1Popper, Do(AutoReuse, UseExact(30)) }, // Lightning Aura Tier 1
|
||||
// { ItemID.DD2LightningAuraT1Popper, autoReuse }, // Lightning Aura Tier 1
|
||||
|
||||
{ ItemID.DD2LightningAuraT1Popper, autoReuse }, // Lightning Aura Tier 1
|
||||
{ ItemID.DD2LightningAuraT2Popper, Do(AutoReuse, UseExact(25)) }, // Lightning Aura Tier 2
|
||||
{ ItemID.DD2LightningAuraT3Popper, Do(AutoReuse, UseExact(20)) }, // Lightning Aura Tier 3
|
||||
{ ItemID.DD2PhoenixBow, Do(PointBlank, UseExact(18)) }, // Phantom Phoenix
|
||||
{ ItemID.DD2PhoenixBow, pointBlank }, // Phantom Phoenix
|
||||
{ ItemID.DD2SquireBetsySword, Do(UseMeleeSpeed) }, // Flying Dragon
|
||||
{ ItemID.DD2SquireDemonSword, Do(DamageExact(110), UseExact(25)) }, // Brand of the Inferno
|
||||
{ ItemID.DeadlySphereStaff, Do(AutoReuse, UseExact(20)) },
|
||||
@@ -243,11 +206,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.DiamondStaff, Do(DamageExact(26)) },
|
||||
{ ItemID.Drax, Do(TrueMeleeNoSpeed, PickPower(200), AxePower(110), UseTimeExact(4), TileBoostExact(+1)) },
|
||||
{ ItemID.DyeTradersScimitar, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageRatio(1.33f)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.EbonwoodBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.EbonwoodBow, pointBlank },
|
||||
|
||||
{ ItemID.EbonwoodBow, pointBlank },
|
||||
{ ItemID.EbonwoodHammer, Do(HammerPower(25), UseTimeExact(9), TileBoostExact(+0)) },
|
||||
{ ItemID.EbonwoodSword, Do(AutoReuse, UseTurn) },
|
||||
{ ItemID.ElectrosphereLauncher, Do(DamageRatio(1.1f)) },
|
||||
@@ -260,10 +219,6 @@ namespace CalamityMod.Items
|
||||
// { ItemID.EnchantedBoomerang, Do(DamageExact(26), UseExact(28)) },
|
||||
|
||||
{ ItemID.EnchantedSword, Do(UseMeleeSpeed, ScaleRatio(1.5f), DamageExact(42), UseAnimationExact(20), ShootSpeedExact(15f)) },
|
||||
|
||||
// TODO -- DELETE THIS LINE IN 1.4.4 PORT
|
||||
{ ItemID.EndlessQuiver, Do(DamageRatio(1.1f)) },
|
||||
|
||||
{ ItemID.EoCShield, Do(DefenseDelta(+1)) },
|
||||
{ ItemID.FairyQueenRangedItem, pointBlank },
|
||||
{ ItemID.Excalibur, Do(UseTurn, ScaleRatio(1.5f), UseRatio(0.8f), DamageExact(125), UseAnimationExact(45)) },
|
||||
@@ -283,10 +238,6 @@ namespace CalamityMod.Items
|
||||
|
||||
{ ItemID.Flamelash, Do(DamageRatio(1.25f)) },
|
||||
{ ItemID.Flamethrower, Do(DamageExact(47), ShootSpeedDelta(+3f)) },
|
||||
|
||||
// TODO -- DELETE THIS LINE IN 1.4.4 PORT
|
||||
{ ItemID.FlamingArrow, Do(DamageRatio(1.1f)) },
|
||||
|
||||
{ ItemID.FlareGun, pointBlank },
|
||||
{ ItemID.FleshGrinder, Do(HammerPower(70), UseTimeExact(13), TileBoostExact(+0)) },
|
||||
{ ItemID.FlintlockPistol, pointBlank },
|
||||
@@ -295,11 +246,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.FlowerofFrost, Do(AutoReuse, ManaExact(7), UseExact(30), DamageExact(70), ShootSpeedExact(14)) },
|
||||
{ ItemID.FlyingKnife, Do(DamageExact(70)) },
|
||||
{ ItemID.FormatC, autoReuse },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.Frostbrand, Do(UseMeleeSpeed, DamageExact(97), UseExact(23)) },
|
||||
// { ItemID.Frostbrand, Do(UseMeleeSpeed, DamageExact(97)) },
|
||||
|
||||
{ ItemID.Frostbrand, Do(UseMeleeSpeed, DamageExact(97)) },
|
||||
{ ItemID.FrostburnArrow, Do(DamageExact(8)) },
|
||||
{ ItemID.FrostStaff, Do(DamageExact(160), UseExact(37), ShootSpeedExact(20f)) }, // has 1 extra update
|
||||
{ ItemID.FrozenShield, Do(DefenseDelta(+7)) },
|
||||
@@ -329,7 +276,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.GreenPhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(51)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.GreenPhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) },
|
||||
{ ItemID.GreenPhasesaber, Do(ScaleRatio(1.5f), DamageExact(72)) },
|
||||
// { ItemID.GreenPhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
{ ItemID.GreenSolution, Do(Value(Item.buyPrice(silver: 5))) },
|
||||
@@ -344,18 +291,15 @@ namespace CalamityMod.Items
|
||||
{ ItemID.Handgun, Do(PointBlank, UseExact(27), DamageExact(36)) },
|
||||
{ ItemID.Harpoon, pointBlank },
|
||||
{ ItemID.HelFire, autoReuse },
|
||||
{ ItemID.HellfireArrow, Do(DamageRatio(1.1f)) },
|
||||
{ ItemID.HellwingBow, Do(PointBlank, DamageExact(16)) },
|
||||
{ ItemID.HeroShield, Do(DefenseDelta(+10)) },
|
||||
{ ItemID.HighVelocityBullet, Do(DamageExact(15)) },
|
||||
{ ItemID.HolyArrow, Do(DamageRatio(1.1f)) },
|
||||
{ ItemID.HornetStaff, Do(AutoReuse, UseExact(30)) },
|
||||
{ ItemID.IceBlade, Do(UseMeleeSpeed, DamageExact(26), UseTimeExact(33)) },
|
||||
{ ItemID.IceBoomerang, Do(DamageExact(28), UseExact(25), ShootSpeedExact(10)) },
|
||||
{ ItemID.IceBow, Do(PointBlank, AutoReuse, DamageExact(120), UseExact(35)) },
|
||||
{ ItemID.IceRod, Do(UseExact(6), DamageExact(30), ShootSpeedExact(20)) },
|
||||
{ ItemID.IceSickle, Do(AutoReuse, UseMeleeSpeed, DamageExact(95), ShootSpeedExact(20f)) },
|
||||
{ ItemID.IchorArrow, Do(DamageExact(15)) },
|
||||
{ ItemID.ImpStaff, Do(AutoReuse, UseExact(30)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
@@ -367,10 +311,7 @@ namespace CalamityMod.Items
|
||||
// { ItemID.InfluxWaver, Do(UseMeleeSpeed, DamageExact(82)) },
|
||||
|
||||
{ ItemID.IronAxe, Do(AxePower(60), UseTimeExact(15), TileBoostExact(+0)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.IronBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.IronBow, pointBlank },
|
||||
{ ItemID.IronBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.IronBroadsword, Do(AutoReuse, UseTurn, DamageRatio(1.25f), ScaleRatio(1.2f)) },
|
||||
@@ -395,10 +336,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.LastPrism, Do(DamageRatio(0.75f)) },
|
||||
{ ItemID.LavaSkull, Do(DefenseExact(4)) },
|
||||
{ ItemID.LeadAxe, Do(AxePower(60), UseTimeExact(15), TileBoostExact(+0)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.LeadBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.LeadBow, pointBlank },
|
||||
{ ItemID.LeadBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.LeadBroadsword, Do(AutoReuse, UseTurn, DamageRatio(1.25f), ScaleRatio(1.2f)) },
|
||||
@@ -413,7 +351,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.LightDisc, Do(DamageExact(128)) },
|
||||
{ ItemID.LightsBane, Do(AutoReuse, UseTurn, DamageExact(34)) },
|
||||
{ ItemID.LucyTheAxe, Do(AxePower(150), UseExact(13), TileBoostExact(+1)) },
|
||||
{ ItemID.LunarFlareBook, Do(DamageRatio(1.5f)) },
|
||||
{ ItemID.LunarFlareBook, Do(DamageRatio(1.2f)) },
|
||||
{ ItemID.LunarHamaxeNebula, Do(HammerPower(100), AxePower(175), UseTimeExact(5), TileBoostExact(+4)) },
|
||||
{ ItemID.LunarHamaxeSolar, Do(HammerPower(100), AxePower(175), UseTimeExact(5), TileBoostExact(+4)) },
|
||||
{ ItemID.LunarHamaxeStardust, Do(HammerPower(100), AxePower(175), UseTimeExact(5), TileBoostExact(+4)) },
|
||||
@@ -441,7 +379,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.MonkStaffT1, Do(TrueMeleeNoSpeed, DamageExact(83)) }, // Sleepy Octopod
|
||||
{ ItemID.MonkStaffT2, Do(AutoReuse, TrueMelee, DamageRatio(2f)) }, // Ghastly Glaive
|
||||
{ ItemID.MonkStaffT3, Do(DamageExact(225)) }, // Sky Dragon's Fury
|
||||
{ ItemID.MoonlordArrow, Do(DamageRatio(1.1f)) }, // Luminite Arrow
|
||||
{ ItemID.MoonlordArrow, Do(DamageExact(12)) }, // Luminite Arrow
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.MoonlordTurretStaff, Do(UseExact(15), DamageRatio(1.5f)) },
|
||||
@@ -483,7 +421,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.OrangePhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(51)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.OrangePhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) },
|
||||
{ ItemID.OrangePhasesaber, Do(ScaleRatio(1.5f), DamageExact(72)) },
|
||||
// { ItemID.OrangePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
{ ItemID.OrichalcumBreastplate, Do(DefenseDelta(+3)) },
|
||||
@@ -525,10 +463,7 @@ namespace CalamityMod.Items
|
||||
// { ItemID.PalladiumSword, Do(UseTurn, ScaleRatio(1.4f), DamageExact(100)) },
|
||||
|
||||
{ ItemID.PalladiumWaraxe, Do(AxePower(125), UseTimeExact(12), TileBoostExact(+0)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.PalmWoodBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.PalmWoodBow, pointBlank },
|
||||
{ ItemID.PalmWoodBow, pointBlank },
|
||||
|
||||
{ ItemID.PalmWoodHammer, Do(HammerPower(25), UseTimeExact(11), TileBoostExact(+0)) },
|
||||
{ ItemID.PalmWoodSword, Do(AutoReuse, UseTurn) },
|
||||
@@ -550,10 +485,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.PirateMap, nonConsumableBossSummon },
|
||||
{ ItemID.PirateStaff, Do(AutoReuse, UseExact(25)) },
|
||||
{ ItemID.PlatinumAxe, Do(AxePower(80), UseTimeExact(14), TileBoostExact(+0)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.PlatinumBow, Do(PointBlank, DamageExact(13)) },
|
||||
// { ItemID.PlatinumBow, pointBlank },
|
||||
{ ItemID.PlatinumBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.PlatinumBroadsword, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageRatio(2f)) },
|
||||
@@ -563,7 +495,6 @@ namespace CalamityMod.Items
|
||||
{ ItemID.PlatinumPickaxe, Do(PickPower(55), UseTimeExact(9)) },
|
||||
{ ItemID.PlatinumShortsword, Do(AutoReuse, TrueMelee, DamageRatio(2f)) },
|
||||
{ ItemID.PoisonStaff, Do(DamageExact(57)) },
|
||||
{ ItemID.ProximityMineLauncher, Do(DamageRatio(4f), UseRatio(0.8f)) },
|
||||
{ ItemID.PsychoKnife, Do(UseTurn, UseExact(11), AttackSpeedExact(0.5f), DamageRatio(3f)) },
|
||||
{ ItemID.PulseBow, Do(PointBlank, DamageRatio(1.2f)) },
|
||||
{ ItemID.PumpkinMoonMedallion, nonConsumableBossSummon },
|
||||
@@ -571,7 +502,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.PurplePhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(51)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.PurplePhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) },
|
||||
{ ItemID.PurplePhasesaber, Do(ScaleRatio(1.5f), DamageExact(72)) },
|
||||
// { ItemID.PurplePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
{ ItemID.PurpleSolution, Do(Value(Item.buyPrice(silver: 5))) },
|
||||
@@ -581,7 +512,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.QueenSlimeCrystal, nonConsumableBossSummon },
|
||||
{ ItemID.QueenSpiderStaff, Do(UseExact(25)) },
|
||||
{ ItemID.RainbowCrystalStaff, Do(UseExact(15)) },
|
||||
{ ItemID.RainbowRod, Do(DamageExact(35), ManaExact(15), UseExact(25)) },
|
||||
{ ItemID.RainbowRod, Do(DamageExact(35), ManaExact(15)) },
|
||||
{ ItemID.RainbowWhip, autoReuse },
|
||||
{ ItemID.Rally, Do(AutoReuse, DamageExact(20)) },
|
||||
{ ItemID.RavenStaff, Do(AutoReuse, UseExact(20)) },
|
||||
@@ -590,17 +521,14 @@ namespace CalamityMod.Items
|
||||
{ ItemID.RedPhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(51)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.RedPhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) },
|
||||
{ ItemID.RedPhasesaber, Do(ScaleRatio(1.5f), DamageExact(72)) },
|
||||
// { ItemID.RedPhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
{ ItemID.RedRyder, Do(PointBlank, DamageExact(24)) },
|
||||
{ ItemID.RedSolution, Do(Value(Item.buyPrice(silver: 5))) },
|
||||
{ ItemID.RedsYoyo, autoReuse },
|
||||
{ ItemID.Revolver, Do(PointBlank, AutoReuse) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.RichMahoganyBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.RichMahoganyBow, pointBlank },
|
||||
{ ItemID.RichMahoganyBow, pointBlank },
|
||||
|
||||
{ ItemID.RichMahoganyHammer, Do(HammerPower(25), UseTimeExact(10), TileBoostExact(+0)) },
|
||||
{ ItemID.RichMahoganySword, Do(AutoReuse, UseTurn) },
|
||||
@@ -618,10 +546,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.SDMG, pointBlank },
|
||||
{ ItemID.Seedler, Do(UseMeleeSpeed, DamageRatio(1.5f)) },
|
||||
{ ItemID.Shackle, Do(DefenseDelta(+2)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.ShadewoodBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.ShadewoodBow, pointBlank },
|
||||
{ ItemID.ShadewoodBow, pointBlank },
|
||||
|
||||
{ ItemID.ShadewoodHammer, Do(HammerPower(25), UseTimeExact(9), TileBoostExact(+0)) },
|
||||
{ ItemID.ShadewoodSword, Do(AutoReuse, UseTurn) },
|
||||
@@ -640,10 +565,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.Shotgun, Do(PointBlank, DamageExact(36), AutoReuse) },
|
||||
{ ItemID.ShroomiteDiggingClaw, Do(PickPower(200), AxePower(125), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.SilverAxe, Do(AxePower(70), UseTimeExact(14), TileBoostExact(+0)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.SilverBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.SilverBow, pointBlank },
|
||||
{ ItemID.SilverBow, pointBlank },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.SilverBroadsword, Do(AutoReuse, UseTurn, DamageRatio(1.5f), ScaleRatio(1.3f)) },
|
||||
@@ -672,7 +594,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.Spear, Do(AutoReuse, TrueMelee, DamageRatio(2f)) },
|
||||
{ ItemID.SpectreHamaxe, Do(HammerPower(90), AxePower(170), UseTimeExact(8), TileBoostExact(+4)) },
|
||||
{ ItemID.SpectrePickaxe, Do(PickPower(200), UseTimeExact(8), TileBoostExact(+4)) },
|
||||
{ ItemID.SpectreStaff, Do(DamageRatio(3f)) },
|
||||
{ ItemID.SpectreStaff, Do(DamageRatio(1.2f)) },
|
||||
{ ItemID.SpiderStaff, Do(AutoReuse, UseExact(25)) },
|
||||
{ ItemID.SpiritFlame, Do(UseExact(20), ManaExact(11), ShootSpeedExact(2f)) },
|
||||
{ ItemID.StaffofEarth, Do(DamageRatio(1.2f)) },
|
||||
@@ -716,11 +638,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.ThornWhip, autoReuse },
|
||||
{ ItemID.ThunderSpear, Do(AutoReuse, UseMeleeSpeed) }, // Storm Spear
|
||||
{ ItemID.TinAxe, Do(AxePower(50), UseTimeExact(16), TileBoostExact(+0)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.TinBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.TinBow, pointBlank },
|
||||
|
||||
{ ItemID.TinBow, pointBlank },
|
||||
{ ItemID.TinBroadsword, Do(AutoReuse, UseTurn) },
|
||||
{ ItemID.TinHammer, Do(HammerPower(35), UseTimeExact(12), TileBoostExact(+0)) },
|
||||
{ ItemID.TinPickaxe, Do(PickPower(35), UseTimeExact(10), TileBoostExact(+0)) },
|
||||
@@ -757,7 +675,6 @@ namespace CalamityMod.Items
|
||||
{ ItemID.Valor, Do(DamageExact(32)) },
|
||||
{ ItemID.VampireFrogStaff, Do(AutoReuse, UseExact(30)) },
|
||||
{ ItemID.VampireKnives, Do(DamageRatio(1.33f)) },
|
||||
{ ItemID.VenomArrow, Do(DamageRatio(1.1f)) },
|
||||
{ ItemID.VenomStaff, Do(DamageRatio(1.5f)) },
|
||||
{ ItemID.VenusMagnum, Do(AutoReuse, PointBlank) },
|
||||
{ ItemID.ViciousMushroom, Do(Value(0)) },
|
||||
@@ -775,18 +692,11 @@ namespace CalamityMod.Items
|
||||
{ ItemID.WhitePhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(51)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.WhitePhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) },
|
||||
{ ItemID.WhitePhasesaber, Do(ScaleRatio(1.5f), DamageExact(72)) },
|
||||
// { ItemID.WhitePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
// TODO -- DELETE THIS LINE IN 1.4.4 PORT
|
||||
{ ItemID.WoodenArrow, Do(DamageRatio(1.1f)) },
|
||||
|
||||
{ ItemID.WoodenBoomerang, Do(DamageRatio(2f), Value(Item.sellPrice(copper: 20))) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.WoodenBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
// { ItemID.WoodenBow, pointBlank },
|
||||
|
||||
{ ItemID.WoodenBow, pointBlank },
|
||||
{ ItemID.WoodenHammer, Do(HammerPower(25), UseTimeExact(11), TileBoostExact(+0)) },
|
||||
{ ItemID.WoodenSword, Do(AutoReuse, UseTurn) },
|
||||
{ ItemID.WoodYoyo, autoReuse },
|
||||
@@ -797,15 +707,12 @@ namespace CalamityMod.Items
|
||||
{ ItemID.YellowPhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(51)) },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.YellowPhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) },
|
||||
{ ItemID.YellowPhasesaber, Do(ScaleRatio(1.5f), DamageExact(72)) },
|
||||
// { ItemID.YellowPhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
|
||||
{ ItemID.ZapinatorGray, autoReuse },
|
||||
{ ItemID.ZapinatorOrange, autoReuse },
|
||||
|
||||
// TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT
|
||||
{ ItemID.ZombieArm, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(12), KnockbackExact(12f)) },
|
||||
// { ItemID.ZombieArm, Do(AutoReuse, UseTurn, ScaleRatio(1.25f), KnockbackExact(12f)) },
|
||||
{ ItemID.ZombieArm, Do(AutoReuse, UseTurn, ScaleRatio(1.25f), KnockbackExact(12f)) },
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -18,8 +18,7 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
DisplayName.SetDefault("Blood Orange");
|
||||
Tooltip.SetDefault("It has a distinctly sweet flavor and a strong aroma\n" +
|
||||
"Permanently increases maximum life by 25\n" +
|
||||
"Can only be used if the max amount of life fruit has been consumed\n" +
|
||||
"");
|
||||
"Can only be used if the max amount of life fruit has been consumed");
|
||||
SacrificeTotal = 1;
|
||||
// For some reason Life/Mana boosting items are in this set (along with Magic Mirror+)
|
||||
ItemID.Sets.SortingPriorityBossSpawns[Type] = 18; // Life Fruit
|
||||
@@ -81,7 +80,6 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.LifeFruit, 5).
|
||||
AddIngredient(ItemID.OrangeBloodroot).
|
||||
AddIngredient<BloodOrb>(10).
|
||||
AddIngredient(ItemID.SoulofFright, 5).
|
||||
AddIngredient(ItemID.SoulofMight, 5).
|
||||
|
||||
@@ -83,7 +83,6 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.LifeFruit, 5).
|
||||
AddIngredient(ItemID.SkyBlueFlower).
|
||||
AddIngredient(ItemID.FragmentSolar, 15).
|
||||
AddIngredient<YharonSoulFragment>(5).
|
||||
AddIngredient<AscendantSpiritEssence>().
|
||||
|
||||
@@ -82,7 +82,6 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.LifeFruit, 5).
|
||||
AddIngredient(ItemID.BlueBerries).
|
||||
AddIngredient<UelibloomBar>(10).
|
||||
AddIngredient<DivineGeode>(10).
|
||||
AddIngredient<UnholyEssence>(20).
|
||||
|
||||
@@ -81,7 +81,6 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.LifeFruit, 5).
|
||||
AddIngredient(ItemID.TealMushroom).
|
||||
AddIngredient<TrapperBulb>(5).
|
||||
AddIngredient<LifeAlloy>(5).
|
||||
AddIngredient<LivingShard>(10).
|
||||
|
||||
@@ -7,15 +7,13 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public class BloodyMary : ModItem
|
||||
{
|
||||
internal static readonly int CritBoost = 7;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 5;
|
||||
DisplayName.SetDefault("Bloody Mary");
|
||||
Tooltip.SetDefault(@"Extra spicy and bloody!
|
||||
Boosts damage by 15%, movement speed by 10%, melee speed by 15% and crit chance by 7% during a Blood Moon
|
||||
Reduces life regen by 2 and defense by 4%");
|
||||
Boosts damage and movement speed by 10% during a Blood Moon
|
||||
Reduces life regen by 4 and defense by 4%");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
DisplayName.SetDefault("Moscow Mule");
|
||||
Tooltip.SetDefault(@"I once heard the copper mug can be toxic and I told 'em 'listen dummy, I'm already poisoning myself'
|
||||
Boosts damage by 9%, knockback by 50% and critical strike chance by 3%
|
||||
Reduces life regen by 2");
|
||||
Reduces life regen by 4");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
Tooltip.SetDefault(@"Made from some stuff I found near the Astral Meteor crash site, don't worry it's safe, trust me
|
||||
Boosts max mana by 50, magic damage by 8%,
|
||||
and reduces mana usage by 10%
|
||||
Reduces defense by 6% and life regen by 1");
|
||||
Reduces defense by 6% and life regen by 2");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -7,14 +7,14 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public class Tequila : ModItem
|
||||
{
|
||||
internal static readonly int CritBoost = 2;
|
||||
internal static readonly int CritBoost = 4;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 5;
|
||||
DisplayName.SetDefault("Tequila");
|
||||
Tooltip.SetDefault(@"Great for mixing up daytime drinks
|
||||
Boosts damage and damage reduction by 3%, knockback by 10%, crit chance by 2% and defense by 5 during daytime
|
||||
Boosts knockback by 10%, crit chance by 4% and defense by 5 during daytime
|
||||
Reduces life regen by 1");
|
||||
}
|
||||
|
||||
|
||||
@@ -7,14 +7,14 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public class TequilaSunrise : ModItem
|
||||
{
|
||||
internal static readonly int CritBoost = 3;
|
||||
internal static readonly int CritBoost = 8;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 5;
|
||||
DisplayName.SetDefault("Tequila Sunrise");
|
||||
Tooltip.SetDefault(@"The greatest daytime drink I've ever had
|
||||
Boosts damage by 7%, knockback by 20%, crit chance and damage reduction by 3% and defense by 10 during daytime
|
||||
Reduces life regen by 1");
|
||||
Boosts knockback by 20%, crit chance by 8% and defense by 10 during daytime
|
||||
Reduces life regen by 2");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
SacrificeTotal = 5;
|
||||
DisplayName.SetDefault("White Wine");
|
||||
Tooltip.SetDefault(@"I drank a full barrel of this stuff once in one night, I couldn't remember who I was the next day
|
||||
Boosts magic damage by 10%
|
||||
Boosts magic damage by 8%
|
||||
Reduces defense by 6% and life regen by 1");
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ Reduces defense by 6% and life regen by 1");
|
||||
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.consumable = true;
|
||||
Item.healMana = 400;
|
||||
Item.healMana = 300;
|
||||
Item.buffType = ModContent.BuffType<WhiteWineBuff>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(300f);
|
||||
Item.value = Item.buyPrice(0, 4, 0, 0);
|
||||
|
||||
@@ -50,16 +50,16 @@ namespace CalamityMod.Items.Potions
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(4).
|
||||
AddIngredient(ItemID.BottledWater, 4).
|
||||
CreateRecipe(15).
|
||||
AddIngredient(ItemID.BottledWater, 15).
|
||||
AddIngredient<Stardust>(4).
|
||||
AddIngredient<AureusCell>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
AddConsumeItemCallback(Recipe.ConsumptionRules.Alchemy).
|
||||
Register();
|
||||
|
||||
CreateRecipe(8).
|
||||
AddIngredient(ItemID.BottledWater, 4).
|
||||
CreateRecipe(15).
|
||||
AddIngredient(ItemID.BottledWater, 15).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<AureusCell>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
public override string ArmorSetName => "Adamantite";
|
||||
|
||||
public const int MaxManaBoost = 20;
|
||||
public const int DefenseBoostMax = 30;
|
||||
public const int DefenseBoostMax = 15;
|
||||
public const int TimeUntilDecayBeginsAfterAttacking = 60;
|
||||
public const int TimeUntilBoostCompletelyDecays = 210;
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
public const int SpeedBoostSetBonusPercentage = 10;
|
||||
public const int MaxManaBoost = 20;
|
||||
public const int MovementSpeedBoostPercentageMax = 10;
|
||||
public const int MovementSpeedBoostMphThreshold = 60;
|
||||
public const int MovementSpeedBoostMphThreshold = 80;
|
||||
|
||||
public override void ApplyHeadPieceEffect(Player player)
|
||||
{
|
||||
|
||||
@@ -19,7 +19,6 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
public const float ChestCrit = 3f;
|
||||
public const float LegsMoveSpeed = 0.05f;
|
||||
public const float SetBonusFlatDamage = 2.0f;
|
||||
public const float SetBonusMoveSpeed = 0.1f;
|
||||
|
||||
public override void ApplyHeadPieceEffect(Player player) => player.GetDamage<GenericDamageClass>() += HeadDamage;
|
||||
|
||||
@@ -30,14 +29,13 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder(256);
|
||||
sb.Append("\nIncreases all damage by 2\n10% increased movement speed");
|
||||
sb.Append("\nIncreases all damage by 2");
|
||||
setBonusText += sb.ToString();
|
||||
}
|
||||
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
{
|
||||
player.GetDamage<GenericDamageClass>().Flat += SetBonusFlatDamage;
|
||||
player.moveSpeed += SetBonusMoveSpeed;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public const float HeadDamage = 0.06f;
|
||||
public const float ChestDR = 0.05f;
|
||||
public const float LegsMoveSpeed = 0.12f;
|
||||
public const float LegsMoveSpeed = 0.1f;
|
||||
public const float GoldDropChanceFromEnemies = 0.04f;
|
||||
public const int GoldFromBosses = 3;
|
||||
public const float SetBonusCritPerGoldCoin = 0.2f; // 5 gold coins = +1% crit chance
|
||||
|
||||
@@ -19,10 +19,8 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
public override string ArmorSetName => "Mythril";
|
||||
|
||||
public const int MaxManaBoost = 20;
|
||||
public const int ChestplateDamagePercentageBoost = 5;
|
||||
public const int LeggingsCritChanceBoost = 4;
|
||||
public const int FlareFrameSpawnDelay = 9;
|
||||
public const int FlareDamageSoftcap = 105;
|
||||
public const int FlareFrameSpawnDelay = 12;
|
||||
public const int FlareDamageSoftcap = 50;
|
||||
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
@@ -36,13 +34,6 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
player.statManaMax2 += MaxManaBoost;
|
||||
}
|
||||
|
||||
public override void ApplyBodyPieceEffect(Player player)
|
||||
{
|
||||
player.GetDamage<GenericDamageClass>() += ChestplateDamagePercentageBoost * 0.01f;
|
||||
}
|
||||
|
||||
public override void ApplyLegPieceEffect(Player player) => player.GetCritChance<GenericDamageClass>() += LeggingsCritChanceBoost;
|
||||
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
{
|
||||
player.Calamity().MythrilSet = true;
|
||||
|
||||
@@ -16,8 +16,8 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override string ArmorSetName => "Palladium";
|
||||
|
||||
public const int ChestplateDamagePercentageBoost = 4;
|
||||
public const int LeggingsDamagePercentageBoost = 5;
|
||||
public const int ChestplateDamagePercentageBoost = 2;
|
||||
public const int LeggingsDamagePercentageBoost = 3;
|
||||
|
||||
public override void ApplyBodyPieceEffect(Player player)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public const float HeadDamage = 0.06f;
|
||||
public const float ChestCrit = 5f;
|
||||
public const float LegsMoveSpeed = 0.12f;
|
||||
public const float LegsMoveSpeed = 0.1f;
|
||||
public const float SetBonusLifeRegenPerDefense = 0.0666667f; // 15 defense = +1 life regen
|
||||
public const float SetBonusCritPerDefense = 0.0666667f; // 15 defense = +1% crit chance
|
||||
public const int SetBonusDefenseCap = 45;
|
||||
|
||||
@@ -16,9 +16,9 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override string ArmorSetName => "Silver";
|
||||
|
||||
public const float HeadCrit = 6f;
|
||||
public const float HeadCrit = 5f;
|
||||
public const int ChestLifeRegen = 2;
|
||||
public const float LegsMoveSpeed = 0.1f;
|
||||
public const float LegsMoveSpeed = 0.08f;
|
||||
public const int SetBonusLifeRegen = 1;
|
||||
|
||||
public const double SetBonusMinimumDamageToHeal = 20.0;
|
||||
|
||||
@@ -17,9 +17,8 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public const float HeadCrit = 4f;
|
||||
public const int ChestLifeRegen = 1;
|
||||
public const float LegsMoveSpeed = 0.1f;
|
||||
public const float LegsMoveSpeed = 0.05f;
|
||||
public const float SetBonusArmorPen = 5.0f;
|
||||
public const int SetBonusLifeRegen = 1;
|
||||
|
||||
public override void ApplyHeadPieceEffect(Player player) => player.GetCritChance<GenericDamageClass>() += HeadCrit;
|
||||
|
||||
@@ -30,14 +29,13 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder(256);
|
||||
sb.Append("\nIncreases armor penetration by 5\n+1 life regen");
|
||||
sb.Append("\nIncreases armor penetration by 5");
|
||||
setBonusText += sb.ToString();
|
||||
}
|
||||
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
{
|
||||
player.GetArmorPenetration<GenericDamageClass>() += SetBonusArmorPen;
|
||||
player.lifeRegen += SetBonusLifeRegen;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public const float HeadDamage = 0.07f;
|
||||
public const int ChestLifeRegen = 1;
|
||||
public const float LegsMoveSpeed = 0.1f;
|
||||
public const float LegsMoveSpeed = 0.08f;
|
||||
public const float KnockbackMultiplier = 1.33f;
|
||||
public const float MaxKnockbackCritConversion = 10f;
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
public class ArtAttack : ModItem
|
||||
{
|
||||
public const int MaxDamageBoostTime = 270;
|
||||
public const float MaxDamageBoostFactor = 2.3f;
|
||||
public const int MaxDamageBoostTime = 240;
|
||||
public const float MaxDamageBoostFactor = 20f;
|
||||
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/ArtAttackCast");
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 470;
|
||||
Item.damage = 80;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 10;
|
||||
Item.width = 70;
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.knockBack = 2f;
|
||||
Item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.UseSound = UseSound;
|
||||
Item.UseSound = null;
|
||||
Item.autoReuse = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.shoot = ModContent.ProjectileType<ArtAttackHoldout>();
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -19,11 +18,11 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 15;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 6;
|
||||
Item.width = 36;
|
||||
Item.height = 34;
|
||||
Item.damage = 45;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 6;
|
||||
Item.useTime = 16;
|
||||
Item.useAnimation = 16;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
@@ -33,10 +32,9 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.UseSound = SoundID.Item43;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<BrimstoneBeam>();
|
||||
Item.shoot = ModContent.ProjectileType<BrimroseBeam>();
|
||||
Item.shootSpeed = 6f;
|
||||
}
|
||||
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 72;
|
||||
Item.damage = 75;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 15;
|
||||
Item.width = 28;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 62;
|
||||
Item.damage = 48;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 15;
|
||||
Item.width = 66;
|
||||
|
||||
@@ -2,7 +2,10 @@
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -44,15 +47,13 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.shootSpeed = 15f;
|
||||
}
|
||||
|
||||
// TODO -- Fancy visual flare doesn't work with resprited Helium Flash, adjust dust positions
|
||||
/*
|
||||
// Creates dust at the tip of the staff when used.
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
Vector2 dir = velocity;
|
||||
double angle = Math.Atan2(velocity.Y, velocity.X) + MathHelper.PiOver4;
|
||||
dir = dir.SafeNormalize(Vector2.Zero);
|
||||
dir *= 64f * 1.4142f; // distance to gleaming point on staff
|
||||
dir *= 80f * (float)Math.Sqrt(2); // distance to gleaming point on staff
|
||||
Vector2 dustPos = position + dir;
|
||||
|
||||
int dustType = 162;
|
||||
@@ -93,7 +94,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
}
|
||||
return true;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 40;
|
||||
Item.damage = 50;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 15;
|
||||
Item.width = 16;
|
||||
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.UseSound = SoundID.Item9;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<InfernalBlade>();
|
||||
Item.shootSpeed = 16f;
|
||||
Item.shootSpeed = 28f;
|
||||
}
|
||||
|
||||
// Terraria seems to really dislike high crit values in SetDefaults
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
float num72 = Item.shootSpeed;
|
||||
float num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X;
|
||||
float num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y;
|
||||
float f = Main.rand.NextFloat() * 6.28318548f;
|
||||
float f = Main.rand.NextFloat() * MathHelper.TwoPi;
|
||||
float value12 = 20f;
|
||||
float value13 = 60f;
|
||||
Vector2 vector13 = vector2 + f.ToRotationVector2() * MathHelper.Lerp(value12, value13, Main.rand.NextFloat());
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
break;
|
||||
}
|
||||
f = Main.rand.NextFloat() * 6.28318548f;
|
||||
f = Main.rand.NextFloat() * MathHelper.TwoPi;
|
||||
}
|
||||
Vector2 mouseWorld = Main.MouseWorld;
|
||||
Vector2 vector14 = mouseWorld - vector13;
|
||||
|
||||
@@ -11,13 +11,13 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Lazhar");
|
||||
Tooltip.SetDefault("Fires a bouncing laser that explodes on enemy hits");
|
||||
Tooltip.SetDefault("Fires a highly volatile concentrated solar beam");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 100;
|
||||
Item.damage = 80;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 4;
|
||||
Item.width = 42;
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.UseSound = SoundID.Item12;
|
||||
Item.autoReuse = true;
|
||||
Item.shootSpeed = 15f;
|
||||
Item.shoot = ModContent.ProjectileType<SolarBeam2>();
|
||||
Item.shoot = ModContent.ProjectileType<LazharSolarBeam>();
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset() => new Vector2(-5, 0);
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.SpaceGun).
|
||||
AddIngredient(ItemID.HeatRay).
|
||||
AddIngredient(ItemID.FragmentSolar, 6).
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
@@ -13,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Plague Staff");
|
||||
Tooltip.SetDefault("Fires a spread of plague fangs");
|
||||
Tooltip.SetDefault("Fires a tight spread of 4 plague fangs");
|
||||
Item.staff[Item.type] = true;
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
@@ -41,40 +40,12 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true);
|
||||
float num72 = Item.shootSpeed;
|
||||
float num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X;
|
||||
float num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y;
|
||||
float num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79));
|
||||
int num130 = 6;
|
||||
if (Main.rand.NextBool(3))
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
num130++;
|
||||
Vector2 spreadVelocity = velocity.RotatedByRandom(MathHelper.ToRadians(5f)) * Main.rand.NextFloat(0.8f, 1.2f);
|
||||
Projectile.NewProjectile(source, position, spreadVelocity, type, damage, knockback, Main.myPlayer);
|
||||
}
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
num130++;
|
||||
}
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
num130++;
|
||||
}
|
||||
for (int num131 = 0; num131 < num130; num131++)
|
||||
{
|
||||
float num132 = num78;
|
||||
float num133 = num79;
|
||||
float num134 = 0.05f * (float)num131;
|
||||
num132 += (float)Main.rand.Next(-120, 121) * num134;
|
||||
num133 += (float)Main.rand.Next(-120, 121) * num134;
|
||||
num80 = (float)Math.Sqrt((double)(num132 * num132 + num133 * num133));
|
||||
num80 = num72 / num80;
|
||||
num132 *= num80;
|
||||
num133 *= num80;
|
||||
float x2 = vector2.X;
|
||||
float y2 = vector2.Y;
|
||||
Projectile.NewProjectile(source, x2, y2, num132, num133, ModContent.ProjectileType<PlagueFang>(), damage, knockback, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
return false;
|
||||
return true; // Fires one directly with no randomness, totaling 4 projectiles
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
DisplayName.SetDefault("Plasma Rod");
|
||||
Tooltip.SetDefault("Casts a low-damage plasma bolt\n" +
|
||||
"Shooting a tile will cause several bolts with increased damage to fire\n" +
|
||||
"Shooting an enemy will inflict shadowflame for a long duration");
|
||||
"Shooting an enemy will inflict shadowflame");
|
||||
Item.staff[Item.type] = true;
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 60;
|
||||
Item.damage = 72;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 19;
|
||||
Item.width = 36;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 61;
|
||||
Item.damage = 92;
|
||||
Item.knockBack = 5f;
|
||||
Item.useTime = Item.useAnimation = 30;
|
||||
Item.mana = 20;
|
||||
@@ -35,19 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
int projCount = 0;
|
||||
for (int x = 0; x < Main.maxProjectiles; x++)
|
||||
{
|
||||
Projectile proj = Main.projectile[x];
|
||||
if (proj.active && proj.owner == player.whoAmI && proj.type == Item.shoot && proj.ai[0] <= 0f)
|
||||
{
|
||||
projCount++;
|
||||
}
|
||||
}
|
||||
return projCount <= 0;
|
||||
}
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 64;
|
||||
Item.damage = 54;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 18;
|
||||
Item.width = 28;
|
||||
|
||||
@@ -39,9 +39,9 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 13;
|
||||
Item.damage = 18;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 2;
|
||||
Item.mana = 5;
|
||||
Item.width = 34;
|
||||
Item.height = 42;
|
||||
Item.useTime = 24;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 42;
|
||||
Item.damage = 28;
|
||||
Item.damage = 32;
|
||||
Item.DamageType = DamageClass.Melee;
|
||||
Item.useAnimation = Item.useTime = 21;
|
||||
Item.useTurn = true;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Terraria.DataStructures;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
@@ -20,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.damage = 4;
|
||||
Item.damage = 9;
|
||||
Item.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
@@ -105,7 +104,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
AddIngredient(ItemID.ThrowingKnife, 200).
|
||||
AddIngredient(ItemID.LifeCrystal).
|
||||
AddIngredient(ItemID.LesserHealingPotion, 5).
|
||||
AddIngredient<PearlShard>(10).
|
||||
AddTile(TileID.Anvils).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
Item.width = 14;
|
||||
Item.height = 50;
|
||||
Item.damage = 9;
|
||||
Item.damage = 12;
|
||||
Item.DamageType = DamageClass.Melee;
|
||||
Item.useAnimation = DefaultTime + WulfrumScrewdriverProj.MaxTime;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 9;
|
||||
Item.damage = 16;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 78;
|
||||
Item.height = 36;
|
||||
@@ -45,9 +45,9 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (type == ProjectileID.Bullet)
|
||||
Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, ModContent.ProjectileType<ArcherfishShot>(), damage, knockback, player.whoAmI);
|
||||
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<ArcherfishShot>(), damage, knockback, player.whoAmI);
|
||||
else
|
||||
Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, type, damage, knockback, player.whoAmI);
|
||||
Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -12,14 +12,13 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Bladedge Railbow");
|
||||
Tooltip.SetDefault("Fires 4 arrows at once\n" +
|
||||
"Fires 2 additional leaves");
|
||||
Tooltip.SetDefault("Fires a spread of 4 arrows and 2 leaves at once");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 28;
|
||||
Item.damage = 35;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 74;
|
||||
Item.height = 24;
|
||||
@@ -53,21 +52,20 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Main.projectile[index].noDropItem = true;
|
||||
}
|
||||
Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true);
|
||||
float num117 = 0.314159274f;
|
||||
int num118 = 2;
|
||||
float PiOver10 = MathHelper.Pi * 0.1f;
|
||||
Vector2 vector7 = velocity;
|
||||
vector7.Normalize();
|
||||
vector7 *= 10f;
|
||||
bool flag11 = Collision.CanHit(vector2, 0, 0, vector2 + vector7, 0, 0);
|
||||
for (int num119 = 0; num119 < num118; num119++)
|
||||
for (int num119 = 0; num119 < 2; num119++)
|
||||
{
|
||||
float num120 = (float)num119 - ((float)num118 - 1f) / 2f;
|
||||
Vector2 value9 = vector7.RotatedBy((double)(num117 * num120), default);
|
||||
float num120 = (float)num119 - 1f / 2f;
|
||||
Vector2 value9 = vector7.RotatedBy((double)(PiOver10 * num120), default);
|
||||
if (!flag11)
|
||||
{
|
||||
value9 -= vector7;
|
||||
}
|
||||
int projectile = Projectile.NewProjectile(source, vector2.X + value9.X, vector2.Y + value9.Y, velocity.X, velocity.Y, ProjectileID.Leaf, damage / 2, 0f, player.whoAmI);
|
||||
int projectile = Projectile.NewProjectile(source, vector2.X + value9.X, vector2.Y + value9.Y, velocity.X, velocity.Y, ProjectileID.Leaf, damage, 0f, player.whoAmI);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile].DamageType = DamageClass.Ranged;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 20;
|
||||
Item.damage = 25;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 30;
|
||||
Item.height = 58;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 32;
|
||||
Item.damage = 36;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 64;
|
||||
Item.height = 30;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.DataStructures;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
@@ -12,13 +12,14 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Coral Cannon");
|
||||
Tooltip.SetDefault("Has a chance to shoot a big coral that stuns enemies");
|
||||
Tooltip.SetDefault("Has a 20% chance to shoot a big coral that stuns enemies\n" +
|
||||
"Does not consume ammo");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 20;
|
||||
Item.damage = 24;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 52;
|
||||
Item.height = 40;
|
||||
@@ -45,13 +46,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, ModContent.ProjectileType<BigCoral>(), (int)((double)damage * 2.0), knockback * 2f, player.whoAmI);
|
||||
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<BigCoral>(), (int)(damage * 1.5f), knockback * 1.5f, player.whoAmI);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, type, damage, knockback, player.whoAmI);
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,14 +13,14 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cosmic Bolter");
|
||||
Tooltip.SetDefault("Fires three arrows at once\n" +
|
||||
Tooltip.SetDefault("Fires a tight column of three arrows\n" +
|
||||
"Converts wooden arrows into sliding energy bolts");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 39;
|
||||
Item.damage = 48;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 40;
|
||||
Item.height = 76;
|
||||
@@ -56,7 +56,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
offset -= velocity;
|
||||
|
||||
if (CalamityUtils.CheckWoodenAmmo(type, player))
|
||||
Projectile.NewProjectile(spawnSource, source + offset, velocity, ModContent.ProjectileType<LunarBolt2>(), damage, knockback, player.whoAmI);
|
||||
Projectile.NewProjectile(spawnSource, source + offset, velocity, ModContent.ProjectileType<LunarBolt2>(), (int)(damage * 1.2), knockback * 1.2f, player.whoAmI);
|
||||
else
|
||||
{
|
||||
int proj = Projectile.NewProjectile(spawnSource, source + offset, velocity, type, damage, knockback, player.whoAmI);
|
||||
|
||||
@@ -19,12 +19,12 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 10;
|
||||
Item.damage = 14;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 56;
|
||||
Item.height = 28;
|
||||
Item.useTime = 15;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 12;
|
||||
Item.useAnimation = 12;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 1.5f;
|
||||
@@ -61,7 +61,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
float SpeedX = velocity.X + (float)Main.rand.Next(-50, 51) * 0.05f;
|
||||
float SpeedY = velocity.Y + (float)Main.rand.Next(-50, 51) * 0.05f;
|
||||
int flare = Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, (int)((double)damage * 1.4), knockback, player.whoAmI);
|
||||
int flare = Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, damage, knockback, player.whoAmI);
|
||||
if (flare.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[flare].penetrate = 1;
|
||||
|
||||
@@ -27,7 +27,6 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.height = 58;
|
||||
Item.useTime = 10;
|
||||
Item.useAnimation = 10;
|
||||
Item.reuseDelay = 5;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
@@ -42,12 +41,6 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, ModContent.ProjectileType<FlakKrakenGun>(), damage, knockback, player.whoAmI, 0f, 0f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
public class Hellborn : ModItem
|
||||
{
|
||||
public const float ExplosionDamageMultiplier = 5f;
|
||||
public const float ExplosionDamageMultiplier = 3f;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 7;
|
||||
Item.damage = 20;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 66;
|
||||
Item.height = 34;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 35;
|
||||
Item.damage = 50;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 72;
|
||||
Item.height = 38;
|
||||
@@ -46,16 +46,12 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
int randomProj = Main.rand.Next(2);
|
||||
if (randomProj == 0)
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, ModContent.ProjectileType<OpalStrike>(), (int)(damage * 0.75), knockback, player.whoAmI, 0f, 0f);
|
||||
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<MagnaStrike>(), damage, knockback, player.whoAmI);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, ModContent.ProjectileType<MagnaStrike>(), damage, knockback, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 32;
|
||||
Item.damage = 40;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 80;
|
||||
Item.height = 46;
|
||||
|
||||
@@ -20,11 +20,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 18;
|
||||
Item.damage = 24;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 72;
|
||||
Item.height = 34;
|
||||
Item.useTime = 60;
|
||||
Item.useTime = 30;
|
||||
Item.useAnimation = 30;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 14;
|
||||
Item.damage = 21;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 22;
|
||||
Item.height = 46;
|
||||
|
||||
@@ -12,7 +12,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Shellshooter");
|
||||
Tooltip.SetDefault("Converts wooden arrows into slow, powerful shells");
|
||||
Tooltip.SetDefault("Fires slow but powerful arrows\n" +
|
||||
"Converts wooden arrows into heavy piercing seashells");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
@@ -32,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.UseSound = SoundID.Item5;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<Shell>();
|
||||
Item.shootSpeed = 1.5f;
|
||||
Item.shootSpeed = 2.5f;
|
||||
Item.useAmmo = AmmoID.Arrow;
|
||||
Item.Calamity().canFirePointBlankShots = true;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 99;
|
||||
Item.damage = 120;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 40;
|
||||
Item.height = 70;
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 8;
|
||||
Item.damage = 11;
|
||||
Item.ArmorPenetration = 3;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 23;
|
||||
|
||||
@@ -18,13 +18,12 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.damage = 44;
|
||||
Item.damage = 64;
|
||||
Item.noMelee = true;
|
||||
Item.consumable = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 12;
|
||||
Item.useAnimation = Item.useTime = 12;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 12;
|
||||
Item.knockBack = 3.25f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
|
||||
@@ -24,12 +24,11 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
Item.width = 34;
|
||||
Item.height = 58;
|
||||
Item.damage = 32;
|
||||
Item.damage = 48;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 30;
|
||||
Item.useAnimation = Item.useTime = 30;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 30;
|
||||
Item.knockBack = 6f;
|
||||
Item.UseSound = SoundID.Item117;
|
||||
Item.autoReuse = true;
|
||||
@@ -40,8 +39,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 1.2f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
int star = Projectile.NewProjectile(source, player.Center, velocity, type, damage, knockback, player.whoAmI);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.DataStructures;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
@@ -23,16 +23,15 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.damage = 50;
|
||||
Item.height = 38;
|
||||
Item.damage = 72;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 26;
|
||||
Item.useAnimation = Item.useTime = 26;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 26;
|
||||
Item.knockBack = 6.5f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
Item.height = 38;
|
||||
Item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.shoot = ModContent.ProjectileType<BallisticPoisonBombProj>();
|
||||
@@ -40,8 +39,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 0.5f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
|
||||
@@ -22,9 +22,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.noMelee = true;
|
||||
Item.consumable = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 12;
|
||||
Item.useAnimation = Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 12;
|
||||
Item.knockBack = 2.5f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
|
||||
@@ -26,8 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.damage = BaseDamage;
|
||||
Item.width = 22;
|
||||
Item.height = 24;
|
||||
Item.useAnimation = 29;
|
||||
Item.useTime = 29;
|
||||
Item.useAnimation = Item.useTime = 29;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
|
||||
@@ -21,13 +21,12 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 62;
|
||||
Item.damage = 52;
|
||||
Item.damage = 92;
|
||||
Item.noMelee = true;
|
||||
Item.consumable = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 17;
|
||||
Item.useAnimation = Item.useTime = 22;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 17;
|
||||
Item.knockBack = 6f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
|
||||
@@ -23,9 +23,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.damage = 34;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 16;
|
||||
Item.useAnimation = Item.useTime = 8;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 16;
|
||||
Item.knockBack = 4.5f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
|
||||
@@ -24,9 +24,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.damage = 40;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useAnimation = Item.useTime = 36;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 20;
|
||||
Item.knockBack = 1f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 64;
|
||||
Item.damage = 82;
|
||||
Item.damage = 188;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useTime = 3;
|
||||
@@ -48,8 +48,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Rogue/ExecutionersBladeGlow").Value);
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 3.61f;
|
||||
public override bool AdditionalStealthCheck() => counter == 0;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
|
||||
@@ -24,9 +24,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.damage = 55;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 20;
|
||||
Item.useAnimation = Item.useTime = 20;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 20;
|
||||
Item.knockBack = 1f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
@@ -39,8 +38,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 1.15f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
|
||||
@@ -51,10 +51,8 @@ Stealth strike throws a volley of knives");
|
||||
Vector2 perturbedspeed = new Vector2(velocity.X + Main.rand.Next(-3, 4), velocity.Y + Main.rand.Next(-3, 4)).RotatedBy(MathHelper.ToRadians(spread));
|
||||
int proj = Projectile.NewProjectile(source, position, perturbedspeed, type, damage, knockback, player.whoAmI);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[proj].Calamity().stealthStrike = true;
|
||||
Main.projectile[proj].noDropItem = true;
|
||||
}
|
||||
|
||||
spread -= Main.rand.Next(2, 6);
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -21,13 +21,12 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 10;
|
||||
Item.height = 22;
|
||||
Item.damage = 32;
|
||||
Item.noUseGraphic = true;
|
||||
Item.noMelee = true;
|
||||
Item.width = 10;
|
||||
Item.height = 22;
|
||||
Item.useTime = 16;
|
||||
Item.useAnimation = 16;
|
||||
Item.useAnimation = Item.useTime = 13;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTurn = false;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
@@ -42,8 +41,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 0.9f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
|
||||
@@ -21,12 +21,11 @@ Stealth strikes can bounce off walls and enemies");
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.damage = 25;
|
||||
Item.damage = 20;
|
||||
Item.noMelee = true;
|
||||
Item.consumable = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 21;
|
||||
Item.useTime = 21;
|
||||
Item.useAnimation = Item.useTime = 16;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.knockBack = 3f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
|
||||
@@ -12,8 +12,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Heavenfallen Stardisk");
|
||||
Tooltip.SetDefault("Throws a stardisk upwards which then launches itself towards your mouse cursor,\n" +
|
||||
"explodes into several astral energy bolts if the thrower is moving vertically when throwing it and during its impact\n" +
|
||||
Tooltip.SetDefault("Throws a stardisk upwards which then launches itself towards your mouse cursor\n" +
|
||||
"Explodes into 5 astral energy bolts if the thrower is moving vertically when throwing it\n" +
|
||||
"Stealth strikes rain astral energy bolts from the sky");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
@@ -22,12 +22,11 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
Item.width = 44;
|
||||
Item.height = 48;
|
||||
Item.damage = 115;
|
||||
Item.damage = 90;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 25;
|
||||
Item.useAnimation = Item.useTime = 40;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 25;
|
||||
Item.knockBack = 8f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
@@ -41,20 +40,12 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
// Terraria seems to really dislike high crit values in SetDefaults
|
||||
public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 20;
|
||||
|
||||
public override float StealthDamageMultiplier => 1.25f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
int proj = Projectile.NewProjectile(source, position.X, position.Y, 0f, -10f, type, damage, knockback, player.whoAmI);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[proj].Calamity().stealthStrike = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Projectile.NewProjectile(source, position.X, position.Y, 0f, -10f, type, damage, knockback, player.whoAmI);
|
||||
}
|
||||
int proj = Projectile.NewProjectile(source, position, velocity.Length() * -Vector2.UnitY, type, damage, knockback, player.whoAmI);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,9 +12,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ice Star");
|
||||
Tooltip.SetDefault("Throws homing ice stars\n" +
|
||||
"Stealth strikes pierce infinitely and spawn ice shards on hit\n" +
|
||||
"Ice Stars are too brittle to be recovered after being thrown");
|
||||
Tooltip.SetDefault("Throws fast but brittle homing ice stars\n" +
|
||||
"Stealth strikes last longer and spawn smaller homing stars on first hits");
|
||||
SacrificeTotal = 99;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.DataStructures;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
@@ -20,12 +20,11 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 52;
|
||||
Item.damage = 76;
|
||||
Item.damage = 84;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 20;
|
||||
Item.useAnimation = Item.useTime = 20;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 20;
|
||||
Item.knockBack = 6f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
@@ -37,8 +36,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 1.6f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
|
||||
@@ -24,16 +24,15 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 20;
|
||||
Item.height = 20;
|
||||
Item.damage = 60;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 30;
|
||||
Item.useAnimation = Item.useTime = 30;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 30;
|
||||
Item.knockBack = 4f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.height = 20;
|
||||
Item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.Calamity().donorItem = true;
|
||||
@@ -44,7 +43,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
int proj = Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, type, damage, knockback, player.whoAmI);
|
||||
int proj = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
|
||||
return false;
|
||||
|
||||
@@ -13,23 +13,22 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
DisplayName.SetDefault("Leviathan Teeth");
|
||||
Tooltip.SetDefault("Rapidly throws a variety of poisonous fangs that stick to enemies\n" +
|
||||
"Stealth strikes cause 3 very fast teeth to be thrown, ignoring gravity and inflicting extreme knockback");
|
||||
"Stealth strikes cause 6 very fast teeth to be thrown, ignoring gravity and inflicting extreme knockback");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 36;
|
||||
Item.damage = 50;
|
||||
Item.height = 38;
|
||||
Item.damage = 66;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 10;
|
||||
Item.useAnimation = Item.useTime = 15;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 10;
|
||||
Item.knockBack = 1f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
Item.height = 38;
|
||||
Item.maxStack = 1;
|
||||
Item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
@@ -38,20 +37,18 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 1.3f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
bool stealthStrike = false;
|
||||
int teethCount;
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
teethCount = 3;
|
||||
teethCount = 6;
|
||||
stealthStrike = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
teethCount = Main.rand.Next(1, 4);
|
||||
teethCount = Main.rand.Next(1, 3);
|
||||
}
|
||||
|
||||
float spreadAngle = MathHelper.ToRadians(10);
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 12;
|
||||
Item.damage = 40;
|
||||
Item.damage = 80;
|
||||
Item.noMelee = true;
|
||||
Item.consumable = true;
|
||||
Item.noUseGraphic = true;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Tooltip.SetDefault(@"Throws a spiky ball that sticks to everything
|
||||
Explodes into cactus spikes after roughly 3 seconds
|
||||
Can hurt town NPCs
|
||||
Stealth strikes throw five at once");
|
||||
Stealth strikes throw four at once");
|
||||
SacrificeTotal = 99;
|
||||
}
|
||||
|
||||
@@ -42,19 +42,20 @@ Stealth strikes throw five at once");
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 1.4f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
{
|
||||
int spread = 3;
|
||||
for (int i = 0; i < 5; i++)
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
Vector2 perturbedspeed = new Vector2(velocity.X + Main.rand.Next(-3,4), velocity.Y + Main.rand.Next(-3,4)).RotatedBy(MathHelper.ToRadians(spread));
|
||||
int proj = Projectile.NewProjectile(source, position.X, position.Y, perturbedspeed.X, perturbedspeed.Y, type, damage, knockback, player.whoAmI);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[proj].originalDamage = damage;
|
||||
Main.projectile[proj].Calamity().stealthStrike = true;
|
||||
}
|
||||
spread -= Main.rand.Next(1,4);
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -18,18 +18,16 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 14;
|
||||
Item.damage = 37;
|
||||
Item.height = 34;
|
||||
Item.damage = 40;
|
||||
Item.noMelee = true;
|
||||
Item.consumable = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 13;
|
||||
Item.useAnimation = Item.useTime = 13;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 13;
|
||||
Item.knockBack = 2f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
Item.height = 34;
|
||||
Item.shoot = ProjectileID.StarAnise;
|
||||
Item.maxStack = 999;
|
||||
Item.value = 1200;
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
@@ -46,9 +44,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
if (gemstone.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[gemstone].Calamity().stealthStrike = true;
|
||||
Main.projectile[gemstone].usesLocalNPCImmunity = true;
|
||||
Main.projectile[gemstone].timeLeft = 900;
|
||||
Main.projectile[gemstone].penetrate = 4;
|
||||
Main.projectile[gemstone].timeLeft = 600;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -11,25 +11,23 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Palladium Javelin");
|
||||
Tooltip.SetDefault("Stealth strikes split into more javelins");
|
||||
Tooltip.SetDefault("Stealth strikes split into more javelins and boost life regeneration on hits");
|
||||
SacrificeTotal = 99;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 54;
|
||||
Item.damage = 68;
|
||||
Item.damage = 88;
|
||||
Item.noMelee = true;
|
||||
Item.consumable = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 19;
|
||||
Item.useAnimation = Item.useTime = 26;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 19;
|
||||
Item.knockBack = 5.5f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
Item.height = 54;
|
||||
Item.shoot = ProjectileID.StarAnise;
|
||||
Item.maxStack = 999;
|
||||
Item.value = 1200;
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
@@ -38,17 +36,12 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 1.425f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
int javelin = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
|
||||
if (javelin.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[javelin].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
|
||||
if (!player.Calamity().StealthStrikeAvailable())
|
||||
Main.projectile[javelin].usesLocalNPCImmunity = false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,12 +22,11 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 46;
|
||||
Item.damage = 24;
|
||||
Item.damage = 36;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 16;
|
||||
Item.useAnimation = Item.useTime = 24;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 16;
|
||||
Item.knockBack = 5f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
@@ -42,8 +41,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
// Terraria seems to really dislike high crit values in SetDefaults
|
||||
public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 4;
|
||||
|
||||
public override float StealthDamageMultiplier => 1.15f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
|
||||
@@ -22,16 +22,15 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 52;
|
||||
Item.height = 48;
|
||||
Item.damage = 55; //33
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 12;
|
||||
Item.useAnimation = Item.useTime = 12;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 12;
|
||||
Item.knockBack = 5f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
Item.height = 48;
|
||||
Item.value = CalamityGlobalItem.Rarity9BuyPrice;
|
||||
Item.rare = ItemRarityID.Cyan;
|
||||
Item.shoot = ModContent.ProjectileType<RadiantStarKnife>();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.DataStructures;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
DisplayName.SetDefault("Shinobi Blade");
|
||||
Tooltip.SetDefault("Throws a fast blade that spawns healing orbs when it kills an enemy\n" +
|
||||
"Stealth strikes cause 3 blades to be thrown at once");
|
||||
"Stealth strikes repeatedly stab the struck enemy from random directions");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
@@ -21,12 +21,11 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
Item.width = 16;
|
||||
Item.height = 42;
|
||||
Item.damage = 15;
|
||||
Item.damage = 24;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useAnimation = Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 15;
|
||||
Item.knockBack = 1f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
@@ -34,29 +33,17 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.shoot = ModContent.ProjectileType<ShinobiBladeProjectile>();
|
||||
Item.shootSpeed = 20f;
|
||||
Item.shootSpeed = 10f;
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
float spreadAngle = MathHelper.ToRadians(7.5f);
|
||||
Vector2 direction = velocity;
|
||||
Vector2 baseDirection = direction.RotatedBy(-spreadAngle);
|
||||
int p = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
|
||||
if (p.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[p].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
|
||||
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Vector2 currentDirection = baseDirection.RotatedBy(spreadAngle * i);
|
||||
|
||||
int p = Projectile.NewProjectile(source, position, currentDirection, type, damage, knockback, player.whoAmI);
|
||||
if (p.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[p].Calamity().stealthStrike = true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,13 +21,12 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 14;
|
||||
Item.damage = 90;
|
||||
Item.damage = 108;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.consumable = true;
|
||||
Item.useAnimation = 18;
|
||||
Item.useAnimation = Item.useTime = 18;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 18;
|
||||
Item.knockBack = 1f;
|
||||
Item.autoReuse = true;
|
||||
Item.height = 30;
|
||||
@@ -43,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
int p = Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, type, damage, knockback, player.whoAmI);
|
||||
int p = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
|
||||
if (p.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[p].Calamity().stealthStrike = true;
|
||||
return false;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 32;
|
||||
Item.damage = 30;
|
||||
Item.damage = 48;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.consumable = true;
|
||||
|
||||
Loaded 100 of 195 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user