namespace Cielonos.MainGame.Inventory.Collections { /// /// 反应装甲 / Reactive Plating /// 在受到冲击时自动硬化的智能合金板,增加护甲值和最大生命值。 /// 纯属性装备:Armor + MaximumHealth(通过 PassiveAttributeData 和 UpgradeData 配置)。 /// 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); } } }