Then you only use the first value (iYear1). Since the other value (iYear2) will be invalid (None) the setYear() method creates a one year interval. (Year2 = Year1).
The actual check is performed by this equation:
The actual check is performed by this equation:
This took me like ages to figure out, since I'm mathematically challenged. But it works with dynamically changing game year intervals - as on Normal speed. I can't see how it wouldn't work with any other year intervals also.CyGame.getTurnYear(iGameTurn+1) > Year1 and CyGame.getGameTurnYear() <= Year2