Implement use of PlaceholderProj and PlaceholderTile
@@ -15,6 +15,8 @@ namespace ForgottenWawiTech.Content.Projectiles.Avali
|
||||
private const float TargetRange = 920f;
|
||||
private const float ShotSpeed = 19.5f;
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.MinionSacrificable[Type] = false;
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B |
@@ -6,8 +6,12 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Projectiles.Avali
|
||||
{
|
||||
|
||||
public class AvaliHuntingDroneShot : ModProjectile
|
||||
{
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.MinionShot[Type] = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B |
@@ -14,6 +14,8 @@ namespace ForgottenWawiTech.Content.Projectiles.Avali
|
||||
private const int MarkCooldown = 45;
|
||||
private const float MarkRange = 700f;
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.MinionSacrificable[Type] = false;
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B |
@@ -11,6 +11,8 @@ namespace ForgottenWawiTech.Content.Projectiles.Protogen
|
||||
private const float HomingStrength = 0.14f;
|
||||
private const float DesiredSpeed = 14f;
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.MinionShot[Type] = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B |
@@ -16,6 +16,8 @@ namespace ForgottenWawiTech.Content.Projectiles.Protogen
|
||||
private const float TargetRange = 950f;
|
||||
private const float BeamVelocity = 18f;
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.MinionSacrificable[Type] = false;
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B |
@@ -9,6 +9,8 @@ namespace ForgottenWawiTech.Content.Projectiles.Protogen
|
||||
{
|
||||
public class ProtogenSentinelCoreBeam : ModProjectile
|
||||
{
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.MinionShot[Type] = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B |
@@ -9,6 +9,8 @@ namespace ForgottenWawiTech.Content.Projectiles.Protogen
|
||||
{
|
||||
public class ProtogenSentinelFragment : ModProjectile
|
||||
{
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
private const float HomingRange = 560f;
|
||||
private const float HomingStrength = 0.18f;
|
||||
private const float DesiredSpeed = 15f;
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B |
@@ -15,6 +15,8 @@ namespace ForgottenWawiTech.Content.Projectiles.Singularity
|
||||
private const float TargetRange = 1000f;
|
||||
private const float BeamSpeed = 21f;
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.MinionSacrificable[Type] = false;
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B |
@@ -12,6 +12,8 @@ namespace ForgottenWawiTech.Content.Projectiles.Singularity
|
||||
ProjectileID.Sets.MinionShot[Type] = true;
|
||||
}
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 16;
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B |
@@ -11,10 +11,7 @@ namespace ForgottenWawiTech.Content.Projectiles.Transcendent
|
||||
private const float HomingStrength = 0.2f;
|
||||
private const float DesiredSpeed = 20f;
|
||||
|
||||
/* public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.MinionShot[Type] = true;
|
||||
} */
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B |
@@ -15,6 +15,8 @@ namespace ForgottenWawiTech.Content.Projectiles.Transcendent
|
||||
private const float TargetRange = 1100f;
|
||||
private const float BoltSpeed = 19f;
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.MinionSacrificable[Type] = false;
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B |
@@ -14,6 +14,8 @@ namespace ForgottenWawiTech.Content.Projectiles.Transcendent
|
||||
ProjectileID.Sets.TrailingMode[Type] = 2;
|
||||
}
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 18;
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B |
@@ -16,6 +16,8 @@ namespace ForgottenWawiTech.Content.Projectiles.Transcendent
|
||||
ProjectileID.Sets.MinionShot[Type] = true;
|
||||
}
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 14;
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B |
@@ -15,6 +15,8 @@ namespace ForgottenWawiTech.Content.Projectiles.Transcendent
|
||||
ProjectileID.Sets.TrailingMode[Type] = 2;
|
||||
}
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 28;
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B |
@@ -15,6 +15,8 @@ namespace ForgottenWawiTech.Content.Projectiles.Transcendent
|
||||
ProjectileID.Sets.TrailingMode[Type] = 3;
|
||||
}
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 14;
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B |
@@ -8,7 +8,7 @@ namespace ForgottenWawiTech.Content.Projectiles.TridentOfTheSunken
|
||||
{
|
||||
public class TridentOfTheSunkenBlast : ModProjectile
|
||||
{
|
||||
public override string Texture => "Terraria/Images/Projectile_647"; // Duke Fishron bubble burst as placeholder
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderProj";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
|
||||
@@ -4,15 +4,20 @@ using Terraria.ID;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria.Localization;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Tiles.CraftingStations
|
||||
{
|
||||
public class HighTechMarvel : ModTile
|
||||
{
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderTile";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = false;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
AdjTiles = new int[] {
|
||||
TileID.WorkBenches,
|
||||
TileID.Anvils,
|
||||
@@ -29,8 +34,11 @@ namespace ForgottenWawiTech.Content.Tiles.CraftingStations
|
||||
TileID.LunarCraftingStation
|
||||
|
||||
};
|
||||
AddMapEntry(new Color(150, 50, 250), Language.GetText("High Tech Marvel"));
|
||||
//TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
// Register the object data so TileObjectData lookups succeed.
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
AddMapEntry(new Color(120, 85, 60), Language.GetText("HighTechMarvel"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -4,15 +4,19 @@ using Terraria.ID;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria.Localization;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Tiles.CraftingStations
|
||||
{
|
||||
public class SingularitySealingUnit : ModTile
|
||||
{
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderTile"; // 2x2 placeholder tile
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = false;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
AdjTiles = new int[] {
|
||||
TileID.WorkBenches,
|
||||
TileID.Anvils,
|
||||
@@ -27,17 +31,11 @@ namespace ForgottenWawiTech.Content.Tiles.CraftingStations
|
||||
TileID.CrystalBall,
|
||||
TileID.TinkerersWorkbench
|
||||
};
|
||||
AddMapEntry(new Color(150, 50, 250), Language.GetText("SingularitySealingUnitItem"));
|
||||
//TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
|
||||
}
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
// Register the tile's placement data so the loader doesn't throw.
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
|
||||
/* public override void NearbyEffects(int i, int j, bool closer)
|
||||
{
|
||||
if (closer)
|
||||
{
|
||||
Main.LocalPlayer.AddBuff(BuffID.WellFed, 60);
|
||||
AddMapEntry(new Color(120, 85, 60), Language.GetText("SingularitySealingUnit"));
|
||||
}
|
||||
} */
|
||||
}
|
||||
}
|
||||