RimWorld

RimWorld

Turn It On and Off
Specter 28 Jun, 2020 @ 2:11pm
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...
< >
Showing 1-7 of 7 comments
Specter 28 Jun, 2020 @ 2:13pm 
Also, is there a reason why you patch the CleanClearSnow-workgiver?
hop  [developer] 18 Aug, 2020 @ 3:42am 
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 19 Aug, 2020 @ 12:57am 
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 @ 5:34pm 
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 @ 10:38am 
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 24 Oct, 2024 @ 7:44am 
heaters please
hop  [developer] 24 Oct, 2024 @ 8:54am 
What do you mean, heaters already have this logic in vanilla
< >
Showing 1-7 of 7 comments
Per page: 1530 50