소스 검색

bug #1944: Mobs were not at max hp on spawning

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

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

@@ -55,8 +55,7 @@ const buildCpnStats = (mob, blueprint, typeDefinition) => {
const cpnStats = mob.addComponent('stats', {
values: {
level,
hpMax,
hp: hpMax
hpMax
}
});

@@ -195,6 +194,8 @@ const build = (mob, blueprint, type, zoneName) => {
});

const statValues = mob.stats.values;
statValues.hp = statValues.hpMax;

syncStats.forEach(s => mob.syncer.setObject(false, 'stats', 'values', s, statValues[s]));
};



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