Remove obsolete DefaultStartingUnits parameter.
It was only actually used by bomber-john. Everything else also removed SpawnMPUnits, making it redundant.
This commit is contained in:
@@ -21,8 +21,7 @@ namespace OpenRA.FileFormats
|
|||||||
public bool NonCombatant = false;
|
public bool NonCombatant = false;
|
||||||
public bool Playable = false;
|
public bool Playable = false;
|
||||||
public string Bot = null;
|
public string Bot = null;
|
||||||
public bool DefaultStartingUnits = false;
|
public string StartingUnitsClass = null;
|
||||||
public string StartingUnitsClass;
|
|
||||||
public bool AllowBots = true;
|
public bool AllowBots = true;
|
||||||
public bool Required = false;
|
public bool Required = false;
|
||||||
|
|
||||||
|
|||||||
@@ -393,7 +393,6 @@ namespace OpenRA
|
|||||||
Name = "Multi{0}".F(index),
|
Name = "Multi{0}".F(index),
|
||||||
Race = "Random",
|
Race = "Random",
|
||||||
Playable = true,
|
Playable = true,
|
||||||
DefaultStartingUnits = true,
|
|
||||||
Enemies = new[] { "Creeps" }
|
Enemies = new[] { "Creeps" }
|
||||||
};
|
};
|
||||||
Players.Add(p.Name, p);
|
Players.Add(p.Name, p);
|
||||||
|
|||||||
@@ -29,10 +29,6 @@ namespace OpenRA.Mods.RA
|
|||||||
|
|
||||||
void SpawnUnitsForPlayer(World w, Player p, CPos sp)
|
void SpawnUnitsForPlayer(World w, Player p, CPos sp)
|
||||||
{
|
{
|
||||||
// They don't want a MCV - the map provides something else for them
|
|
||||||
if (!p.PlayerReference.DefaultStartingUnits)
|
|
||||||
return;
|
|
||||||
|
|
||||||
var spawnClass = p.PlayerReference.StartingUnitsClass ?? w.LobbyInfo.GlobalSettings.StartingUnitsClass;
|
var spawnClass = p.PlayerReference.StartingUnitsClass ?? w.LobbyInfo.GlobalSettings.StartingUnitsClass;
|
||||||
var unitGroup = Rules.Info["world"].Traits.WithInterface<MPStartUnitsInfo>()
|
var unitGroup = Rules.Info["world"].Traits.WithInterface<MPStartUnitsInfo>()
|
||||||
.Where(g => g.Class == spawnClass && g.Races != null && g.Races.Contains(p.Country.Race))
|
.Where(g => g.Class == spawnClass && g.Races != null && g.Races.Contains(p.Country.Race))
|
||||||
|
|||||||
@@ -759,8 +759,7 @@ Smudges:
|
|||||||
Rules:
|
Rules:
|
||||||
World:
|
World:
|
||||||
-CrateDrop:
|
-CrateDrop:
|
||||||
SpawnMPUnits:
|
-SpawnMPUnits:
|
||||||
InitialUnit: mnlyr
|
|
||||||
|
|
||||||
APWR:
|
APWR:
|
||||||
Buildable:
|
Buildable:
|
||||||
|
|||||||
Reference in New Issue
Block a user