Configurable event item drop level range between character and monster.

Contributed by CostyKiller.
This commit is contained in:
MobiusDevelopment
2021-11-22 14:20:23 +00:00
parent 542c7d0b05
commit c4e35819c9
69 changed files with 184 additions and 46 deletions
+4
View File
@@ -143,6 +143,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -721,6 +721,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2313,6 +2314,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
@@ -143,6 +143,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -731,6 +731,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2336,6 +2337,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
+4
View File
@@ -146,6 +146,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -732,6 +732,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2350,6 +2351,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
@@ -146,6 +146,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -719,6 +719,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2330,6 +2331,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
+4
View File
@@ -146,6 +146,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -718,6 +718,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2339,6 +2340,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
+4
View File
@@ -146,6 +146,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -718,6 +718,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2346,6 +2347,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
+4
View File
@@ -146,6 +146,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -719,6 +719,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2385,6 +2386,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
@@ -146,6 +146,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -725,6 +725,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2401,6 +2402,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
+4
View File
@@ -146,6 +146,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -723,6 +723,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2397,6 +2398,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
@@ -146,6 +146,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -723,6 +723,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2433,6 +2434,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
@@ -146,6 +146,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -723,6 +723,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2433,6 +2434,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
+4
View File
@@ -131,6 +131,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -815,6 +815,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2413,6 +2414,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
+4
View File
@@ -132,6 +132,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -820,6 +820,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2418,6 +2419,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
@@ -143,6 +143,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -738,6 +738,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2280,6 +2281,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
@@ -143,6 +143,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -738,6 +738,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2284,6 +2285,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
@@ -143,6 +143,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -738,6 +738,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2284,6 +2285,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
@@ -143,6 +143,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -738,6 +738,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2284,6 +2285,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
@@ -143,6 +143,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -738,6 +738,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2293,6 +2294,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
@@ -143,6 +143,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -743,6 +743,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2338,6 +2339,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
@@ -143,6 +143,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -745,6 +745,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static float RATE_KARMA_LOST;
public static float RATE_KARMA_EXP_LOST;
public static float RATE_SIEGE_GUARDS_PRICE;
@@ -2295,6 +2296,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
// Load PvP config file (if exists)
final PropertiesParser pvpConfig = new PropertiesParser(PVP_CONFIG_FILE);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
@@ -143,6 +143,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -747,6 +747,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static double BLESSING_CHANCE;
public static boolean LCOIN_DROP_ENABLED;
public static double LCOIN_DROP_CHANCE;
@@ -2381,6 +2382,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
BLESSING_CHANCE = ratesConfig.getDouble("BlessingChance", 15.0);
LCOIN_DROP_ENABLED = ratesConfig.getBoolean("LCoinDropEnable", false);
LCOIN_DROP_CHANCE = ratesConfig.getDouble("LCoinDropChance", 15.0);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
@@ -143,6 +143,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -747,6 +747,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static double BLESSING_CHANCE;
public static boolean LCOIN_DROP_ENABLED;
public static double LCOIN_DROP_CHANCE;
@@ -2386,6 +2387,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
BLESSING_CHANCE = ratesConfig.getDouble("BlessingChance", 15.0);
LCOIN_DROP_ENABLED = ratesConfig.getBoolean("LCoinDropEnable", false);
LCOIN_DROP_CHANCE = ratesConfig.getDouble("LCoinDropChance", 15.0);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}
@@ -143,6 +143,10 @@ DropItemMaxLevelDifference = 10
# Default: 10
DropItemMinLevelGapChance = 10
# Allow event items drop within custom level range between character and monster.
# Default: 9
EventItemMaxLevelDifference = 9
# ---------------------------------------------------------------------------
# Vitality system rates. Works only if EnableVitality = True
@@ -747,6 +747,7 @@ public class Config
public static int DROP_ITEM_MIN_LEVEL_DIFFERENCE;
public static int DROP_ITEM_MAX_LEVEL_DIFFERENCE;
public static double DROP_ITEM_MIN_LEVEL_GAP_CHANCE;
public static int EVENT_ITEM_MAX_LEVEL_DIFFERENCE;
public static double BLESSING_CHANCE;
public static boolean LCOIN_DROP_ENABLED;
public static double LCOIN_DROP_CHANCE;
@@ -2386,6 +2387,7 @@ public class Config
DROP_ITEM_MIN_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMinLevelDifference", 5);
DROP_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("DropItemMaxLevelDifference", 10);
DROP_ITEM_MIN_LEVEL_GAP_CHANCE = ratesConfig.getDouble("DropItemMinLevelGapChance", 10);
EVENT_ITEM_MAX_LEVEL_DIFFERENCE = ratesConfig.getInt("EventItemMaxLevelDifference", 9);
BLESSING_CHANCE = ratesConfig.getDouble("BlessingChance", 15.0);
LCOIN_DROP_ENABLED = ratesConfig.getBoolean("LCoinDropEnable", false);
LCOIN_DROP_CHANCE = ratesConfig.getDouble("LCoinDropChance", 15.0);
@@ -58,9 +58,9 @@ public class EventDropManager
return;
}
// Event items drop only within a 9 level difference.
// Event items drop only within a default 9 level difference.
final Player player = attacker.getActingPlayer();
if ((player.getLevel() - attackable.getLevel()) > 9)
if ((player.getLevel() - attackable.getLevel()) > Config.EVENT_ITEM_MAX_LEVEL_DIFFERENCE)
{
return;
}