Resolved [Settlement Building Bug] The tax increase from the Toll Collector building in castles does not work.

Users who are viewing this thread

Summary: For castles there is a building called "Toll Collector" that is supposed to boost the settlement's tax income by 10% per level, however it does not provide any boost at any level. The does building appear to be properly initialized in the DefaultBuildingTypes class (except it is initialized as "_buildingCastleLimeKilns" rather than "_buildingCastleTollCollector"). However, in the CalculateDailyTaxInternal method of the DefaultSettlementTaxModel class, there is an if statement that checks whether or not the settlement is a town and applies the building effects to towns, but there is not a separate check for castles, and thus the tax boost is never applied. A separate if statement is probably needed so the governor perks do not improperly affect castles.

Media:

Toll Collector is initialized and registered as CastleLimeKilns (there are some typos as well):

building-Castle-Toll-Collector.png


If statement checks to see if the setllement is a town, but not castle:

Calculate-Daily-Tax-Internal.png


The building shows up in the castle management UI screen and is constructable:

Toll-Collector-Manage-Castle.png


Version: 1.5.1
 
I have been informed that this issue is fixed on our development branch and the fix will be implemented with the upcoming patches. Thanks for reporting!
 
Back
Top Bottom