

def handleRadial(self, owner, target, action):
    player_service = self.getKernel().serviceManager().playerService()
    if player_service:
        if (action == RadialIdentifier.bankItems):
            bank = self.getKernel().serviceManager().equipmentService().getEquippedObject(owner, 'bank')
            player_service.openContainer(owner, bank)
        elif (action == RadialIdentifier.bankJoin):
            self.joinBank(owner)
        elif (action == RadialIdentifier.bankQuit):
            self.quitBank(owner)
        elif (action == RadialIdentifier.bankTransfer):
            self.transferBank(owner, target)
        elif (action == RadialIdentifier.bankWithdrawAll):
            amount = owner.bank_credits
            owner.cash_credits += owner.bank_credits
            owner.bank_credits = 0
            SystemMessage.sendSystemMessage(owner, swgpy.OutOfBand('base_player', 'prose_withdraw_success', swgpy.ProseType.DI, bank), False, False)
        elif (action == RadialIdentifier.bankDepositAll):
            amount = owner.cash_credits
            owner.bank_credits += owner.cash_credits
            owner.cash_credits = 0
            SystemMessage.sendSystemMessage(owner, swgpy.OutOfBand('base_player', 'prose_deposit_success', swgpy.ProseType.DI, amount), False, False)

dataset/ETHPy150Open anhstudios/swganh/data/scripts/radials/bank.py PyRadialMenu.handleRadial/VarMisuse@191/273 `amount`->`bank`