Add possibility to claim land that isn't inflated
This commit is contained in:
parent
c3ab3c1bd2
commit
0e54edcaf4
@ -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);
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user