Adding some more flags.

This commit is contained in:
Sarah 2015-11-27 20:47:57 +01:00
parent c74732af39
commit fd0c5cf273
2 changed files with 9 additions and 3 deletions

View File

@ -27,8 +27,11 @@ public abstract class GameTutorial
private boolean _hasStarted;
private int _tick;
public boolean SetTutorialPositions = true;
public boolean TeleportOnEnd = true;
public long StartAfterTutorial = 5000;
public GameTutorial(ArcadeManager manager, TutorialPhase[] phases)
{
@ -96,8 +99,8 @@ public abstract class GameTutorial
if(TeleportOnEnd)
_team.SpawnTeleport();
}
Manager.GetChat().Silence(5000, false);
Manager.GetGame().PrepareTime = (System.currentTimeMillis() - Manager.GetGame().GetStateTime()) + 5000;
Manager.GetChat().Silence(StartAfterTutorial, false);
Manager.GetGame().PrepareTime = (System.currentTimeMillis() - Manager.GetGame().GetStateTime()) + StartAfterTutorial;
}
protected TutorialPhase getNextPhase()

View File

@ -38,6 +38,9 @@ public abstract class TutorialPhase
final public void teleport()
{
if(!getTutorial().SetTutorialPositions)
return;
if(_location != null && _target != null)
{
prepareLocations();