mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-13 01:14:30 +08:00
重构设置模块
This commit is contained in:
1 parent
b7f0d6f4d8
commit
4d4aeed3cd
14 files changed
+603
-227
No files matched your search
@@ -169,7 +169,7 @@ core.events.afterBattle = function (
|
||||
else core.clearContinueAutomaticRoute();
|
||||
|
||||
// 打怪特效
|
||||
if (has(x) && has(y)) {
|
||||
if (core.getLocalStorage('frag') && has(x) && has(y)) {
|
||||
const frame = core.status.globalAnimateStatus % 2;
|
||||
const canvas = document.createElement('canvas');
|
||||
canvas.width = 32;
|
||||
|
||||
@@ -31,7 +31,7 @@ core.control.updateDamage = function (floorId = core.status.floorId, ctx) {
|
||||
|
||||
// 获取宝石信息 并绘制
|
||||
function getItemDetail(floorId: FloorIds, onMap: boolean) {
|
||||
if (!core.getFlag('itemDetail')) return;
|
||||
if (!core.getLocalStorage('itemDetail')) return;
|
||||
floorId ??= core.status.thisMap.floorId;
|
||||
let diff: Record<string | symbol, number | undefined> = {};
|
||||
const before = core.status.hero;
|
||||
|
||||
Reference in new issue
Block a user