mirror of
https://github.com/motajs/template.git
synced 2026-11-11 13:34:31 +08:00
refactor: 怪物接口拓展自 IStateBaseExtended
This commit is contained in:
1 parent
d6275c0ea7
commit
604c77f7c7
7 files changed
+170
-45
No files matched your search
@@ -97,7 +97,7 @@ export class MainDamageCalculator implements IDamageCalculator<
|
||||
context: handler.context,
|
||||
locator,
|
||||
hero,
|
||||
data: handler.data
|
||||
state: handler.state
|
||||
});
|
||||
turn += extraInfo.turn;
|
||||
damage += extraInfo.damage;
|
||||
|
||||
@@ -311,7 +311,7 @@ export class MainMapDamageConverter implements IMapDamageConverter<
|
||||
|
||||
const laser = enemy.getSpecial<number>(24);
|
||||
if (laser) {
|
||||
const face = handler.data.faceManager.get(FaceGroup.Dir4)!;
|
||||
const face = handler.state.faceManager.get(FaceGroup.Dir4)!;
|
||||
views.push(new LaserDamageView(context, locator, laser, face));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user