Added crown equip sprites
This commit is contained in:
1 parent
cfa22b0e1a
commit
e40cb7cc2d
6 files changed
+56
No files matched your search
@@ -616,7 +616,9 @@ namespace CalamityMod.CalPlayer
|
||||
public bool eclipseMirror = false;
|
||||
public bool eclipseMirrorCooldown = false;
|
||||
public bool featherCrown = false;
|
||||
public bool featherCrownDraw = false;
|
||||
public bool moonCrown = false;
|
||||
public bool moonCrownDraw = false;
|
||||
public int featherCrownCooldown = 0;
|
||||
public int moonCrownCooldown = 0;
|
||||
public int nanoFlareCooldown = 0;
|
||||
@@ -1822,7 +1824,9 @@ namespace CalamityMod.CalPlayer
|
||||
eclipseMirror = false;
|
||||
eclipseMirrorCooldown = false;
|
||||
featherCrown = false;
|
||||
featherCrownDraw = false;
|
||||
moonCrown = false;
|
||||
moonCrownDraw = false;
|
||||
dragonScales = false;
|
||||
gloveOfPrecision = false;
|
||||
gloveOfRecklessness = false;
|
||||
@@ -3652,6 +3656,14 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
abyssDivingGear = true;
|
||||
}
|
||||
else if (item.type == ModContent.ItemType<FeatherCrown>())
|
||||
{
|
||||
featherCrownDraw = true;
|
||||
}
|
||||
else if (item.type == ModContent.ItemType<MoonstoneCrown>())
|
||||
{
|
||||
moonCrownDraw = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7180,6 +7192,16 @@ namespace CalamityMod.CalPlayer
|
||||
player.head = mod.GetEquipSlot("AbyssDivingGearHead", EquipType.Head);
|
||||
player.face = -1;
|
||||
}
|
||||
if (featherCrownDraw && (player.head == -1 || player.head == ArmorIDs.Head.FamiliarWig))
|
||||
{
|
||||
player.head = mod.GetEquipSlot("FeatherCrownHead", EquipType.Head);
|
||||
player.face = -1;
|
||||
}
|
||||
if (moonCrownDraw && (player.head == -1 || player.head == ArmorIDs.Head.FamiliarWig))
|
||||
{
|
||||
player.head = mod.GetEquipSlot("MoonstoneCrownHead", EquipType.Head);
|
||||
player.face = -1;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -253,6 +253,8 @@ namespace CalamityMod
|
||||
AddEquipTexture(new OmegaBlueTransformationHead(), null, EquipType.Head, "OmegaBlueTransformationHead", "CalamityMod/Items/Armor/OmegaBlueHelmet_HeadMadness");
|
||||
|
||||
AddEquipTexture(new AbyssDivingGearHair(), null, EquipType.Head, "AbyssDivingGearHead", "CalamityMod/Items/Accessories/AbyssalDivingGear_Face");
|
||||
AddEquipTexture(new FeatherCrownHair(), null, EquipType.Head, "FeatherCrownHead", "CalamityMod/Items/Accessories/FeatherCrown_Face");
|
||||
AddEquipTexture(new MoonstoneCrownHair(), null, EquipType.Head, "MoonstoneCrownHead", "CalamityMod/Items/Accessories/MoonstoneCrown_Face");
|
||||
|
||||
AstralCactusTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/Tiles/AstralCactus");
|
||||
AstralCactusGlowTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/Tiles/AstralCactusGlow");
|
||||
|
||||
@@ -29,8 +29,15 @@ namespace CalamityMod.Items.Accessories
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.throwingVelocity += 0.15f;
|
||||
modPlayer.featherCrown = true;
|
||||
if (!hideVisual)
|
||||
modPlayer.featherCrownDraw = true; //this bool is just used for drawing
|
||||
}
|
||||
|
||||
public override void UpdateVanity(Player player, EquipType type)
|
||||
{
|
||||
player.Calamity().featherCrownDraw = true; //this bool is just used for drawing
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
@@ -49,4 +56,13 @@ namespace CalamityMod.Items.Accessories
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
|
||||
public class FeatherCrownHair : EquipTexture
|
||||
{
|
||||
public override void DrawHair(ref bool drawHair, ref bool drawAltHair)
|
||||
{
|
||||
drawHair = false;
|
||||
drawAltHair = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
@@ -33,8 +33,15 @@ namespace CalamityMod.Items.Accessories
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.throwingVelocity += 0.15f;
|
||||
modPlayer.moonCrown = true;
|
||||
if (!hideVisual)
|
||||
modPlayer.moonCrownDraw = true; //this bool is just used for drawing
|
||||
}
|
||||
|
||||
public override void UpdateVanity(Player player, EquipType type)
|
||||
{
|
||||
player.Calamity().moonCrownDraw = true; //this bool is just used for drawing
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
@@ -46,4 +53,13 @@ namespace CalamityMod.Items.Accessories
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
|
||||
public class MoonstoneCrownHair : EquipTexture
|
||||
{
|
||||
public override void DrawHair(ref bool drawHair, ref bool drawAltHair)
|
||||
{
|
||||
drawHair = false;
|
||||
drawAltHair = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.9 KiB |
Reference in new issue
Block a user