Add sprites & names to Lyyka, Niko and Lexy summons.
|
After Width: | Height: | Size: 467 B |
|
After Width: | Height: | Size: 880 B |
@@ -7,6 +7,7 @@ using Terraria.ModLoader;
|
|||||||
using Terraria.Chat;
|
using Terraria.Chat;
|
||||||
using Terraria.Localization;
|
using Terraria.Localization;
|
||||||
using ForgottenWawiTech.Content.NPCs.OriginalLexy;
|
using ForgottenWawiTech.Content.NPCs.OriginalLexy;
|
||||||
|
using ForgottenWawiTech.Content.Rarities;
|
||||||
|
|
||||||
namespace ForgottenWawiTech.Content.Items.SummonItems
|
namespace ForgottenWawiTech.Content.Items.SummonItems
|
||||||
{
|
{
|
||||||
@@ -20,7 +21,7 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
|
|||||||
Item.useAnimation = 10;
|
Item.useAnimation = 10;
|
||||||
Item.useStyle = ItemUseStyleID.HoldUp;
|
Item.useStyle = ItemUseStyleID.HoldUp;
|
||||||
Item.consumable = false;
|
Item.consumable = false;
|
||||||
Item.rare = ItemRarityID.Red;
|
Item.rare = ModContent.RarityType<FWTDeveloperItem>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool CanUseItem(Player player)
|
public override bool CanUseItem(Player player)
|
||||||
@@ -39,5 +40,20 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void AddRecipes()
|
||||||
|
{
|
||||||
|
// Only add the recipe if Calamity Mod is loaded
|
||||||
|
if (ModLoader.TryGetMod("CalamityMod", out Mod calamityMod))
|
||||||
|
{
|
||||||
|
Recipe recipe = CreateRecipe();
|
||||||
|
recipe.AddIngredient(ItemID.RainbowBrick, 100);
|
||||||
|
// Exo Prism
|
||||||
|
recipe.AddIngredient(calamityMod.Find<ModItem>("ExoPrism").Type, 5);
|
||||||
|
recipe.AddIngredient(calamityMod.Find<ModItem>("MysteriousCircuitry").Type, 10);
|
||||||
|
recipe.AddTile(TileID.LunarCraftingStation);
|
||||||
|
recipe.Register();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 504 B After Width: | Height: | Size: 8.7 KiB |
@@ -7,6 +7,7 @@ using Terraria.ModLoader;
|
|||||||
using Terraria.Chat;
|
using Terraria.Chat;
|
||||||
using Terraria.Localization;
|
using Terraria.Localization;
|
||||||
using ForgottenWawiTech.Content.NPCs.OriginalLyyka;
|
using ForgottenWawiTech.Content.NPCs.OriginalLyyka;
|
||||||
|
using ForgottenWawiTech.Content.Rarities;
|
||||||
|
|
||||||
namespace ForgottenWawiTech.Content.Items.SummonItems
|
namespace ForgottenWawiTech.Content.Items.SummonItems
|
||||||
{
|
{
|
||||||
@@ -20,7 +21,7 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
|
|||||||
Item.useAnimation = 10;
|
Item.useAnimation = 10;
|
||||||
Item.useStyle = ItemUseStyleID.HoldUp;
|
Item.useStyle = ItemUseStyleID.HoldUp;
|
||||||
Item.consumable = false;
|
Item.consumable = false;
|
||||||
Item.rare = ItemRarityID.Red;
|
Item.rare = ModContent.RarityType<FWTDeveloperItem>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool CanUseItem(Player player)
|
public override bool CanUseItem(Player player)
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 504 B After Width: | Height: | Size: 12 KiB |
@@ -7,6 +7,7 @@ using Terraria.ModLoader;
|
|||||||
using Terraria.Chat;
|
using Terraria.Chat;
|
||||||
using Terraria.Localization;
|
using Terraria.Localization;
|
||||||
using ForgottenWawiTech.Content.NPCs.OriginalNeptune;
|
using ForgottenWawiTech.Content.NPCs.OriginalNeptune;
|
||||||
|
using ForgottenWawiTech.Content.Rarities;
|
||||||
|
|
||||||
namespace ForgottenWawiTech.Content.Items.SummonItems
|
namespace ForgottenWawiTech.Content.Items.SummonItems
|
||||||
{
|
{
|
||||||
@@ -20,7 +21,7 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
|
|||||||
Item.useAnimation = 10;
|
Item.useAnimation = 10;
|
||||||
Item.useStyle = ItemUseStyleID.HoldUp;
|
Item.useStyle = ItemUseStyleID.HoldUp;
|
||||||
Item.consumable = false;
|
Item.consumable = false;
|
||||||
Item.rare = ItemRarityID.Red;
|
Item.rare = ModContent.RarityType<FWTDeveloperItem>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool CanUseItem(Player player)
|
public override bool CanUseItem(Player player)
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ using Terraria.ModLoader;
|
|||||||
using Terraria.Chat;
|
using Terraria.Chat;
|
||||||
using Terraria.Localization;
|
using Terraria.Localization;
|
||||||
using ForgottenWawiTech.Content.NPCs.OriginalNiko;
|
using ForgottenWawiTech.Content.NPCs.OriginalNiko;
|
||||||
|
using ForgottenWawiTech.Content.Rarities;
|
||||||
|
|
||||||
namespace ForgottenWawiTech.Content.Items.SummonItems
|
namespace ForgottenWawiTech.Content.Items.SummonItems
|
||||||
{
|
{
|
||||||
@@ -20,7 +21,7 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
|
|||||||
Item.useAnimation = 10;
|
Item.useAnimation = 10;
|
||||||
Item.useStyle = ItemUseStyleID.HoldUp;
|
Item.useStyle = ItemUseStyleID.HoldUp;
|
||||||
Item.consumable = false;
|
Item.consumable = false;
|
||||||
Item.rare = ItemRarityID.Red;
|
Item.rare = ModContent.RarityType<FWTDeveloperItem>();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only allow the boss to be summoned if the Wall of Flesh is defeated (hardmode)
|
// Only allow the boss to be summoned if the Wall of Flesh is defeated (hardmode)
|
||||||
@@ -32,7 +33,6 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
|
|||||||
|
|
||||||
public override bool? UseItem(Player player)
|
public override bool? UseItem(Player player)
|
||||||
{
|
{
|
||||||
string summonText = "A familiar presence fills the air...";
|
|
||||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||||
{
|
{
|
||||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<Niko>());
|
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<Niko>());
|
||||||
@@ -41,14 +41,14 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
/* public override void AddRecipes()
|
public override void AddRecipes()
|
||||||
{
|
{
|
||||||
Recipe recipe = CreateRecipe();
|
Recipe recipe = CreateRecipe();
|
||||||
recipe.AddIngredient<Nyanageddon>(1);
|
recipe.AddIngredient(ItemID.RatCage, 1);
|
||||||
recipe.AddIngredient(ItemID.LunarBar, 20);
|
recipe.AddIngredient(ItemID.Feather, 100);
|
||||||
recipe.AddIngredient(ItemID.Meowmere, 5);
|
recipe.AddIngredient(ItemID.HoneyBucket, 1);
|
||||||
recipe.AddTile(TileID.LunarCraftingStation);
|
recipe.AddTile(TileID.LunarCraftingStation);
|
||||||
recipe.Register();
|
recipe.Register();
|
||||||
} */
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 504 B After Width: | Height: | Size: 15 KiB |
@@ -16,36 +16,37 @@ namespace ForgottenWawiTech.Content.Items
|
|||||||
Item.DamageType = DamageClass.Ranged;
|
Item.DamageType = DamageClass.Ranged;
|
||||||
Item.width = 40;
|
Item.width = 40;
|
||||||
Item.height = 40;
|
Item.height = 40;
|
||||||
Item.useTime = 7;
|
Item.useTime = 17;
|
||||||
Item.useAnimation = 7;
|
Item.useAnimation = 17;
|
||||||
Item.useStyle = ItemUseStyleID.Shoot;
|
Item.useStyle = ItemUseStyleID.Shoot;
|
||||||
Item.knockBack = 20;
|
Item.knockBack = 20;
|
||||||
Item.value = Item.buyPrice(gold: 60);
|
Item.value = Item.buyPrice(gold: 60);
|
||||||
Item.rare = ItemRarityID.Red;
|
Item.rare = ItemRarityID.Expert;
|
||||||
Item.UseSound = SoundID.Meowmere;
|
Item.UseSound = SoundID.Meowmere;
|
||||||
Item.autoReuse = true;
|
Item.autoReuse = true;
|
||||||
Item.noMelee = true;
|
Item.noMelee = true;
|
||||||
Item.shoot = ProjectileID.PurificationPowder;
|
Item.shoot = ProjectileID.PurificationPowder;
|
||||||
Item.shootSpeed = 30f;
|
Item.shootSpeed = 30f;
|
||||||
Item.useAmmo = AmmoID.None;
|
Item.useAmmo = AmmoID.None;
|
||||||
|
Item.crit = 60;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool Shoot(Player player, Terraria.DataStructures.EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockBack)
|
public override bool Shoot(Player player, Terraria.DataStructures.EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockBack)
|
||||||
{
|
{
|
||||||
for (int i = 0; i <= 2; i++) // hey c# what the fuck. anyway, shoot 3 proj.
|
for (int i = 0; i <= 2; i++) // hey c# what the fuck. anyway, shoot 3 proj.
|
||||||
{
|
{
|
||||||
Vector2 newVelocity = velocity.RotatedBy(MathHelper.ToRadians(3 * i));
|
Vector2 newVelocity = velocity.RotatedBy(MathHelper.ToRadians(3 * i));
|
||||||
Terraria.Projectile.NewProjectile(source, position, newVelocity, 502, damage, knockBack, player.whoAmI);
|
Terraria.Projectile.NewProjectile(source, position, newVelocity, 502, damage, knockBack, player.whoAmI);
|
||||||
}
|
}
|
||||||
return false; // return false to prevent tModLoader from shooting the default projectile
|
return false; // return false to prevent tModLoader from shooting the default projectile */
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Vector2? HoldoutOffset() {
|
public override Vector2? HoldoutOffset() {
|
||||||
return new Vector2(2f, -2f);
|
return new Vector2(-5f, -2f);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback) {
|
public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback) {
|
||||||
Vector2 muzzleOffset = Vector2.Normalize(velocity) * 25f;
|
Vector2 muzzleOffset = Vector2.Normalize(velocity) * 58f;
|
||||||
|
|
||||||
if (Collision.CanHit(position, 0, 0, position + muzzleOffset, 0, 0)) {
|
if (Collision.CanHit(position, 0, 0, position + muzzleOffset, 0, 0)) {
|
||||||
position += muzzleOffset;
|
position += muzzleOffset;
|
||||||
@@ -54,15 +55,14 @@ namespace ForgottenWawiTech.Content.Items
|
|||||||
|
|
||||||
public override void AddRecipes()
|
public override void AddRecipes()
|
||||||
{
|
{
|
||||||
|
Recipe recipe = CreateRecipe();
|
||||||
if (ModLoader.TryGetMod("CalamityMod", out Mod calamityMod) && calamityMod.TryFind<ModItem>("AuricBar", out ModItem auricBar))
|
if (ModLoader.TryGetMod("CalamityMod", out Mod calamityMod) && calamityMod.TryFind<ModItem>("AuricBar", out ModItem auricBar))
|
||||||
{
|
{
|
||||||
Recipe recipe = CreateRecipe();
|
|
||||||
recipe.AddIngredient(auricBar.Type, 20);
|
recipe.AddIngredient(auricBar.Type, 20);
|
||||||
}
|
}
|
||||||
Recipe recipe = CreateRecipe();
|
|
||||||
recipe.AddIngredient<Nyanageddon>(1);
|
recipe.AddIngredient<Nyanageddon>(1);
|
||||||
recipe.AddIngredient(ItemID.LunarBar, 20);
|
recipe.AddIngredient(ItemID.LunarBar, 20);
|
||||||
recipe.AddIngredient(ItemID.Meowmere, 5);
|
recipe.AddIngredient(ItemID.Meowmere, 3);
|
||||||
recipe.AddTile(TileID.LunarCraftingStation);
|
recipe.AddTile(TileID.LunarCraftingStation);
|
||||||
recipe.Register();
|
recipe.Register();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
using Terraria.ModLoader;
|
||||||
|
using Terraria;
|
||||||
|
using Microsoft.Xna.Framework;
|
||||||
|
|
||||||
|
namespace ForgottenWawiTech.Content.Rarities
|
||||||
|
{
|
||||||
|
public class FWTDeveloperItem : ModRarity
|
||||||
|
{
|
||||||
|
public override Color RarityColor => new Color(255, 0, 255); // Bright magenta color
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -21,7 +21,12 @@ Items: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TrueNyanageddon: {
|
TrueNyanageddon: {
|
||||||
Tooltip: Why are you like this?
|
Tooltip:
|
||||||
|
'''
|
||||||
|
The ultimate evolution of the Meowmere.
|
||||||
|
Mob the rainbow, taste the rainbow, transcend the rainbow.
|
||||||
|
Ethically questionable.
|
||||||
|
'''
|
||||||
DisplayName: True Nyanageddon
|
DisplayName: True Nyanageddon
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -29,10 +34,10 @@ Items: {
|
|||||||
Tooltip:
|
Tooltip:
|
||||||
'''
|
'''
|
||||||
Summons Niko.
|
Summons Niko.
|
||||||
Not consumable
|
Not consumable.
|
||||||
'You are about to have a bad time.'
|
'Until my final breath I will grind you to dust until your dust begs for death, you meainingless FUCK!'
|
||||||
'''
|
'''
|
||||||
DisplayName: Niko Summon
|
DisplayName: Bird Thing
|
||||||
}
|
}
|
||||||
|
|
||||||
NeptuneSummon: {
|
NeptuneSummon: {
|
||||||
@@ -50,18 +55,18 @@ Items: {
|
|||||||
'''
|
'''
|
||||||
Summons Lyyka.
|
Summons Lyyka.
|
||||||
Not consumable
|
Not consumable
|
||||||
'You hear several voices calling out...'
|
'A strum, of a ranger.'
|
||||||
'''
|
'''
|
||||||
DisplayName: Lyyka Summon
|
DisplayName: SLW STRIX
|
||||||
}
|
}
|
||||||
|
|
||||||
LexySummon: {
|
LexySummon: {
|
||||||
DisplayName: Lexy Summon
|
DisplayName: Expensive-looking RAM Stick
|
||||||
Tooltip:
|
Tooltip:
|
||||||
'''
|
'''
|
||||||
Summons Lexy.
|
Summons Lexy.
|
||||||
Not consumable
|
Not consumable
|
||||||
'Twist their minds.'
|
Not edible.... I think.
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||