mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-14 16:04:41 +00:00
Recharge only AT weapons
This commit is contained in:
parent
d1bd6fb055
commit
78552f6691
1 changed files with 3 additions and 1 deletions
|
|
@ -363,9 +363,11 @@ object ProximityTerminalControl {
|
||||||
unit.Definition.asInstanceOf[WeaponRechargeTerminalDefinition].AmmoAmount,
|
unit.Definition.asInstanceOf[WeaponRechargeTerminalDefinition].AmmoAmount,
|
||||||
target.Holsters().flatMap { _.Equipment }.toSeq ++ target.Inventory.Items.map { _.obj }
|
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 events = unit.Zone.AvatarEvents
|
||||||
val channel = target.Name
|
val channel = target.Name
|
||||||
result.foreach { case (weapon, slots) =>
|
ancient.foreach { case (weapon, slots) =>
|
||||||
slots.foreach { slot =>
|
slots.foreach { slot =>
|
||||||
events ! AvatarServiceMessage(
|
events ! AvatarServiceMessage(
|
||||||
channel,
|
channel,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue