RimWorld

RimWorld

Turn It On and Off
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...
< >
Beiträge 17 von 7
Specter 28. Juni 2020 um 14:13 
Also, is there a reason why you patch the CleanClearSnow-workgiver?
hop  [Entwickler] 18. Aug. 2020 um 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.
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 16. Nov. 2022 um 17:34 
i posted a suggestion in comments, so: % of active usage in idle with a slider of how much would be cool
Just 4. Jan. 2024 um 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!
heaters please
hop  [Entwickler] 24. Okt. 2024 um 8:54 
What do you mean, heaters already have this logic in vanilla
< >
Beiträge 17 von 7
Pro Seite: 1530 50