Add weapon vs armor augment stats in inventory menu screen
This commit is contained in:
@@ -11,4 +11,12 @@ public partial class JewelStats : InventoryItemStats
|
|||||||
[Save("jewel_tag")]
|
[Save("jewel_tag")]
|
||||||
[Export]
|
[Export]
|
||||||
public JewelTags JewelTag { get; set; }
|
public JewelTags JewelTag { get; set; }
|
||||||
|
|
||||||
|
[Export(PropertyHint.MultilineText)]
|
||||||
|
[Save("equipment_stat_text")]
|
||||||
|
public string WeaponAugmentDescription { get; set; }
|
||||||
|
|
||||||
|
[Export(PropertyHint.MultilineText)]
|
||||||
|
[Save("equipment_stat_text")]
|
||||||
|
public string ArmorAugmentDescription { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("2_1at78")
|
script = ExtResource("2_1at78")
|
||||||
JewelTag = 1
|
JewelTag = 1
|
||||||
|
WeaponAugmentDescription = "Bestows Aeolic properties."
|
||||||
|
ArmorAugmentDescription = "Grants Aeolic resistance."
|
||||||
Name = "Aeolic Jewel"
|
Name = "Aeolic Jewel"
|
||||||
StatDescription = "When attached to a weapon; bestows Aeolic properties.
|
StatDescription = "When attached to a weapon; bestows Aeolic properties.
|
||||||
When attached to armor or mask; grants Resistance to Aeolic damage.
|
When attached to armor or mask; grants Resistance to Aeolic damage.
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_6xlbl")
|
script = ExtResource("1_6xlbl")
|
||||||
JewelTag = 2
|
JewelTag = 2
|
||||||
|
WeaponAugmentDescription = "Increases HP Recovery Speed."
|
||||||
|
ArmorAugmentDescription = "Increases HP Recovery Speed."
|
||||||
Name = "Anabolic Jewel"
|
Name = "Anabolic Jewel"
|
||||||
StatDescription = "When attached to equipment; increases HP Recovery Speed."
|
StatDescription = "When attached to equipment; increases HP Recovery Speed."
|
||||||
FlavorText = "A jewel prized for it's beneficial properties.
|
FlavorText = "A jewel prized for it's beneficial properties.
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_dxj8h")
|
script = ExtResource("1_dxj8h")
|
||||||
JewelTag = 15
|
JewelTag = 15
|
||||||
|
WeaponAugmentDescription = "Increases ATK, DEF and LUCK."
|
||||||
|
ArmorAugmentDescription = "Increases ATK, DEF and LUCK."
|
||||||
Name = "Black Egg"
|
Name = "Black Egg"
|
||||||
StatDescription = "When attached to equipment; increases ATK, DEF and LUCK."
|
StatDescription = "When attached to equipment; increases ATK, DEF and LUCK."
|
||||||
FlavorText = "A royal stone that grants a way of life aloft with power.
|
FlavorText = "A royal stone that grants a way of life aloft with power.
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_vvfsu")
|
script = ExtResource("1_vvfsu")
|
||||||
JewelTag = 16
|
JewelTag = 16
|
||||||
|
WeaponAugmentDescription = "Dramatically improves LUCK."
|
||||||
|
ArmorAugmentDescription = "Dramatically improves LUCK."
|
||||||
Name = "Cat's Eye"
|
Name = "Cat's Eye"
|
||||||
StatDescription = "When attached to equipment; dramatically improves LUCK."
|
StatDescription = "When attached to equipment; dramatically improves LUCK."
|
||||||
FlavorText = "Many types of beings find their way to the Tower beyond just humans and their successors.
|
FlavorText = "Many types of beings find their way to the Tower beyond just humans and their successors.
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_k60ln")
|
script = ExtResource("1_k60ln")
|
||||||
JewelTag = 3
|
JewelTag = 3
|
||||||
|
WeaponAugmentDescription = "Hastens VT drain and adds or improves Rust capabilities."
|
||||||
|
ArmorAugmentDescription = "Hastens VT drain and improves Rust capabilities."
|
||||||
Name = "Cinnabar Structure"
|
Name = "Cinnabar Structure"
|
||||||
StatDescription = "When attached to a Weapon; Hastens VT drain and adds or improves Rust capabilities.
|
StatDescription = "When attached to a Weapon; Hastens VT drain and adds or improves Rust capabilities.
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_pn071")
|
script = ExtResource("1_pn071")
|
||||||
JewelTag = 4
|
JewelTag = 4
|
||||||
|
WeaponAugmentDescription = "Lowers XP gained."
|
||||||
|
ArmorAugmentDescription = "Lowers XP gained."
|
||||||
Name = "Foolish Orb"
|
Name = "Foolish Orb"
|
||||||
StatDescription = "Lowers XP gained.
|
StatDescription = "Lowers XP gained.
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_c23yr")
|
script = ExtResource("1_c23yr")
|
||||||
JewelTag = 5
|
JewelTag = 5
|
||||||
|
WeaponAugmentDescription = "Prevents item from being unequipped"
|
||||||
|
ArmorAugmentDescription = "Prevents item from being unequipped"
|
||||||
Name = "Glue Orb"
|
Name = "Glue Orb"
|
||||||
StatDescription = "When attached to equipment; prevents item from being unequipped.
|
StatDescription = "When attached to equipment; prevents item from being unequipped.
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_7gwjj")
|
script = ExtResource("1_7gwjj")
|
||||||
JewelTag = 6
|
JewelTag = 6
|
||||||
|
WeaponAugmentDescription = "Sends item to the surface upon death."
|
||||||
|
ArmorAugmentDescription = "Sends item to the surface upon death."
|
||||||
Name = "Heirloom Stone"
|
Name = "Heirloom Stone"
|
||||||
StatDescription = "When attached to equipment; sends the item to the surface upon death.
|
StatDescription = "When attached to equipment; sends the item to the surface upon death.
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_cyti8")
|
script = ExtResource("1_cyti8")
|
||||||
JewelTag = 7
|
JewelTag = 7
|
||||||
|
WeaponAugmentDescription = "Bestows Hydric properties."
|
||||||
|
ArmorAugmentDescription = "Grants Resistance to Hydric damage."
|
||||||
Name = "Hydric Jewel"
|
Name = "Hydric Jewel"
|
||||||
StatDescription = "When attached to a weapon; bestows Hydric properties.
|
StatDescription = "When attached to a weapon; bestows Hydric properties.
|
||||||
When attached to armor or mask; grants Resistance to Hydric damage.
|
When attached to armor or mask; grants Resistance to Hydric damage.
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_qh03l")
|
script = ExtResource("1_qh03l")
|
||||||
JewelTag = 8
|
JewelTag = 8
|
||||||
|
WeaponAugmentDescription = "Bestows Igneous properties."
|
||||||
|
ArmorAugmentDescription = "Grants Resistance to Igneous damage."
|
||||||
Name = "Igneous Jewel"
|
Name = "Igneous Jewel"
|
||||||
StatDescription = "When attached to a weapon; bestows Igneous properties.
|
StatDescription = "When attached to a weapon; bestows Igneous properties.
|
||||||
When attached to armor or mask; grants Resistance to Igneous damage.
|
When attached to armor or mask; grants Resistance to Igneous damage.
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_6e2y5")
|
script = ExtResource("1_6e2y5")
|
||||||
JewelTag = 9
|
JewelTag = 9
|
||||||
|
WeaponAugmentDescription = "Increases XP gain."
|
||||||
|
ArmorAugmentDescription = "Increases XP gain."
|
||||||
Name = "Meditative Stone"
|
Name = "Meditative Stone"
|
||||||
StatDescription = "When attached to equipment; increases XP gain.
|
StatDescription = "When attached to equipment; increases XP gain.
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_ivvck")
|
script = ExtResource("1_ivvck")
|
||||||
JewelTag = 10
|
JewelTag = 10
|
||||||
|
WeaponAugmentDescription = "Adds or improves the ability to inflict Rust while also lowering HP recovery speed."
|
||||||
|
ArmorAugmentDescription = "Improves the ability to inflict Rust while also lowering HP recovery speed."
|
||||||
Name = "Mercury Prism"
|
Name = "Mercury Prism"
|
||||||
StatDescription = "When attached to a weapon; adds or improves the ability to inflict Rust while also lowering HP recovery speed.
|
StatDescription = "When attached to a weapon; adds or improves the ability to inflict Rust while also lowering HP recovery speed.
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_cabnq")
|
script = ExtResource("1_cabnq")
|
||||||
JewelTag = 11
|
JewelTag = 11
|
||||||
|
WeaponAugmentDescription = "Slows VT gain."
|
||||||
|
ArmorAugmentDescription = "Slows VT gain."
|
||||||
Name = "Metabolic Jewel"
|
Name = "Metabolic Jewel"
|
||||||
StatDescription = "When attached to equipment; slows VT drain.
|
StatDescription = "When attached to equipment; slows VT drain.
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_75k4l")
|
script = ExtResource("1_75k4l")
|
||||||
JewelTag = 12
|
JewelTag = 12
|
||||||
|
WeaponAugmentDescription = "Automatically identifies obtained items."
|
||||||
|
ArmorAugmentDescription = "Automatically identifies obtained items."
|
||||||
Name = "Ossified Cortex"
|
Name = "Ossified Cortex"
|
||||||
StatDescription = "When attached to equipment; automatically identifies obtained items.
|
StatDescription = "When attached to equipment; automatically identifies obtained items.
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_fkhpb")
|
script = ExtResource("1_fkhpb")
|
||||||
JewelTag = 13
|
JewelTag = 13
|
||||||
|
WeaponAugmentDescription = "Prevents the user from death once."
|
||||||
|
ArmorAugmentDescription = "Prevents the user from death once."
|
||||||
Name = "Rejection Stone"
|
Name = "Rejection Stone"
|
||||||
StatDescription = "When attached to equipment; prevents the user from death once."
|
StatDescription = "When attached to equipment; prevents the user from death once."
|
||||||
FlavorText = "A rare stone solidified from the souls of those who cling most lovingly to life.
|
FlavorText = "A rare stone solidified from the souls of those who cling most lovingly to life.
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("2_c8kww")
|
script = ExtResource("2_c8kww")
|
||||||
JewelTag = 14
|
JewelTag = 14
|
||||||
|
WeaponAugmentDescription = "Bestows Telluric properties."
|
||||||
|
ArmorAugmentDescription = "Grants Resistance to Telluric damage."
|
||||||
Name = "Telluric Jewel"
|
Name = "Telluric Jewel"
|
||||||
StatDescription = "When attached to a weapon; bestows Telluric properties.
|
StatDescription = "When attached to a weapon; bestows Telluric properties.
|
||||||
When attached to armor or mask; grants Resistance to Telluric damage.
|
When attached to armor or mask; grants Resistance to Telluric damage.
|
||||||
|
|||||||
@@ -421,26 +421,26 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
|
|||||||
{
|
{
|
||||||
case JewelTags.AeolicElement:
|
case JewelTags.AeolicElement:
|
||||||
weapon.Stats.WeaponElement = ElementType.Aeolic;
|
weapon.Stats.WeaponElement = ElementType.Aeolic;
|
||||||
weapon.Augment = new Augment(JewelTags.AeolicElement, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
weapon.Augment = new Augment(JewelTags.AeolicElement, new BasicAugment(), jewel.ItemName, jewel.Stats.WeaponAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.HydricElement:
|
case JewelTags.HydricElement:
|
||||||
weapon.Stats.WeaponElement = ElementType.Hydric;
|
weapon.Stats.WeaponElement = ElementType.Hydric;
|
||||||
weapon.Augment = new Augment(JewelTags.HydricElement, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
weapon.Augment = new Augment(JewelTags.HydricElement, new BasicAugment(), jewel.ItemName, jewel.Stats.WeaponAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.SlowVTReduction:
|
case JewelTags.SlowVTReduction:
|
||||||
weapon.Augment = new Augment(JewelTags.SlowVTReduction, new SlowVTReductionAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
weapon.Augment = new Augment(JewelTags.SlowVTReduction, new SlowVTReductionAugment(this), jewel.ItemName, jewel.Stats.WeaponAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.HastenVT:
|
case JewelTags.HastenVT:
|
||||||
weapon.Augment = new Augment(JewelTags.HastenVT, new HastenVTAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
weapon.Augment = new Augment(JewelTags.HastenVT, new HastenVTAugment(this), jewel.ItemName, jewel.Stats.WeaponAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.ReviveUserOnce:
|
case JewelTags.ReviveUserOnce:
|
||||||
weapon.Augment = new Augment(JewelTags.ReviveUserOnce, new RevivePlayerAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
weapon.Augment = new Augment(JewelTags.ReviveUserOnce, new RevivePlayerAugment(this), jewel.ItemName, jewel.Stats.WeaponAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.IncreaseHPRecovery:
|
case JewelTags.IncreaseHPRecovery:
|
||||||
weapon.Augment = new Augment(JewelTags.IncreaseHPRecovery, new HPRecoverySpeedAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
weapon.Augment = new Augment(JewelTags.IncreaseHPRecovery, new HPRecoverySpeedAugment(this), jewel.ItemName, jewel.Stats.WeaponAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.LowerEXPGain:
|
case JewelTags.LowerEXPGain:
|
||||||
weapon.Augment = new Augment(JewelTags.LowerEXPGain, new LowerEXPRateAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
weapon.Augment = new Augment(JewelTags.LowerEXPGain, new LowerEXPRateAugment(this), jewel.ItemName, jewel.Stats.WeaponAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.ItemRescue:
|
case JewelTags.ItemRescue:
|
||||||
if (!_game.RescuedItems.TryAdd(weapon))
|
if (!_game.RescuedItems.TryAdd(weapon))
|
||||||
@@ -454,24 +454,24 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
|
|||||||
if (!EquipmentComponent.IsItemEquipped(weapon))
|
if (!EquipmentComponent.IsItemEquipped(weapon))
|
||||||
break;
|
break;
|
||||||
weapon.Glued = true;
|
weapon.Glued = true;
|
||||||
weapon.Augment = new Augment(JewelTags.Glue, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
weapon.Augment = new Augment(JewelTags.Glue, new BasicAugment(), jewel.ItemName, jewel.Stats.WeaponAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.TelluricElement:
|
case JewelTags.TelluricElement:
|
||||||
weapon.Stats.WeaponElement = ElementType.Telluric;
|
weapon.Stats.WeaponElement = ElementType.Telluric;
|
||||||
weapon.Augment = new Augment(JewelTags.TelluricElement, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
weapon.Augment = new Augment(JewelTags.TelluricElement, new BasicAugment(), jewel.ItemName, jewel.Stats.WeaponAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.AutoIdentifyAllItems:
|
case JewelTags.AutoIdentifyAllItems:
|
||||||
weapon.Augment = new Augment(JewelTags.AutoIdentifyAllItems, new IdentifyAllItemsAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
weapon.Augment = new Augment(JewelTags.AutoIdentifyAllItems, new IdentifyAllItemsAugment(this), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.IncreaseAtkDefLuck:
|
case JewelTags.IncreaseAtkDefLuck:
|
||||||
weapon.IncreaseAttack(jewel.Stats.BonusAttack);
|
weapon.IncreaseAttack(jewel.Stats.BonusAttack);
|
||||||
weapon.IncreaseDefense(jewel.Stats.BonusDefense);
|
weapon.IncreaseDefense(jewel.Stats.BonusDefense);
|
||||||
weapon.IncreaseLuck(jewel.Stats.BonusLuck);
|
weapon.IncreaseLuck(jewel.Stats.BonusLuck);
|
||||||
weapon.Augment = new Augment(JewelTags.IncreaseAtkDefLuck, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
weapon.Augment = new Augment(JewelTags.IncreaseAtkDefLuck, new BasicAugment(), jewel.ItemName, jewel.Stats.WeaponAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.IncreaseLuck:
|
case JewelTags.IncreaseLuck:
|
||||||
weapon.IncreaseLuck(25);
|
weapon.IncreaseLuck(25);
|
||||||
weapon.Augment = new Augment(JewelTags.IncreaseLuck, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
weapon.Augment = new Augment(JewelTags.IncreaseLuck, new BasicAugment(), jewel.ItemName, jewel.Stats.WeaponAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
EquipmentComponent.UpdateEquipment(weapon);
|
EquipmentComponent.UpdateEquipment(weapon);
|
||||||
@@ -483,26 +483,26 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
|
|||||||
{
|
{
|
||||||
case JewelTags.AeolicElement:
|
case JewelTags.AeolicElement:
|
||||||
armor.Stats.AeolicResistance += jewel.Stats.AeolicResistance;
|
armor.Stats.AeolicResistance += jewel.Stats.AeolicResistance;
|
||||||
armor.Augment = new Augment(JewelTags.AeolicElement, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
armor.Augment = new Augment(JewelTags.AeolicElement, new BasicAugment(), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.HydricElement:
|
case JewelTags.HydricElement:
|
||||||
armor.Stats.HydricResistance += jewel.Stats.HydricResistance;
|
armor.Stats.HydricResistance += jewel.Stats.HydricResistance;
|
||||||
armor.Augment = new Augment(JewelTags.HydricElement, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
armor.Augment = new Augment(JewelTags.HydricElement, new BasicAugment(), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.SlowVTReduction:
|
case JewelTags.SlowVTReduction:
|
||||||
armor.Augment = new Augment(JewelTags.SlowVTReduction, new SlowVTReductionAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
armor.Augment = new Augment(JewelTags.SlowVTReduction, new SlowVTReductionAugment(this), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.HastenVT:
|
case JewelTags.HastenVT:
|
||||||
armor.Augment = new Augment(JewelTags.HastenVT, new HastenVTAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
armor.Augment = new Augment(JewelTags.HastenVT, new HastenVTAugment(this), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.ReviveUserOnce:
|
case JewelTags.ReviveUserOnce:
|
||||||
armor.Augment = new Augment(JewelTags.ReviveUserOnce, new RevivePlayerAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
armor.Augment = new Augment(JewelTags.ReviveUserOnce, new RevivePlayerAugment(this), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.IncreaseHPRecovery:
|
case JewelTags.IncreaseHPRecovery:
|
||||||
armor.Augment = new Augment(JewelTags.IncreaseHPRecovery, new HPRecoverySpeedAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
armor.Augment = new Augment(JewelTags.IncreaseHPRecovery, new HPRecoverySpeedAugment(this), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.LowerEXPGain:
|
case JewelTags.LowerEXPGain:
|
||||||
armor.Augment = new Augment(JewelTags.LowerEXPGain, new LowerEXPRateAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
armor.Augment = new Augment(JewelTags.LowerEXPGain, new LowerEXPRateAugment(this), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.ItemRescue:
|
case JewelTags.ItemRescue:
|
||||||
if (!_game.RescuedItems.TryAdd(armor))
|
if (!_game.RescuedItems.TryAdd(armor))
|
||||||
@@ -516,24 +516,24 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
|
|||||||
if (!EquipmentComponent.IsItemEquipped(armor))
|
if (!EquipmentComponent.IsItemEquipped(armor))
|
||||||
break;
|
break;
|
||||||
armor.Glued = true;
|
armor.Glued = true;
|
||||||
armor.Augment = new Augment(JewelTags.Glue, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
armor.Augment = new Augment(JewelTags.Glue, new BasicAugment(), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.TelluricElement:
|
case JewelTags.TelluricElement:
|
||||||
armor.Stats.TelluricResistance += jewel.Stats.TelluricResistance;
|
armor.Stats.TelluricResistance += jewel.Stats.TelluricResistance;
|
||||||
armor.Augment = new Augment(JewelTags.TelluricElement, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
armor.Augment = new Augment(JewelTags.TelluricElement, new BasicAugment(), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.AutoIdentifyAllItems:
|
case JewelTags.AutoIdentifyAllItems:
|
||||||
armor.Augment = new Augment(JewelTags.AutoIdentifyAllItems, new IdentifyAllItemsAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
armor.Augment = new Augment(JewelTags.AutoIdentifyAllItems, new IdentifyAllItemsAugment(this), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.IncreaseAtkDefLuck:
|
case JewelTags.IncreaseAtkDefLuck:
|
||||||
armor.IncreaseAttack(jewel.Stats.BonusAttack);
|
armor.IncreaseAttack(jewel.Stats.BonusAttack);
|
||||||
armor.IncreaseDefense(jewel.Stats.BonusDefense);
|
armor.IncreaseDefense(jewel.Stats.BonusDefense);
|
||||||
armor.IncreaseLuck(jewel.Stats.BonusLuck);
|
armor.IncreaseLuck(jewel.Stats.BonusLuck);
|
||||||
armor.Augment = new Augment(JewelTags.IncreaseAtkDefLuck, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
armor.Augment = new Augment(JewelTags.IncreaseAtkDefLuck, new BasicAugment(), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.IncreaseLuck:
|
case JewelTags.IncreaseLuck:
|
||||||
armor.IncreaseLuck(jewel.Stats.BonusLuck);
|
armor.IncreaseLuck(jewel.Stats.BonusLuck);
|
||||||
armor.Augment = new Augment(JewelTags.IncreaseLuck, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
armor.Augment = new Augment(JewelTags.IncreaseLuck, new BasicAugment(), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
EquipmentComponent.UpdateEquipment(armor);
|
EquipmentComponent.UpdateEquipment(armor);
|
||||||
@@ -545,26 +545,26 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
|
|||||||
{
|
{
|
||||||
case JewelTags.AeolicElement:
|
case JewelTags.AeolicElement:
|
||||||
accessory.Stats.AeolicResistance += jewel.Stats.AeolicResistance;
|
accessory.Stats.AeolicResistance += jewel.Stats.AeolicResistance;
|
||||||
accessory.Augment = new Augment(JewelTags.AeolicElement, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
accessory.Augment = new Augment(JewelTags.AeolicElement, new BasicAugment(), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.HydricElement:
|
case JewelTags.HydricElement:
|
||||||
accessory.Stats.HydricResistance += jewel.Stats.HydricResistance;
|
accessory.Stats.HydricResistance += jewel.Stats.HydricResistance;
|
||||||
accessory.Augment = new Augment(JewelTags.HydricElement, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
accessory.Augment = new Augment(JewelTags.HydricElement, new BasicAugment(), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.SlowVTReduction:
|
case JewelTags.SlowVTReduction:
|
||||||
accessory.Augment = new Augment(JewelTags.SlowVTReduction, new SlowVTReductionAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
accessory.Augment = new Augment(JewelTags.SlowVTReduction, new SlowVTReductionAugment(this), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.HastenVT:
|
case JewelTags.HastenVT:
|
||||||
accessory.Augment = new Augment(JewelTags.HastenVT, new HastenVTAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
accessory.Augment = new Augment(JewelTags.HastenVT, new HastenVTAugment(this), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.ReviveUserOnce:
|
case JewelTags.ReviveUserOnce:
|
||||||
accessory.Augment = new Augment(JewelTags.ReviveUserOnce, new RevivePlayerAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
accessory.Augment = new Augment(JewelTags.ReviveUserOnce, new RevivePlayerAugment(this), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.IncreaseHPRecovery:
|
case JewelTags.IncreaseHPRecovery:
|
||||||
accessory.Augment = new Augment(JewelTags.IncreaseHPRecovery, new HPRecoverySpeedAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
accessory.Augment = new Augment(JewelTags.IncreaseHPRecovery, new HPRecoverySpeedAugment(this), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.LowerEXPGain:
|
case JewelTags.LowerEXPGain:
|
||||||
accessory.Augment = new Augment(JewelTags.LowerEXPGain, new LowerEXPRateAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
accessory.Augment = new Augment(JewelTags.LowerEXPGain, new LowerEXPRateAugment(this), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.ItemRescue:
|
case JewelTags.ItemRescue:
|
||||||
if (!_game.RescuedItems.TryAdd(accessory))
|
if (!_game.RescuedItems.TryAdd(accessory))
|
||||||
@@ -578,24 +578,24 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
|
|||||||
if (!EquipmentComponent.IsItemEquipped(accessory))
|
if (!EquipmentComponent.IsItemEquipped(accessory))
|
||||||
break;
|
break;
|
||||||
accessory.Glued = true;
|
accessory.Glued = true;
|
||||||
accessory.Augment = new Augment(JewelTags.Glue, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
accessory.Augment = new Augment(JewelTags.Glue, new BasicAugment(), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.TelluricElement:
|
case JewelTags.TelluricElement:
|
||||||
accessory.Stats.TelluricResistance += jewel.Stats.TelluricResistance;
|
accessory.Stats.TelluricResistance += jewel.Stats.TelluricResistance;
|
||||||
accessory.Augment = new Augment(JewelTags.TelluricElement, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
accessory.Augment = new Augment(JewelTags.TelluricElement, new BasicAugment(), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.AutoIdentifyAllItems:
|
case JewelTags.AutoIdentifyAllItems:
|
||||||
accessory.Augment = new Augment(JewelTags.AutoIdentifyAllItems, new IdentifyAllItemsAugment(this), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
accessory.Augment = new Augment(JewelTags.AutoIdentifyAllItems, new IdentifyAllItemsAugment(this), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.IncreaseAtkDefLuck:
|
case JewelTags.IncreaseAtkDefLuck:
|
||||||
accessory.IncreaseAttack(jewel.Stats.BonusAttack);
|
accessory.IncreaseAttack(jewel.Stats.BonusAttack);
|
||||||
accessory.IncreaseDefense(jewel.Stats.BonusDefense);
|
accessory.IncreaseDefense(jewel.Stats.BonusDefense);
|
||||||
accessory.IncreaseLuck(jewel.Stats.BonusLuck);
|
accessory.IncreaseLuck(jewel.Stats.BonusLuck);
|
||||||
accessory.Augment = new Augment(JewelTags.IncreaseAtkDefLuck, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
accessory.Augment = new Augment(JewelTags.IncreaseAtkDefLuck, new BasicAugment(), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
case JewelTags.IncreaseLuck:
|
case JewelTags.IncreaseLuck:
|
||||||
accessory.IncreaseLuck(jewel.Stats.BonusLuck);
|
accessory.IncreaseLuck(jewel.Stats.BonusLuck);
|
||||||
accessory.Augment = new Augment(JewelTags.IncreaseLuck, new BasicAugment(), jewel.ItemName, jewel.StatDescription, jewel.GetTexture());
|
accessory.Augment = new Augment(JewelTags.IncreaseLuck, new BasicAugment(), jewel.ItemName, jewel.Stats.ArmorAugmentDescription, jewel.GetTexture());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
EquipmentComponent.UpdateEquipment(accessory);
|
EquipmentComponent.UpdateEquipment(accessory);
|
||||||
|
|||||||
@@ -2308,7 +2308,6 @@ unique_name_in_owner = true
|
|||||||
custom_minimum_size = Vector2(500, 10)
|
custom_minimum_size = Vector2(500, 10)
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 8
|
size_flags_horizontal = 8
|
||||||
text = "Black Egg:"
|
|
||||||
label_settings = SubResource("LabelSettings_unikd")
|
label_settings = SubResource("LabelSettings_unikd")
|
||||||
autowrap_mode = 2
|
autowrap_mode = 2
|
||||||
|
|
||||||
@@ -2317,7 +2316,6 @@ unique_name_in_owner = true
|
|||||||
custom_minimum_size = Vector2(500, 10)
|
custom_minimum_size = Vector2(500, 10)
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 8
|
size_flags_horizontal = 8
|
||||||
text = "Augment"
|
|
||||||
label_settings = SubResource("LabelSettings_i34wf")
|
label_settings = SubResource("LabelSettings_i34wf")
|
||||||
autowrap_mode = 2
|
autowrap_mode = 2
|
||||||
|
|
||||||
@@ -2332,7 +2330,6 @@ layout_mode = 2
|
|||||||
size_flags_horizontal = 8
|
size_flags_horizontal = 8
|
||||||
theme_override_fonts/font = ExtResource("5_7co7g")
|
theme_override_fonts/font = ExtResource("5_7co7g")
|
||||||
theme_override_font_sizes/font_size = 19
|
theme_override_font_sizes/font_size = 19
|
||||||
text = "When attached to equipment etc"
|
|
||||||
autowrap_mode = 2
|
autowrap_mode = 2
|
||||||
|
|
||||||
[node name="ActionPanelContainer" type="PanelContainer" parent="Panel/MarginContainer/PanelContainer/MenuPanel/VBoxContainer"]
|
[node name="ActionPanelContainer" type="PanelContainer" parent="Panel/MarginContainer/PanelContainer/MenuPanel/VBoxContainer"]
|
||||||
|
|||||||
Reference in New Issue
Block a user