Improves the JobSpecial system. (#4626)

* Improves the JobSpecial system.

* clean up code
This commit is contained in:
Vera Aguilera Puerto
2021-09-16 15:17:19 +02:00
committed by GitHub
parent 4fffb3c582
commit 078a62762f
11 changed files with 79 additions and 84 deletions

View File

@@ -97,7 +97,11 @@ namespace Content.Server.GameTicking
AddManifestEntry(character.Name, jobId);
AddSpawnedPosition(jobId);
EquipIdCard(mob, character.Name, jobPrototype);
jobPrototype.Special?.AfterEquip(mob);
foreach (var jobSpecial in jobPrototype.Special)
{
jobSpecial.AfterEquip(mob);
}
Preset?.OnSpawnPlayerCompleted(player, mob, lateJoin);
}