注释 打印+怪物变强

This commit is contained in:
panfudan
2025-07-21 08:07:53 +08:00
parent c6dea41c80
commit 9fd8fa02af
8 changed files with 106 additions and 83 deletions

View File

@@ -76,8 +76,8 @@ export class Monster extends ecs.Entity {
// 怪物属性随等级增长 (根据Design.md中的公式)
// HP增长: Math.floor(baseHp * (1 + (level-1) * 0.3))
// AP增长: Math.floor(baseAp * (1 + (level-1) * 0.25))
const levelHp = Math.floor(baseHp * (1 + (lv - 1) * 0.3));
const levelAp = Math.floor(baseAp * (1 + (lv - 1) * 0.25));
const levelHp = Math.floor(baseHp * (1 + (lv - 1) * 0.5));
const levelAp = Math.floor(baseAp * (1 + (lv - 1) * 0.1));
hv.hp = hv.hp_max = levelHp;
hv.ap = levelAp;