mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-29 23:01:00 +00:00
correction for LoadoutTest
This commit is contained in:
parent
524d6678e6
commit
335b40cdfc
|
|
@ -755,11 +755,11 @@ object GlobalDefinitions {
|
|||
*/
|
||||
def isFactionEquipment(edef : EquipmentDefinition) : PlanetSideEmpire.Value = {
|
||||
edef match {
|
||||
case `chainblade` | `repeater` | `anniversary_guna` | `cycler` | `mini_chaingun` | `striker` | `striker_missile_ammo` | `trhev_dualcycler` | `trhev_pounder` | `trhev_burster` =>
|
||||
case `chainblade` | `repeater` | `anniversary_guna` | `cycler` | `mini_chaingun` | `striker` | `striker_missile_ammo` | `trhev_dualcycler` | `trhev_pounder` | `trhev_burster` | `dualcycler_ammo` | `pounder_ammo` | `burster_ammo` =>
|
||||
PlanetSideEmpire.TR
|
||||
case `magcutter` | `isp` | `anniversary_gun` | `gauss` | `r_shotgun` | `hunterseeker` | `hunter_seeker_missile` | `nchev_scattercannon` | `nchev_falcon` | `nchev_sparrow` =>
|
||||
case `magcutter` | `isp` | `anniversary_gun` | `gauss` | `r_shotgun` | `hunterseeker` | `hunter_seeker_missile` | `nchev_scattercannon` | `nchev_falcon` | `nchev_sparrow` | `scattercannon_ammo` | `falcon_ammo` | `sparrow_ammo` =>
|
||||
PlanetSideEmpire.NC
|
||||
case `forceblade` | `beamer` | `anniversary_gunb` | `pulsar` | `lasher` | `lancer` | `energy_cell` | `lancer_cartridge` | `vshev_quasar` | `vshev_comet` | `vshev_starfire` =>
|
||||
case `forceblade` | `beamer` | `anniversary_gunb` | `pulsar` | `lasher` | `lancer` | `energy_cell` | `lancer_cartridge` | `vshev_quasar` | `vshev_comet` | `vshev_starfire` | `quasar_ammo` | `comet_ammo` | `starfire_ammo` =>
|
||||
PlanetSideEmpire.VS
|
||||
case _ =>
|
||||
PlanetSideEmpire.NEUTRAL
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ class LoadoutTest extends Specification {
|
|||
|
||||
"distinguish MAX subtype information" in {
|
||||
val obj : Player = CreatePlayer()
|
||||
val slot = obj.Slot(2)
|
||||
val slot = obj.Slot(0)
|
||||
slot.Equipment = None //only an unequipped slot can have its Equipment Size changed (Rifle -> Max)
|
||||
Player.SuitSetup(obj, ExoSuitType.MAX)
|
||||
obj.SaveLoadout("generic", 0) //weaponless
|
||||
|
|
|
|||
Loading…
Reference in a new issue