removed excessive character initialization procedure during select screen period

This commit is contained in:
FateJH 2017-08-30 20:25:24 -04:00
parent 85a6eb00fd
commit 2710e3cfc9

View file

@ -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()
} }