边缘世界 RimWorld

边缘世界 RimWorld

Empire [Deprecated]
Rotrules 2022 年 5 月 21 日 上午 12: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?
< >
正在显示第 1 - 3 条,共 3 条留言
Rotrules 2022 年 5 月 21 日 下午 11: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.
最后由 Rotrules 编辑于; 2022 年 5 月 21 日 下午 11:56
Danimineiro  [开发者] 2022 年 6 月 9 日 上午 9:25 
引用自 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 2022 年 6 月 10 日 上午 9:11 
引用自 Danimineiro
引用自 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.
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50