mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Cleaned up more quest draft logic.
This commit is contained in:
@@ -127,7 +127,7 @@ public enum CSubmenuQuestDraft implements ICDoc {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String placement = QuestEventDraft.getPlacementString(draft.getPlayerPlacement());
|
String placement = draft.getPlacementString();
|
||||||
|
|
||||||
QuestEventDraft.QuestDraftPrizes prizes = draft.collectPrizes();
|
QuestEventDraft.QuestDraftPrizes prizes = draft.collectPrizes();
|
||||||
|
|
||||||
|
|||||||
@@ -627,6 +627,34 @@ public class QuestEventDraft {
|
|||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlacementString() {
|
||||||
|
|
||||||
|
int place = getPlayerPlacement();
|
||||||
|
|
||||||
|
String output;
|
||||||
|
|
||||||
|
switch (place) {
|
||||||
|
case 1:
|
||||||
|
output = "first";
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
output = "second";
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
output = "third";
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
output = "fourth";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
output = "ERROR";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return output;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean canEnter() {
|
public boolean canEnter() {
|
||||||
@@ -658,32 +686,6 @@ public class QuestEventDraft {
|
|||||||
return title;
|
return title;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getPlacementString(int place) {
|
|
||||||
|
|
||||||
String output;
|
|
||||||
|
|
||||||
switch (place) {
|
|
||||||
case 1:
|
|
||||||
output = "first";
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
output = "second";
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
output = "third";
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
output = "fourth";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
output = "ERROR";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return output;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates a random draft event based on the provided quest's limitations.
|
* Generates a random draft event based on the provided quest's limitations.
|
||||||
* Returns null in the event no draft could be created.
|
* Returns null in the event no draft could be created.
|
||||||
|
|||||||
Reference in New Issue
Block a user