皮肤升级新增本体碎片消耗
This commit is contained in:
xichaoyin 2024-01-08 20:37:46 +08:00
parent a4188eee24
commit e914f3f11b
2 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,8 @@ export default async function (call: ApiCall<ReqUplv, ResUplv>) {
need = need.concat(
G.gc.heroSkinLv[skinconf.colour][cur_lv + i].need
)
let conf = G.gc.heroSkin[call.req.skid];
need.push({ a: "item", "t": conf.heroId, "n": G.gc.heroSkinLv[skinconf.colour][cur_lv + i].suipian });
}
// 检测消耗

View File

@ -1813,6 +1813,7 @@ type gc_hero_skin = {
type gc_hero_skin_lv = {
[colour: string]: {
[lv: string]: {
suipian: number
buff: { [k: string]: number }
need: { a: string, t: string, n: number }[];
}