forked from SteamWar/SteamWar
Add Winconditions.TIMED_DAMAGE_TECH_KO and Winconditions.RANDOM_ROTATE
This commit is contained in:
+3
-3
@@ -50,9 +50,9 @@ public class WinconditionTimeTechKO extends Wincondition implements Listener {
|
|||||||
public WinconditionTimeTechKO(){
|
public WinconditionTimeTechKO(){
|
||||||
super("TechKO");
|
super("TechKO");
|
||||||
|
|
||||||
new StateDependentListener(Winconditions.TIMED_DAMAGE_TECH_KO, FightState.Running, this);
|
new StateDependentListener(Winconditions.TIME_TECH_KO, FightState.Running, this);
|
||||||
new StateDependentTask(Winconditions.TIMED_DAMAGE_TECH_KO, FightState.Running, this::run, 20, 20);
|
new StateDependentTask(Winconditions.TIME_TECH_KO, FightState.Running, this::run, 20, 20);
|
||||||
new StateDependent(Winconditions.TIMED_DAMAGE_TECH_KO, FightState.Running) {
|
new StateDependent(Winconditions.TIME_TECH_KO, FightState.Running) {
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void enable() {
|
||||||
Fight.teams().forEach(team -> currentTime.put(team, TECH_KO_HALF_TIME));
|
Fight.teams().forEach(team -> currentTime.put(team, TECH_KO_HALF_TIME));
|
||||||
|
|||||||
+1
-1
@@ -31,8 +31,8 @@ public enum Winconditions {
|
|||||||
POINTS,
|
POINTS,
|
||||||
POINTS_AIRSHIP,
|
POINTS_AIRSHIP,
|
||||||
|
|
||||||
DAMAGE_TECH_KO,
|
|
||||||
TIMED_DAMAGE_TECH_KO,
|
TIMED_DAMAGE_TECH_KO,
|
||||||
|
TIME_TECH_KO,
|
||||||
WATER_TECH_KO,
|
WATER_TECH_KO,
|
||||||
PUMPKIN_TECH_KO,
|
PUMPKIN_TECH_KO,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user