dread (hi fab)

This commit is contained in:
enamoured_ committed 2025-05-24 13:49:00 -04:00
1 parent 50b7518af4
commit 653c5ad8a3
5 files changed
+62

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables.Underworld
{
public class Dreadstone : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults() => Item.ResearchUnlockCount = 100;
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.Underworld.Dreadstone>());
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

@@ -4329,3 +4329,8 @@ EutrophicGlassWall: {
DisplayName: Eutrophic Glass Wall
Tooltip: ""
}
Dreadstone: {
DisplayName: Dreadstone
Tooltip: ""
}
+40
View File
@@ -0,0 +1,40 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CalamityMod.Sounds;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Tiles.Underworld
{
public class Dreadstone : ModTile
{
public override void SetStaticDefaults()
{
Main.tileSolid[Type] = true;
Main.tileBlockLight[Type] = true;
Main.tileBrick[Type] = true;
CalamityUtils.MergeWithGeneral(Type);
CalamityUtils.MergeWithHell(Type);
TileID.Sets.ChecksForMerge[Type] = true;
HitSound = SoundID.Tink;
MineResist = 2f;
MinPick = 65;
AddMapEntry(new Color(102, 65, 65));
this.RegisterUniversalMerge(TileID.Dirt, "CalamityMod/Tiles/Merges/AshMerge");
}
public override bool CreateDust(int i, int j, ref int type)
{
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, Main.rand.NextBool(4) ? DustID.Torch : DustID.RichMahogany, 0f, 0f, 1, default, 1f);
return false;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB