代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。
原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html
二十八.麦斯威尔用魔法书召唤分身不减脑上限
1.用MT管理器打开游戏目录/assets/scripts/prefabs/waxwelljournal.lua文件,将reader.components.sanity:RecalculatePenalty()替换为--reader.components.sanity:RecalculatePenalty()
2.用MT管理器打开游戏目录/assets/scripts/prefabs/shadowwaxwell.lua文件,将下列内容:
inst:ListenForEvent("death", ondeath)
inst:AddComponent("inventory")
inst.components.inventory.dropondeath = false
inst:AddComponent("sanityaura")
inst.components.sanityaura.penalty = TUNING.SHADOWWAXWELL_SANITY_PENALTY
替换为:
--inst:ListenForEvent("death", ondeath)
inst:AddComponent("inventory")
inst.components.inventory.dropondeath = false
--inst:AddComponent("sanityaura")
--inst.components.sanityaura.penalty = TUNING.SHADOWWAXWELL_SANITY_PENALTY
即可在麦斯威尔用魔法书召唤分身时不减脑上限