Show item IDs in inventory tooltips if debugdraw is enabled, itemspawner sync bugfix, characters can be revived (atm only through the debug console)
This commit is contained in:
@@ -181,6 +181,17 @@ namespace Barotrauma
|
||||
if (crewFrameOpen) crewFrame.Update(deltaTime);
|
||||
}
|
||||
|
||||
public void ReviveCharacter(Character revivedCharacter)
|
||||
{
|
||||
GUIComponent characterBlock = listBox.GetChild(revivedCharacter) as GUIComponent;
|
||||
if (characterBlock != null) characterBlock.Color = Color.Transparent;
|
||||
|
||||
if (revivedCharacter is AICharacter)
|
||||
{
|
||||
commander.UpdateCharacters();
|
||||
}
|
||||
}
|
||||
|
||||
public void KillCharacter(Character killedCharacter)
|
||||
{
|
||||
GUIComponent characterBlock = listBox.GetChild(killedCharacter) as GUIComponent;
|
||||
|
||||
@@ -173,6 +173,11 @@ namespace Barotrauma
|
||||
CrewManager.KillCharacter(character);
|
||||
}
|
||||
|
||||
public void ReviveCharacter(Character character)
|
||||
{
|
||||
CrewManager.ReviveCharacter(character);
|
||||
}
|
||||
|
||||
public bool LoadPrevious(GUIButton button, object obj)
|
||||
{
|
||||
SaveUtil.LoadGame(saveFile);
|
||||
|
||||
Reference in New Issue
Block a user