Machine construction can now use tags. (#3532)

* work on machine tags

* Makes protolathe board use tag requirements
This commit is contained in:
Vera Aguilera Puerto
2021-03-08 05:09:30 +01:00
committed by GitHub
parent 13e95ac9a8
commit f5396344ef
5 changed files with 95 additions and 15 deletions

View File

@@ -65,6 +65,15 @@ namespace Content.Server.Construction.Conditions
message.AddMarkup(Loc.GetString("[color=yellow]{0}x[/color] [color=green]{1}[/color]\n", info.Amount, Loc.GetString(info.ExamineName)));
}
foreach (var (tagName, info) in machineFrame.TagRequirements)
{
var amount = info.Amount - machineFrame.TagProgress[tagName];
if(amount == 0) continue;
message.AddMarkup(Loc.GetString("[color=yellow]{0}x[/color] [color=green]{1}[/color]\n", info.Amount, Loc.GetString(info.ExamineName)));
}
return true;
}
}