Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
Fixed Nova placeables
Browse files Browse the repository at this point in the history
  • Loading branch information
Jofairden committed Jul 13, 2017
1 parent 934cc1a commit 918003f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 7 deletions.
4 changes: 2 additions & 2 deletions NovaPillar/Items/Placeable/NovaFragmentBlock.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Terraria.ID;
using Terraria.ModLoader;
using Tremor.NovaPillar.Tiles;

namespace Tremor.NovaPillar.Items.Placeable
{
Expand All @@ -18,13 +19,12 @@ public override void SetDefaults()
item.useStyle = 1;
item.rare = 0;
item.consumable = true;
item.createTile = mod.TileType("NovaBlock");
item.createTile = mod.TileType<NovaBlock>();
}

public override void SetStaticDefaults()
{
DisplayName.SetDefault("Nova Fragment Block");
Tooltip.SetDefault("");
}


Expand Down
3 changes: 2 additions & 1 deletion NovaPillar/Items/Placeable/NovaMonolith.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Terraria;
using Terraria.ModLoader;
using Tremor.NovaPillar.Tiles;

namespace Tremor.NovaPillar.Items.Placeable
{
Expand All @@ -18,7 +19,7 @@ public override void SetDefaults()
item.consumable = true;
item.rare = 10;
item.value = Item.buyPrice(0, 10, 0, 0);
item.createTile = mod.TileType("NovaMonolith_Tile");
item.createTile = mod.TileType<NovaMonolithTile>();
}

public override void SetStaticDefaults()
Expand Down
8 changes: 4 additions & 4 deletions Tremor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
<Compile Include="Buffs\ZephyrhornBuff.cs" />
<Compile Include="Buffs\ZombatBuff.cs" />
<Compile Include="Buffs\ZootalooBuff.cs" />
<Compile Include="CustomDrop.cs" />
<Compile Include="TremorGlobalTile.cs" />
<Compile Include="DungeonGenn\DungeonWorld.cs" />
<Compile Include="Dusts\Ball.cs" />
<Compile Include="Dusts\ClusterFlame.cs" />
Expand Down Expand Up @@ -236,7 +236,7 @@
<Compile Include="NovaPillar\Projectiles\NovaSkull.cs" />
<Compile Include="NovaPillar\Projectiles\NovaSkullburst.cs" />
<Compile Include="NovaPillar\Tiles\NovaBlock.cs" />
<Compile Include="NovaPillar\Tiles\NovaMonolith_Tile.cs" />
<Compile Include="NovaPillar\Tiles\NovaMonolithTile.cs" />
<Compile Include="RecipeWrapper.cs" />
<Compile Include="TremorGlobalItem.cs" />
<Compile Include="Gores\IceDroplet.cs" />
Expand Down Expand Up @@ -5869,8 +5869,8 @@
<Content Include="NovaPillar\Projectiles\NovaSkull.png" />
<Content Include="NovaPillar\Projectiles\NovaSkullburst.png" />
<Content Include="NovaPillar\Tiles\NovaBlock.png" />
<Content Include="NovaPillar\Tiles\NovaMonolith_Tile.png" />
<Content Include="NovaPillar\Tiles\NovaMonolith_TileGlow.png" />
<Content Include="NovaPillar\Tiles\NovaMonolithTile.png" />
<Content Include="NovaPillar\Tiles\NovaMonolithTile_Glowmask.png" />
<Content Include="NPCs\Abomination.png" />
<Content Include="NPCs\Agloomination.png" />
<Content Include="NPCs\Alchemaster.png" />
Expand Down
22 changes: 22 additions & 0 deletions TremorGlobalTile.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace Tremor
{
class TremorGlobalTile : GlobalTile
{
public override bool Drop(int i, int j, int type)
{
if (type == TileID.Emerald)
{
if (Main.rand.Next(20) == 1)
{
Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("EmeraldStone"));
return false;
}
}
return true;
}
}
}

0 comments on commit 918003f

Please sign in to comment.