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