Files
SoulliesOfficial 649b7a5ddc 更新
2026-05-23 08:27:50 -04:00

25 lines
867 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace Cielonos.MainGame.Inventory.Collections
{
/// <summary>
/// 反应装甲 / Reactive Plating
/// 在受到冲击时自动硬化的智能合金板,增加护甲值和最大生命值。
/// 纯属性装备Armor + MaximumHealth通过 PassiveAttributeData 和 UpgradeData 配置)。
/// </summary>
public class ReactivePlating : PassiveEquipmentBase
{
public override void OnObtained()
{
base.OnObtained();
float heal = passiveAttributeData.chaAttrNumericChange[CharacterAttribute.MaximumHealth];
player.Heal(heal);
}
public override void Upgrade()
{
base.Upgrade();
float heal = upgradeData.upgrades[0].GetDifference(passiveAttributeSm.level, passiveAttributeSm.level - 1);
player.Heal(heal);
}
}
}