SteamWar/FightSystem
Archiviert
13
1

can we pls do dmg?
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Zeanon 2022-01-14 17:11:25 +01:00
Ursprung 9fee882663
Commit 47665f9613

Datei anzeigen

@ -46,6 +46,7 @@ public class Meteor implements Listener {
@EventHandler
public void explode(ProjectileHitEvent event) {
if (event.getEntity() instanceof Fireball) {
System.out.println("explode");
event.getEntity().getWorld().createExplosion(event.getEntity().getLocation(), current.explosionSize);
}
}
@ -130,11 +131,11 @@ public class Meteor implements Listener {
private enum State {
PRE(60, 80, 1, 0),
FIRST(40, 60, 3, 1),
SECOND(30, 40, 4, 2),
THIRD(20, 30, 4, 3),
FOURTH(10, 20, 5, 4),
LAST(5, 10, 0, 5);
FIRST(40, 60, 3, 4),
SECOND(30, 40, 4, 8),
THIRD(20, 30, 4, 12),
FOURTH(10, 20, 5, 16),
LAST(5, 10, 0, 20);
State(int minTime, int maxTime, int switchAfter, int explosionSize) {