feat:皮肤

This commit is contained in:
xichaoyin 2024-01-12 19:36:09 +08:00
parent 55cb50a27c
commit a351798cdb

View File

@ -604,9 +604,11 @@ export class PlayerFun {
if (!heroskin[p.t]) { if (!heroskin[p.t]) {
upskin[p.t] = 1; upskin[p.t] = 1;
} else { } else {
for (let i = 0; i < p.n; i++) {
prize = prize.concat(G.gc.heroSkin[p.t].zhuanhuan); prize = prize.concat(G.gc.heroSkin[p.t].zhuanhuan);
} }
} }
}
if (Object.keys(upskin).length > 0) { if (Object.keys(upskin).length > 0) {
await this.addAttr(call, { heroskin: Object.assign(heroskin, upskin) }); await this.addAttr(call, { heroskin: Object.assign(heroskin, upskin) });