|
@@ -65,8 +65,8 @@ public class RecipeController
|
|
{
|
|
{
|
|
protected static final Logger _log = Logger.getLogger(RecipeController.class.getName());
|
|
protected static final Logger _log = Logger.getLogger(RecipeController.class.getName());
|
|
|
|
|
|
- private Map<Integer, L2RecipeList> _lists;
|
|
|
|
- private static final Map<Integer, RecipeItemMaker> _activeMakers = new FastMap<Integer, RecipeItemMaker>();
|
|
|
|
|
|
+ private static final Map<Integer, L2RecipeList> _lists = new FastMap<Integer, L2RecipeList>();
|
|
|
|
+ private static final Map<Integer, RecipeItemMaker> _activeMakers = new FastMap<Integer, RecipeItemMaker>().shared();
|
|
private static final String RECIPES_FILE = "recipes.xml";
|
|
private static final String RECIPES_FILE = "recipes.xml";
|
|
|
|
|
|
public static RecipeController getInstance()
|
|
public static RecipeController getInstance()
|
|
@@ -76,8 +76,6 @@ public class RecipeController
|
|
|
|
|
|
private RecipeController()
|
|
private RecipeController()
|
|
{
|
|
{
|
|
- _lists = new FastMap<Integer, L2RecipeList>();
|
|
|
|
-
|
|
|
|
try
|
|
try
|
|
{
|
|
{
|
|
loadFromXML();
|
|
loadFromXML();
|
|
@@ -138,12 +136,12 @@ public class RecipeController
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.CANT_ALTER_RECIPEBOOK_WHILE_CRAFTING));
|
|
|
|
|
|
+ player.sendPacket(SystemMessageId.CANT_ALTER_RECIPEBOOK_WHILE_CRAFTING);
|
|
}
|
|
}
|
|
|
|
|
|
public synchronized void requestMakeItemAbort(L2PcInstance player)
|
|
public synchronized void requestMakeItemAbort(L2PcInstance player)
|
|
{
|
|
{
|
|
- _activeMakers.remove(player.getObjectId()); // TODO: anything else here?
|
|
|
|
|
|
+ _activeMakers.remove(player.getObjectId()); // TODO: anything else here?
|
|
}
|
|
}
|
|
|
|
|
|
public synchronized void requestManufactureItem(L2PcInstance manufacturer, int recipeListId, L2PcInstance player)
|
|
public synchronized void requestManufactureItem(L2PcInstance manufacturer, int recipeListId, L2PcInstance player)
|
|
@@ -996,7 +994,7 @@ public class RecipeController
|
|
}
|
|
}
|
|
|
|
|
|
// Added multiplication of Creation speed with XP/SP gain
|
|
// Added multiplication of Creation speed with XP/SP gain
|
|
- // slower crafting -> more XP, faster crafting -> less XP
|
|
|
|
|
|
+ // slower crafting -> more XP, faster crafting -> less XP
|
|
// you can use ALT_GAME_CREATION_XP_RATE/SP to
|
|
// you can use ALT_GAME_CREATION_XP_RATE/SP to
|
|
// modify XP/SP gained (default = 1)
|
|
// modify XP/SP gained (default = 1)
|
|
|
|
|