RimWorld

RimWorld

Turn It On and Off
Specter 28 jun, 2020 @ 14: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...
< >
Visar 1-7 av 7 kommentarer
Specter 28 jun, 2020 @ 14:13 
Also, is there a reason why you patch the CleanClearSnow-workgiver?
hop  [utvecklare] 18 aug, 2020 @ 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 19 aug, 2020 @ 0: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 16 nov, 2022 @ 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 @ 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 24 okt, 2024 @ 7:44 
heaters please
hop  [utvecklare] 24 okt, 2024 @ 8:54 
What do you mean, heaters already have this logic in vanilla
< >
Visar 1-7 av 7 kommentarer
Per sida: 1530 50