forked from MagicBane/Server
Merge remote-tracking branch 'origin/refinement-fix' into post-wipe-merge
This commit is contained in:
@@ -168,6 +168,7 @@ public class RefineMsg extends ClientNetMsg {
|
|||||||
RefinerScreenMsg refinerScreenMsg = new RefinerScreenMsg(skillPower, npc.getSellPercent(pc)); //TODO set npc cost
|
RefinerScreenMsg refinerScreenMsg = new RefinerScreenMsg(skillPower, npc.getSellPercent(pc)); //TODO set npc cost
|
||||||
dispatch = Dispatch.borrow(pc, refinerScreenMsg);
|
dispatch = Dispatch.borrow(pc, refinerScreenMsg);
|
||||||
DispatchMessage.dispatchMsgDispatch(dispatch, engine.Enum.DispatchChannel.SECONDARY);
|
DispatchMessage.dispatchMsgDispatch(dispatch, engine.Enum.DispatchChannel.SECONDARY);
|
||||||
|
pc.recalculate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ public class TrainMsg extends ClientNetMsg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void train(TrainMsg msg, ClientConnection origin) throws MsgSendException {
|
public static void train(TrainMsg msg, ClientConnection origin) throws MsgSendException {
|
||||||
|
origin.getPlayerCharacter().recalculate();
|
||||||
PlayerCharacter playerCharacter = SessionManager.getPlayerCharacter(origin);
|
PlayerCharacter playerCharacter = SessionManager.getPlayerCharacter(origin);
|
||||||
Dispatch dispatch;
|
Dispatch dispatch;
|
||||||
|
|
||||||
|
|||||||
@@ -1302,7 +1302,6 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
this.calculateSkills();
|
this.calculateSkills();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean refineSpi() {
|
public boolean refineSpi() {
|
||||||
boolean worked = false;
|
boolean worked = false;
|
||||||
short newSpi = (short) 0;
|
short newSpi = (short) 0;
|
||||||
@@ -1357,6 +1356,7 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user