feat: 同化属性

This commit is contained in:
AncTe committed 2024-09-21 19:48:36 +08:00
1 parent 0a9ace7ab2
commit b9ae439cd9
12 files changed
+89 -16

No files matched your search

+1
View File
@@ -27,6 +27,7 @@ const MAX_ROTATE = 0.5;
const FRAG_TIMING = linear();
export function init() {
return;
Mota.rewrite(core.events, 'afterBattle', 'add', (_, enemy, x, y) => {
// 打怪特效
const setting = Mota.require('var', 'mainSetting');
+2 -1
View File
@@ -47,7 +47,8 @@ const haloColor: Record<number, string[]> = {
26: ['blue'],
27: ['red'],
31: ['#3CFF49'],
29: ['#51E9FF']
29: ['#51E9FF'],
32: ['#fff966']
};
class Halo extends Sprite {
+1
View File
@@ -51,6 +51,7 @@ export {};
else core.setWeather();
}
core.status.maps[data].enemy?.extract();
core.status.maps[data].enemy?.calRealAttribute();
core.updateStatusBar(true, true);
}
Mota.require('module', 'Shadow').Shadow.update(true);