mirror of
https://github.com/motajs/template.git
synced 2026-11-19 02:34:30 +08:00
docs(10-11): 迭代修正读者阻断问题(第1轮)
- 修正 B-01..B-13 共 13 条阻断性理解问题(详见 10-11-READER-REVIEW.md 第 1 轮记录) - src-tour 新增「包从哪来」概念,并在用到包名 import 的篇目交叉引用 - 结构门禁 STRUCT-OK;构建 green、dead link = 0
This commit is contained in:
1 parent
b09da5b129
commit
927611182b
18 files changed
+166
-18
No files matched your search
@@ -59,6 +59,8 @@ state.enemyContext.getDamageSystem()?.useCalculator(new MainDamageCalculator());
|
||||
|
||||
「等差数列属性」指怪物攻击每回合按固定值递增。属性本身在一次计算中是常量,所以不能靠给 `atk` 加值实现;要在 `calculate` 里把「每回合伤害」按等差数列求和:
|
||||
|
||||
示例里的 `@motajs/*`、`@user/*` 是包名,含义见 [src 导览](./src-tour.md) 的「包从哪来」。
|
||||
|
||||
```ts
|
||||
import { IEnemyAttr, IHeroAttr } from '@user/data-common';
|
||||
import {
|
||||
|
||||
Reference in new issue
Block a user