mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-15 16:34:39 +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 => {
|
tplayer.Holsters().foreach(holster => {
|
||||||
SetCharacterSelectScreenGUID_SelectEquipment(holster.Equipment, gen)
|
SetCharacterSelectScreenGUID_SelectEquipment(holster.Equipment, gen)
|
||||||
})
|
})
|
||||||
tplayer.Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
// tplayer.Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
||||||
SetCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj), gen)
|
// SetCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj), gen)
|
||||||
})
|
// })
|
||||||
tplayer.Slot(5).Equipment match {
|
// tplayer.Slot(5).Equipment match {
|
||||||
case Some(locker) =>
|
// case Some(locker) =>
|
||||||
locker.GUID = PlanetSideGUID(gen.getAndIncrement)
|
// locker.GUID = PlanetSideGUID(gen.getAndIncrement)
|
||||||
locker.asInstanceOf[LockerContainer].Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
// locker.asInstanceOf[LockerContainer].Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
||||||
SetCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj), gen)
|
// SetCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj), gen)
|
||||||
})
|
// })
|
||||||
case None => ;
|
// case None => ;
|
||||||
}
|
// }
|
||||||
tplayer.GUID = PlanetSideGUID(gen.getAndIncrement)
|
tplayer.GUID = PlanetSideGUID(gen.getAndIncrement)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1459,17 +1459,17 @@ class WorldSessionActor extends Actor with MDCContextAware {
|
||||||
tplayer.Holsters().foreach(holster => {
|
tplayer.Holsters().foreach(holster => {
|
||||||
RemoveCharacterSelectScreenGUID_SelectEquipment(holster.Equipment)
|
RemoveCharacterSelectScreenGUID_SelectEquipment(holster.Equipment)
|
||||||
})
|
})
|
||||||
tplayer.Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
// tplayer.Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
||||||
RemoveCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj))
|
// RemoveCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj))
|
||||||
})
|
// })
|
||||||
tplayer.Slot(5).Equipment match {
|
// tplayer.Slot(5).Equipment match {
|
||||||
case Some(locker) =>
|
// case Some(locker) =>
|
||||||
locker.Invalidate()
|
// locker.Invalidate()
|
||||||
locker.asInstanceOf[LockerContainer].Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
// locker.asInstanceOf[LockerContainer].Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
||||||
RemoveCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj))
|
// RemoveCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj))
|
||||||
})
|
// })
|
||||||
case None => ;
|
// case None => ;
|
||||||
}
|
// }
|
||||||
tplayer.Invalidate()
|
tplayer.Invalidate()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue