边缘世界 RimWorld

边缘世界 RimWorld

Turn It On and Off
Specter 2020 年 6 月 28 日 下午 2:11
Suggestion(s)
I had a look at the 1.0 source and came across some things you may consider, if they are possible:

- in Initialize() you're using magic numbers (eg 250 in RegisterSpecialPowerTrader("HiTechResearchBench", -1, -250);)
You may want to read those from the XML instead, in case something is changed (read at ThingDef/comps/li Class="CompProperties_Power"/basePowerConsumption)

- if possible, check for ThingDef/comps/li Class="CompProperties_Schedule" and set those to 1 when outside of schedule (those are sunlamps)

- if those were possible, you may even automate the whole registrationprocess by checking for ThingDef/hasInteractionCell = true
That way you'd automatically cover modded stuff as well

All that being said, I'd love to help you or even provide the code, but I'm currently at the "patching XMLs"-stage of Rimworld modding, so I'd need a ♥♥♥♥♥♥♥ of pointers to figure out how to do any of this...
< >
正在显示第 1 - 7 条,共 7 条留言
Specter 2020 年 6 月 28 日 下午 2:13 
Also, is there a reason why you patch the CleanClearSnow-workgiver?
hop  [开发者] 2020 年 8 月 18 日 上午 3:42 
hey sorry about the delay. i dont have much time to add features to this mod but i fixed the github page and you can create pull requests. i will look at that page from now on.
CleanClearSnow-workgiver was just for testing and i forgot to remove it but its removed now.
I have just updated to 1.1/1.2 barebones and if i wanted to add stuff i would probably write this mod from scratch so its kinda hard.
Specter 2020 年 8 月 19 日 上午 12:57 
no worries :)

I've started dabbling in C#, so I'll probably just fork around with your code and if I get anything decent cobbled together I'll send you a pullrequest :)
Teusdv 2022 年 11 月 16 日 下午 5:34 
i posted a suggestion in comments, so: % of active usage in idle with a slider of how much would be cool
Just 2024 年 1 月 4 日 上午 10:38 
Hey, would be great if it could work with "ultrascreen television" from "Vanilla Furniture Expanded - Spacer Module" mod
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2028381079

Def: <...>\2028381079\1.4\Defs\Buildings_Furniture\Buildings_Joy.xml
<defName>UltrascreenTV</defName>

Thanks!
lizmac21 2024 年 10 月 24 日 上午 7:44 
heaters please
hop  [开发者] 2024 年 10 月 24 日 上午 8:54 
What do you mean, heaters already have this logic in vanilla
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50