mirror of
https://github.com/MassiveCraft/Factions.git
synced 2025-02-22 06:41:23 +01:00
Show truce factions on map. Adds showTruceFactionsOnMap to conf.json
This commit is contained in:
parent
43cf430e0e
commit
f8386f9969
@ -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;
|
||||
|
@ -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)]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user