[Warning: math and useless rambling inside]
First of all, what I am writing here might have already been discovered and this post would be an useless piece of junk. I hope this is not the case.
So, I was tinkering with HoI2, TACs and enemy IC. What could come out of this? Why, an inane amount of calc, of course. Specifically, I wanted to calculate the cost effectiveness of bombers\V1\V2\V∞whatever when they bomb a province's IC.
Well, easy enough. Just take the IC*Days of your bombers\V1\V2V∞whatever and the IC*Days of... um, something else.
We have a province with 10 total IC, gets bombed to 8. First day the IC repairs to 8.50, then 9.00, then 9.50 and finally 10.00. How much IC has been "wasted"? The long calc is: (10-8.50)+(10-9.00)+(10-9.50) = 3 IC*Days wasted. Basically the summation
for each day the DamagedIC is inferior to the TotalIC.
Fine enough, case closed? Naeh. This result would require me to take note of every bombed province's IC every day. Too much information I feel I could narrow down to a few fundamental factors, operating in a formula that could tell me, given these factors, at what rate the IC and Infra would repair every day - I wouldn't need to write down the IC and Infra anymore every day.
Such factors are:
MaxIC - the Maximum IC of a Province
MaxInfra - the Maximum Infrastructure of a Province
DmgIC - the Damaged IC of a Province (only when it gets bombed, not repaired)
DmgInfra - the Damaged Infrastructure of a Province (same as above)
After some long testing, I have found out that IC gets repaired following this formula:
Where K is a constant that I think is equal to 0.00325. Only the MaxIC and Infra count, no terrain, climate, maxinfra, province name coolness or other factors influence the repair modifier of IC.
So, a province with 14 MaxIC at 100 Infra will repair its IC by:
0.00325 * 14 + 0.00325 * 100 = 0.0425 + 0.325 = 0.3675
in one day. As you can see, infrastructure plays a heavy role in IC repairing.
A new big problem arises. Infrastructure.
Infra repairs over time too, and I have only managed to determine the factors that influence Infra repair:
- MaxInfra
- DmgInfra (CurrentInfra, whatever)
- ΔInfra (MaxInfra - DmgInfra)
The way these factors interact, however, is unknown to me. Given a Province with MaxInfra = 100 and DmgInfra = 0, the infra takes 75 days to fully repair, starting with a variation of 0.35 levels of infra and ending with a variation of 3.5 levels of infra. It might look like a linear function - the final variation is 10 times the first one, but it is not - it resembles more the shape of an exponential function.
The behaviour of the ΔInfra factor seems to be known, instead. Given a province with MaxInfra = 100 and DmgInfra = 50, infra will repair by 2.00 in one day; given a province with MaxInfra = 80 and DmgInfra = 50, infra will repair by 1.60 in one day.
MaxInfra = 100
DmgInfra = 50
ΔInfra(1) = 50
InfraRepair(1) = 2.00
MaxInfra = 80
DmgInfra = 50
ΔInfra(2) = 30
InfraRepair(2) = 1.60
There is a direct proportion between InfraRepair and ΔInfra. InfraRepair grows\shrinks\varies at half the rate of ΔInfra. In the aforementioned case, ΔInfra(2) is 60% of ΔInfra(1), while InfraRepair(2) is 80% of InfraRepair(1). Coincidence? Further testing reveals it is not, but this is far from revealing me anything concrete.
I'm stuck, and I am stuttering - my English sucks today. I'll leave you with an Excel sheet with some formulas and graphs, hoping that this post's abysmal usefulness might benefit from it just a bit.
First of all, what I am writing here might have already been discovered and this post would be an useless piece of junk. I hope this is not the case.
So, I was tinkering with HoI2, TACs and enemy IC. What could come out of this? Why, an inane amount of calc, of course. Specifically, I wanted to calculate the cost effectiveness of bombers\V1\V2\V∞whatever when they bomb a province's IC.
Well, easy enough. Just take the IC*Days of your bombers\V1\V2V∞whatever and the IC*Days of... um, something else.
We have a province with 10 total IC, gets bombed to 8. First day the IC repairs to 8.50, then 9.00, then 9.50 and finally 10.00. How much IC has been "wasted"? The long calc is: (10-8.50)+(10-9.00)+(10-9.50) = 3 IC*Days wasted. Basically the summation
∑ (TotalIC-DamagedIC)
for each day the DamagedIC is inferior to the TotalIC.
Fine enough, case closed? Naeh. This result would require me to take note of every bombed province's IC every day. Too much information I feel I could narrow down to a few fundamental factors, operating in a formula that could tell me, given these factors, at what rate the IC and Infra would repair every day - I wouldn't need to write down the IC and Infra anymore every day.
Such factors are:
MaxIC - the Maximum IC of a Province
MaxInfra - the Maximum Infrastructure of a Province
DmgIC - the Damaged IC of a Province (only when it gets bombed, not repaired)
DmgInfra - the Damaged Infrastructure of a Province (same as above)
After some long testing, I have found out that IC gets repaired following this formula:
RepairModifier = K * MaxIC + K * Infra
Where K is a constant that I think is equal to 0.00325. Only the MaxIC and Infra count, no terrain, climate, maxinfra, province name coolness or other factors influence the repair modifier of IC.
So, a province with 14 MaxIC at 100 Infra will repair its IC by:
0.00325 * 14 + 0.00325 * 100 = 0.0425 + 0.325 = 0.3675
in one day. As you can see, infrastructure plays a heavy role in IC repairing.
A new big problem arises. Infrastructure.
Infra repairs over time too, and I have only managed to determine the factors that influence Infra repair:
- MaxInfra
- DmgInfra (CurrentInfra, whatever)
- ΔInfra (MaxInfra - DmgInfra)
The way these factors interact, however, is unknown to me. Given a Province with MaxInfra = 100 and DmgInfra = 0, the infra takes 75 days to fully repair, starting with a variation of 0.35 levels of infra and ending with a variation of 3.5 levels of infra. It might look like a linear function - the final variation is 10 times the first one, but it is not - it resembles more the shape of an exponential function.
The behaviour of the ΔInfra factor seems to be known, instead. Given a province with MaxInfra = 100 and DmgInfra = 50, infra will repair by 2.00 in one day; given a province with MaxInfra = 80 and DmgInfra = 50, infra will repair by 1.60 in one day.
MaxInfra = 100
DmgInfra = 50
ΔInfra(1) = 50
InfraRepair(1) = 2.00
MaxInfra = 80
DmgInfra = 50
ΔInfra(2) = 30
InfraRepair(2) = 1.60
There is a direct proportion between InfraRepair and ΔInfra. InfraRepair grows\shrinks\varies at half the rate of ΔInfra. In the aforementioned case, ΔInfra(2) is 60% of ΔInfra(1), while InfraRepair(2) is 80% of InfraRepair(1). Coincidence? Further testing reveals it is not, but this is far from revealing me anything concrete.
I'm stuck, and I am stuttering - my English sucks today. I'll leave you with an Excel sheet with some formulas and graphs, hoping that this post's abysmal usefulness might benefit from it just a bit.