代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。
原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html
三十六.盔甲永固(永远100%)
用MT管理器打开游戏目录/assets/scripts/components/armor.lua文件,将下列内容:
function Armor:SetCondition(amount)
self.condition = amount
替换为:
function Armor:SetCondition(amount)
self.condition = self.maxcondition
即可让盔甲永固