Adding some more flags.
This commit is contained in:
parent
c74732af39
commit
fd0c5cf273
@ -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()
|
||||
|
@ -38,6 +38,9 @@ public abstract class TutorialPhase
|
||||
|
||||
final public void teleport()
|
||||
{
|
||||
if(!getTutorial().SetTutorialPositions)
|
||||
return;
|
||||
|
||||
if(_location != null && _target != null)
|
||||
{
|
||||
prepareLocations();
|
||||
|
Loading…
Reference in New Issue
Block a user