Some Premium system refactoring.
This commit is contained in:
16
trunk/dist/game/config/Custom.properties
vendored
16
trunk/dist/game/config/Custom.properties
vendored
@@ -682,7 +682,7 @@ BalancePlayerExceedLimit = 20
|
||||
|
||||
# Enable premium system.
|
||||
# Default: False
|
||||
EnablePremiumSystem = True
|
||||
EnablePremiumSystem = False
|
||||
|
||||
# Xp rate for premium players.
|
||||
PremiumRateXp = 2
|
||||
@@ -704,18 +704,8 @@ PremiumRateSpoilAmount = 2
|
||||
|
||||
# List of items affected by custom drop rate by id, used now for Adena rate too.
|
||||
# Usage: itemId1,multiplier1;itemId2,multiplier2;...
|
||||
PremiumRateDropChanceByItemId = 57,2
|
||||
PremiumRateDropAmountByItemId = 57,2
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Anti feed inside Battalion zone
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Delay time when killing the same person multiple times (calculated in seconds).
|
||||
# Example: 30
|
||||
# 0 for no delay (disable)
|
||||
BTZDelay = 10
|
||||
PremiumDropChanceMultiplierByItemId = 57,1
|
||||
PremiumDropAmountMultiplierByItemId = 57,2
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
@@ -322,7 +322,7 @@ public class NpcViewMod implements IBypassHandler
|
||||
sb.append(item.getName());
|
||||
sb.append("</font></td></tr><tr><td width=32></td><td width=259><table width=253 cellpadding=0 cellspacing=0>");
|
||||
sb.append("<tr><td width=48 align=right valign=top><font color=\"LEVEL\">Amount:</font></td><td width=205 align=center>");
|
||||
MinMax minMax = getPreciseMinMax(normalized.getChance(), generalDropItem.getMin(npc, activeChar), generalDropItem.getMax(npc, activeChar), generalDropItem.isPreciseCalculated());
|
||||
MinMax minMax = getPreciseMinMax(normalized.getChance(), generalDropItem.getMin(npc, null), generalDropItem.getMax(npc, null), generalDropItem.isPreciseCalculated());
|
||||
final long min = minMax.min;
|
||||
final long max = minMax.max;
|
||||
if (min == max)
|
||||
@@ -401,7 +401,7 @@ public class NpcViewMod implements IBypassHandler
|
||||
sb.append("</font></td></tr><tr><td width=32></td><td width=300><table width=295 cellpadding=0 cellspacing=0>");
|
||||
sb.append("<tr><td width=48 align=right valign=top><font color=\"LEVEL\">Amount:</font></td>");
|
||||
sb.append("<td width=247 align=center>");
|
||||
MinMax minMax = getPreciseMinMax(dropItem.getChance(npc, activeChar), dropItem.getMin(npc, activeChar), dropItem.getMax(npc, activeChar), dropItem.isPreciseCalculated());
|
||||
MinMax minMax = getPreciseMinMax(dropItem.getChance(npc, activeChar), dropItem.getMin(npc, null), dropItem.getMax(npc, null), dropItem.isPreciseCalculated());
|
||||
|
||||
final long min = minMax.min;
|
||||
final long max = minMax.max;
|
||||
|
Reference in New Issue
Block a user