fixed leaves and droplets not being child friendly
This commit is contained in:
1 parent
e4206e067b
commit
641ce118cd
3 files changed
+24
-8
No files matched your search
@@ -6,11 +6,17 @@ using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent;
|
||||
|
||||
namespace CalamityMod.Gores
|
||||
{
|
||||
public class AstralWaterDroplet : ModGore
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ChildSafety.SafeGore[Type] = true;
|
||||
}
|
||||
|
||||
public override void OnSpawn(Gore gore, IEntitySource source)
|
||||
{
|
||||
gore.numFrames = 15;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.DataStructures;
|
||||
@@ -7,8 +7,13 @@ using Microsoft.Xna.Framework;
|
||||
namespace CalamityMod.Gores.Trees
|
||||
{
|
||||
public class AstralLeaf : ModGore
|
||||
{
|
||||
public override void OnSpawn(Gore gore, IEntitySource source)
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ChildSafety.SafeGore[Type] = true;
|
||||
}
|
||||
|
||||
public override void OnSpawn(Gore gore, IEntitySource source)
|
||||
{
|
||||
ChildSafety.SafeGore[gore.type] = true;
|
||||
gore.velocity = new Vector2(Main.rand.NextFloat() - 0.5f, Main.rand.NextFloat() * MathHelper.TwoPi);
|
||||
@@ -18,4 +23,4 @@ namespace CalamityMod.Gores.Trees
|
||||
UpdateType = 910;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.DataStructures;
|
||||
@@ -7,8 +7,13 @@ using Microsoft.Xna.Framework;
|
||||
namespace CalamityMod.Gores.Trees
|
||||
{
|
||||
public class SulphurLeaf : ModGore
|
||||
{
|
||||
public override void OnSpawn(Gore gore, IEntitySource source)
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ChildSafety.SafeGore[Type] = true;
|
||||
}
|
||||
|
||||
public override void OnSpawn(Gore gore, IEntitySource source)
|
||||
{
|
||||
ChildSafety.SafeGore[gore.type] = true;
|
||||
gore.velocity = new Vector2(Main.rand.NextFloat() - 0.5f, Main.rand.NextFloat() * MathHelper.TwoPi);
|
||||
@@ -18,4 +23,4 @@ namespace CalamityMod.Gores.Trees
|
||||
UpdateType = 910;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user