ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Talk:TemperateOccupationBits

From ModEnc
Jump to: navigation, 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 Cc apply.png Cc apply.png Cc apply.png
1 or -2 Cc cancel.png Cc apply.png Cc apply.png
2 or -3 Cc apply.png Cc cancel.png Cc apply.png
3 or -4 Cc cancel.png Cc cancel.png Cc apply.png
4 or -5 Cc apply.png Cc apply.png Cc cancel.png
5 or -6 Cc cancel.png Cc apply.png Cc cancel.png
6 or -7 Cc apply.png Cc cancel.png Cc cancel.png
7 or -8 Cc cancel.png Cc cancel.png Cc cancel.png
>7 Cc cancel.png Cc cancel.png Cc cancel.png