天赋抽取

This commit is contained in:
李鹏宇
2026-08-28 18:19:07 +08:00
parent e07e09f4b5
commit be75cdf89b
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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)