mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-20 02:24:45 +00:00
Recharge only AT weapons
This commit is contained in:
parent
d1bd6fb055
commit
78552f6691
|
|
@ -363,9 +363,11 @@ object ProximityTerminalControl {
|
|||
unit.Definition.asInstanceOf[WeaponRechargeTerminalDefinition].AmmoAmount,
|
||||
target.Holsters().flatMap { _.Equipment }.toSeq ++ target.Inventory.Items.map { _.obj }
|
||||
)
|
||||
val ancient = result.filter(rechargeMe => rechargeMe._1.Definition == GlobalDefinitions.maelstrom ||
|
||||
rechargeMe._1.Definition == GlobalDefinitions.spiker || rechargeMe._1.Definition == GlobalDefinitions.radiator)
|
||||
val events = unit.Zone.AvatarEvents
|
||||
val channel = target.Name
|
||||
result.foreach { case (weapon, slots) =>
|
||||
ancient.foreach { case (weapon, slots) =>
|
||||
slots.foreach { slot =>
|
||||
events ! AvatarServiceMessage(
|
||||
channel,
|
||||
|
|
|
|||
Loading…
Reference in a new issue