Progression instead of Random
This commit is contained in:
ChocoTaco 2021-12-11 11:52:12 -05:00
parent 4542aff473
commit e44b1fcdd7

View file

@ -1,3 +1,5 @@
//$Host::ClassicRotationFile = "prefs/mapRotation1.cs";
//Enable/Disable
$EnableMultipleMapRotation = 0;
@ -9,8 +11,14 @@ function multipleMapRotation()
{
if($EnableMultipleMapRotation)
{
%random = getrandom(1, $mapRotationFilesCount);
%mapRot = "prefs/mapRotation" @ %random @ ".cs";
%var = stripChars($Host::ClassicRotationFile, "prefs/mapRotation.cs");
//echo("var: " @ %var);
if(%var $= $mapRotationFilesCount)
%var = 1;
else
%var = %var + 1;
%mapRot = "prefs/mapRotation" @ %var @ ".cs";
$Host::ClassicRotationFile = %mapRot;
//Echo at start