NADP: Not Another Daylength Patch
Posted: 08 Jan 2011 02:36
As the title says, this is not another daylength patch, its target is the same, but with a total different approach.
In substance it is made to "fake" the date, and on this fake date will be based all year introductions and various other things.
As for now the length is fixed: 1 fake year = 4 normal years which means that every normal year is 3 fake months long.
The final version will have this configurable from 1 to 12 where 1 means 1 normal year = 1 fake month and 12 means 1 normal year = 1 fake year (12 months), the values will be 1, 2, 3, 4, 6 and 12 for ease.
This patch is made on suggestions by Alberth, so I must thank him for the idea.
I didn't change the economy, I only faked the date, all is the same as before (you can check the bank balance windows), but I'll change some strings to reflect the multiplier so:
1 = monthly running costs
2 = bimestral running costs
3 = trimestral running costs
and so on to
12 = yearly running costs
Here you can find the patch if you want to give it a try, it's not complete (the day part) and the leap year handling is missing.
Don't pay too much attention at variable names, code style etc, I wrote it at 3AM, so I wrote the first thing which come in my mind
Any help is appreciate, especially in the day handling and the leap year part, I'll made the configurable multiplier in the next version.
In substance it is made to "fake" the date, and on this fake date will be based all year introductions and various other things.
As for now the length is fixed: 1 fake year = 4 normal years which means that every normal year is 3 fake months long.
The final version will have this configurable from 1 to 12 where 1 means 1 normal year = 1 fake month and 12 means 1 normal year = 1 fake year (12 months), the values will be 1, 2, 3, 4, 6 and 12 for ease.
This patch is made on suggestions by Alberth, so I must thank him for the idea.
I didn't change the economy, I only faked the date, all is the same as before (you can check the bank balance windows), but I'll change some strings to reflect the multiplier so:
1 = monthly running costs
2 = bimestral running costs
3 = trimestral running costs
and so on to
12 = yearly running costs
Here you can find the patch if you want to give it a try, it's not complete (the day part) and the leap year handling is missing.
Don't pay too much attention at variable names, code style etc, I wrote it at 3AM, so I wrote the first thing which come in my mind

Any help is appreciate, especially in the day handling and the leap year part, I'll made the configurable multiplier in the next version.