reverted astral ore being minable pre-deus
This commit is contained in:
1 parent
77b155099f
commit
af38f1f099
1 file changed
+6
-12
+6
-12
@@ -1,7 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.Astral;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -72,19 +70,15 @@ namespace CalamityMod.Tiles.Ores
|
||||
}
|
||||
}
|
||||
|
||||
public override IEnumerable<Item> GetItemDrops(int i, int j)
|
||||
public override bool CanKillTile(int i, int j, ref bool blockDamaged)
|
||||
{
|
||||
if (!DownedBossSystem.downedAstrumDeus)
|
||||
{
|
||||
if (Main.rand.NextBool())
|
||||
yield return new Item(ModContent.ItemType<StarblightSoot>());
|
||||
else
|
||||
yield return new Item(0);
|
||||
}
|
||||
else
|
||||
yield return new Item(ModContent.ItemType<Items.Placeables.Ores.AstralOre>());
|
||||
return DownedBossSystem.downedAstrumDeus;
|
||||
}
|
||||
|
||||
public override bool CanExplode(int i, int j)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
|
||||
Reference in new issue
Block a user