mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-09 22:44:31 +08:00
标记todo
This commit is contained in:
1 parent
26f74f9415
commit
e8e6b202af
8 files changed
+13
No files matched your search
@@ -18,6 +18,7 @@ const enemyDamageInfo: Partial<Record<EnemyIds, Record<number, boolean>>> = {};
|
||||
* @param id 标记的怪物id
|
||||
*/
|
||||
export function markEnemy(id: EnemyIds) {
|
||||
// todo: 不使用 nextCriticals
|
||||
if (hasMarkedEnemy(id)) return;
|
||||
markedEnemy.push(id);
|
||||
markInfo[id] = {
|
||||
@@ -64,6 +65,7 @@ export function getMarkedEnemy() {
|
||||
* @param id 怪物id
|
||||
*/
|
||||
export function getMarkInfo(id: EnemyIds, noMessage: boolean = false) {
|
||||
// todo: 不使用 nextCriticals
|
||||
const reached = criticalReached[id]!;
|
||||
const info = markInfo[id]!;
|
||||
if (core.status.hero.atk >= info.nextCritical) {
|
||||
|
||||
@@ -54,6 +54,7 @@ export function getDetailedEnemy<I extends EnemyIds>(
|
||||
floorId: FloorIds = core.status.floorId
|
||||
): DetailedEnemy<I> {
|
||||
// todo: 删除 getDamageInfo
|
||||
// todo: 不使用 nextCriticals
|
||||
const ratio = core.status.maps[floorId].ratio;
|
||||
const enemyInfo = Object.assign(
|
||||
{},
|
||||
|
||||
Reference in new issue
Block a user