feat:npc添加皮肤
This commit is contained in:
parent
13de3624dc
commit
a8051b9767
@ -800,6 +800,8 @@ type gc_npc = k_v<{
|
|||||||
'ghname': string
|
'ghname': string
|
||||||
/**npc名称 */
|
/**npc名称 */
|
||||||
'npcname': string
|
'npcname': string
|
||||||
|
/**怪物皮肤*/
|
||||||
|
'skin': number[]
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
type gc_openCond = k_v<{
|
type gc_openCond = k_v<{
|
||||||
|
@ -121,7 +121,7 @@ export function createNpc(npcId: string | number, fixData: Partial<ResLogin['gud
|
|||||||
isNpc: true
|
isNpc: true
|
||||||
},
|
},
|
||||||
roles: Object.fromEntries(dataArr.map((d, i) => [i + 1, function () {
|
roles: Object.fromEntries(dataArr.map((d, i) => [i + 1, function () {
|
||||||
|
d['skin'] = (npcConf.skin?.[i] || '');
|
||||||
let { id, atk, def, mindps, maxdps, hp, speed, ...ops } = G.gc.armyattr[d.countId];
|
let { id, atk, def, mindps, maxdps, hp, speed, ...ops } = G.gc.armyattr[d.countId];
|
||||||
let buff = HeroShared.getHeroBasicAttr({ heroId: d.heroId, lv: d.lv });
|
let buff = HeroShared.getHeroBasicAttr({ heroId: d.heroId, lv: d.lv });
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user