-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ported & updated Tantamount's patron set.
- Loading branch information
Showing
10 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
patches/tModLoader/Terraria/ModLoader/Default/Patreon/Tantamount.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Binary file added
BIN
+2.53 KB
patches/tModLoader/Terraria/ModLoader/Default/Patreon/Tantamount_Body.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.97 KB
patches/tModLoader/Terraria/ModLoader/Default/Patreon/Tantamount_Body_Body.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.31 KB
patches/tModLoader/Terraria/ModLoader/Default/Patreon/Tantamount_Head.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+911 Bytes
patches/tModLoader/Terraria/ModLoader/Default/Patreon/Tantamount_Head_Head.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.63 KB
patches/tModLoader/Terraria/ModLoader/Default/Patreon/Tantamount_Legs.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.11 KB
patches/tModLoader/Terraria/ModLoader/Default/Patreon/Tantamount_Legs_Legs.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.16 KB
patches/tModLoader/Terraria/ModLoader/Default/Patreon/Tantamount_Wings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.07 KB
patches/tModLoader/Terraria/ModLoader/Default/Patreon/Tantamount_Wings_Wings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.