Merge branch 'psforever:master' into Terminals_and_vehicles

This commit is contained in:
ScrawnyRonnie 2023-11-16 22:34:40 -05:00 committed by GitHub
commit 03ed518f07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -12787,7 +12787,7 @@
"AbsY": 1523.68127, "AbsY": 1523.68127,
"AbsZ": 226.779, "AbsZ": 226.779,
"Yaw": 74.0, "Yaw": 74.0,
"GUID": 1038, "GUID": 1039,
"MapID": null, "MapID": null,
"IsChildObject": true "IsChildObject": true
}, },
@ -12800,7 +12800,7 @@
"AbsY": 990.166, "AbsY": 990.166,
"AbsZ": 220.185, "AbsZ": 220.185,
"Yaw": 90.0, "Yaw": 90.0,
"GUID": 1039, "GUID": 1038,
"MapID": null, "MapID": null,
"IsChildObject": true "IsChildObject": true
}, },
@ -12995,7 +12995,7 @@
"AbsY": 1352.12842, "AbsY": 1352.12842,
"AbsZ": 294.999, "AbsZ": 294.999,
"Yaw": 300.0, "Yaw": 300.0,
"GUID": 1054, "GUID": 1055,
"MapID": null, "MapID": null,
"IsChildObject": true "IsChildObject": true
}, },
@ -13008,7 +13008,7 @@
"AbsY": 1510.51892, "AbsY": 1510.51892,
"AbsZ": 226.179, "AbsZ": 226.179,
"Yaw": 306.0, "Yaw": 306.0,
"GUID": 1055, "GUID": 1056,
"MapID": null, "MapID": null,
"IsChildObject": true "IsChildObject": true
}, },
@ -13021,7 +13021,7 @@
"AbsY": 527.16, "AbsY": 527.16,
"AbsZ": 219.839, "AbsZ": 219.839,
"Yaw": 180.0, "Yaw": 180.0,
"GUID": 1056, "GUID": 1054,
"MapID": null, "MapID": null,
"IsChildObject": true "IsChildObject": true
}, },
@ -13463,7 +13463,7 @@
"AbsY": 1066.67053, "AbsY": 1066.67053,
"AbsZ": 242.868988, "AbsZ": 242.868988,
"Yaw": 47.0, "Yaw": 47.0,
"GUID": 1090, "GUID": 1091,
"MapID": null, "MapID": null,
"IsChildObject": true "IsChildObject": true
}, },
@ -13476,7 +13476,7 @@
"AbsY": 1436.58289, "AbsY": 1436.58289,
"AbsZ": 245.778992, "AbsZ": 245.778992,
"Yaw": 6.0, "Yaw": 6.0,
"GUID": 1091, "GUID": 1090,
"MapID": null, "MapID": null,
"IsChildObject": true "IsChildObject": true
}, },

View file

@ -85,7 +85,7 @@ object EffectTarget {
private def CommonRepairConditions(v: Vehicle): Boolean = { private def CommonRepairConditions(v: Vehicle): Boolean = {
v.Health > 0 && v.Health < v.MaxHealth && v.Health > 0 && v.Health < v.MaxHealth &&
(v.History.find { entry => entry.isInstanceOf[DamagingActivity] } match { (v.History.findLast { entry => entry.isInstanceOf[DamagingActivity] } match {
case Some(entry) if System.currentTimeMillis() - entry.time < 5000L => false case Some(entry) if System.currentTimeMillis() - entry.time < 5000L => false
case _ => true case _ => true
}) })