|
|
|
@ -275,14 +275,10 @@ public enum ForgeManager implements Runnable {
@@ -275,14 +275,10 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
else |
|
|
|
|
forgedItem.suffixToken = workOrder.suffixToken; |
|
|
|
|
|
|
|
|
|
// Apple effects
|
|
|
|
|
/* |
|
|
|
|
if (forgedItem.prefixToken != 0) |
|
|
|
|
ItemManager.applyPrefixOrSuffix(forgedItem, forgedItem.prefixToken); |
|
|
|
|
// Apply Item effects for Prefix and Suffix tokens
|
|
|
|
|
|
|
|
|
|
applyItemEffects(forgedItem); |
|
|
|
|
|
|
|
|
|
if (forgedItem.suffixToken != 0) |
|
|
|
|
ItemManager.applyPrefixOrSuffix(forgedItem, forgedItem.prefixToken); |
|
|
|
|
*/ |
|
|
|
|
// Forged random rolled items are unidentified until completed
|
|
|
|
|
|
|
|
|
|
if (workOrder.prefixToken == 0 && workOrder.suffixToken == 0) |
|
|
|
@ -291,6 +287,24 @@ public enum ForgeManager implements Runnable {
@@ -291,6 +287,24 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
return forgedItem; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static void applyItemEffects(Item forgedItem) { |
|
|
|
|
|
|
|
|
|
String prefixString; |
|
|
|
|
String suffixString; |
|
|
|
|
|
|
|
|
|
EffectsBase prefix = PowersManager.getEffectByToken(forgedItem.prefixToken); |
|
|
|
|
EffectsBase prefixEffect = PowersManager.getEffectByIDString(prefix.getIDString() + 'A'); |
|
|
|
|
|
|
|
|
|
EffectsBase suffix = PowersManager.getEffectByToken(forgedItem.suffixToken); |
|
|
|
|
EffectsBase suffixEffect = PowersManager.getEffectByIDString(suffix.getIDString() + 'A'); |
|
|
|
|
|
|
|
|
|
if (forgedItem.prefixToken != 0) |
|
|
|
|
// ItemManager.applyPrefixOrSuffix(forgedItem, prefixEffect.ac);
|
|
|
|
|
|
|
|
|
|
if (forgedItem.suffixToken != 0) |
|
|
|
|
// ItemManager.applyPrefixOrSuffix(forgedItem, suffixEffect);
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void completeWorkOrderBatch(WorkOrder workOrder) { |
|
|
|
|
|
|
|
|
|
ArrayList<Item> toRemove = new ArrayList<>(); |
|
|
|
|