边缘世界 RimWorld

边缘世界 RimWorld

Pawn Sanitizer Framework
4 条留言
emitbreaker  [作者] 4 月 11 日 下午 12:13 
@da812manymonkey That's actually new findings for me when I review my code with ChatGPT XD Although, ChatGPT's coding isn't 100% trustworthy, this case works.
da812manymonkey 4 月 11 日 上午 11:46 
Interesting, I never thought of it that way. I'm not a coder. I dabble.
emitbreaker  [作者] 4 月 11 日 上午 10:02 
@da812manymonkey Actually, you don't need them. To make the error handling easier and remove dependency with individual mods, all those variables are considered as plain string, not individual needsdef. So if the string matches, needs will be removed. If not, the logic will be silently failed. This may lead to difficulty in debugging, but gives better compatibility to mod users.
da812manymonkey 4 月 9 日 上午 9:28 
I love the potential for what you have here. Found an error and got a fix for ya. In your brainwasher chip example line 32 should be <li Class="emitbreaker.PawnSanitizer.HediffCompProperties_PawnSanitizer"> and on lines 34 through 36 it would help compatibility if you added MayRequire="Dubwise.DubsBadHygiene" to those lines.