Got ores to spawn rock debris when broken.

This commit is contained in:
JoshuaNavarro 2019-08-16 12:47:27 -07:00
parent eb5231e81a
commit c51ffa84b6
1 changed files with 1 additions and 0 deletions

View File

@ -196,6 +196,7 @@ namespace Revitalize.Framework.Objects.Resources.OreVeins
if (this.location != null) if (this.location != null)
{ {
this.location.playSound("stoneCrack"); this.location.playSound("stoneCrack");
Game1.createRadialDebris(this.location, 14, (int)this.TileLocation.X, (int)this.TileLocation.Y, Game1.random.Next(4, 10), false, -1, false, -1);
this.location.removeObject(this.TileLocation, false); this.location.removeObject(this.TileLocation, false);
this.containerObject.removeComponent(this.offsetKey); this.containerObject.removeComponent(this.offsetKey);
} }