Monster drops are retrieved from DropProvider (postgres db)
This commit emphasizes the need for events to be reworked. This is the chain of constructors the DropProvider has to pass through to reach MapleMap: Channel -> EventScriptManager -> EventManager -> EventInstanceManager -> MapManager -> MapleMap
This commit is contained in:
@@ -26,6 +26,7 @@ import client.inventory.InventoryType;
|
||||
import client.inventory.Item;
|
||||
import client.inventory.ItemFactory;
|
||||
import client.inventory.manipulator.InventoryManipulator;
|
||||
import database.drop.DropProvider;
|
||||
import scripting.event.EventInstanceManager;
|
||||
import scripting.event.EventManager;
|
||||
import tools.DatabaseConnection;
|
||||
@@ -42,8 +43,8 @@ import java.util.List;
|
||||
* @author Ronan
|
||||
*/
|
||||
public class Marriage extends EventInstanceManager {
|
||||
public Marriage(EventManager em, String name) {
|
||||
super(em, name);
|
||||
public Marriage(EventManager em, String name, DropProvider dropProvider) {
|
||||
super(em, name, dropProvider);
|
||||
}
|
||||
|
||||
public boolean giftItemToSpouse(int cid) {
|
||||
|
||||
Reference in New Issue
Block a user