mirror of
https://github.com/rmroc451/TweaksAndThings.git
synced 2025-12-17 09:49:39 -06:00
Compare commits
1 Commits
v2.1.1-bet
...
v2.1.2-bet
| Author | SHA1 | Date | |
|---|---|---|---|
| af8e1bd6ca |
@@ -2,6 +2,6 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<MajorVersion>2</MajorVersion>
|
<MajorVersion>2</MajorVersion>
|
||||||
<MinorVersion>1</MinorVersion>
|
<MinorVersion>1</MinorVersion>
|
||||||
<PatchVersion>1</PatchVersion>
|
<PatchVersion>2</PatchVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -108,7 +108,7 @@ public static class Car_Extensions
|
|||||||
private static Car? FindMyCaboose(this Car car, float timeNeeded, bool decrement = false, bool requireLoad = true) =>
|
private static Car? FindMyCaboose(this Car car, float timeNeeded, bool decrement = false, bool requireLoad = true) =>
|
||||||
(
|
(
|
||||||
car.CarCaboose() ?? car.CarsNearCurrentCar(timeNeeded, decrement).FindNearestCabooseFromNearbyCars()
|
car.CarCaboose() ?? car.CarsNearCurrentCar(timeNeeded, decrement).FindNearestCabooseFromNearbyCars()
|
||||||
)?.CabooseWithSufficientCrewHours(timeNeeded, decrement);
|
)?.CabooseWithSufficientCrewHours(timeNeeded: timeNeeded, requireLoad:requireLoad, decrement: decrement);
|
||||||
|
|
||||||
public static Car? CabooseWithSufficientCrewHours(this Car car, float timeNeeded, bool requireLoad, bool decrement = false)
|
public static Car? CabooseWithSufficientCrewHours(this Car car, float timeNeeded, bool requireLoad, bool decrement = false)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ internal class AutoEngineerOrdersHelper_SendAutoEngineerCommand_Patch
|
|||||||
|
|
||||||
Func<bool> noCaboose = () =>
|
Func<bool> noCaboose = () =>
|
||||||
{
|
{
|
||||||
bool output = (bool)TrainController.Shared.SelectedLocomotive.FindMyCabooseSansLoadRequirement();
|
bool output = TrainController.Shared.SelectedLocomotive.FindMyCabooseSansLoadRequirement() == null;
|
||||||
logMessage += $"\ncaboose? {!output}";
|
logMessage += $"\ncaboose? {!output}";
|
||||||
return output;
|
return output;
|
||||||
};
|
};
|
||||||
@@ -87,7 +87,7 @@ internal class AutoEngineerOrdersHelper_SendAutoEngineerCommand_Patch
|
|||||||
|
|
||||||
logMessage += $"\nGovern AE? {output}";
|
logMessage += $"\nGovern AE? {output}";
|
||||||
|
|
||||||
_log.Debug(logMessage);
|
_log.Information(logMessage);
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user