mirror of
https://github.com/Spythere/srjp-td2.git
synced 2026-05-03 05:28:12 +00:00
fix: loco load for multiple units
This commit is contained in:
@@ -18,6 +18,7 @@ export function useVehicleMixin() {
|
||||
|
||||
// 0t load for loco only
|
||||
if (headVehicleData.type.startsWith("loco") && stockArray.length == 1) return 0;
|
||||
else if (headVehicleData.type.startsWith("unit")) return trainMass;
|
||||
|
||||
return Math.min(trainMass, trainMass - headVehicleData.group.weight);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user