求指点 这一小段是什么意思
饥荒mod制作吧
全部回复
仅看楼主
level 4
Axxx丶0 楼主
if food and food.components.edible and food.prefab == "yohime_yuetao" then
inst.components.health:DoDelta(10 *(1-TUNING.HEALTH_ABSORPTION))
inst.components.hunger:DoDelta(45 *(1-TUNING.HUNGER_ABSORPTION))
inst.components.sanity:DoDelta(20 *(1-TUNING.SANITY_ABSORPTION))
end
if food and food.components.edible and food.prefab == "yohime_yuetao_juicy" then
inst.components.health:DoDelta(12 *(1-TUNING.HEALTH_ABSORPTION))
inst.components.hunger:DoDelta(48 *(1-TUNING.HUNGER_ABSORPTION))
inst.components.sanity:DoDelta(22 *(1-TUNING.SANITY_ABSORPTION))
end
if food and food.components.edible and food.prefab == "yohime_yuexianjiu" then
inst.components.health:DoDelta(30 *(1-TUNING.HEALTH_ABSORPTION))
inst.components.hunger:DoDelta(50 *(1-TUNING.HUNGER_ABSORPTION))
inst.components.sanity:DoDelta(40 *(1-TUNING.SANITY_ABSORPTION))
2016年11月16日 07点11分 1
level 12
应该是回复三围的,减少负值就是增加,还有,最后少个end。
2016年11月16日 08点11分 2
1