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({})
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))
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() }
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 }
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 }
def remodeling(): id = request.values.get("api_id") Kanmusu.get(id).remodel() # If it only were that easy... return svdata({})
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))