mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-20 02:24:45 +00:00
fixing cosmetics issue that was blocking seeing the inventory for other players BR25+
This commit is contained in:
parent
3aee0ab4e8
commit
1931ae3a7b
|
|
@ -19,7 +19,7 @@ class AvatarConverter extends ObjectCreateConverter[Player]() {
|
|||
DressBattleRank(obj),
|
||||
DressCommandRank(obj),
|
||||
recursiveMakeImplantEffects(obj.Implants.iterator),
|
||||
None, //TODO cosmetics
|
||||
MakeCosmetics(obj.BEP),
|
||||
InventoryData(MakeHolsters(obj, BuildEquipment).sortBy(_.parentSlot)), //TODO is sorting necessary?
|
||||
GetDrawnSlot(obj)
|
||||
)
|
||||
|
|
@ -138,12 +138,12 @@ class AvatarConverter extends ObjectCreateConverter[Player]() {
|
|||
(0 until numImplants).map(index => {
|
||||
val slot = implants(index)
|
||||
slot.Installed match {
|
||||
case Some(_) =>
|
||||
case Some(implant) =>
|
||||
if(slot.Initialized) {
|
||||
ImplantEntry(slot.Implant, None)
|
||||
}
|
||||
else {
|
||||
ImplantEntry(slot.Implant, Some(slot.Installed.get.Initialization.toInt))
|
||||
ImplantEntry(slot.Implant, Some(implant.Initialization.toInt))
|
||||
}
|
||||
case None =>
|
||||
ImplantEntry(ImplantType.None, None)
|
||||
|
|
@ -173,10 +173,13 @@ class AvatarConverter extends ObjectCreateConverter[Player]() {
|
|||
Some(ImplantEffects.PersonalShieldEffects)
|
||||
case Some(`surge`) =>
|
||||
Some(ImplantEffects.SurgeEffects)
|
||||
case _ => ;
|
||||
case _ =>
|
||||
recursiveMakeImplantEffects(iter)
|
||||
}
|
||||
}
|
||||
recursiveMakeImplantEffects(iter)
|
||||
else {
|
||||
recursiveMakeImplantEffects(iter)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue