Cirrus Couch
This commit is contained in:
1 parent
a859deee85
commit
3955299e29
7 files changed
+68
No files matched your search
@@ -0,0 +1,25 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Furniture
|
||||
{
|
||||
public class CirrusCouch : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 20;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.value = 0;
|
||||
Item.createTile = ModContent.TileType<Tiles.Furniture.CirrusCouch>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 738 B |
@@ -343,6 +343,11 @@ BabyGhostBellJar: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
CirrusCouch: {
|
||||
DisplayName: Cirrus Courch
|
||||
Tooltip: This shouldn't exist...
|
||||
}
|
||||
|
||||
AquaticScourgeRelic: {
|
||||
DisplayName: Aquatic Scourge Relic
|
||||
Tooltip: A glimpse into what could have been...
|
||||
|
||||
@@ -914,6 +914,7 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
.AddWithCustomValue(ModContent.ItemType<OddMushroom>(), Item.buyPrice(1))
|
||||
.AddWithCustomValue(ItemID.UnicornHorn, Item.buyPrice(0, 2, 50), Condition.HappyEnough, Condition.InHallow)
|
||||
.AddWithCustomValue(ItemID.Milkshake, Item.buyPrice(gold: 5), Condition.HappyEnough, Condition.InHallow, Condition.NpcIsPresent(NPCID.Stylist))
|
||||
.AddWithCustomValue(ModContent.ItemType<CirrusCouch>(), Item.buyPrice(gold: 25), Condition.HappyEnough, Condition.NpcIsPresent(NPCID.Stylist), Condition.NpcIsPresent(NPCID.BestiaryGirl))
|
||||
.Register();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.GameContent.ObjectInteractions;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.Furniture
|
||||
{
|
||||
public class CirrusCouch : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults() => this.SetUpSofa(ModContent.ItemType<Items.Placeables.Furniture.CirrusCouch>(), true);
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.PinkFairy);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
|
||||
public override void ModifySittingTargetInfo(int i, int j, ref TileRestingInfo info) => CalamityUtils.BenchSitInfo(i, j, ref info);
|
||||
|
||||
public override bool RightClick(int i, int j) => CalamityUtils.ChairRightClick(i, j);
|
||||
|
||||
public override void MouseOver(int i, int j) => CalamityUtils.BenchMouseOver(i, j, ModContent.ItemType<Items.Placeables.Furniture.CirrusCouch>());
|
||||
|
||||
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings)
|
||||
{
|
||||
return settings.player.IsWithinSnappngRangeToTile(i, j, PlayerSittingHelper.ChairSittingMaxDistance);
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 476 B |
Reference in new issue
Block a user