修复滑切

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.hp -= damage;
}
core.showComment(nowx, nowy)
core.showComment(x, y)
core.clearMap("hero");
if (
core.bigmap.width * 32 === core.bigmap.height * 32 &&

View File

@ -605,6 +605,60 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
"canUseItemEffect": "true",
"text": "可以发送和接收在线留言。",
"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"
}
]
}
]
}
]
}
]
}
}

File diff suppressed because it is too large Load Diff