Move map configuration to rules.
This commit is contained in:
@@ -40,8 +40,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public ProvidesTechPrerequisite(ProvidesTechPrerequisiteInfo info, ActorInitializer init)
|
||||
{
|
||||
this.info = info;
|
||||
var tech = init.World.Map.Options.TechLevel ?? init.World.LobbyInfo.GlobalSettings.TechLevel;
|
||||
enabled = info.Name == tech;
|
||||
enabled = info.Name == init.World.LobbyInfo.GlobalSettings.TechLevel;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user