1 - Removed ItemSpecific rarity, it was useless.

2 - Removed int wrapper for CalamityRarity enum.
3 - Fixed a mistake in The Pack code, it wasn't labeled as a donor item.
This commit is contained in:
Ozzatron committed 2021-01-31 18:03:07 -05:00
1 parent 41f8ed1acc
commit c7116a17eb
53 files changed
+300 -317

No files matched your search

+2 -3
View File
@@ -33,9 +33,8 @@ namespace CalamityMod.Items.Accessories
item.width = 18;
item.height = 18;
item.accessory = true;
item.value = CalamityGlobalItem.Rarity11BuyPrice;
item.rare = ItemRarityID.Purple;
item.Calamity().postMoonLordRarity = 12;
item.value = CalamityGlobalItem.Rarity11BuyPrice;
item.rare = ItemRarityID.Purple;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+2 -2
View File
@@ -16,8 +16,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().postMoonLordRarity = 16;
item.value = 0; // lul intentionally has zero value
item.Calamity().customRarity = CalamityRarity.HotPink;
item.accessory = true;
}
+5 -6
View File
@@ -10,19 +10,18 @@ namespace CalamityMod.Items.Accessories
{
DisplayName.SetDefault("Old Duke's Scales");
Tooltip.SetDefault("While under the effects of a damaging debuff, you gain 10% increased damage and 5% crit\n" +
"For every 25% of lost life, you gain 6% increased damage and 3% crit\n" +
"This will max out at 18% increased damage and 9% crit when under 25% life\n" +
"Provides immunity to poisoned, venom, and sulphuric poisoning");
"For every 25% of lost life, you gain 6% increased damage and 3% crit\n" +
"This will max out at 18% increased damage and 9% crit when under 25% life\n" +
"Provides immunity to poisoned, venom, and sulphuric poisoning");
}
public override void SetDefaults()
{
item.width = 28;
item.height = 26;
item.value = CalamityGlobalItem.Rarity13BuyPrice;
item.accessory = true;
item.rare = 10;
item.Calamity().postMoonLordRarity = 13;
item.value = CalamityGlobalItem.Rarity13BuyPrice;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -50,7 +50,7 @@ namespace CalamityMod.Items.Accessories
item.height = 50;
item.accessory = true;
item.value = CalamityGlobalItem.RarityHotPinkBuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
+2 -1
View File
@@ -53,7 +53,8 @@ namespace CalamityMod.Items.Accessories
item.accessory = true;
item.value = CalamityGlobalItem.RarityHotPinkBuyPrice;
item.rare = ItemRarityID.Red;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
// Not overriding these Clones makes tooltips fail to function correctly due to HoverItem spaghetti.
+6 -6
View File
@@ -7,13 +7,13 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class StatisBeltOfCurses : ModItem
public class StatisBeltOfCurses : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Statis' Void Sash");
Tooltip.SetDefault("24% increased jump speed and allows constant jumping\n" +
"Grants immunity to fall damage\n" +
"Grants immunity to fall damage\n" +
"Can climb walls, dash, and dodge attacks\n" +
"Dashes leave homing scythes in your wake");
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(8, 3));
@@ -23,9 +23,9 @@ namespace CalamityMod.Items.Accessories
{
item.width = 28;
item.height = 32;
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.accessory = true;
item.Calamity().postMoonLordRarity = 14;
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateAccessory(Player player, bool hideVisual)
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Accessories
player.jumpSpeedBoost += 1.2f;
player.noFallDmg = true;
player.blackBelt = true;
modPlayer.dashMod = 7;
modPlayer.dashMod = 7;
player.spikedBoots = 2;
}
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Accessories
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<StatisNinjaBelt>());
recipe.AddIngredient(ModContent.ItemType<TwistingNether>(), 10);
//This is not a mistake. Only Nightmare Fuel is intentional for thematics.
//This is not a mistake. Only Nightmare Fuel is intentional for thematics.
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 10);
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.defense = 50;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor
item.defense = 50;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.defense = 50;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
+140 -150
View File
@@ -64,19 +64,12 @@ namespace CalamityMod.Items
#endregion
// Miscellaneous stuff
public CalamityRarity customRarity = CalamityRarity.NoEffect;
public int timesUsed = 0;
public int reforgeTier = 0;
public bool donorItem = false;
public bool devItem = false;
// Rarity is provided both as the classic int and the new enum.
public CalamityRarity customRarity = CalamityRarity.NoEffect;
public int postMoonLordRarity
{
get => (int)customRarity;
set => customRarity = (CalamityRarity)value;
}
// See RogueWeapon.cs for rogue modifier shit
#region Modifiers
public CalamityGlobalItem()
@@ -1082,11 +1075,87 @@ namespace CalamityMod.Items
#region Modify Tooltips
public override void ModifyTooltips(Item item, List<TooltipLine> tooltips)
{
#region Custom Rarities#
TooltipLine tt2 = tooltips.FirstOrDefault(x => x.Name == "ItemName" && x.mod == "Terraria");
if (tt2 != null)
#region Rarity Coloration
TooltipLine nameLine = tooltips.FirstOrDefault(x => x.Name == "ItemName" && x.mod == "Terraria");
if (nameLine != null)
{
// The special color in the tooltip were overlapping. Placing everything in here, above other things, was the only solution I could find that worked.
#region Standard Post-ML Rarities
// TODO -- these should be handled automatically with a separate function and the colors should be tied to the rarity definitions
switch (customRarity)
{
default:
break;
case CalamityRarity.Turquoise:
nameLine.overrideColor = new Color(0, 255, 200);
break;
case CalamityRarity.PureGreen:
nameLine.overrideColor = new Color(0, 255, 0);
break;
case CalamityRarity.DarkBlue:
nameLine.overrideColor = new Color(43, 96, 222);
break;
case CalamityRarity.Violet:
nameLine.overrideColor = new Color(108, 45, 199);
break;
case CalamityRarity.HotPink:
nameLine.overrideColor = new Color(255, 0, 255);
break;
case CalamityRarity.Rainbow:
nameLine.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB);
break;
case CalamityRarity.DraedonRust:
nameLine.overrideColor = new Color(204, 71, 35);
break;
case CalamityRarity.RareVariant:
nameLine.overrideColor = new Color(255, 140, 0);
break;
}
#endregion
#region Uniquely Colored Dev Items
if (item.type == ModContent.ItemType<Fabstaff>())
nameLine.overrideColor = new Color(Main.DiscoR, 100, 255);
if (item.type == ModContent.ItemType<BlushieStaff>())
nameLine.overrideColor = new Color(0, 0, 255);
if (item.type == ModContent.ItemType<Judgement>())
nameLine.overrideColor = Judgement.GetSyncedLightColor();
if (item.type == ModContent.ItemType<NanoblackReaperRogue>())
nameLine.overrideColor = new Color(0.34f, 0.34f + 0.66f * Main.DiscoG / 255f, 0.34f + 0.5f * Main.DiscoG / 255f);
if (item.type == ModContent.ItemType<ShatteredCommunity>())
nameLine.overrideColor = ShatteredCommunity.GetRarityColor();
if (item.type == ModContent.ItemType<ProfanedSoulCrystal>())
nameLine.overrideColor = CalamityUtils.ColorSwap(new Color(255, 166, 0), new Color(25, 250, 25), 4f); //alternates between emerald green and amber (BanditHueh)
if (item.type == ModContent.ItemType<BensUmbrella>())
nameLine.overrideColor = CalamityUtils.ColorSwap(new Color(210, 0, 255), new Color(255, 248, 24), 4f);
if (item.type == ModContent.ItemType<Endogenesis>())
nameLine.overrideColor = CalamityUtils.ColorSwap(new Color(131, 239, 255), new Color(36, 55, 230), 4f);
if (item.type == ModContent.ItemType<DraconicDestruction>())
nameLine.overrideColor = CalamityUtils.ColorSwap(new Color(255, 69, 0), new Color(139, 0, 0), 4f);
if (item.type == ModContent.ItemType<ScarletDevil>())
nameLine.overrideColor = CalamityUtils.ColorSwap(new Color(191, 45, 71), new Color(185, 187, 253), 4f);
if (item.type == ModContent.ItemType<RedSun>())
nameLine.overrideColor = CalamityUtils.ColorSwap(new Color(204, 86, 80), new Color(237, 69, 141), 4f);
if (item.type == ModContent.ItemType<GaelsGreatsword>())
nameLine.overrideColor = new Color(146, 0, 0);
if (item.type == ModContent.ItemType<CrystylCrusher>())
nameLine.overrideColor = new Color(129, 29, 149);
if (item.type == ModContent.ItemType<Svantechnical>())
nameLine.overrideColor = new Color(220, 20, 60);
if (item.type == ModContent.ItemType<SomaPrime>())
nameLine.overrideColor = new Color(254, 253, 235);
if (item.type == ModContent.ItemType<Contagion>())
nameLine.overrideColor = new Color(207, 17, 117);
if (item.type == ModContent.ItemType<TriactisTruePaladinianMageHammerofMightMelee>())
nameLine.overrideColor = new Color(227, 226, 180);
if (item.type == ModContent.ItemType<RoyalKnivesMelee>())
nameLine.overrideColor = CalamityUtils.ColorSwap(new Color(154, 255, 151), new Color(228, 151, 255), 4f);
if (item.type == ModContent.ItemType<DemonshadeHelm>() || item.type == ModContent.ItemType<DemonshadeBreastplate>() || item.type == ModContent.ItemType<DemonshadeGreaves>())
nameLine.overrideColor = CalamityUtils.ColorSwap(new Color(255, 132, 22), new Color(221, 85, 7), 4f);
// TODO -- for cleanliness, ALL color math should either be a one-line ColorSwap or inside the item's own file
// The items that currently violate this are all below:
// Eternity, Flamsteed Ring, Earth
if (item.type == ModContent.ItemType<Eternity>())
{
List<Color> colorSet = new List<Color>()
@@ -1099,142 +1168,71 @@ namespace CalamityMod.Items
new Color(249, 245, 99), // bright yellow
new Color(236, 168, 247), // purplish pink
};
if (tt2 != null)
if (nameLine != null)
{
int colorIndex = (int)(Main.GlobalTime / 2 % colorSet.Count);
Color currentColor = colorSet[colorIndex];
Color nextColor = colorSet[(colorIndex + 1) % colorSet.Count];
tt2.overrideColor = Color.Lerp(currentColor, nextColor, Main.GlobalTime % 2f > 1f ? 1f : Main.GlobalTime % 1f);
nameLine.overrideColor = Color.Lerp(currentColor, nextColor, Main.GlobalTime % 2f > 1f ? 1f : Main.GlobalTime % 1f);
}
return;
}
switch (customRarity)
if (item.type == ModContent.ItemType<PrototypeAndromechaRing>())
{
default:
break;
case CalamityRarity.Turquoise:
tt2.overrideColor = new Color(0, 255, 200);
break;
case CalamityRarity.PureGreen:
tt2.overrideColor = new Color(0, 255, 0);
break;
case CalamityRarity.DarkBlue:
tt2.overrideColor = new Color(43, 96, 222);
break;
case CalamityRarity.Violet:
tt2.overrideColor = new Color(108, 45, 199);
break;
case CalamityRarity.HotPink:
tt2.overrideColor = new Color(255, 0, 255);
break;
case CalamityRarity.Rainbow:
tt2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB);
break;
case CalamityRarity.DraedonRust:
tt2.overrideColor = new Color(204, 71, 35);
break;
case CalamityRarity.RareVariant:
tt2.overrideColor = new Color(255, 140, 0);
break;
case CalamityRarity.ItemSpecific:
// Uniquely colored developer items
if (item.type == ModContent.ItemType<Fabstaff>())
tt2.overrideColor = new Color(Main.DiscoR, 100, 255);
if (item.type == ModContent.ItemType<BlushieStaff>())
tt2.overrideColor = new Color(0, 0, 255);
if (item.type == ModContent.ItemType<Judgement>())
tt2.overrideColor = Judgement.GetSyncedLightColor();
if (item.type == ModContent.ItemType<NanoblackReaperRogue>())
tt2.overrideColor = new Color(0.34f, 0.34f + 0.66f * Main.DiscoG / 255f, 0.34f + 0.5f * Main.DiscoG / 255f);
if (item.type == ModContent.ItemType<ShatteredCommunity>())
tt2.overrideColor = ShatteredCommunity.GetRarityColor();
if (item.type == ModContent.ItemType<ProfanedSoulCrystal>())
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(255, 166, 0), new Color(25, 250, 25), 4f); //alternates between emerald green and amber (BanditHueh)
if (item.type == ModContent.ItemType<BensUmbrella>())
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(210, 0, 255), new Color(255, 248, 24), 4f);
if (item.type == ModContent.ItemType<Endogenesis>())
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(131, 239, 255), new Color(36, 55, 230), 4f);
if (item.type == ModContent.ItemType<DraconicDestruction>())
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(255, 69, 0), new Color(139, 0, 0), 4f);
if (item.type == ModContent.ItemType<ScarletDevil>())
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(191, 45, 71), new Color(185, 187, 253), 4f);
if (item.type == ModContent.ItemType<RedSun>())
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(204, 86, 80), new Color(237, 69, 141), 4f);
if (item.type == ModContent.ItemType<GaelsGreatsword>())
tt2.overrideColor = new Color(146, 0, 0);
if (item.type == ModContent.ItemType<CrystylCrusher>())
tt2.overrideColor = new Color(129, 29, 149);
if (item.type == ModContent.ItemType<Svantechnical>())
tt2.overrideColor = new Color(220, 20, 60);
if (item.type == ModContent.ItemType<SomaPrime>())
tt2.overrideColor = new Color(254, 253, 235);
if (item.type == ModContent.ItemType<Contagion>())
tt2.overrideColor = new Color(207, 17, 117);
if (item.type == ModContent.ItemType<TriactisTruePaladinianMageHammerofMightMelee>())
tt2.overrideColor = new Color(227, 226, 180);
if (item.type == ModContent.ItemType<RoyalKnivesMelee>())
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(154, 255, 151), new Color(228, 151, 255), 4f);
if (item.type == ModContent.ItemType<DemonshadeHelm>() || item.type == ModContent.ItemType<DemonshadeBreastplate>() || item.type == ModContent.ItemType<DemonshadeGreaves>())
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(255, 132, 22), new Color(221, 85, 7), 4f);
if (item.type == ModContent.ItemType<PrototypeAndromechaRing>())
{
if (Main.GlobalTime % 1f < 0.6f)
{
tt2.overrideColor = new Color(89, 229, 255);
}
else if (Main.GlobalTime % 1f < 0.8f)
{
tt2.overrideColor = Color.Lerp(new Color(89, 229, 255), Color.White, (Main.GlobalTime % 1f - 0.6f) / 0.2f);
}
else
{
tt2.overrideColor = Color.Lerp(Color.White, new Color(89, 229, 255), (Main.GlobalTime % 1f - 0.8f) / 0.2f);
}
}
if (item.type == ModContent.ItemType<Earth>())
{
List<Color> earthColors = new List<Color>()
{
new Color(255, 99, 146),
new Color(255, 228, 94),
new Color(127, 200, 248)
};
if (tt2 != null)
{
int colorIndex = (int)(Main.GlobalTime / 2 % earthColors.Count);
Color currentColor = earthColors[colorIndex];
Color nextColor = earthColors[(colorIndex + 1) % earthColors.Count];
tt2.overrideColor = Color.Lerp(currentColor, nextColor, Main.GlobalTime % 2f > 1f ? 1f : Main.GlobalTime % 1f);
}
}
// Uniquely colored legendary weapons and Yharim's Crystal
if (item.type == ModContent.ItemType<AegisBlade>() || item.type == ModContent.ItemType<YharimsCrystal>())
tt2.overrideColor = new Color(255, Main.DiscoG, 53);
if (item.type == ModContent.ItemType<BlossomFlux>() || item.type == ModContent.ItemType<Malachite>())
tt2.overrideColor = new Color(Main.DiscoR, 203, 103);
if (item.type == ModContent.ItemType<BrinyBaron>() || item.type == ModContent.ItemType<ColdDivinity>())
tt2.overrideColor = new Color(53, Main.DiscoG, 255);
if (item.type == ModContent.ItemType<CosmicDischarge>())
tt2.overrideColor = new Color(150, Main.DiscoG, 255);
if (item.type == ModContent.ItemType<SeasSearing>())
tt2.overrideColor = new Color(60, Main.DiscoG, 190);
if (item.type == ModContent.ItemType<SHPC>())
tt2.overrideColor = new Color(255, Main.DiscoG, 155);
if (item.type == ModContent.ItemType<Vesuvius>())
tt2.overrideColor = new Color(255, Main.DiscoG, 0);
if (item.type == ModContent.ItemType<PristineFury>())
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(255, 168, 53), new Color(255, 249, 0), 2f);
if (item.type == ModContent.ItemType<LeonidProgenitor>())
tt2.overrideColor = CalamityUtils.ColorSwap(LeonidProgenitor.blueColor, LeonidProgenitor.purpleColor, 3f);
break;
if (Main.GlobalTime % 1f < 0.6f)
{
nameLine.overrideColor = new Color(89, 229, 255);
}
else if (Main.GlobalTime % 1f < 0.8f)
{
nameLine.overrideColor = Color.Lerp(new Color(89, 229, 255), Color.White, (Main.GlobalTime % 1f - 0.6f) / 0.2f);
}
else
{
nameLine.overrideColor = Color.Lerp(Color.White, new Color(89, 229, 255), (Main.GlobalTime % 1f - 0.8f) / 0.2f);
}
}
if (item.type == ModContent.ItemType<Earth>())
{
List<Color> earthColors = new List<Color>()
{
new Color(255, 99, 146),
new Color(255, 228, 94),
new Color(127, 200, 248)
};
if (nameLine != null)
{
int colorIndex = (int)(Main.GlobalTime / 2 % earthColors.Count);
Color currentColor = earthColors[colorIndex];
Color nextColor = earthColors[(colorIndex + 1) % earthColors.Count];
nameLine.overrideColor = Color.Lerp(currentColor, nextColor, Main.GlobalTime % 2f > 1f ? 1f : Main.GlobalTime % 1f);
}
}
#endregion
#region Uniquely Colored Non-Dev Items
if (item.type == ModContent.ItemType<AegisBlade>() || item.type == ModContent.ItemType<YharimsCrystal>())
nameLine.overrideColor = new Color(255, Main.DiscoG, 53);
if (item.type == ModContent.ItemType<BlossomFlux>() || item.type == ModContent.ItemType<Malachite>())
nameLine.overrideColor = new Color(Main.DiscoR, 203, 103);
if (item.type == ModContent.ItemType<BrinyBaron>() || item.type == ModContent.ItemType<ColdDivinity>())
nameLine.overrideColor = new Color(53, Main.DiscoG, 255);
if (item.type == ModContent.ItemType<CosmicDischarge>())
nameLine.overrideColor = new Color(150, Main.DiscoG, 255);
if (item.type == ModContent.ItemType<SeasSearing>())
nameLine.overrideColor = new Color(60, Main.DiscoG, 190);
if (item.type == ModContent.ItemType<SHPC>())
nameLine.overrideColor = new Color(255, Main.DiscoG, 155);
if (item.type == ModContent.ItemType<Vesuvius>())
nameLine.overrideColor = new Color(255, Main.DiscoG, 0);
if (item.type == ModContent.ItemType<PristineFury>())
nameLine.overrideColor = CalamityUtils.ColorSwap(new Color(255, 168, 53), new Color(255, 249, 0), 2f);
if (item.type == ModContent.ItemType<LeonidProgenitor>())
nameLine.overrideColor = CalamityUtils.ColorSwap(LeonidProgenitor.blueColor, LeonidProgenitor.purpleColor, 3f);
#endregion
}
#endregion
#region Accessory Modifier Display
#region Stealth Accessory Prefixes Display
if (item.accessory)
{
if (!item.social && item.prefix > 0)
@@ -1252,18 +1250,7 @@ namespace CalamityMod.Items
}
#endregion
/*if (item.ammo == 97)
{
foreach (TooltipLine line2 in tooltips)
{
if (line2.mod == "Terraria")
{
if (line2.Name == "Damage")
line2.text = "";
}
}
}*/
#region Vanilla Item Tooltip Edits
if (item.type == ItemID.CobaltSword || item.type == ItemID.CobaltNaginata)
{
foreach (TooltipLine line2 in tooltips)
@@ -3022,8 +3009,10 @@ Grants immunity to fire blocks, and temporary immunity to lava";
}
}
}
#endregion
if (item.type < ItemID.Count)
#region Mod Mechanic Tooltips
if (item.type < ItemID.Count)
return;
// TODO -- mod references should be kept statically
@@ -3069,6 +3058,7 @@ Grants immunity to fire blocks, and temporary immunity to lava";
TooltipLine line = new TooltipLine(mod, "CalamityDev", CalamityUtils.ColorMessage("- Developer Item -", new Color(255, 0, 255)));
tooltips.Add(line);
}
#endregion
}
#endregion
+1 -2
View File
@@ -20,8 +20,7 @@ namespace CalamityMod.Items.LoreItems
{
item.width = 20;
item.height = 20;
item.rare = 10;
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
item.consumable = false;
}
+3 -2
View File
@@ -4,6 +4,7 @@ using CalamityMod.Items.Placeables.FurnitureCosmilite;
using CalamityMod.Items.Placeables.FurnitureSilva;
using CalamityMod.Tiles.Furniture;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables.Furniture
{
@@ -24,10 +25,10 @@ namespace CalamityMod.Items.Placeables.Furniture
item.autoReuse = true;
item.useAnimation = 15;
item.useTime = 10;
item.useStyle = 1;
item.useStyle = ItemUseStyleID.SwingThrow;
item.consumable = true;
item.createTile = ModContent.TileType<AuricToiletTile>();
item.Calamity().postMoonLordRarity = 15;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override void AddRecipes()
+1 -1
View File
@@ -40,7 +40,7 @@ namespace CalamityMod.Items.Tools
item.shoot = ModContent.ProjectileType<CrystylCrusherRay>();
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
+3 -4
View File
@@ -18,8 +18,7 @@ namespace CalamityMod.Items.TreasureBags
item.consumable = true;
item.width = 24;
item.height = 24;
item.rare = 11;
item.Calamity().postMoonLordRarity = 12;
item.Calamity().customRarity = CalamityRarity.Turquoise;
}
public override bool CanRightClick() => true;
@@ -33,8 +32,8 @@ namespace CalamityMod.Items.TreasureBags
int coreMax = !Main.expertMode ? 3 : 4;
int bloodstoneMin = !Main.expertMode ? 50 : 60;
int bloodstoneMax = !Main.expertMode ? 60 : 70;
int lifeAlloyChance = !Main.expertMode ? 2 : 1;
int coreofCalChance = !Main.expertMode ? 3 : 2;
int lifeAlloyChance = !Main.expertMode ? 2 : 1;
int coreofCalChance = !Main.expertMode ? 3 : 2;
DropHelper.DropItem(player, ModContent.ItemType<VerstaltiteBar>(), barMin, barMax);
DropHelper.DropItem(player, ModContent.ItemType<DraedonBar>(), barMin, barMax);
DropHelper.DropItem(player, ModContent.ItemType<CruptixBar>(), barMin, barMax);
+1 -1
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic
item.magic = true;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
item.UseSound = SoundID.Item1;
+1 -1
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic
item.knockBack = 5f;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
item.UseSound = SoundID.Item60;
+1 -1
View File
@@ -51,7 +51,7 @@ namespace CalamityMod.Items.Weapons.Magic
item.shootSpeed = 14f;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
+3 -3
View File
@@ -28,13 +28,13 @@ namespace CalamityMod.Items.Weapons.Magic
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 3.25f;
item.rare = 5;
item.value = Item.buyPrice(0, 36, 0, 0);
item.UseSound = SoundID.Item92;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<SHPB>();
item.shootSpeed = 20f;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.value = CalamityGlobalItem.Rarity5BuyPrice;
item.rare = ItemRarityID.Pink;
}
public override Vector2? HoldoutOffset()
+3 -8
View File
@@ -33,17 +33,12 @@ namespace CalamityMod.Items.Weapons.Magic
item.UseSound = SoundID.Item88;
item.autoReuse = true;
item.height = 62;
item.value = Item.buyPrice(0, 80, 0, 0);
item.rare = 8;
item.shootSpeed = 20f;
item.shoot = ModContent.ProjectileType<AsteroidMolten>();
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
}
/*public override Vector2? HoldoutOrigin()
{
return new Vector2(30, 30);
}*/
item.value = CalamityGlobalItem.Rarity8BuyPrice;
item.rare = ItemRarityID.Yellow;
}
public override bool AltFunctionUse(Player player)
{
+3 -3
View File
@@ -26,13 +26,13 @@ namespace CalamityMod.Items.Weapons.Magic
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 4f;
item.value = Item.buyPrice(1, 40, 0, 0);
item.Calamity().postMoonLordRarity = 13;
item.rare = 10;
item.UseSound = SoundID.Item46;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<VitriolicViperSpit>();
item.shootSpeed = 20f;
item.value = CalamityGlobalItem.Rarity13BuyPrice;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
+3 -3
View File
@@ -29,11 +29,11 @@ namespace CalamityMod.Items.Weapons.Magic
item.noUseGraphic = true;
item.channel = true;
item.knockBack = 0f;
item.value = Item.buyPrice(2, 50, 0, 0);
item.rare = 10;
item.shoot = ModContent.ProjectileType<YharimsCrystalPrism>();
item.shootSpeed = 30f;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.value = CalamityGlobalItem.Rarity15BuyPrice;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
+3 -3
View File
@@ -30,10 +30,10 @@ namespace CalamityMod.Items.Weapons.Melee
item.knockBack = 4.25f;
item.UseSound = SoundID.Item1;
item.autoReuse = true;
item.rare = 7;
item.value = Item.buyPrice(0, 60, 0, 0);
item.shootSpeed = 14f;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.value = CalamityGlobalItem.Rarity7BuyPrice;
item.rare = ItemRarityID.Lime;
}
public override bool AltFunctionUse(Player player)
+2 -2
View File
@@ -31,9 +31,9 @@ namespace CalamityMod.Items.Weapons.Melee
item.height = 102;
item.useStyle = ItemUseStyleID.SwingThrow;
item.UseSound = SoundID.Item1;
item.value = Item.buyPrice(0, 80, 0, 0);
item.value = CalamityGlobalItem.Rarity8BuyPrice;
item.rare = ItemRarityID.Yellow;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
}
public override bool AltFunctionUse(Player player) => true;
+3 -3
View File
@@ -32,11 +32,11 @@ namespace CalamityMod.Items.Weapons.Melee
item.useStyle = ItemUseStyleID.HoldingOut;
item.knockBack = 0.5f;
item.UseSound = SoundID.Item122;
item.value = Item.buyPrice(1, 40, 0, 0);
item.rare = 10;
item.shootSpeed = 24f;
item.shoot = ModContent.ProjectileType<CosmicDischargeFlail>();
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
+1 -1
View File
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee
item.shootSpeed = 14f;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
+1 -1
View File
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Melee
item.autoReuse = true;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
+1 -1
View File
@@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons.Melee
item.autoReuse = true;
item.value = CalamityGlobalItem.Rarity15BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.Violet;
item.Calamity().devItem = true;
item.shoot = ModContent.ProjectileType<GaelSkull>();
+6 -6
View File
@@ -5,7 +5,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class InsidiousImpaler : ModItem
public class InsidiousImpaler : ModItem
{
public override void SetStaticDefaults()
{
@@ -28,13 +28,13 @@ namespace CalamityMod.Items.Weapons.Melee
item.UseSound = SoundID.Item1;
item.autoReuse = true;
item.height = 70;
item.value = Item.buyPrice(1, 40, 0, 0);
item.Calamity().postMoonLordRarity = 13;
item.rare = 10;
item.shoot = ModContent.ProjectileType<InsidiousImpalerProj>();
item.shootSpeed = 5f;
item.value = CalamityGlobalItem.Rarity13BuyPrice;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
}
}
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Melee
item.shootSpeed = 15f;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
+1 -1
View File
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee
item.height = 20;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
item.shoot = ModContent.ProjectileType<IllustriousKnife>();
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee
item.shootSpeed = 25f;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
+3 -3
View File
@@ -28,14 +28,14 @@ namespace CalamityMod.Items.Weapons.Ranged
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 0.15f;
item.value = Item.buyPrice(0, 60, 0, 0);
item.rare = 7;
item.UseSound = SoundID.Item5;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<LeafArrow>();
item.shootSpeed = 10f;
item.useAmmo = AmmoID.Arrow;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.value = CalamityGlobalItem.Rarity7BuyPrice;
item.rare = ItemRarityID.Lime;
}
public override bool AltFunctionUse(Player player)
+1 -1
View File
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged
item.useAmmo = AmmoID.Arrow;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
+9 -9
View File
@@ -24,14 +24,14 @@ namespace CalamityMod.Items.Weapons.Ranged
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 3f;
item.value = Item.buyPrice(1, 40, 0, 0);
item.Calamity().postMoonLordRarity = 13;
item.rare = 10;
item.UseSound = SoundID.Item11;
item.autoReuse = true;
item.shoot = ProjectileID.PurificationPowder;
item.shootSpeed = 16f;
item.useAmmo = AmmoID.Bullet;
item.value = CalamityGlobalItem.Rarity13BuyPrice;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override Vector2? HoldoutOffset()
@@ -51,12 +51,12 @@ namespace CalamityMod.Items.Weapons.Ranged
dust.velocity = Vector2.Normalize(new Vector2(speedX, speedY)).RotatedByRandom(MathHelper.ToRadians(15f));
dust.noGravity = true;
}
if (player.Calamity().soundCooldown <= 0)
{
// WoF vomit sound.
Main.PlaySound(SoundID.NPCKilled, (int)position.X, (int)position.Y, 13, 0.5f, 0f);
player.Calamity().soundCooldown = 120;
}
if (player.Calamity().soundCooldown <= 0)
{
// WoF vomit sound.
Main.PlaySound(SoundID.NPCKilled, (int)position.X, (int)position.Y, 13, 0.5f, 0f);
player.Calamity().soundCooldown = 120;
}
return false;
}
return true;
+1 -1
View File
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Ranged
item.noMelee = true;
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
item.Calamity().donorItem = true;
item.shoot = ModContent.ProjectileType<KarasawaShot>();
+31 -31
View File
@@ -9,8 +9,8 @@ namespace CalamityMod.Items.Weapons.Ranged
{
public class PristineFury : ModItem
{
public int frameCounter = 0;
public int frame = 0;
public int frameCounter = 0;
public int frame = 0;
public static int BaseDamage = 89;
public override void SetStaticDefaults()
@@ -33,14 +33,14 @@ namespace CalamityMod.Items.Weapons.Ranged
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 5f;
item.value = CalamityGlobalItem.Rarity12BuyPrice;
item.rare = ItemRarityID.Purple;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.UseSound = SoundID.Item34;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<PristineFire>();
item.shootSpeed = 11f;
item.useAmmo = AmmoID.Gel;
item.value = CalamityGlobalItem.Rarity12BuyPrice;
item.Calamity().customRarity = CalamityRarity.Turquoise;
}
public override Vector2? HoldoutOffset() => new Vector2(-25, -10);
@@ -66,39 +66,39 @@ namespace CalamityMod.Items.Weapons.Ranged
{
if (player.altFunctionUse == 2)
{
int flameAmt = 3;
for (int index = 0; index < flameAmt; ++index)
{
float SpeedX = speedX + Main.rand.NextFloat(-1.25f, 1.25f);
float SpeedY = speedY + Main.rand.NextFloat(-1.25f, 1.25f);
Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType<PristineSecondary>(), (int)(damage * 0.8f), knockBack, player.whoAmI);
}
int flameAmt = 3;
for (int index = 0; index < flameAmt; ++index)
{
float SpeedX = speedX + Main.rand.NextFloat(-1.25f, 1.25f);
float SpeedY = speedY + Main.rand.NextFloat(-1.25f, 1.25f);
Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType<PristineSecondary>(), (int)(damage * 0.8f), knockBack, player.whoAmI);
}
}
else
{
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<PristineFire>(), damage, knockBack, player.whoAmI);
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<PristineFire>(), damage, knockBack, player.whoAmI);
}
return false;
return false;
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Ranged/PristineFury_Animated");
spriteBatch.Draw(texture, position, item.GetCurrentFrame(ref frame, ref frameCounter, 5, 4), Color.White, 0f, origin, scale, SpriteEffects.None, 0);
return false;
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Ranged/PristineFury_Animated");
spriteBatch.Draw(texture, position, item.GetCurrentFrame(ref frame, ref frameCounter, 5, 4), Color.White, 0f, origin, scale, SpriteEffects.None, 0);
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Ranged/PristineFury_Animated");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 5, 4), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Ranged/PristineFury_Animated");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 5, 4), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Ranged/PristineFuryGlow");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 5, 4, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Ranged/PristineFuryGlow");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 5, 4, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
}
}
+3 -3
View File
@@ -31,13 +31,13 @@ namespace CalamityMod.Items.Weapons.Ranged
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 5f;
item.rare = 5;
item.value = Item.buyPrice(0, 36, 0, 0);
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.UseSound = SoundID.Item11;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<SeasSearingBubble>();
item.shootSpeed = 11f;
item.value = CalamityGlobalItem.Rarity5BuyPrice;
item.rare = ItemRarityID.Pink;
}
public override Vector2? HoldoutOffset()
+3 -3
View File
@@ -26,13 +26,13 @@ namespace CalamityMod.Items.Weapons.Ranged
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 7.5f;
item.value = Item.buyPrice(1, 40, 0, 0);
item.Calamity().postMoonLordRarity = 13;
item.rare = 10;
item.UseSound = SoundID.Item10;
item.autoReuse = true;
item.shootSpeed = 20f;
item.shoot = ModContent.ProjectileType<SepticSkewerHarpoon>();
item.value = CalamityGlobalItem.Rarity13BuyPrice;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override Vector2? HoldoutOffset()
+1 -1
View File
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged
item.useAmmo = AmmoID.Bullet;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
+1 -1
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged
item.knockBack = 3.5f;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
item.UseSound = SoundID.Item31;
+4 -3
View File
@@ -27,14 +27,15 @@ namespace CalamityMod.Items.Weapons.Ranged
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 7.5f;
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
item.UseSound = SoundID.Item11;
item.autoReuse = true;
item.shootSpeed = 24f;
item.shoot = ModContent.ProjectileType<ThePackMissile>();
item.useAmmo = AmmoID.Rocket;
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
item.Calamity().donorItem = true;
}
// Terraria seems to really dislike high crit values in SetDefaults
+2 -2
View File
@@ -37,9 +37,9 @@ namespace CalamityMod.Items.Weapons.Rogue
item.noMelee = true;
item.noUseGraphic = true;
item.UseSound = SoundID.Item61;
item.value = CalamityGlobalItem.Rarity7BuyPrice;
item.rare = 7;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.rare = ItemRarityID.Lime;
}
public override bool AltFunctionUse(Player player) => true;
+3 -3
View File
@@ -30,12 +30,12 @@ namespace CalamityMod.Items.Weapons.Rogue
item.UseSound = SoundID.Item1;
item.autoReuse = true;
item.height = 58;
item.value = Item.buyPrice(0, 80, 0, 0);
item.rare = 8;
item.shoot = ModContent.ProjectileType<MalachiteProj>();
item.shootSpeed = 10f;
item.Calamity().rogue = true;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.value = CalamityGlobalItem.Rarity8BuyPrice;
item.rare = ItemRarityID.Yellow;
}
public override bool AltFunctionUse(Player player) => true;
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Rogue
item.UseSound = SoundID.Item18;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
item.Calamity().rogue = true;
+1 -1
View File
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Rogue
item.Calamity().rogue = true;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
+3 -3
View File
@@ -28,12 +28,12 @@ namespace CalamityMod.Items.Weapons.Rogue
item.knockBack = 5f;
item.UseSound = SoundID.Item1;
item.autoReuse = true;
item.value = Item.buyPrice(1, 40, 0, 0);
item.Calamity().postMoonLordRarity = 13;
item.rare = 10;
item.shoot = ModContent.ProjectileType<ToxicantTwisterTwoPointZero>();
item.shootSpeed = 18f;
item.Calamity().rogue = true;
item.value = CalamityGlobalItem.Rarity13BuyPrice;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
+1 -1
View File
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Summon
item.noMelee = true;
item.UseSound = SoundID.Item68;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
+3 -3
View File
@@ -26,11 +26,11 @@ namespace CalamityMod.Items.Weapons.Summon
item.useStyle = ItemUseStyleID.SwingThrow;
item.noMelee = true;
item.knockBack = 4f;
item.value = Item.buyPrice(1, 40, 0, 0);
item.Calamity().postMoonLordRarity = 13;
item.rare = 10;
item.UseSound = SoundID.NPCDeath13;
item.shoot = ModContent.ProjectileType<OldDukeHeadCorpse>();
item.value = CalamityGlobalItem.Rarity13BuyPrice;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
+20 -20
View File
@@ -15,12 +15,12 @@ namespace CalamityMod.Items.Weapons.Summon
{
DisplayName.SetDefault("Cold Divinity");
Tooltip.SetDefault("Legendary Drop\n" +
"Summons the power of the ancient ice castle\n" +
"For each minion slot used, you will gain an additional orbiting shield spike\n" +
"These spikes accelerate rapidly towards a nearby enemy to inflict heavy damage\n" +
"They take some time to regenerate after launching themselves at the target, however\n" +
"On right click, summons a duplicate ring around the targeted enemy, which slowly converges before exploding\n" +
"Revengeance Drop");
"Summons the power of the ancient ice castle\n" +
"For each minion slot used, you will gain an additional orbiting shield spike\n" +
"These spikes accelerate rapidly towards a nearby enemy to inflict heavy damage\n" +
"They take some time to regenerate after launching themselves at the target, however\n" +
"On right click, summons a duplicate ring around the targeted enemy, which slowly converges before exploding\n" +
"Revengeance Drop");
}
public override void SetDefaults()
@@ -33,29 +33,29 @@ namespace CalamityMod.Items.Weapons.Summon
item.useStyle = ItemUseStyleID.HoldingUp;
item.noMelee = true;
item.knockBack = 4.5f;
item.value = Item.buyPrice(0, 36, 0, 0);
item.rare = 5;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.UseSound = SoundID.Item30;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<ColdDivinityPointyThing>();
item.shootSpeed = 10f;
item.summon = true;
item.value = CalamityGlobalItem.Rarity5BuyPrice;
item.rare = ItemRarityID.Pink;
}
public override void ModifyTooltips(List<TooltipLine> list)
{
if (CalamityWorld.death)
{
foreach (TooltipLine line2 in list)
{
if (line2.mod == "Terraria" && line2.Name == "Tooltip7")
{
line2.text = "Provides heat and cold protection in Death Mode when in use\n" +
"Revengeance Drop";
}
}
}
if (CalamityWorld.death)
{
foreach (TooltipLine line2 in list)
{
if (line2.mod == "Terraria" && line2.Name == "Tooltip7")
{
line2.text = "Provides heat and cold protection in Death Mode when in use\n" +
"Revengeance Drop";
}
}
}
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
+3 -3
View File
@@ -27,14 +27,14 @@ namespace CalamityMod.Items.Weapons.Summon
item.useStyle = ItemUseStyleID.HoldingUp;
item.noMelee = true;
item.knockBack = 6f;
item.value = Item.buyPrice(2, 50, 0, 0);
item.UseSound = SoundID.Item15; //phaseblade sound effect
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<CosmicViperSummon>();
item.shootSpeed = 10f;
item.summon = true;
item.rare = 10;
item.Calamity().postMoonLordRarity = 14;
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
+1 -1
View File
@@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Summon
item.shootSpeed = 10f;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
@@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Summon
item.knockBack = 1f;
item.value = CalamityGlobalItem.RarityHotPinkBuyPrice;
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
item.UseSound = SoundID.Item117;
-1
View File
@@ -10,7 +10,6 @@ namespace CalamityMod
public enum CalamityRarity
{
ItemSpecific = -1,
NoEffect = 0,
Turquoise = 12,
PureGreen = 13,