Addition of drop materials for random craft configuration.
This commit is contained in:
parent
2e993571f8
commit
2b5d9b33ad
@ -654,6 +654,14 @@ EnableAutoBuff = True
|
||||
EnableAutoItem = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Random Craft Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Drop materials for random craft.
|
||||
DropRandomCraftMaterials = False
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Developer Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
@ -590,6 +590,7 @@ public class Config
|
||||
public static boolean ENABLE_AUTO_POTION;
|
||||
public static boolean ENABLE_AUTO_BUFF;
|
||||
public static boolean ENABLE_AUTO_ITEM;
|
||||
public static boolean DROP_RANDOM_CRAFT_MATERIALS;
|
||||
|
||||
// --------------------------------------------------
|
||||
// FloodProtector Settings
|
||||
@ -2046,6 +2047,7 @@ public class Config
|
||||
ENABLE_AUTO_POTION = General.getBoolean("EnableAutoPotion", true);
|
||||
ENABLE_AUTO_BUFF = General.getBoolean("EnableAutoBuff", true);
|
||||
ENABLE_AUTO_ITEM = General.getBoolean("EnableAutoItem", true);
|
||||
DROP_RANDOM_CRAFT_MATERIALS = General.getBoolean("DropRandomCraftMaterials", true);
|
||||
|
||||
// Load FloodProtector config file
|
||||
final PropertiesParser FloodProtectors = new PropertiesParser(FLOOD_PROTECTOR_CONFIG_FILE);
|
||||
|
@ -638,6 +638,12 @@ public class NpcData implements IXmlReader
|
||||
|
||||
for (DropHolder dropHolder : dropLists)
|
||||
{
|
||||
// Drop materials for random craft configuration.
|
||||
if (!Config.DROP_RANDOM_CRAFT_MATERIALS && (dropHolder.getItemId() >= 92908) && (dropHolder.getItemId() <= 92919))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
switch (dropHolder.getDropType())
|
||||
{
|
||||
case DROP:
|
||||
|
Loading…
Reference in New Issue
Block a user