Rebalance Avali feather, add Scout Pack
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
using Terraria;
|
using Terraria;
|
||||||
using Terraria.ModLoader;
|
using Terraria.ModLoader;
|
||||||
|
using Terraria.ID;
|
||||||
using ForgottenWawiTech.Content.Rarities;
|
using ForgottenWawiTech.Content.Rarities;
|
||||||
|
using ForgottenWawiTech.Content.Items.Materials;
|
||||||
|
|
||||||
namespace ForgottenWawiTech.Content.Items.Accessories
|
namespace ForgottenWawiTech.Content.Items.Accessories
|
||||||
{
|
{
|
||||||
@@ -21,5 +23,13 @@ namespace ForgottenWawiTech.Content.Items.Accessories
|
|||||||
player.GetDamage(DamageClass.Generic) -= 0.10f;
|
player.GetDamage(DamageClass.Generic) -= 0.10f;
|
||||||
player.moveSpeed += 0.15f;
|
player.moveSpeed += 0.15f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void AddRecipes()
|
||||||
|
{
|
||||||
|
CreateRecipe()
|
||||||
|
.AddIngredient(ModContent.ItemType<AvaliFeather>(), 3)
|
||||||
|
.AddIngredient(ItemID.Silk, 20)
|
||||||
|
.Register();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -14,7 +14,20 @@ namespace ForgottenWawiTech.Content.Items.Materials
|
|||||||
Item.height = 20;
|
Item.height = 20;
|
||||||
Item.maxStack = 9999;
|
Item.maxStack = 9999;
|
||||||
Item.rare = ModContent.RarityType<AvalianItem>();
|
Item.rare = ModContent.RarityType<AvalianItem>();
|
||||||
Item.value = Item.buyPrice(gold: 50);
|
Item.value = Item.buyPrice(silver: 5);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnStack(Item source, int numTransfered)
|
||||||
|
{
|
||||||
|
// Reuse the logic for marking RGBass as obtained when picked up
|
||||||
|
ForgottenWawiTechSystem.hasObtainedRGBass = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override bool OnPickup(Player player)
|
||||||
|
{
|
||||||
|
// Reuse the logic for marking RGBass as obtained when picked up
|
||||||
|
ForgottenWawiTechSystem.hasObtainedRGBass = true;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,19 +17,6 @@ namespace ForgottenWawiTech.Content.Items.Materials
|
|||||||
Item.rare = ItemRarityID.Expert; // temp rarity until custom rarity is added
|
Item.rare = ItemRarityID.Expert; // temp rarity until custom rarity is added
|
||||||
Item.value = Item.buyPrice(gold: 10);
|
Item.value = Item.buyPrice(gold: 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnStack(Item source, int numTransfered)
|
|
||||||
{
|
|
||||||
// Mark that RGBass has been obtained in this world
|
|
||||||
ForgottenWawiTechSystem.hasObtainedRGBass = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnPickup(Player player)
|
|
||||||
{
|
|
||||||
// Mark that RGBass has been obtained in this world
|
|
||||||
ForgottenWawiTechSystem.hasObtainedRGBass = true;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
public class RGBassFishingPlayer : ModPlayer
|
public class RGBassFishingPlayer : ModPlayer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -93,9 +93,9 @@ namespace ForgottenWawiTech.Content.NPCs.TownNPCs
|
|||||||
public override void AddShops()
|
public override void AddShops()
|
||||||
{
|
{
|
||||||
new NPCShop(Type)
|
new NPCShop(Type)
|
||||||
.Add<Items.Materials.RGBass>()
|
.Add<Items.Materials.RGBass>(Condition.DownedMoonLord)
|
||||||
.Add<Items.Materials.VisorShard>()
|
.Add<Items.Materials.VisorShard>(Condition.Hardmode)
|
||||||
.Add(ItemID.RainbowBrick) // TODO: Force Rainbow Brick to not have No Value.
|
.Add(ItemID.RainbowBrick, Condition.Hardmode) // TODO: Force Rainbow Brick to not have No Value.
|
||||||
.Add<Items.Materials.AvaliFeather>()
|
.Add<Items.Materials.AvaliFeather>()
|
||||||
.Register();
|
.Register();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -252,6 +252,11 @@ Items: {
|
|||||||
'''
|
'''
|
||||||
DisplayName: Essence Of Clutches
|
DisplayName: Essence Of Clutches
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AvaliScoutPack: {
|
||||||
|
DisplayName: Avali Scout Pack
|
||||||
|
Tooltip: ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NPCs: {
|
NPCs: {
|
||||||
|
|||||||
Reference in New Issue
Block a user