You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Simple Teamcolors will be force enabled when the teams sizes grow
above available palette of colors
- Added a modoption to force enable or force disable this behaviour
regardless of team sizes
then-- And this team number exists in the color set
491
497
ifnotteamColors[allyTeamCount][teamSizes[allyTeamID][1]][teamSizes[allyTeamID][2]] then-- If we have no color for this player anymore
498
+
ifSpring.GetModOptions().teamcolors_forcesimple=="bigteamsonly" then
499
+
Spring.SetGameRulesParam("ForcedSimpleColors", 1)
500
+
end
492
501
teamSizes[allyTeamID][2] =1-- Starting from the first color again..
493
502
teamSizes[allyTeamID][3] =teamSizes[allyTeamID][3] +colorVariationDelta-- ..but adding random color variations with increasing amplitude with every cycle
494
503
end
@@ -545,6 +554,7 @@ else -- UNSYNCED
545
554
localmyPlayerID=Spring.GetLocalPlayerID()
546
555
localmySpecState=Spring.GetSpectatingState()
547
556
localteamColorsTable= {}
557
+
ForcedSimpleColors=Spring.GetModOptions().teamcolors_forcesimple=="alwaysenabled" or (Spring.GetGameRulesParam("ForcedSimpleColors") andSpring.GetGameRulesParam("ForcedSimpleColors") ==1)
0 commit comments