Add curse element, increase throw speed/damage of Ciello
This commit is contained in:
@@ -63,6 +63,10 @@ public abstract partial class InventoryItemStats : Resource
|
||||
[Save("equipment_holy_resist")]
|
||||
public int HolyResistance { get; set; } = 0;
|
||||
|
||||
[Export]
|
||||
[Save("equipment_curse_resist")]
|
||||
public int CurseResistance { get; set; } = 0;
|
||||
|
||||
[Export(PropertyHint.Range, "0, 25, 0.1")]
|
||||
[Save("equipment_throw_speed")]
|
||||
public float ThrowSpeed { get; set; } = 12.0f;
|
||||
|
||||
@@ -38,7 +38,7 @@ public partial class Accessory : EquipableItem
|
||||
|
||||
public override int BonusLuck { get => Stats.BonusLuck + _bonusLuck; }
|
||||
|
||||
public override ElementalResistanceSet ElementalResistance => new ElementalResistanceSet(Stats.AeolicResistance, Stats.HydricResistance, Stats.IgneousResistance, Stats.FerrumResistance, Stats.TelluricResistance, Stats.HolyResistance);
|
||||
public override ElementalResistanceSet ElementalResistance => new ElementalResistanceSet(Stats.AeolicResistance, Stats.HydricResistance, Stats.IgneousResistance, Stats.FerrumResistance, Stats.TelluricResistance, Stats.HolyResistance, Stats.CurseResistance);
|
||||
|
||||
[Save("accessory_tag")]
|
||||
public AccessoryTag AccessoryTag => Stats.AccessoryTag;
|
||||
|
||||
@@ -39,7 +39,7 @@ public partial class Armor : EquipableItem
|
||||
[Save("armor_bonus_luck")]
|
||||
private int _bonusLuck { get; set; } = 0;
|
||||
|
||||
public override ElementalResistanceSet ElementalResistance => new ElementalResistanceSet(Stats.AeolicResistance, Stats.HydricResistance, Stats.IgneousResistance, Stats.FerrumResistance, Stats.TelluricResistance, Stats.HolyResistance);
|
||||
public override ElementalResistanceSet ElementalResistance => new ElementalResistanceSet(Stats.AeolicResistance, Stats.HydricResistance, Stats.IgneousResistance, Stats.FerrumResistance, Stats.TelluricResistance, Stats.HolyResistance, Stats.CurseResistance);
|
||||
|
||||
public void IncreaseArmorDefense(int bonus) => _bonusDefense += bonus;
|
||||
|
||||
|
||||
@@ -33,5 +33,9 @@ public partial class ArmorStats : InventoryItemStats
|
||||
[Save("armor_holy_resistance")]
|
||||
private double _holyResistance { get; set; } = 0;
|
||||
|
||||
public ElementalResistanceSet ElementalResistanceSet => new ElementalResistanceSet(_aeolicResistance, _hydricResistance, _igneousResistance, _ferrumResistance, _telluricResistance, _holyResistance);
|
||||
[Export]
|
||||
[Save("armor_curse_resistance")]
|
||||
private double _curseResistance { get; set; } = 0;
|
||||
|
||||
public ElementalResistanceSet ElementalResistanceSet => new ElementalResistanceSet(_aeolicResistance, _hydricResistance, _igneousResistance, _ferrumResistance, _telluricResistance, _holyResistance, _curseResistance);
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public partial class Weapon : EquipableItem
|
||||
[Save("weapon_element")]
|
||||
public ElementType WeaponElement => Stats.WeaponElement;
|
||||
|
||||
public override ElementalResistanceSet ElementalResistance => new ElementalResistanceSet(Stats.AeolicResistance, Stats.HydricResistance, Stats.IgneousResistance, Stats.FerrumResistance, Stats.TelluricResistance, Stats.HolyResistance);
|
||||
public override ElementalResistanceSet ElementalResistance => new ElementalResistanceSet(Stats.AeolicResistance, Stats.HydricResistance, Stats.IgneousResistance, Stats.FerrumResistance, Stats.TelluricResistance, Stats.HolyResistance, Stats.CurseResistance);
|
||||
|
||||
public void IncreaseWeaponAttack(int bonus) => _bonusDamage += bonus;
|
||||
|
||||
|
||||
@@ -6,15 +6,16 @@
|
||||
[resource]
|
||||
script = ExtResource("2_yrbai")
|
||||
AttackSpeed = 1.0
|
||||
WeaponElement = 0
|
||||
WeaponElement = 7
|
||||
WeaponTag = 0
|
||||
SelfDamage = 0
|
||||
SoundEffect = 22
|
||||
Name = "Black Plume Sword"
|
||||
Description = "Curse Element"
|
||||
Description = "Deals curse damage."
|
||||
SpawnRate = 0.1
|
||||
BonusAttack = 8
|
||||
BonusDefense = 0
|
||||
BonusLuck = 0.05
|
||||
BonusLuck = 5
|
||||
BonusHP = 0
|
||||
BonusVT = 0
|
||||
AeolicResistance = 0
|
||||
@@ -23,6 +24,7 @@ HydricResistance = 0
|
||||
IgneousResistance = 0
|
||||
FerrumResistance = 0
|
||||
HolyResistance = 0
|
||||
CurseResistance = 0
|
||||
ThrowSpeed = 12.0
|
||||
ThrowDamage = 5
|
||||
ItemTag = 0
|
||||
|
||||
@@ -8,6 +8,7 @@ script = ExtResource("2_tps6s")
|
||||
AttackSpeed = 1.0
|
||||
WeaponElement = 0
|
||||
WeaponTag = 0
|
||||
SelfDamage = 0
|
||||
SoundEffect = 22
|
||||
Name = "Ciello"
|
||||
Description = "Triple Strike.
|
||||
@@ -24,7 +25,8 @@ HydricResistance = 0
|
||||
IgneousResistance = 0
|
||||
FerrumResistance = 0
|
||||
HolyResistance = 0
|
||||
ThrowSpeed = 12.0
|
||||
ThrowDamage = 5
|
||||
CurseResistance = 0
|
||||
ThrowSpeed = 20.0
|
||||
ThrowDamage = 25
|
||||
ItemTag = 0
|
||||
Texture = ExtResource("1_jiewn")
|
||||
|
||||
Reference in New Issue
Block a user