Merge remote-tracking branch 'origin/refinement-fix' into post-wipe-merge

This commit is contained in:
2023-01-13 08:25:34 -05:00
3 changed files with 39 additions and 38 deletions
+1
View File
@@ -168,6 +168,7 @@ public class RefineMsg extends ClientNetMsg {
RefinerScreenMsg refinerScreenMsg = new RefinerScreenMsg(skillPower, npc.getSellPercent(pc)); //TODO set npc cost
dispatch = Dispatch.borrow(pc, refinerScreenMsg);
DispatchMessage.dispatchMsgDispatch(dispatch, engine.Enum.DispatchChannel.SECONDARY);
pc.recalculate();
}
}
+1 -1
View File
@@ -108,7 +108,7 @@ public class TrainMsg extends ClientNetMsg {
}
public static void train(TrainMsg msg, ClientConnection origin) throws MsgSendException {
origin.getPlayerCharacter().recalculate();
PlayerCharacter playerCharacter = SessionManager.getPlayerCharacter(origin);
Dispatch dispatch;
+1 -1
View File
@@ -1302,7 +1302,6 @@ public class PlayerCharacter extends AbstractCharacter {
this.calculateSkills();
return true;
}
public boolean refineSpi() {
boolean worked = false;
short newSpi = (short) 0;
@@ -1357,6 +1356,7 @@ public class PlayerCharacter extends AbstractCharacter {
}
}
}
return true;
}