|
|
@ -12,8 +12,8 @@ package engine.db.handlers; |
|
|
|
import engine.Enum; |
|
|
|
import engine.Enum; |
|
|
|
import engine.gameManager.DbManager; |
|
|
|
import engine.gameManager.DbManager; |
|
|
|
import engine.objects.Contract; |
|
|
|
import engine.objects.Contract; |
|
|
|
import engine.objects.ItemTemplate; |
|
|
|
|
|
|
|
import engine.objects.Item; |
|
|
|
import engine.objects.Item; |
|
|
|
|
|
|
|
import engine.objects.MobLoot; |
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
|
|
|
|
|
|
|
|
import java.sql.Connection; |
|
|
|
import java.sql.Connection; |
|
|
@ -65,8 +65,9 @@ public class dbContractHandler extends dbHandlerBase { |
|
|
|
|
|
|
|
|
|
|
|
int templateID = rs.getInt("itembaseID"); |
|
|
|
int templateID = rs.getInt("itembaseID"); |
|
|
|
|
|
|
|
|
|
|
|
Item me = new Item(templateID); |
|
|
|
Item item = new Item(templateID); |
|
|
|
contract.getSellInventory().add(me); |
|
|
|
item.objectUUID = MobLoot.lastNegativeID.decrementAndGet(); |
|
|
|
|
|
|
|
contract.getSellInventory().add(item); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} catch (SQLException e) { |
|
|
|
} catch (SQLException e) { |
|
|
|