Overwrite shortcut slots 2/3/4 with installed implants, and allow active implants to be reactivated

This commit is contained in:
Mazo 2020-03-29 23:14:16 +01:00
parent 4b25205c32
commit 9d3a163545
3 changed files with 32 additions and 2 deletions

View file

@ -3374,7 +3374,14 @@ class WorldSessionActor extends Actor
player.Actor ! Player.ImplantInitializationStart(slot)
}
//TODO if this implant is Installed but does not have shortcut, add to a free slot or write over slot 61/62/63
// for now, just write into slots 2, 3 and 4
Shortcut.ImplantsMap(implantSlot.Implant) match {
case Some(shortcut : Shortcut) =>
sendResponse(CreateShortcutMessage(guid, slot + 2, 0, addShortcut = true, Some(shortcut)))
case _ => log.warn(s"Could not find shortcut for implant ${implantSlot.Implant.toString()}")
}
})
sendResponse(PlanetsideAttributeMessage(PlanetSideGUID(0), 82, 0))
//TODO if Medkit does not have shortcut, add to a free slot or write over slot 64
sendResponse(CreateShortcutMessage(guid, 1, 0, true, Shortcut.MEDKIT))