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...
< >
전체 댓글 7개 중 1~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
< >
전체 댓글 7개 중 1~7개 표시 중
페이지당 표시 개수: 1530 50