Merge branch 'feature/skin' into dev

This commit is contained in:
xichaoyin 2024-01-05 20:09:26 +08:00
commit 3f36fa83ab
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ export default async function (call: ApiCall<ReqWear, ResWear>) {
}
let skinconf = G.gc.heroSkin[call.req.skid];
if (skinconf.heroid != hero.heroId) { // 皮肤不属于该英雄
if (skinconf.heroId != hero.heroId) { // 皮肤不属于该英雄
call.error(lng.hero_21);
return;
}

View File

@ -1814,7 +1814,7 @@ type gc_hero_skin = {
/**皮肤id*/
id: number
/**干部id*/
heroid: number
heroId: number
/**皮肤品质*/
colour: number
/**摸到重复时转换*/

View File

@ -288,7 +288,7 @@ export class HeroShared {
if (otherBuff?.heroskin) {
for (let skinId in otherBuff.heroskin) {
let skinConf = G.gc.heroSkin[skinId];
if (skinConf.heroid != hero.heroId) console;
if (skinConf.heroId != hero.heroId) console;
PublicShared.mergeProperty(buff, HeroSkinFun.calcBuff(
skinId, otherBuff.heroskin[skinId]
));