ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Talk:TemperateOccupationBits
Jump to navigation
Jump to search
Geeky note regarding the possible values for this flag: It seems based on the description that this technically means "which corners are already occupied by terrain and cannot be used by infantry" and functions as a bitmask: 0th bit (with value 1) describes the east corner, the 1st bit (value 2) - west, the 2nd bit (value 4) - south. Add up those values for the already-used corners, and you have your final value. That matches the behaviour of negative values and larger positive values, too. End geeky note.
Less geekily, this representation might make it more readable:
Value | Infantry can occupy ... | ||
---|---|---|---|
East corner | West corner | South corner | |
0 or -1 | |||
1 or -2 | |||
2 or -3 | |||
3 or -4 | |||
4 or -5 | |||
5 or -6 | |||
6 or -7 | |||
7 or -8 | |||
>7 |