|
|
@ -11,6 +11,7 @@ package engine.loot; |
|
|
|
import engine.mbEnums; |
|
|
|
import engine.mbEnums; |
|
|
|
import engine.objects.Item; |
|
|
|
import engine.objects.Item; |
|
|
|
import engine.objects.NPC; |
|
|
|
import engine.objects.NPC; |
|
|
|
|
|
|
|
import org.json.JSONArray; |
|
|
|
import org.json.JSONObject; |
|
|
|
import org.json.JSONObject; |
|
|
|
|
|
|
|
|
|
|
|
import java.time.Duration; |
|
|
|
import java.time.Duration; |
|
|
@ -79,6 +80,15 @@ public class WorkOrder implements Delayed { |
|
|
|
int value = productionTotalCostMap.getInt(key); |
|
|
|
int value = productionTotalCostMap.getInt(key); |
|
|
|
this.production_cost_total.put(resourceType, value); |
|
|
|
this.production_cost_total.put(resourceType, value); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Reconstruct cooking items
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JSONArray tokenList = jsonWorkOrder.getJSONArray("cookingTokens"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (Object o : tokenList) { |
|
|
|
|
|
|
|
int prefix = tokenList.getInt(0); |
|
|
|
|
|
|
|
int suffix = tokenList.getInt(1); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static JSONObject toJson(WorkOrder workOrder) { |
|
|
|
public static JSONObject toJson(WorkOrder workOrder) { |
|
|
|