mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
The sphere now flashes blue when the timer starts
This commit is contained in:
parent
b28f115784
commit
b64e837535
@ -44,6 +44,7 @@ public class BattleBanzaiGame extends Game {
|
|||||||
private final THashMap<Integer, HabboItem> gameTiles;
|
private final THashMap<Integer, HabboItem> gameTiles;
|
||||||
private int tileCount;
|
private int tileCount;
|
||||||
private int countDown;
|
private int countDown;
|
||||||
|
private int countDown2;
|
||||||
|
|
||||||
public BattleBanzaiGame(Room room) {
|
public BattleBanzaiGame(Room room) {
|
||||||
super(BattleBanzaiGameTeam.class, BattleBanzaiGamePlayer.class, room, true);
|
super(BattleBanzaiGameTeam.class, BattleBanzaiGamePlayer.class, room, true);
|
||||||
@ -58,8 +59,12 @@ public class BattleBanzaiGame extends Game {
|
|||||||
public void initialise() {
|
public void initialise() {
|
||||||
if (!this.state.equals(GameState.IDLE))
|
if (!this.state.equals(GameState.IDLE))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* The first countdown is activated for the first two seconds emitting only the blue light (second interaction),
|
||||||
|
the second, after another two seconds, completely activates the sphere (third interaction).
|
||||||
|
*/
|
||||||
this.countDown = 3;
|
this.countDown = 3;
|
||||||
|
this.countDown2 = 2;
|
||||||
|
|
||||||
this.resetMap();
|
this.resetMap();
|
||||||
|
|
||||||
@ -105,8 +110,15 @@ public class BattleBanzaiGame extends Game {
|
|||||||
|
|
||||||
if (this.countDown == 0) {
|
if (this.countDown == 0) {
|
||||||
for (HabboItem item : this.room.getRoomSpecialTypes().getItemsOfType(InteractionBattleBanzaiSphere.class)) {
|
for (HabboItem item : this.room.getRoomSpecialTypes().getItemsOfType(InteractionBattleBanzaiSphere.class)) {
|
||||||
item.setExtradata("2");
|
item.setExtradata("1");
|
||||||
this.room.updateItemState(item);
|
this.room.updateItemState(item);
|
||||||
|
if(this.countDown2 > 0) {
|
||||||
|
this.countDown2--;
|
||||||
|
if(this.countDown2 == 0) {
|
||||||
|
item.setExtradata("2");
|
||||||
|
this.room.updateItemState(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user