mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-02-21 23:53:36 +00:00
Milestone fixes (#376)
* Fix resource silos not showing the correct charge levels after server startup * Make all continents have broadcast warpgates, disable geowarps, common initialization functions for zones * Make instant action respect spawn point overrides e.g. z offset * /warp and /zone restrictions from PTSv3 * Allow players hit by EMPs to disable implants correctly to prevent infinite stamina drain * Quick fix to stop VehicleRemover from crashing if the target vehicle has no Actor assigned
This commit is contained in:
parent
484fcbf56d
commit
140c2ccbc3
8 changed files with 152 additions and 97 deletions
|
|
@ -36,10 +36,9 @@ class ResourceSiloTest extends Specification {
|
|||
//
|
||||
obj.ChargeLevel = 50
|
||||
obj.LowNtuWarningOn = false
|
||||
obj.CapacitorDisplay = 75
|
||||
obj.ChargeLevel mustEqual 50
|
||||
obj.LowNtuWarningOn mustEqual false
|
||||
obj.CapacitorDisplay mustEqual 75
|
||||
obj.CapacitorDisplay mustEqual 1
|
||||
}
|
||||
|
||||
"charge level can not exceed limits(0 to maximum)" in {
|
||||
|
|
@ -237,7 +236,6 @@ class ResourceSiloControlUpdate2Test extends ActorTest {
|
|||
bldg.Actor = buildingEvents.ref
|
||||
|
||||
obj.ChargeLevel = 100
|
||||
obj.CapacitorDisplay = 1
|
||||
obj.LowNtuWarningOn = true
|
||||
assert(obj.ChargeLevel == 100)
|
||||
assert(obj.CapacitorDisplay == 1)
|
||||
|
|
@ -295,7 +293,6 @@ class ResourceSiloControlNoUpdateTest extends ActorTest {
|
|||
bldg.Actor = buildingEvents.ref
|
||||
|
||||
obj.ChargeLevel = 250
|
||||
obj.CapacitorDisplay = 3
|
||||
obj.LowNtuWarningOn = false
|
||||
assert(obj.ChargeLevel == 250)
|
||||
assert(obj.CapacitorDisplay == 3)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue