mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-20 02:24:45 +00:00
don't drop
This commit is contained in:
parent
0621cb4fcd
commit
5d00a10e80
|
|
@ -448,11 +448,11 @@ class PlayerControl(player: Player, avatarActor: typed.ActorRef[AvatarActor.Comm
|
||||||
//loadout for a MAX
|
//loadout for a MAX
|
||||||
player.ResistArmMotion(PlayerControl.maxRestriction)
|
player.ResistArmMotion(PlayerControl.maxRestriction)
|
||||||
player.DrawnSlot = Player.HandsDownSlot
|
player.DrawnSlot = Player.HandsDownSlot
|
||||||
(newHolsters.filter(_.start == 4), newInventory)
|
(newHolsters.filter(_.start == 4), newInventory.filterNot(dropPred))
|
||||||
} else {
|
} else {
|
||||||
//loadout for a vanilla exo-suit
|
//loadout for a vanilla exo-suit
|
||||||
player.ResistArmMotion(Player.neverRestrict)
|
player.ResistArmMotion(Player.neverRestrict)
|
||||||
(newHolsters, newInventory)
|
(newHolsters.filterNot(dropPred), newInventory.filterNot(dropPred))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//proposed loadout conforms to a different inventory layout than the projected exo-suit
|
//proposed loadout conforms to a different inventory layout than the projected exo-suit
|
||||||
|
|
@ -460,7 +460,7 @@ class PlayerControl(player: Player, avatarActor: typed.ActorRef[AvatarActor.Comm
|
||||||
//holsters (matching holsters will be inserted, the rest will deposited into the inventory)
|
//holsters (matching holsters will be inserted, the rest will deposited into the inventory)
|
||||||
val (finalHolsters, leftoversForInventory) = Players.fillEmptyHolsters(
|
val (finalHolsters, leftoversForInventory) = Players.fillEmptyHolsters(
|
||||||
player.Holsters().iterator,
|
player.Holsters().iterator,
|
||||||
(newHolsters.filterNot(_.obj.Size == EquipmentSize.Max) ++ newInventory)
|
(newHolsters.filterNot(_.obj.Size == EquipmentSize.Max) ++ newInventory).filterNot(dropPred)
|
||||||
)
|
)
|
||||||
//inventory (items will be placed to accommodate the change, or dropped)
|
//inventory (items will be placed to accommodate the change, or dropped)
|
||||||
val (finalInventory, _) = GridInventory.recoverInventory(leftoversForInventory, player.Inventory)
|
val (finalInventory, _) = GridInventory.recoverInventory(leftoversForInventory, player.Inventory)
|
||||||
|
|
|
||||||
|
|
@ -678,8 +678,8 @@ object ContainableBehavior {
|
||||||
val faction = GlobalDefinitions.isFactionEquipment(objDef)
|
val faction = GlobalDefinitions.isFactionEquipment(objDef)
|
||||||
GlobalDefinitions.isCavernEquipment(objDef) ||
|
GlobalDefinitions.isCavernEquipment(objDef) ||
|
||||||
objDef == GlobalDefinitions.router_telepad ||
|
objDef == GlobalDefinitions.router_telepad ||
|
||||||
entry.obj.isInstanceOf[BoomerTrigger] ||
|
entry.obj.isInstanceOf[BoomerTrigger] /*||
|
||||||
(faction != tplayer.Faction && faction != PlanetSideEmpire.NEUTRAL)
|
(faction != tplayer.Faction && faction != PlanetSideEmpire.NEUTRAL)*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue