天赋抽取
This commit is contained in:
@@ -487,7 +487,7 @@ class YtWorldApi(http.Controller):
|
||||
@http.route('/yt_world/api/char/talent/draw', type='http', auth='public',
|
||||
methods=['POST', 'OPTIONS'], csrf=False)
|
||||
def char_talent_draw(self, **kw):
|
||||
"""新手抽天赋:返回 5 张随机未拥有的天赋牌(前端先展示牌背,翻牌时再免费激活)。"""
|
||||
"""新手抽天赋:返回 15 张随机未拥有的天赋牌(前端先展示牌背,翻牌时再免费激活)。"""
|
||||
auth_err = self._require_user()
|
||||
if auth_err:
|
||||
return _json(auth_err)
|
||||
@@ -500,7 +500,7 @@ class YtWorldApi(http.Controller):
|
||||
data = pool.read(['code', 'name', 'icon', 'quality', 'trigger',
|
||||
'effect', 'description', 'max_level'])
|
||||
random.shuffle(data)
|
||||
return _json({'ok': True, 'deck': data[:5]})
|
||||
return _json({'ok': True, 'deck': data[:15]})
|
||||
|
||||
@http.route('/yt_world/api/char/talent/draw/activate', type='http', auth='public',
|
||||
methods=['POST', 'OPTIONS'], csrf=False)
|
||||
|
||||
Reference in New Issue
Block a user