Skip to content

Harmony patches

algernon-A edited this page Sep 30, 2020 · 11 revisions

This page is for Realistic Population Revisited version 1.4.3. Realistic Population 2 has been updated to Harmony 2 and adds some patches not yet listed here.

Realistic Population Revisited currently uses Harmony 1.2.0.1 to deploy the following patches:

BuildingAI

BuildingAI.EnsureCitizenUnits

ushort buildingID, ref Building data, int homeCount, int workCount, int visitCount, int studentCount

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and aligns building capacities with the mod's settings. The biggest single difference from the base method is that this patch also provides for reducing household counts.

CommonBuildingAI

CommonBuildingAI.HandleCrime

ushort buildingID, ref Building data, int crimeAccumulation, int citizenCount

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's crime accumultion settings.

ResidentialBuildingAI

ResidentialBuildingAI.CalculateHomeCount

ItemClass.Level level, Randomizer r, int width, int length

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's household count settings.

ResidentialBuildingAI.GetConsumptionRates

ItemClass.Level level, Randomizer r, int productionRate, out int electricityConsumption, out int waterConsumption, out int sewageAccumulation, out int garbageAccumulation, out int incomeAccumulation, out int mailAccumulation

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's consumption settings.

ResidentialBuildingAI.GetPollutionRates

ItemClass.Level level, int productionRate, DistrictPolicies.CityPlanning cityPlanningPolicies, out int groundPollution, out int noisePollution

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's pollution settings.

CommercialBuildingAI

CommercialBuildingAI.CalculateWorkplaceCount

ItemClass.Level level, Randomizer r, int width, int length, out int level0, out int level1, out int level2, out int level3

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's workplace settings.

CommercialBuildingAI.GetConsumptionRates

ItemClass.Level level, Randomizer r, int productionRate, out int electricityConsumption, out int waterConsumption, out int sewageAccumulation, out int garbageAccumulation, out int incomeAccumulation, out int mailAccumulation

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's consumption settings.

CommercialBuildingAI.GetPollutionRates

ItemClass.Level level, int productionRate, DistrictPolicies.CityPlanning cityPlanningPolicies, out int groundPollution, out int noisePollution

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's pollution settings.

CommercialBuildingAI.CalculateVisitplaceCount

ItemClass.Level level, Randomizer r, int width, int length

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's visitplace settings.

CommercialBuildingAI.CalculateProductionCapacity

ItemClass.Level level, Randomizer r, int width, int length

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's production capacity settings.

IndustrialBuildingAI

IndustrialBuildingAI.CalculateWorkplaceCount

ItemClass.Level level, Randomizer r, int width, int length, out int level0, out int level1, out int level2, out int level3

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's workplace settings.

IndustrialBuildingAI.GetPollutionRates

ItemClass.Level level, int productionRate, DistrictPolicies.CityPlanning cityPlanningPolicies, out int groundPollution, out int noisePollution

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's pollution settings.

IndustrialBuildingAI.CalculateProductionCapacity

ItemClass.Level level, Randomizer r, int width, int length

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's production capacity settings.

IndustrialExtractorAI

IndustrialExtractorAI.CalculateWorkplaceCount

ItemClass.Level level, Randomizer r, int width, int length, out int level0, out int level1, out int level2, out int level3

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's workplace settings.

IndustrialExtractorAI.GetConsumptionRates

ItemClass.Level level, Randomizer r, int productionRate, out int electricityConsumption, out int waterConsumption, out int sewageAccumulation, out int garbageAccumulation, out int incomeAccumulation, out int mailAccumulation

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's consumption settings.

IndustrialExtractorAI.GetPollutionRates

ItemClass.Level level, int productionRate, DistrictPolicies.CityPlanning cityPlanningPolicies, out int groundPollution, out int noisePollution

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's pollution settings.

IndustrialExtractorAI.CalculateProductionCapacity

ItemClass.Level level, Randomizer r, int width, int length

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's production capacity settings.

OfficeBuildingAI

OfficeBuildingAI.CalculateWorkplaceCount

ItemClass.Level level, Randomizer r, int width, int length, out int level0, out int level1, out int level2, out int level3

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's workplace settings.

OfficeBuildingAI.GetConsumptionRates

ItemClass.Level level, Randomizer r, int productionRate, out int electricityConsumption, out int waterConsumption, out int sewageAccumulation, out int garbageAccumulation, out int incomeAccumulation, out int mailAccumulation

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's consumption settings.

OfficeBuildingAI.GetPollutionRates

ItemClass.Level level, int productionRate, DistrictPolicies.CityPlanning cityPlanningPolicies, out int groundPollution, out int noisePollution

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's pollution settings.

OfficeBuildingAI.CalculateProductionCapacity

ItemClass.Level level, Randomizer r, int width, int length

This is a Prefix patch with standard priority that preempts the original method (returns false from the Prefix method).

It is always applied when the mod is running and implents the mod's production capacity settings.