Fix plot rating & mega plots + fix plot expiry analysis

This commit is contained in:
boy0001
2015-08-13 22:49:16 +10:00
parent 8040e13919
commit b7fe6ea749
5 changed files with 44 additions and 6 deletions

View File

@ -285,6 +285,17 @@ public class Plot {
return settings;
}
/**
* Returns true if the plot is not merged, or it is the base plot of multiple merged plots
* @return
*/
public boolean isBasePlot() {
if (settings == null) {
return true;
}
return !settings.getMerged(0) && !settings.getMerged(3);
}
public boolean isMerged() {
if (settings == null) {
return false;

View File

@ -4,6 +4,7 @@ import java.io.IOException;
import java.lang.reflect.Array;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
@ -57,6 +58,10 @@ public class PlotAnalysis {
return null;
}
public List<Integer> asList() {
return Arrays.asList(changes, faces, data, air, variety, changes_sd, faces_sd, data_sd, air_sd, variety_sd);
}
public int getComplexity() {
if (complexity != 0) {
return complexity;