forked from MagicBane/Server
create PlayerManager static class
This commit is contained in:
@@ -11,6 +11,7 @@ package engine.net.client.msg;
|
||||
|
||||
import engine.Enum.ItemType;
|
||||
import engine.exception.SerializationException;
|
||||
import engine.gameManager.PlayerManager;
|
||||
import engine.net.AbstractConnection;
|
||||
import engine.net.AbstractNetMsg;
|
||||
import engine.net.ByteBufferReader;
|
||||
@@ -100,7 +101,7 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
|
||||
man = npc.getCharItemManager();
|
||||
Contract contract = npc.getContract();
|
||||
if (player != null) {
|
||||
float barget = player.getBargain();
|
||||
float barget = PlayerManager.getBargain(player);
|
||||
float profit = npc.getSellPercent(player) - barget;
|
||||
|
||||
if (profit < 1)
|
||||
|
||||
Reference in New Issue
Block a user