Add option for over claim reward from #498.

This commit is contained in:
drtshock 2015-09-08 12:04:20 -05:00
parent 11757be50d
commit d916e97d0d
3 changed files with 9 additions and 0 deletions

View File

@ -234,6 +234,7 @@ public class Conf {
public static String econUniverseAccount = "";
public static double econCostClaimWilderness = 30.0;
public static double econCostClaimFromFactionBonus = 30.0;
public static double econOverclaimRewardMultiplier = 0.0;
public static double econClaimAdditionalMultiplier = 0.5;
public static double econClaimRefundMultiplier = 0.7;
public static double econClaimUnconnectedFee = 0.0;

View File

@ -789,6 +789,12 @@ public abstract class MemoryFPlayer implements FPlayer {
return false;
}
// Was an over claim
if(currentFaction.isNormal() && currentFaction.hasLandInflation()) {
// Give them money for over claiming.
Econ.modifyMoney(payee, Conf.econOverclaimRewardMultiplier, TL.CLAIM_TOOVERCLAIM.toString(), TL.CLAIM_FOROVERCLAIM.toString());
}
// announce success
Set<FPlayer> informTheseFPlayers = new HashSet<FPlayer>();
informTheseFPlayers.add(this);

View File

@ -554,6 +554,8 @@ public enum TL {
CLAIM_BORDER("<b>You must start claiming land at the border of the territory."),
CLAIM_TOCLAIM("to claim this land"),
CLAIM_FORCLAIM("for claiming this land"),
CLAIM_TOOVERCLAIM("to overclaim this land"),
CLAIM_FOROVERCLAIM("for over claiming this land"),
CLAIM_CLAIMED("<h>%s<i> claimed land for <h>%s<i> from <h>%s<i>."),
CLAIM_CLAIMEDLOG("%s claimed land at (%s) for the faction: %s"),
CLAIM_OVERCLAIM_DISABLED("<i>Over claiming is disabled on this server."),