Skip to content

Commit

Permalink
Ported & updated Tantamount's patron set.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirsario committed Sep 5, 2023
1 parent 5c412cc commit 96e6919
Show file tree
Hide file tree
Showing 10 changed files with 89 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,10 @@
"ModLoader.Items.Squid_Body.DisplayName": "Squid's Body",
"ModLoader.Items.Squid_Head.DisplayName": "Squid's Head",
"ModLoader.Items.Squid_Legs.DisplayName": "Squid's Legs",
"ModLoader.Items.Tantamount_Body.DisplayName": "Tantamount's Body",
"ModLoader.Items.Tantamount_Head.DisplayName": "Tantamount's Head",
"ModLoader.Items.Tantamount_Legs.DisplayName": "Tantamount's Legs",
"ModLoader.Items.Tantamount_Wings.DisplayName": "Tantamount's Wings",
"ModLoader.Items.toplayz_Body.DisplayName": "toplayz's Body",
"ModLoader.Items.toplayz_Head.DisplayName": "toplayz's Head",
"ModLoader.Items.toplayz_Legs.DisplayName": "toplayz's Legs",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
using Microsoft.Xna.Framework;
using Terraria.DataStructures;
using Terraria.ID;

namespace Terraria.ModLoader.Default.Patreon;

[AutoloadEquip(EquipType.Head)]
internal class Tantamount_Head : PatreonItem
{
public override void OnCreated(ItemCreationContext context)
{
base.OnCreated(context);

if (context is InitializationItemCreationContext) {
// Use the _Head texture for the accessories' Face equip slot.
EquipLoader.AddEquipTexture(Mod, $"{Texture}_Head", EquipType.Face, item: this);
}
}

public override void SetStaticDefaults()
{
base.SetStaticDefaults();

ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
}

public override void SetDefaults()
{
base.SetDefaults();

Item.accessory = true;
Item.Size = new Vector2(26);
}
}

[AutoloadEquip(EquipType.Body)]
internal class Tantamount_Body : PatreonItem
{
public override void SetStaticDefaults()
{
base.SetStaticDefaults();

ArmorIDs.Body.Sets.HidesArms[Item.bodySlot] = true;
ArmorIDs.Body.Sets.HidesHands[Item.bodySlot] = false;
ArmorIDs.Body.Sets.HidesTopSkin[Item.bodySlot] = false;
ArmorIDs.Body.Sets.shouldersAreAlwaysInTheBack[Item.bodySlot] = true;
}

public override void SetDefaults()
{
base.SetDefaults();

Item.Size = new Vector2(26, 24);
}
}

[AutoloadEquip(EquipType.Legs)]
internal class Tantamount_Legs : PatreonItem
{
public override void SetDefaults()
{
base.SetDefaults();
Item.Size = new Vector2(22, 18);
}
}

[AutoloadEquip(EquipType.Wings)]
internal class Tantamount_Wings : PatreonItem
{
public override void SetStaticDefaults()
{
base.SetStaticDefaults();

ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(150, 7f);
}

public override void SetDefaults()
{
base.SetDefaults();

Item.vanity = false;
Item.Size = new Vector2(24, 26);
Item.accessory = true;
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 96e6919

Please sign in to comment.