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:
Regalis
2016-02-09 20:00:53 +02:00
parent 5beaf43e17
commit 4e46c44d51
9 changed files with 76 additions and 9 deletions

View File

@@ -266,6 +266,11 @@ namespace Barotrauma
case "godmode":
Submarine.Loaded.GodMode = !Submarine.Loaded.GodMode;
break;
case "dumpids":
int count = commands.Length < 2 ? 10 : int.Parse(commands[1]);
Entity.DumpIds(count);
break;
case "heal":
if (Character.Controlled != null)
{
@@ -274,6 +279,12 @@ namespace Barotrauma
Character.Controlled.Bleeding = 0.0f;
}
break;
case "revive":
if (Character.Controlled != null)
{
Character.Controlled.Revive(false);
}
break;
case "freecamera":
case "freecam":
Character.Controlled = null;