Rename and clean up MapleOxQuiz
This commit is contained in:
@@ -35,17 +35,16 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author FloppyDisk
|
* @author FloppyDisk
|
||||||
*/
|
*/
|
||||||
public final class MapleOxQuiz {
|
public final class OxQuiz {
|
||||||
private int round = 1;
|
private int round = 1;
|
||||||
private int question = 1;
|
private int question = 1;
|
||||||
private MapleMap map = null;
|
private MapleMap map = null;
|
||||||
private int expGain = 200;
|
private final int expGain = 200;
|
||||||
private static DataProvider stringData = DataProviderFactory.getDataProvider(WZFiles.ETC);
|
private static final DataProvider stringData = DataProviderFactory.getDataProvider(WZFiles.ETC);
|
||||||
|
|
||||||
public MapleOxQuiz(MapleMap map) {
|
public OxQuiz(MapleMap map) {
|
||||||
this.map = map;
|
this.map = map;
|
||||||
this.round = Randomizer.nextInt(9);
|
this.round = Randomizer.nextInt(9);
|
||||||
this.question = 1;
|
this.question = 1;
|
||||||
@@ -122,7 +122,7 @@ public class MapleMap {
|
|||||||
private float recovery = 1.0f;
|
private float recovery = 1.0f;
|
||||||
private int protectItem = 0;
|
private int protectItem = 0;
|
||||||
private boolean town;
|
private boolean town;
|
||||||
private MapleOxQuiz ox;
|
private OxQuiz ox;
|
||||||
private boolean isOxQuiz = false;
|
private boolean isOxQuiz = false;
|
||||||
private boolean dropsOn = true;
|
private boolean dropsOn = true;
|
||||||
private String onFirstUserEnter;
|
private String onFirstUserEnter;
|
||||||
@@ -3753,11 +3753,11 @@ public class MapleMap {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapleOxQuiz getOx() {
|
public OxQuiz getOx() {
|
||||||
return ox;
|
return ox;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOx(MapleOxQuiz set) {
|
public void setOx(OxQuiz set) {
|
||||||
this.ox = set;
|
this.ox = set;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3900,7 +3900,7 @@ public class MapleMap {
|
|||||||
chr.setOla(new Ola(chr));
|
chr.setOla(new Ola(chr));
|
||||||
chr.getOla().startOla();
|
chr.getOla().startOla();
|
||||||
} else if (this.mapid == 109020001 && getOx() == null) {
|
} else if (this.mapid == 109020001 && getOx() == null) {
|
||||||
setOx(new MapleOxQuiz(this));
|
setOx(new OxQuiz(this));
|
||||||
getOx().sendQuestion();
|
getOx().sendQuestion();
|
||||||
setOxQuiz(true);
|
setOxQuiz(true);
|
||||||
} else if (this.mapid == 109060000 && getSnowball(chr.getTeam()) == null) {
|
} else if (this.mapid == 109060000 && getSnowball(chr.getTeam()) == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user