Skip to content

Commit

Permalink
Merge pull request #7 from Funny-ppt/dev
Browse files Browse the repository at this point in the history
修复Test Failure
  • Loading branch information
Funny-ppt authored Mar 29, 2024
2 parents 04d94d1 + 93b57e6 commit 567e4f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion InfrastSim/TimeDriven/WebHelper/MowerHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ public static JsonObject RewriteOrder(JsonNode order, double timeRemain = 0) {
["name"] = op["name"]!.DeepClone(),
["morale"] = op["mood"]!.DeepClone(),
["efficiency"] = op["efficiency"]!.DeepClone()
["is_working"] = simuOp.Facility != null && simuOp.Facility is not Dormitory
};

newop["is_working"] = simuOp.Facility != null && simuOp.Facility is not Dormitory;
if (simuOp.Facility != null) {
newop["facility-index"] = Array.IndexOf(simu.Facilities, simuOp.Facility);
}
Expand Down

0 comments on commit 567e4f3

Please sign in to comment.