def arena_battle(request): char_id = request._char_id arena = Arena(char_id) msg, drop = arena.battle() response = ArenaResponse() response.ret = 0 response.battle.MergeFrom(msg) response.drop.MergeFrom(standard_drop_to_attachment_protomsg(drop)) return pack_msg(response)
def arena_battle(request): char_id = request._char_id arena = Arena(char_id) msg, drop = arena.battle() response = ArenaResponse() response.ret = 0 response.battle.MergeFrom(msg) response.drop.MergeFrom(standard_drop_to_attachment_protomsg(drop)) return pack_msg(response)
def arena_battle(request): char_id = request._char_id arena = Arena(char_id) msg = arena.battle() response = ArenaResponse() response.ret = 0 response.battle.MergeFrom(msg) return pack_msg(response)
def arena_battle(request): char_id = request._char_id arena = Arena(char_id) msg = arena.battle() response = ArenaResponse() response.ret = 0 response.battle.MergeFrom(msg) return pack_msg(response)
def arena_battle(request): char_id = request._char_id arena = Arena(char_id) msg, adding_score = arena.battle() response = ArenaResponse() response.ret = 0 response.battle.MergeFrom(msg) drop = make_standard_drop_from_template() drop["stuffs"] = [(1001, adding_score)] response.drop.MergeFrom(standard_drop_to_attachment_protomsg(drop)) return pack_msg(response)