Ejemplo n.º 1
0
def slotset():
    id = request.values.get("api_id")
    equip_id = request.values.get("api_item_id")
    slot = request.values.get("api_slot_idx")

    Kanmusu.get(id).equip(admiral_equip_id=equip_id, slot=slot)
    db.session.commit()
    return svdata({})
Ejemplo n.º 2
0
def slotset():
    id = request.values.get("api_id")
    equip_id = request.values.get("api_item_id")
    slot = request.values.get("api_slot_idx")

    Kanmusu.get(id).equip(admiral_equip_id=equip_id, slot=slot)
    db.session.commit()
    return svdata({})
Ejemplo n.º 3
0
def powerup():
    id = request.values.get("api_id")
    id_items = request.values.get("api_id_items").split(
        ',')  # How mean girls aren't items
    result = Kanmusu.get(id).modernize(id_items)
    db.session.commit()
    return svdata(MemberHelper.powerup(id, result))
Ejemplo n.º 4
0
def ship3(kanmusu_id):
    fleet_data = [fleet(f) for f in g.admiral.fleets]
    return {
        "api_ship_data": [kanmusu(Kanmusu.get(kanmusu_id))],
        "api_deck_data": fleet_data,
        "api_slot_data": unsetslot()
    }
Ejemplo n.º 5
0
def ship3(kanmusu_id):
    fleet_data = [fleet(f) for f in g.admiral.fleets]
    return {
        "api_ship_data": [kanmusu(Kanmusu.get(kanmusu_id))],
        "api_deck_data": fleet_data,
        "api_slot_data": unsetslot()
    }
Ejemplo n.º 6
0
def powerup(kanmusu_id, result):
    fleet_data = [MemberHelper.fleet(fleet) for fleet in g.admiral.fleets]
    api_ship = MemberHelper.kanmusu(Kanmusu.get(kanmusu_id))
    return {
        "api_powerup_flag": int(result),
        "api_ship": api_ship,
        "api_deck": fleet_data
    }
Ejemplo n.º 7
0
def powerup(kanmusu_id, result):
    fleet_data = [fleet(fleet_) for fleet_ in g.admiral.fleets]
    api_ship = kanmusu(Kanmusu.get(kanmusu_id))
    return {
        "api_powerup_flag": int(result),
        "api_ship": api_ship,
        "api_deck": fleet_data
    }
Ejemplo n.º 8
0
def remodeling():
    id = request.values.get("api_id")
    Kanmusu.get(id).remodel()  # If it only were that easy...
    return svdata({})
Ejemplo n.º 9
0
def powerup():
    id = request.values.get("api_id")
    id_items = request.values.get("api_id_items").split(',')  # How mean girls aren't items
    result = Kanmusu.get(id).modernize(id_items)
    db.session.commit()
    return svdata(ActionsHelper.powerup(id, result))
Ejemplo n.º 10
0
def remodeling():
    id = request.values.get("api_id")
    Kanmusu.get(id).remodel()  # If it only were that easy...
    return svdata({})