FirmaNutrition - 更简洁的 TFC 营养系统
FirmaNutrition 是 TFC 的一个附加模组,它改变了营养系统,使营养衰减以更为连续的方式进行,并赋予玩家对营养运作方式的更多控制权。
在常规 TFC 中,最近食用的餐食会被存储并累加以计算玩家的当前营养值;而在此模组中,营养物质会直接添加到玩家身上,并随着饥饿条的降低而衰减。这使得衰减感更加真实,防止了营养值的突然大幅减少,同时也鼓励食用高营养的餐食。
配置设置
该新衰减系统的运作方式提供两种不同的选项:恒定速率,或与玩家拥有的营养量成正比的动态速率。此外,后者还允许你设置一个最小比例,当低于此比例时,衰减将始终保持恒定。
除此之外,你还可以设置最大隐藏营养值,这将使得达到 100% 平均营养值变得更加容易(从技术上讲这也是必需的,因为 TFC 中没有任何一种餐食包含所有类型的营养物质)
其他新增内容
- 在常规 TFC 中不可能实现,但在此营养系统中轻而易举:你可以使用命令
/tfc player @s set nutrition 来设置你的营养值。
- 针对每个玩家和每种营养素的衰减率:现在你可以使用
/tfc player @s set decay_rate 微调不同营养素的衰减速率。
- 对于附加模组开发者:通过新的
IAdditionalNutritionData 接口轻松访问这个更先进的营养系统。无论是制作自己的营养系统还是仅添加兼容性,这都能为你提供所需的一切功能。
FirmaNutrition - A cleaner TFC nutrition system
FirmaNutrition is an addon for TFC that changes the nutrition system, making nutrient decay behave in a more continuous manner, and giving players more agency over how nutrition works.
Instead of having recently eaten meals stored and summing those up to get the current nutrition of the player like in regular TFC,
nutrients are directly added to the player and decay as your hunger bar gets lower.
This makes decay feel more realistic and prevents sudden large decreases in nutrition, while also encouraging higher-nutrition meals.
Config Settings
There are two different options available for how this new decay system works: either a constant rate, or a dynamic rate proportional to the nutrition a player has.
Furthermore, the latter option also allows you to set a minimum proportion, below which decay should always remain constant.
Besides that, you can also set a maximum hidden nutrition, which will make reaching 100% average nutrition easier to get (and is technically required for this, since there aren't any meals in TFC with every nutrient type)
Further Additions
- Impossible in regular TFC, but trivial with this nutrition system: You can set your nutrition with a command, by using
/tfc player @s set nutrition
- Per-player and per-nutrient decay rates: Now you can fine-tune how fast different nutrients decay, by using
/tfc player @s set decay_rate
- For addon devs: Easy access to this more advanced nutrition system, with the new
IAdditionalNutritionData interface. Whether making your own nutrition system or just adding compatibility, this should give you access to everything you need
评论 0
登录后参与评分
还没有评论,来抢沙发吧