修复滑切

This commit is contained in:
草莓 2025-03-16 19:15:39 +08:00
parent 00876fa43f
commit 8d45c38f62
3 changed files with 1306 additions and 1252 deletions

View File

@ -2063,7 +2063,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
core.status.hero.statistics.poisonDamage += damage; core.status.hero.statistics.poisonDamage += damage;
core.status.hero.hp -= damage; core.status.hero.hp -= damage;
} }
core.showComment(nowx, nowy) core.showComment(x, y)
core.clearMap("hero"); core.clearMap("hero");
if ( if (
core.bigmap.width * 32 === core.bigmap.height * 32 && core.bigmap.width * 32 === core.bigmap.height * 32 &&

View File

@ -605,6 +605,60 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
"canUseItemEffect": "true", "canUseItemEffect": "true",
"text": "可以发送和接收在线留言。", "text": "可以发送和接收在线留言。",
"hideInToolbox": true, "hideInToolbox": true,
"hideInReplay": true "hideInReplay": true,
"useItemEvent": [
{
"type": "while",
"condition": "true",
"data": [
{
"type": "choices",
"text": "本功能需要您在h5mota.com在线游玩并处于登录状态时使用可以发送和接受留言。\n发言后需要选择\"获取最新留言\"才能看到自己新发的留言。",
"choices": [
{
"text": "地图上显示在线留言:${flag:comment?'开':'关'}",
"icon": "postman",
"action": [
{
"type": "function",
"function": "function(){\nif (core.hasFlag('comment')) {\n\tcore.setFlag('comment', false);\n\tcore.plugin.clearCommentSign();\n} else {\n\tcore.setFlag('comment', true);\n\tcore.plugin.drawCommentSign();\n}\n}"
}
]
},
{
"text": "写留言",
"action": [
{
"type": "input2",
"text": "请输入要发送的评论,文明友善发言,拒绝放假、剧透。"
},
{
"type": "function",
"function": "function(){\nconst input = core.getFlag('input', '');\nconst tags = [core.status.floorId,\n\tcore.getHeroLoc().x.toString(), core.getHeroLoc().y.toString()\n]\nif (!core.isReplaying()) {\n\tcore.plugin.postComment(input, tags);\n}\n}"
}
]
},
{
"text": "获取最新留言",
"action": [
{
"type": "function",
"function": "function(){\nif (!core.isReplaying()) {\n\tcore.plugin.getComment();\n\tsetTimeout(core.plugin.drawCommentSign, 1000);\n}\n}"
}
]
},
{
"text": "退出",
"action": [
{
"type": "exit"
}
]
}
]
}
]
}
]
} }
} }

View File

@ -15611,7 +15611,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
block?.event && block?.event &&
!main.replayChecking && !main.replayChecking &&
!core.isReplaying() && !core.isReplaying() &&
!core.getFlag("__isFlying__", false) !core.hasFlag("__isFlying__") && !core.hasFlag("__fromLoad__")
) { ) {
const dirEntries = allChangeEntries.find( const dirEntries = allChangeEntries.find(
(v) => v[1] === block.event.id (v) => v[1] === block.event.id
@ -15708,9 +15708,9 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
_run(); _run();
} }
}, },
core.status.replay.speed == 24 core.status.replay.speed == 24 ?
? 1 1 :
: 10 / core.status.replay.speed 10 / core.status.replay.speed
); );
core.animateFrame.lastAsyncId = animate; core.animateFrame.lastAsyncId = animate;