Skip to content

v1.1.2

Pre-release
Pre-release

Choose a tag to compare

@AmCh-Q AmCh-Q released this 29 Mar 13:54
· 148 commits to main since this release
8f25231

This Version DOES NOT Support Old Version Settings! I am working on a fix.

Version 1.1.2
More Refactoring:

  1. Refs.cs is a unified location where Defs and modded object references which might not exist at game start are cached for mod patches.
  2. All Harmony Patches are now in CSharpPatches. One class and one source file per patched method (or methods if the patch(es) are exactly the same) within one Vanilla class, one directory per Vanilla class if it requires multiple different patches. Each patch class tracks its own patch status and implements its own Toggle() method that decides whether the patches should be applied/unapplied. The patch classes are fully static and can be invoked by other mods for compatibility.
  3. Attempted to patch RimWorld.BeautyUtility class, which improves UI rendering performance. Now the game runs faster on average with the mod than without the mod.
  4. Removed FoodHediffComp, and instead the Hediff ticks with the RimWorld.Need_Food.NeedInterval() method, this improves performance.
  5. Updated text on FoodOverflowDisableEating to hint that pawns under food binge can still eat as much as they want.

这个版本不支持旧版模组设置!我正在想办法修

1.1.2 版本更新:

  1. 继续重构代码,现在每个Harmony补丁对应一个补丁class源文件对应一个原版方法(或者一组补丁完全一致且在同一类下的原版方法),每个补丁class自己追踪补丁状态以及是否应用/取消补丁,如果一个原版class有多个方法+对应多个补丁,那它将变成一个文件夹包含相关的补丁源文件;
  2. Refs.cs负责在游戏启动后统一加载所有游戏刚启动时不一定存在的Def和其它模组的指针;
  3. 对RimWorld.BeautyUtility的补丁大幅提升的原版性能,现在有这个模组应该比没有还快了;
  4. 删除FoodHediffComp,现在吃过饱的状态由RimWorld.Need_Food.NeedInterval()直接追踪,这样效率更高;
  5. 修改了文本,明确“过饱后禁止进食”并不会限制崩溃小人暴饮暴食。