Add possibility to claim land that isn't inflated

This commit is contained in:
Magnus Ulf 2021-03-03 21:27:18 +01:00
parent c3ab3c1bd2
commit 0e54edcaf4
2 changed files with 5 additions and 1 deletions

View File

@ -262,7 +262,7 @@ public class EngineChunkChange extends Engine
}
// ... the old faction might not be inflated enough ...
if (oldFaction.getPowerRounded() > oldFaction.getLandCount() - oldChunks.size())
if (oldFaction.getPowerRounded() > oldFaction.getLandCount() - oldChunks.size() && MConf.get().claimingFromOthersMustBeInflated)
{
mplayer.msg("%s<i> owns this land and is strong enough to keep it.", oldFaction.getName(mplayer));
event.setCancelled(true);

View File

@ -215,6 +215,10 @@ public class MConf extends Entity<MConf>
// Is claiming from other factions even allowed?
// Set this to false to disable territorial warfare altogether.
public boolean claimingFromOthersAllowed = true;
// Is it required for factions to have an inflated land/power ratio in order to have their land conquered by another faction?
// Set this to false to allow factions to invade each other without requiring them to have an inflated land/power ratio..
public boolean claimingFromOthersMustBeInflated = true;
// Is a minimum distance (measured in chunks) to other factions required?
// 0 means the feature is disabled.