don't hardcode custom prerequisites anymore

to make those strings translatable
This commit is contained in:
Matthias Mailänder
2012-12-22 17:42:57 +01:00
parent b9194e4305
commit 8246b2f35f
4 changed files with 37 additions and 20 deletions

View File

@@ -90,16 +90,6 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
static string ActorName( string a )
{
// hack hack hack - going to die soon anyway
if (a == "barracks")
return "Infantry Production";
if (a == "vehicleproduction")
return "Vehicle Production";
if (a == "techcenter")
return "Tech Center";
if (a == "anypower")
return "Power Plant";
ActorInfo ai;
Rules.Info.TryGetValue(a.ToLowerInvariant(), out ai);
if (ai != null && ai.Traits.Contains<TooltipInfo>())