Merge branch 'master' of https://github.com/CalamityTeam/CalamityMod
No files matched your search
@@ -0,0 +1,24 @@
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class AshenHorns : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults() => DisplayName.SetDefault("Ashen Horns");
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.rare = ItemRarityID.Blue;
|
||||
item.vanity = true;
|
||||
}
|
||||
|
||||
public override void DrawHair(ref bool drawHair, ref bool drawAltHair)
|
||||
{
|
||||
drawHair = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 323 B |
|
After Width: | Height: | Size: 726 B |
@@ -0,0 +1,19 @@
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
[AutoloadEquip(EquipType.Legs)]
|
||||
public class SCalBoots : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults() => DisplayName.SetDefault("Calamitous Boots");
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.rare = ItemRarityID.Blue;
|
||||
item.vanity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 438 B |
|
After Width: | Height: | Size: 3.5 KiB |
@@ -0,0 +1,21 @@
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class SCalMask : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults() => DisplayName.SetDefault("Calamitous Hood");
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.rare = ItemRarityID.Blue;
|
||||
item.vanity = true;
|
||||
}
|
||||
|
||||
public override bool DrawHead() => false;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 281 B |
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,19 @@
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
[AutoloadEquip(EquipType.Body)]
|
||||
public class SCalRobes : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults() => DisplayName.SetDefault("Calamitous Robes");
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.rare = ItemRarityID.Blue;
|
||||
item.vanity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 710 B |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
@@ -0,0 +1,66 @@
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.Pets;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
using SCalBoss = CalamityMod.NPCs.SupremeCalamitas.SupremeCalamitas;
|
||||
|
||||
namespace CalamityMod.Items.TreasureBags
|
||||
{
|
||||
public class SCalBag : ModItem
|
||||
{
|
||||
public override int BossBagNPC => ModContent.NPCType<SCalBoss>();
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Treasure Coffer");
|
||||
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.maxStack = 999;
|
||||
item.consumable = true;
|
||||
item.width = 24;
|
||||
item.height = 24;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.expert = true;
|
||||
}
|
||||
|
||||
public override bool CanRightClick() => true;
|
||||
|
||||
public override void OpenBossBag(Player player)
|
||||
{
|
||||
player.TryGettingDevArmor();
|
||||
|
||||
// Weapons
|
||||
float w = DropHelper.BagWeaponDropRateFloat;
|
||||
DropHelper.DropEntireWeightedSet(player,
|
||||
DropHelper.WeightStack<Vehemenc>(w),
|
||||
DropHelper.WeightStack<Heresy>(w),
|
||||
DropHelper.WeightStack<Perdition>(w),
|
||||
DropHelper.WeightStack<Vigilance>(w),
|
||||
DropHelper.WeightStack<Sacrifice>(w),
|
||||
DropHelper.WeightStack<Violence>(w)
|
||||
);
|
||||
|
||||
// Equipment
|
||||
DropHelper.DropItem(player, ModContent.ItemType<Calamity>());
|
||||
|
||||
// Vanity
|
||||
if (Main.rand.NextBool(7))
|
||||
{
|
||||
DropHelper.DropItem(player, ModContent.ItemType<AshenHorns>());
|
||||
DropHelper.DropItem(player, ModContent.ItemType<SCalMask>());
|
||||
DropHelper.DropItem(player, ModContent.ItemType<SCalRobes>());
|
||||
DropHelper.DropItem(player, ModContent.ItemType<SCalBoots>());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 605 B |
@@ -12,8 +12,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
{
|
||||
DisplayName.SetDefault("Perdition");
|
||||
Tooltip.SetDefault("Summons a beacon at the position of the mouse\n" +
|
||||
"When a target is manually selected via right click it releases torrents of souls from below onto the target\n" +
|
||||
"The beacon does not move");
|
||||
"When a target is manually selected via right click it releases torrents of souls from below onto the target");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -577,7 +577,7 @@ namespace CalamityMod
|
||||
BossDifficulty.TryGetValue("SupremeCalamitas", out float order);
|
||||
int type = NPCType<SupremeCalamitas>();
|
||||
int summon = ItemType<EyeofExtinction>();
|
||||
List<int> loot = new List<int>() { ItemType<CalamitousEssence>(), ItemType<Animus>(), ItemType<Azathoth>(), ItemType<Contagion>(), ItemType<CrystylCrusher>(), ItemType<Judgement>(), ItemType<DraconicDestruction>(), ItemType<Earth>(), ItemType<Endogenesis>(), ItemType<Fabstaff>(), ItemType<RoyalKnivesMelee>(), ItemType<NanoblackReaperRogue>(), ItemType<RedSun>(), ItemType<ScarletDevil>(), ItemType<SomaPrime>(), ItemType<BlushieStaff>(), ItemType<Svantechnical>(), ItemType<BensUmbrella>(), ItemType<TriactisTruePaladinianMageHammerofMightMelee>(), ItemType<Megafleet>(), ItemType<PrototypeAndromechaRing>(), ItemType<Vehemenc>(), ItemType<AngelicAlliance>(), ItemType<OmegaHealingPotion>() };
|
||||
List<int> loot = new List<int>() { ItemType<CalamitousEssence>(), ItemType<Vehemenc>(), ItemType<Heresy>(), ItemType<Perdition>(), ItemType<Vigilance>(), ItemType<Sacrifice>(), ItemType<Violence>(), ItemType<OmegaHealingPotion>() };
|
||||
List<int> collection = new List<int>() { ItemType<SupremeCalamitasTrophy>(), ItemType<KnowledgeCalamitas>(), ItemType<BrimstoneJewel>(), ItemType<Levi>() };
|
||||
string instructions = $"Use an [i:{summon}]";
|
||||
string despawn = CalamityUtils.ColorMessage("Please don't waste my time.", new Color(0xFF, 0xA5, 0x00));
|
||||
|
||||
@@ -2,12 +2,14 @@ using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Pets;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.Tools;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
@@ -200,6 +202,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
npc.noTileCollide = true;
|
||||
npc.HitSound = SoundID.NPCHit1;
|
||||
music = CalamityMod.Instance.GetMusicFromMusicMod("SCG") ?? MusicID.Boss2;
|
||||
bossBag = ModContent.ItemType<SCalBag>();
|
||||
}
|
||||
|
||||
public override void BossHeadSlot(ref int index)
|
||||
@@ -2736,6 +2739,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
// Make the town NPC spawn.
|
||||
NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y + 12, ModContent.NPCType<WITCH>());
|
||||
|
||||
DropHelper.DropBags(npc);
|
||||
|
||||
// Increase the player's SCal kill count
|
||||
if (Main.player[npc.target].Calamity().sCalKillCount < 5)
|
||||
Main.player[npc.target].Calamity().sCalKillCount++;
|
||||
@@ -2748,32 +2753,28 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
int essenceMax = Main.expertMode ? 40 : 30;
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<CalamitousEssence>(), true, essenceMin, essenceMax);
|
||||
|
||||
// Weapons
|
||||
// Rejoice! Hybrid weapons are no more, so this list is no longer cluttered.
|
||||
DropHelper.DropItemFromSetCondition(npc, true, Main.expertMode,
|
||||
ModContent.ItemType<Animus>(),
|
||||
ModContent.ItemType<AngelicAlliance>(),
|
||||
ModContent.ItemType<Azathoth>(),
|
||||
ModContent.ItemType<Contagion>(),
|
||||
ModContent.ItemType<CrystylCrusher>(),
|
||||
ModContent.ItemType<DraconicDestruction>(),
|
||||
ModContent.ItemType<Earth>(),
|
||||
ModContent.ItemType<Endogenesis>(),
|
||||
ModContent.ItemType<Fabstaff>(),
|
||||
ModContent.ItemType<PrototypeAndromechaRing>(), // Flamsteed Ring
|
||||
ModContent.ItemType<RoyalKnivesMelee>(), // Illustrious Knives
|
||||
ModContent.ItemType<NanoblackReaperRogue>(),
|
||||
ModContent.ItemType<RedSun>(),
|
||||
ModContent.ItemType<ScarletDevil>(),
|
||||
ModContent.ItemType<SomaPrime>(),
|
||||
ModContent.ItemType<BlushieStaff>(), // Staff of Blushie
|
||||
ModContent.ItemType<Svantechnical>(),
|
||||
ModContent.ItemType<BensUmbrella>(), // Temporal Umbrella
|
||||
ModContent.ItemType<Judgement>(), // The Dance of Light
|
||||
ModContent.ItemType<TriactisTruePaladinianMageHammerofMightMelee>(),
|
||||
ModContent.ItemType<Megafleet>() // Voidragon
|
||||
);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Vehemenc>(), Main.expertMode, CalamityWorld.revenge);
|
||||
if (!Main.expertMode)
|
||||
{
|
||||
// Weapons.
|
||||
float w = DropHelper.NormalWeaponDropRateFloat;
|
||||
DropHelper.DropEntireWeightedSet(npc,
|
||||
DropHelper.WeightStack<Vehemenc>(w),
|
||||
DropHelper.WeightStack<Heresy>(w),
|
||||
DropHelper.WeightStack<Perdition>(w),
|
||||
DropHelper.WeightStack<Vigilance>(w),
|
||||
DropHelper.WeightStack<Sacrifice>(w),
|
||||
DropHelper.WeightStack<Violence>(w)
|
||||
);
|
||||
|
||||
// Vanity.
|
||||
if (Main.rand.NextBool(7))
|
||||
{
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<AshenHorns>());
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<SCalMask>());
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<SCalRobes>());
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<SCalBoots>());
|
||||
}
|
||||
}
|
||||
|
||||
// Vanity
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<BrimstoneJewel>(), Main.expertMode);
|
||||
|
||||