소스 검색

fix #1972: Fix mob animations

tags/v0.12.0
kckckc 1 년 전
부모
커밋
6cba6b0687
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. +4
    -3
      src/server/world/mobBuilder.js

+ 4
- 3
src/server/world/mobBuilder.js 파일 보기

@@ -105,6 +105,10 @@ const buildCpnSpells = (mob, blueprint, typeDefinition, preferStat) => {
const dmgMult = 4.5 * typeDefinition.dmgMult * dmgMults[blueprint.level - 1];

const spells = extend([], blueprint.spells);
spells.forEach(s => {
if (!s.animation && mob.sheetName === 'mobs' && animations.mobs[mob.cell])
s.animation = 'basic';
});

mob.addComponent('spellbook', { spells });

@@ -123,9 +127,6 @@ const buildCpnSpells = (mob, blueprint, typeDefinition, preferStat) => {
s.dmgMult = s.name ? dmgMult / 3 : dmgMult;
s.statType = preferStat;
s.manaCost = 0;

if (!s.animation && mob.sheetName === 'mobs' && animations.mobs[mob.cell])
s.animation = 'basic';
});
};



불러오는 중...
취소
저장