mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-13 15:34:42 +00:00
actually remove them
This commit is contained in:
parent
89ac6ec48f
commit
ea6b6d69a4
1 changed files with 5 additions and 0 deletions
|
|
@ -863,6 +863,11 @@ class SquadService extends Actor {
|
||||||
val sguid = GetNextSquadId()
|
val sguid = GetNextSquadId()
|
||||||
val squad = new Squad(sguid, faction)
|
val squad = new Squad(sguid, faction)
|
||||||
val leadPosition = squad.Membership(0)
|
val leadPosition = squad.Membership(0)
|
||||||
|
//keep publishedLists clear of old squads. PR 1157 for details
|
||||||
|
val factionListings = publishedLists(faction)
|
||||||
|
val guidsToRemove = factionListings.filterNot(squadFeatures.contains).toList
|
||||||
|
guidsToRemove.foreach(factionListings -= _)
|
||||||
|
|
||||||
leadPosition.Name = name
|
leadPosition.Name = name
|
||||||
leadPosition.CharId = player.CharId
|
leadPosition.CharId = player.CharId
|
||||||
leadPosition.Health = StatConverter.Health(player.Health, player.MaxHealth, min = 1, max = 64)
|
leadPosition.Health = StatConverter.Health(player.Health, player.MaxHealth, min = 1, max = 64)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue