Husk sounds & event, removing logfiles with cleanbuild command,
This commit is contained in:
@@ -583,7 +583,7 @@ namespace Barotrauma
|
||||
|
||||
public int GetSkillLevel(string skillName)
|
||||
{
|
||||
return Info.Job.GetSkillLevel(skillName);
|
||||
return (Info==null || Info.Job==null) ? 0 : Info.Job.GetSkillLevel(skillName);
|
||||
}
|
||||
|
||||
float findClosestTimer;
|
||||
|
||||
@@ -449,6 +449,14 @@ namespace Barotrauma
|
||||
DebugConsole.NewMessage("Deleted "+saveFile, Color.Green);
|
||||
}
|
||||
|
||||
var logFiles = System.IO.Directory.GetFiles(ServerLog.SavePath);
|
||||
|
||||
foreach (string logFile in logFiles)
|
||||
{
|
||||
System.IO.File.Delete(logFile);
|
||||
DebugConsole.NewMessage("Deleted "+logFile, Color.Green);
|
||||
}
|
||||
|
||||
if (System.IO.File.Exists("filelist.xml"))
|
||||
{
|
||||
System.IO.File.Delete("filelist.xml");
|
||||
|
||||
@@ -1019,7 +1019,7 @@ namespace Barotrauma
|
||||
bool showUiMsg = picker == Character.Controlled && Screen.Selected != GameMain.EditMapScreen;
|
||||
if (!ignoreRequiredItems && !ic.HasRequiredItems(picker, showUiMsg)) continue;
|
||||
if ((ic.CanBePicked && pickHit && ic.Pick(picker)) ||
|
||||
(ic.CanBeSelected && selectHit && ic.Select(picker)))
|
||||
(ic.CanBeSelected && selectHit && ic.Select(picker)))
|
||||
{
|
||||
picked = true;
|
||||
ic.ApplyStatusEffects(ActionType.OnPicked, 1.0f, picker);
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Barotrauma.Networking
|
||||
{
|
||||
const int LinesPerFile = 300;
|
||||
|
||||
const string SavePath = "ServerLogs";
|
||||
public const string SavePath = "ServerLogs";
|
||||
|
||||
private string serverName;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user