Skip to content

Commit

Permalink
Nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Antoine-de-Anglerais committed Jun 9, 2024
1 parent ec3784c commit 6f0d9fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions UnitsLogger_BepInEx/Code/DeadLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ public static void SavingLife(LifeLogger logger, UnitAvatarSaver saver, string u
{
unit_statistic += $"{stat.Item1.GetDateFromTime()} - юнит сменил имя на {stat.Item2}\r";
}
else if (stat.Item3 == DataType.Food)
{
unit_statistic += $"{stat.Item1.GetDateFromTime()} - юнит съел {stat.Item2.GetLocal()}\r";
}
else if (stat.Item3 == DataType.Culturships)
{
unit_statistic += $"{stat.Item1.GetDateFromTime()} - юнит сменил культуру на {stat.Item2}\r";
Expand All @@ -101,10 +105,6 @@ public static void SavingLife(LifeLogger logger, UnitAvatarSaver saver, string u
{
unit_statistic += $"{stat.Item1.GetDateFromTime()} - юнит сменил профессию на {("profession_" + stat.Item2).GetLocal()}\r";
}
else if (stat.Item3 == DataType.Food)
{
unit_statistic += $"{stat.Item1.GetDateFromTime()} - юнит съел {stat.Item2.GetLocal()}\r";
}
else if (stat.Item3 == DataType.Moods)
{
unit_statistic += $"{stat.Item1.GetDateFromTime()} - юнит сменил настроение на {("mood_" + stat.Item2).GetLocal()}\r";
Expand All @@ -119,7 +119,7 @@ public static void SavingLife(LifeLogger logger, UnitAvatarSaver saver, string u
}
}

unit_statistic += $"{(World.world.getCurWorldTime()).GetDateFromTime()} - юнит умер, причина смерти: {logger.dead_reason.ToString()}\r";
unit_statistic += $"{(World.world.getCurWorldTime()).GetDateFromTime()} - юнит умер\r";


using (StreamWriter writer = new StreamWriter(unit_file_path))
Expand Down

0 comments on commit 6f0d9fd

Please sign in to comment.