代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。

原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html


 1
 2二十八.麦斯威尔用魔法书召唤分身不减脑上限
 3
 4	1.MT管理器打开游戏目录/assets/scripts/prefabs/waxwelljournal.lua文件,将reader.components.sanity:RecalculatePenalty()替换为--reader.components.sanity:RecalculatePenalty()
 5
 6
 7	2.MT管理器打开游戏目录/assets/scripts/prefabs/shadowwaxwell.lua文件,将下列内容:
 8
 9	inst:ListenForEvent("death", ondeath)
10
11	inst:AddComponent("inventory")
12	inst.components.inventory.dropondeath = false
13
14	inst:AddComponent("sanityaura")
15	inst.components.sanityaura.penalty = TUNING.SHADOWWAXWELL_SANITY_PENALTY
16
17	替换为:
18
19	--inst:ListenForEvent("death", ondeath)
20
21	inst:AddComponent("inventory")
22	inst.components.inventory.dropondeath = false
23
24	--inst:AddComponent("sanityaura")
25	--inst.components.sanityaura.penalty = TUNING.SHADOWWAXWELL_SANITY_PENALTY
26
27	即可在麦斯威尔用魔法书召唤分身时不减脑上限