mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-01 11:13:38 +00:00
removed excessive character initialization procedure during select screen period
This commit is contained in:
parent
85a6eb00fd
commit
2710e3cfc9
1 changed files with 22 additions and 22 deletions
|
|
@ -1417,17 +1417,17 @@ class WorldSessionActor extends Actor with MDCContextAware {
|
|||
tplayer.Holsters().foreach(holster => {
|
||||
SetCharacterSelectScreenGUID_SelectEquipment(holster.Equipment, gen)
|
||||
})
|
||||
tplayer.Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
||||
SetCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj), gen)
|
||||
})
|
||||
tplayer.Slot(5).Equipment match {
|
||||
case Some(locker) =>
|
||||
locker.GUID = PlanetSideGUID(gen.getAndIncrement)
|
||||
locker.asInstanceOf[LockerContainer].Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
||||
SetCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj), gen)
|
||||
})
|
||||
case None => ;
|
||||
}
|
||||
// tplayer.Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
||||
// SetCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj), gen)
|
||||
// })
|
||||
// tplayer.Slot(5).Equipment match {
|
||||
// case Some(locker) =>
|
||||
// locker.GUID = PlanetSideGUID(gen.getAndIncrement)
|
||||
// locker.asInstanceOf[LockerContainer].Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
||||
// SetCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj), gen)
|
||||
// })
|
||||
// case None => ;
|
||||
// }
|
||||
tplayer.GUID = PlanetSideGUID(gen.getAndIncrement)
|
||||
}
|
||||
|
||||
|
|
@ -1459,17 +1459,17 @@ class WorldSessionActor extends Actor with MDCContextAware {
|
|||
tplayer.Holsters().foreach(holster => {
|
||||
RemoveCharacterSelectScreenGUID_SelectEquipment(holster.Equipment)
|
||||
})
|
||||
tplayer.Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
||||
RemoveCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj))
|
||||
})
|
||||
tplayer.Slot(5).Equipment match {
|
||||
case Some(locker) =>
|
||||
locker.Invalidate()
|
||||
locker.asInstanceOf[LockerContainer].Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
||||
RemoveCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj))
|
||||
})
|
||||
case None => ;
|
||||
}
|
||||
// tplayer.Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
||||
// RemoveCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj))
|
||||
// })
|
||||
// tplayer.Slot(5).Equipment match {
|
||||
// case Some(locker) =>
|
||||
// locker.Invalidate()
|
||||
// locker.asInstanceOf[LockerContainer].Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
||||
// RemoveCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj))
|
||||
// })
|
||||
// case None => ;
|
||||
// }
|
||||
tplayer.Invalidate()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue