Respawning characters get ID card tags for both the shuttle and the main sub
This commit is contained in:
@@ -469,7 +469,19 @@ namespace Barotrauma.Networking
|
|||||||
scooter.Combine(battery);
|
scooter.Combine(battery);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//give the character the items they would've gotten if they had spawned in the main sub
|
||||||
character.GiveJobItems(mainSubSpawnPoints[i]);
|
character.GiveJobItems(mainSubSpawnPoints[i]);
|
||||||
|
|
||||||
|
//add the ID card tags they should've gotten when spawning in the shuttle
|
||||||
|
foreach (Item item in character.Inventory.Items)
|
||||||
|
{
|
||||||
|
if (item == null || item.Prefab.Name != "ID Card") continue;
|
||||||
|
foreach (string s in shuttleSpawnPoints[i].IdCardTags)
|
||||||
|
{
|
||||||
|
item.AddTag(s);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
GameMain.GameSession.CrewManager.characters.Add(character);
|
GameMain.GameSession.CrewManager.characters.Add(character);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user