RimWorld

RimWorld

Empire [Deprecated]
Rotrules 21. maj 2022 kl. 0:26
How to mod the resources taxes and tithes bring and bills take?
I'm creating my own personal submod so that settlements could produce different resources. I've spent hours searching for the files for anything that I could re-code. There's one file of interest named "PaymentUtil.cs". This file appears to contain lines of code that contain how taxes, tithes, and bills work.

There are a few lines of code that contain some lines such as "public static bool paySilver(int amount)", and "if (item.def == ThingDefOf.Silver && item.IsInAnyStorage() == true)". I have a hypothesis that if I change "ThingDefOf.Silver" to another line such as "ThingCategoryDefOf.FoodMeals", I may be able to pay my settlement bills in a different resource in meals instead of silver.

What does anyone else think of changing a few lines of code to modify taxes, tithes, and bills?
< >
Viser 1-3 af 3 kommentarer
Rotrules 21. maj 2022 kl. 23:52 
I couldn't mod the tax, tithe, and billing system without breaking the mod itself despite my best efforts at coding by the time of this post. I wonder if the developer(s) of this mod has any plans of allowing players to change what kind of resources the empire could produce in the mod options? I would love the idea of my empire paying non-tithe taxes in different resources such as hyperweave or advanced components.

Edit 1: I would also want the option to pay settlement bills in any other item that's not silver such as chemfuel and human leather.
Sidst redigeret af Rotrules; 21. maj 2022 kl. 23:56
Danimineiro  [udvikler] 9. juni 2022 kl. 9:25 
Oprindeligt skrevet af rotrules1234:
I couldn't mod the tax, tithe, and billing system without breaking the mod itself despite my best efforts at coding by the time of this post. I wonder if the developer(s) of this mod has any plans of allowing players to change what kind of resources the empire could produce in the mod options? I would love the idea of my empire paying non-tithe taxes in different resources such as hyperweave or advanced components.

Edit 1: I would also want the option to pay settlement bills in any other item that's not silver such as chemfuel and human leather.

Sorry for the late response, I wish steam would notify me of new things here (maybe there is a way, I just dunno)

We're working on a rewrite that will be mod-able like this, it's just going rather slowly
Rotrules 10. juni 2022 kl. 9:11 
Oprindeligt skrevet af Danimineiro:
Oprindeligt skrevet af rotrules1234:
I couldn't mod the tax, tithe, and billing system without breaking the mod itself despite my best efforts at coding by the time of this post. I wonder if the developer(s) of this mod has any plans of allowing players to change what kind of resources the empire could produce in the mod options? I would love the idea of my empire paying non-tithe taxes in different resources such as hyperweave or advanced components.

Edit 1: I would also want the option to pay settlement bills in any other item that's not silver such as chemfuel and human leather.

Sorry for the late response, I wish steam would notify me of new things here (maybe there is a way, I just dunno)

We're working on a rewrite that will be mod-able like this, it's just going rather slowly

____

Thanks for responding. I hope a new update will be released for this mod before Rimworld goes version 1.4.
< >
Viser 1-3 af 3 kommentarer
Per side: 1530 50