Show truce factions on map. Adds showTruceFactionsOnMap to conf.json

This commit is contained in:
Trent Hensler 2019-04-03 19:37:00 -07:00
parent 43cf430e0e
commit f8386f9969
2 changed files with 3 additions and 1 deletions

View File

@ -60,6 +60,7 @@ public class Conf {
public static boolean showMapFactionKey = true;
public static boolean showNeutralFactionsOnMap = true;
public static boolean showEnemyFactionsOnMap = true;
public static boolean showTruceFactionsOnMap = true;
// Disallow joining/leaving/kicking while power is negative
public static boolean canLeaveWithNegativePower = true;

View File

@ -304,7 +304,8 @@ public abstract class MemoryBoard extends Board {
row.then("+").color(Conf.colorWar);
} else if (factionHere == faction || factionHere == factionLoc || relation.isAtLeast(Relation.ALLY) ||
(Conf.showNeutralFactionsOnMap && relation.equals(Relation.NEUTRAL)) ||
(Conf.showEnemyFactionsOnMap && relation.equals(Relation.ENEMY))) {
(Conf.showEnemyFactionsOnMap && relation.equals(Relation.ENEMY)) ||
Conf.showTruceFactionsOnMap && relation.equals(Relation.TRUCE)) {
if (!fList.containsKey(factionHere.getTag())) {
fList.put(factionHere.getTag(), Conf.mapKeyChrs[Math.min(chrIdx++, Conf.mapKeyChrs.length - 1)]);
}