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 ...
|
// ... 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));
|
mplayer.msg("%s<i> owns this land and is strong enough to keep it.", oldFaction.getName(mplayer));
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
@ -216,6 +216,10 @@ public class MConf extends Entity<MConf>
|
|||||||
// Set this to false to disable territorial warfare altogether.
|
// Set this to false to disable territorial warfare altogether.
|
||||||
public boolean claimingFromOthersAllowed = true;
|
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?
|
// Is a minimum distance (measured in chunks) to other factions required?
|
||||||
// 0 means the feature is disabled.
|
// 0 means the feature is disabled.
|
||||||
// Set the feature to 10 and there must be 10 chunks of wilderness between factions.
|
// Set the feature to 10 and there must be 10 chunks of wilderness between factions.
|
||||||
|
Loading…
Reference in New Issue
Block a user