Add sell prices to most materials, add Singularity materials
This commit is contained in:
@@ -18,6 +18,7 @@ namespace ForgottenWawiTech.Content.Items.Accessories
|
|||||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||||
{
|
{
|
||||||
player.statMana = player.statManaMax2;
|
player.statMana = player.statManaMax2;
|
||||||
|
player.statManaMax2 += 2000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
using Terraria.ID;
|
||||||
|
using Terraria;
|
||||||
|
using Terraria.ModLoader;
|
||||||
|
|
||||||
|
namespace ForgottenWawiTech.Content.Items.Materials
|
||||||
|
{
|
||||||
|
public class ControlledSingularity : ModItem
|
||||||
|
{
|
||||||
|
|
||||||
|
public override void SetDefaults()
|
||||||
|
{
|
||||||
|
Item.width = 20;
|
||||||
|
Item.height = 20;
|
||||||
|
Item.maxStack = 9999;
|
||||||
|
Item.rare = ItemRarityID.White;
|
||||||
|
Item.value = Item.buyPrice(gold: 50);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 504 B |
@@ -0,0 +1,20 @@
|
|||||||
|
using Terraria.ID;
|
||||||
|
using Terraria;
|
||||||
|
using Terraria.ModLoader;
|
||||||
|
|
||||||
|
namespace ForgottenWawiTech.Content.Items.Materials
|
||||||
|
{
|
||||||
|
public class MiniSingularity : ModItem
|
||||||
|
{
|
||||||
|
|
||||||
|
public override void SetDefaults()
|
||||||
|
{
|
||||||
|
Item.width = 20;
|
||||||
|
Item.height = 20;
|
||||||
|
Item.maxStack = 9999;
|
||||||
|
Item.rare = ItemRarityID.White;
|
||||||
|
Item.value = Item.buyPrice(gold: 50);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 504 B |
@@ -1,4 +1,5 @@
|
|||||||
using Terraria.ID;
|
using Terraria.ID;
|
||||||
|
using Terraria;
|
||||||
using Terraria.ModLoader;
|
using Terraria.ModLoader;
|
||||||
|
|
||||||
namespace ForgottenWawiTech.Content.Items.Materials
|
namespace ForgottenWawiTech.Content.Items.Materials
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Terraria.ID;
|
using Terraria.ID;
|
||||||
|
using Terraria;
|
||||||
using Terraria.ModLoader;
|
using Terraria.ModLoader;
|
||||||
|
|
||||||
namespace ForgottenWawiTech.Content.Items.Materials
|
namespace ForgottenWawiTech.Content.Items.Materials
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Terraria.ID;
|
using Terraria.ID;
|
||||||
|
using Terraria;
|
||||||
using Terraria.ModLoader;
|
using Terraria.ModLoader;
|
||||||
|
|
||||||
namespace ForgottenWawiTech.Content.Items.Materials
|
namespace ForgottenWawiTech.Content.Items.Materials
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
using Terraria;
|
||||||
|
using Terraria.ModLoader;
|
||||||
|
|
||||||
|
namespace ForgottenWawiTech.Content.Items.Prefixes
|
||||||
|
{
|
||||||
|
public class SingularityPowered : ModPrefix
|
||||||
|
{
|
||||||
|
public override PrefixCategory Category => PrefixCategory.AnyWeapon;
|
||||||
|
|
||||||
|
|
||||||
|
// Prevent from being obtained through Goblin Tinkerer reforging
|
||||||
|
public override bool CanRoll(Item item) => false;
|
||||||
|
|
||||||
|
// Also prevent random roll chances on spawn
|
||||||
|
public override float RollChance(Item item) => 0f;
|
||||||
|
|
||||||
|
// +100% damage, +50% use time
|
||||||
|
public override void SetStats(
|
||||||
|
ref float damageMult,
|
||||||
|
ref float knockbackMult,
|
||||||
|
ref float useTimeMult,
|
||||||
|
ref float scaleMult,
|
||||||
|
ref float shootSpeedMult,
|
||||||
|
ref float manaMult,
|
||||||
|
ref int critBonus)
|
||||||
|
{
|
||||||
|
damageMult = 2f;
|
||||||
|
knockbackMult = 1.5f;
|
||||||
|
shootSpeedMult = 1.5f;
|
||||||
|
useTimeMult = 1.5f;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Increase item value due to powerful stats
|
||||||
|
public override void ModifyValue(ref float valueMult)
|
||||||
|
{
|
||||||
|
valueMult *= 2f;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
using Terraria;
|
using Terraria;
|
||||||
using Terraria.ModLoader;
|
using Terraria.ModLoader;
|
||||||
|
using Terraria.ID;
|
||||||
using ForgottenWawiTech.Content.Tiles.CraftingStations;
|
using ForgottenWawiTech.Content.Tiles.CraftingStations;
|
||||||
|
|
||||||
namespace ForgottenWawiTech.Content.Items.Tiles
|
namespace ForgottenWawiTech.Content.Items.Tiles
|
||||||
|
|||||||
@@ -104,6 +104,16 @@ Items: {
|
|||||||
DisplayName: Visor Shard
|
DisplayName: Visor Shard
|
||||||
Tooltip: ""
|
Tooltip: ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MiniSingularity: {
|
||||||
|
Tooltip: ""
|
||||||
|
DisplayName: Mini Singularity
|
||||||
|
}
|
||||||
|
|
||||||
|
ControlledSingularity: {
|
||||||
|
Tooltip: ""
|
||||||
|
DisplayName: Controlled Singularity
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NPCs: {
|
NPCs: {
|
||||||
@@ -199,4 +209,7 @@ Projectiles: {
|
|||||||
ShatteredPrismHoldout.DisplayName: Shattered Prism Holdout
|
ShatteredPrismHoldout.DisplayName: Shattered Prism Holdout
|
||||||
}
|
}
|
||||||
|
|
||||||
Prefixes.Healthy.DisplayName: Healthy
|
Prefixes: {
|
||||||
|
Healthy.DisplayName: Healthy
|
||||||
|
SingularityPowered.DisplayName: Singularity Powered
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user