RimWorld

RimWorld

Empire
Rotrules 21 May, 2022 @ 12:26am
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?
< >
Showing 1-3 of 3 comments
Rotrules 21 May, 2022 @ 11:52pm 
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.
Last edited by Rotrules; 21 May, 2022 @ 11:56pm
Danimineiro  [developer] 9 Jun, 2022 @ 9:25am 
Originally posted by 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 Jun, 2022 @ 9:11am 
Originally posted by Danimineiro:
Originally posted by 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.
< >
Showing 1-3 of 3 comments
Per page: 1530 50