Go to the first, previous, next, last section, table of contents.

Unit Surrender

Method: units-surrender

For each completed unit, this method checks whether the unit will surrender to a nearby unfriendly unit.

Table: surrender-chance u1 u2 -> .01n%

This table is the chance that a unit of type u1 will change its side to match the side of a unit u2 that is within the surrender-range for the two types. Defaults to 0.

Table: surrender-range u1 u2 -> dist

This table is the distance out to which a unit of type u1 will surrender to a unit of type u2. Defaults to 1.


Go to the first, previous, next, last section, table of contents.