forked from MagicBane/Server
Minor class cleanup
This commit is contained in:
@@ -121,7 +121,7 @@ public enum ForgeManager implements Runnable {
|
|||||||
return rollingDuration;
|
return rollingDuration;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getAvailableSlots(WorkOrder workOrder) {
|
public static int calcAvailableSlots(WorkOrder workOrder) {
|
||||||
|
|
||||||
int availableSlots = workOrder.vendor.getRank();
|
int availableSlots = workOrder.vendor.getRank();
|
||||||
|
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
|
|||||||
workOrder.suffixToken = msg.sToken;
|
workOrder.suffixToken = msg.sToken;
|
||||||
workOrder.itemName = msg.name;
|
workOrder.itemName = msg.name;
|
||||||
workOrder.rollingDuration = ForgeManager.calcRollingDuration(workOrder);
|
workOrder.rollingDuration = ForgeManager.calcRollingDuration(workOrder);
|
||||||
workOrder.slotCount = ForgeManager.getAvailableSlots(workOrder);
|
workOrder.slotCount = ForgeManager.calcAvailableSlots(workOrder);
|
||||||
|
|
||||||
// Validate vendor can roll this item
|
// Validate vendor can roll this item
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user