Moved the uplink creation code to the PresetSuspicion.Start method to ensure uplink created when we give the traitor role (#1974)

Moved the starting TC balance to cvars
This commit is contained in:
creadth
2020-09-01 01:36:49 +03:00
committed by GitHub
parent 4d43a15cba
commit 12801ccf2c
2 changed files with 33 additions and 11 deletions

View File

@@ -861,17 +861,6 @@ namespace Content.Server.GameTicking
var accessTags = access.Tags;
accessTags.UnionWith(jobPrototype.Access);
pdaComponent.SetPDAOwner(characterName);
var mindComponent = mob.GetComponent<MindComponent>();
if (mindComponent.HasMind) //Redundancy checks.
{
if (mindComponent.Mind.AllRoles.Any(role => role.Antagonist)) //Give antags a new uplinkaccount.
{
var uplinkAccount =
new UplinkAccount(mob.Uid,
20); //TODO: make me into a variable based on server pop or something.
pdaComponent.InitUplinkAccount(uplinkAccount);
}
}
}
private void AddManifestEntry(string characterName, string jobId)