var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = 
{
	"yellowKey": {
		"cls": "tools",
		"name": "黄钥匙",
		"text": "可以打开一扇黄门",
		"hideInToolbox": true
	},
	"blueKey": {
		"cls": "tools",
		"name": "蓝钥匙",
		"text": "可以打开一扇蓝门",
		"hideInToolbox": true
	},
	"redKey": {
		"cls": "tools",
		"name": "红钥匙",
		"text": "可以打开一扇红门",
		"hideInToolbox": true
	},
	"redGem": {
		"cls": "items",
		"name": "红宝石",
		"text": "攻击+${core.values.redGem}",
		"itemEffect": null,
		"itemEffectTip": "，攻击+${core.values.redGem * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.atk += core.values.redGem",
		"canUseItemEffect": "true",
		"itemEffectEvent": {
			"sound": "gem.mp3",
			"value": {
				"atk:o": "core.values.redGem"
			}
		}
	},
	"blueGem": {
		"cls": "items",
		"name": "蓝宝石",
		"text": "，防御+${core.values.blueGem}",
		"itemEffect": null,
		"itemEffectTip": "，防御+${core.values.blueGem * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.def += core.values.blueGem",
		"canUseItemEffect": "true",
		"itemEffectEvent": {
			"sound": "gem.mp3",
			"value": {
				"def:o": "core.values.blueGem"
			}
		}
	},
	"greenGem": {
		"cls": "items",
		"name": "绿宝石",
		"text": "，护盾+${core.values.greenGem}",
		"itemEffect": null,
		"itemEffectTip": "，护盾+${core.values.greenGem * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.mdef += core.values.greenGem",
		"canUseItemEffect": "true",
		"itemEffectEvent": {
			"sound": "gem.mp3",
			"value": {
				"mdef:o": "core.values.greenGem"
			}
		}
	},
	"yellowGem": {
		"cls": "items",
		"name": "黄宝石",
		"text": "可以进行加点",
		"itemEffect": null,
		"itemEffectTip": "，全属性提升",
		"useItemEvent": null,
		"canUseItemEffect": "true",
		"itemEffectEvent": {
			"sound": "gem.mp3",
			"value": {
				"atk:o": "core.values.redGem",
				"def:o": "core.values.blueGem",
				"mdef:o": "core.values.greenGem"
			}
		}
	},
	"redPotion": {
		"cls": "items",
		"name": "红血瓶",
		"text": "，生命+${core.values.redPotion}",
		"itemEffect": null,
		"itemEffectTip": "，生命+${core.values.redPotion * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.hp += core.values.redPotion",
		"canUseItemEffect": "true",
		"itemEffectEvent": {
			"sound": "recovery.mp3",
			"value": {
				"hp:o": "core.values.redPotion"
			}
		}
	},
	"bluePotion": {
		"cls": "items",
		"name": "蓝血瓶",
		"text": "，生命+${core.values.bluePotion}",
		"itemEffect": null,
		"itemEffectTip": "，生命+${core.values.bluePotion * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.hp += core.values.bluePotion",
		"canUseItemEffect": "true",
		"itemEffectEvent": {
			"sound": "recovery.mp3",
			"value": {
				"hp:o": "core.values.bluePotion"
			}
		}
	},
	"yellowPotion": {
		"cls": "items",
		"name": "黄血瓶",
		"text": "，生命+${core.values.yellowPotion}",
		"itemEffect": null,
		"itemEffectTip": "，生命+${core.values.yellowPotion * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.hp += core.values.yellowPotion",
		"canUseItemEffect": "true",
		"itemEffectEvent": {
			"sound": "recovery.mp3",
			"value": {
				"hp:o": "core.values.yellowPotion"
			}
		}
	},
	"greenPotion": {
		"cls": "items",
		"name": "绿血瓶",
		"text": "，生命+${core.values.greenPotion}",
		"itemEffect": null,
		"itemEffectTip": "，生命+${core.values.greenPotion * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.hp += core.values.greenPotion",
		"canUseItemEffect": "true",
		"itemEffectEvent": {
			"sound": "recovery.mp3",
			"value": {
				"hp:o": "core.values.greenPotion"
			}
		}
	},
	"sword0": {
		"cls": "items",
		"name": "破旧的剑",
		"text": "一把已经生锈的剑",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 0
			}
		},
		"itemEffect": "core.status.hero.atk += 0",
		"itemEffectTip": "，攻击+0"
	},
	"sword1": {
		"cls": "items",
		"name": "铁剑",
		"text": "一把很普通的铁剑",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 10
			}
		},
		"itemEffect": "core.status.hero.atk += 2",
		"itemEffectTip": "，攻击+2"
	},
	"sword2": {
		"cls": "items",
		"name": "银剑",
		"text": "一把很普通的银剑",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 4
			}
		},
		"itemEffect": "core.status.hero.atk += 4",
		"itemEffectTip": "，攻击+4"
	},
	"sword3": {
		"cls": "items",
		"name": "骑士剑",
		"text": "一把很普通的骑士剑",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 6
			}
		},
		"itemEffect": "core.status.hero.atk += 6",
		"itemEffectTip": "，攻击+40"
	},
	"sword4": {
		"cls": "equips",
		"name": "圣剑",
		"text": "一把很普通的圣剑",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 80
			}
		},
		"itemEffect": "core.status.hero.atk += 80",
		"itemEffectTip": "，攻击+80"
	},
	"sword5": {
		"cls": "equips",
		"name": "神圣剑",
		"text": "一把很普通的神圣剑",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 160
			}
		},
		"itemEffect": "core.status.hero.atk += 100",
		"itemEffectTip": "，攻击+100"
	},
	"shield0": {
		"cls": "items",
		"name": "破旧的盾",
		"text": "一个很破旧的铁盾",
		"equip": {
			"type": 1,
			"value": {
				"def": 0
			}
		},
		"itemEffect": "core.status.hero.def += 0",
		"itemEffectTip": "，防御+0"
	},
	"shield1": {
		"cls": "items",
		"name": "铁盾",
		"text": "一个很普通的铁盾",
		"equip": {
			"type": 1,
			"value": {
				"def": 10
			}
		},
		"itemEffect": "core.status.hero.def += 2",
		"itemEffectTip": "，防御+2"
	},
	"shield2": {
		"cls": "items",
		"name": "银盾",
		"text": "一个很普通的银盾",
		"equip": {
			"type": 1,
			"value": {
				"def": 4
			}
		},
		"itemEffect": "core.status.hero.def += 4",
		"itemEffectTip": "，防御+4"
	},
	"shield3": {
		"cls": "items",
		"name": "骑士盾",
		"text": "一个很普通的骑士盾",
		"equip": {
			"type": 1,
			"value": {
				"def": 6
			}
		},
		"itemEffect": "core.status.hero.def += 6",
		"itemEffectTip": "，防御+6"
	},
	"shield4": {
		"cls": "equips",
		"name": "圣盾",
		"text": "一个很普通的圣盾",
		"equip": {
			"type": 1,
			"value": {
				"def": 80
			}
		},
		"itemEffect": "core.status.hero.def += 80",
		"itemEffectTip": "，防御+80"
	},
	"shield5": {
		"cls": "equips",
		"name": "神圣盾",
		"text": "一个很普通的神圣盾",
		"equip": {
			"type": 1,
			"value": {
				"def": 100,
				"mdef": 100
			}
		},
		"itemEffect": "core.status.hero.def += 100;core.status.hero.mdef += 100",
		"itemEffectTip": "，防御+100，护盾+100"
	},
	"superPotion": {
		"cls": "items",
		"name": "圣水",
		"itemEffect": null,
		"itemEffectTip": "，生命值大幅度增加",
		"useItemEffect": "core.status.hero.hp *= 2;core.playSound('回血');",
		"canUseItemEffect": "true",
		"text": "生命值大幅度增加",
		"itemEffectEvent": {
			"sound": "recovery.mp3",
			"value": {
				"hp": 6500
			}
		}
	},
	"book": {
		"cls": "constants",
		"name": "怪物手册",
		"text": "可以查看当前楼层各怪物属性",
		"hideInToolbox": true,
		"useItemEffect": "core.ui.drawBook(0);",
		"canUseItemEffect": "true"
	},
	"fly": {
		"cls": "constants",
		"name": "楼层传送器",
		"text": "可以自由往来去过的楼层",
		"hideInReplay": true,
		"hideInToolbox": true,
		"useItemEffect": "core.ui.drawFly(core.floorIds.indexOf(core.status.floorId));",
		"canUseItemEffect": "(function () {\n\tif (!core.maps.canUseFlyHere()) return false;\n\treturn core.status.maps[core.status.floorId].canFlyFrom;\n})();"
	},
	"coin": {
		"cls": "constants",
		"name": "幸运金币",
		"text": "持有时打败怪物可得更多金币"
	},
	"freezeBadge": {
		"cls": "constants",
		"name": "冰冻徽章",
		"text": "可以将面前的熔岩变成平地",
		"useItemEffect": "(function () {\n\tvar success = false;\n\n\tvar snowFourDirections = false; // 是否多方向雪花；如果是将其改成true\n\tif (snowFourDirections) {\n\t\t// 多方向雪花\n\t\tfor (var direction in core.utils.scan) { // 多方向雪花默认四方向，如需改为八方向请将这两个scan改为scan2\n\t\t\tvar delta = core.utils.scan[direction];\n\t\t\tvar nx = core.getHeroLoc('x') + delta.x,\n\t\t\t\tny = core.getHeroLoc('y') + delta.y;\n\t\t\tif (core.getBlockId(nx, ny) == 'lava') {\n\t\t\t\tcore.removeBlock(nx, ny);\n\t\t\t\tsuccess = true;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tif (core.getBlockId(core.nextX(), core.nextY()) == 'lava') {\n\t\t\tcore.removeBlock(core.nextX(), core.nextY());\n\t\t\tsuccess = true;\n\t\t}\n\t}\n\n\tif (success) {\n\t\tcore.playSound('打开界面');\n\t\tcore.drawTip(core.material.items[itemId].name + '使用成功', itemId);\n\t} else {\n\t\tcore.playSound('操作失败');\n\t\tcore.drawTip(\"当前无法使用\" + core.material.items[itemId].name, itemId);\n\t\tcore.addItem(itemId, 1);\n\t\treturn;\n\t}\n})();",
		"canUseItemEffect": "true"
	},
	"cross": {
		"cls": "constants",
		"name": "十字架",
		"text": "持有后无视怪物的无敌属性"
	},
	"dagger": {
		"cls": "constants",
		"name": "屠龙匕首",
		"text": "该道具尚未被定义"
	},
	"amulet": {
		"cls": "constants",
		"name": "护符",
		"text": "持有时无视负面地形"
	},
	"bigKey": {
		"cls": "tools",
		"name": "大黄门钥匙",
		"text": "可以开启当前层所有黄门",
		"itemEffect": "core.addItem('yellowKey', 1);\ncore.addItem('blueKey', 1);\ncore.addItem('redKey', 1);",
		"itemEffectTip": "，全钥匙+1",
		"useItemEffect": "(function () {\n\tvar actions = core.searchBlock(\"yellowDoor\").map(function (block) {\n\t\treturn { \"type\": \"openDoor\", \"loc\": [block.x, block.y], \"async\": true };\n\t});\n\tactions.push({ \"type\": \"waitAsync\" });\n\tactions.push({ \"type\": \"tip\", \"text\": core.material.items[itemId].name + \"使用成功\" });\n\tcore.insertAction(actions);\n})();",
		"canUseItemEffect": "(function () {\n\treturn core.searchBlock('yellowDoor').length > 0;\n})();"
	},
	"greenKey": {
		"cls": "tools",
		"name": "绿钥匙",
		"text": "可以打开一扇绿门"
	},
	"steelKey": {
		"cls": "tools",
		"name": "铁门钥匙",
		"text": "可以打开一扇铁门"
	},
	"pickaxe": {
		"cls": "tools",
		"name": "造桥",
		"text": "可以造桥",
		"useItemEffect": "(function () {\n\tvar fid = core.status.floorId;\n\tvar loc = core.status.hero.loc;\n\tvar hx = loc.x,\n\t\thy = loc.y;\n\tvar bgmap = core.floors[fid].bgmap;\n\tvar heroBg = (bgmap[hy] && bgmap[hy][hx]) || 0;\n\n\tif (heroBg !== 20) {\n\t\tcore.playSound('操作失败');\n\t\tcore.drawFailTip('必须站在墙顶才能造桥', itemId);\n\t\tcore.addItem(itemId, 1);\n\t\treturn;\n\t}\n\n\t// 想让只有特定朝向能造桥只需要检查hero的朝向\n\tconst aimX = core.nextX(1),\n\t\taimY = core.nextY(1);\n\tif (aimX < 0 || aimX > 12 || aimY < 0 || aimY > 12) {\n\t\tcore.playSound('操作失败');\n\t\tcore.drawFailTip('目标格子在地图外', itemId);\n\t\tcore.addItem(itemId, 1);\n\t\treturn;\n\t}\n\tconst aimBgNum = core.getBgNumber(aimX, aimY);\n\n\tif (aimBgNum !== 0) {\n\t\tcore.playSound('操作失败');\n\t\tcore.drawFailTip('目标点不支持造桥', itemId);\n\t\tcore.addItem(itemId, 1);\n\t\treturn;\n\t}\n\tcore.plugin.setBridge(aimX, aimY);\n\tcore.insertAction({\n\t\t\"type\": \"setBgFgBlock\",\n\t\t\"name\": \"fg\",\n\t\t\"number\": 10100,\n\t\t\"loc\": [\n\t\t\t[aimX, aimY]\n\t\t]\n\t});\n\tcore.plugin.drawBridge();\n\n})();",
		"canUseItemEffect": "true",
		"noAutoSaveBeforeToolUse": true
	},
	"icePickaxe": {
		"cls": "tools",
		"name": "梯子",
		"text": "可以造梯子",
		"useItemEffect": "(function () {\n\tconst { x, y, direction } = core.status.hero.loc;\n\tconst nextX = x + core.utils.scan[direction].x,\n\t\tnextY = y + core.utils.scan[direction].y;\n\tconst currBg = core.getBgNumber(x, y),\n\t\tnextBg = core.getBgNumber(nextX, nextY);\n\tif (currBg === 0 && nextBg === 151 && direction === \"up\") {\n\t\tcore.setBgFgBlock(\"bg\", 152, nextX, nextY);\n\t} else if (currBg === 20 && nextBg === 151 && direction === \"down\") {\n\t\tcore.setBgFgBlock(\"bg\", 152, nextX, nextY);\n\t} else {\n\t\tcore.drawFailTip(\"位置不对！\");\n\t\tcore.addItem(itemId, 1);\n\t}\n})();",
		"canUseItemEffect": "true"
	},
	"bomb": {
		"cls": "tools",
		"name": "炸弹",
		"text": "可以炸掉勇士面前的怪物",
		"useItemEffect": "(function () {\n\tconst bombList = []; // 炸掉的怪物坐标列表\n\tconst todo = []; // 炸弹后事件\n\tlet money = 0,\n\t\texp = 0; // 炸弹获得的金币和经验\n\n\tconst canBomb = function (x, y) {\n\t\tvar block = core.getBlock(x, y);\n\t\tif (block == null || block.disable || block.event.cls.indexOf('enemy') != 0) return false;\n\t\tvar enemy = core.getEnemyValue(block.event.id, null, x, y);\n\t\treturn { enemy, notBomb: enemy.notBomb };\n\t};\n\n\tlet hasAutoSaved = false;\n\n\tconst bomb = function (x, y) {\n\t\tconst { enemy, notBomb } = canBomb(x, y);\n\t\tif (!enemy) {\n\t\t\tcore.drawFailTip('该点不是敌人！');\n\t\t\treturn;\n\t\t}\n\t\tif (notBomb) {\n\t\t\tcore.drawFailTip('该点敌人不可炸！');\n\t\t\treturn;\n\t\t}\n\t\tif (core.getLocalStorage(\"autoSaveBeforeUseItem\")) {\n\t\t\tif (!hasAutoSaved) core.control.autosave();\n\t\t\thasAutoSaved = true;\n\t\t}\n\t\tbombList.push([x, y]);\n\t\tmoney += enemy.money || 0;\n\t\texp += enemy.exp || 0;\n\t\tcore.push(todo, core.floors[core.status.floorId].afterBattle[x + \",\" + y]);\n\t\tcore.push(todo, enemy.afterBattle);\n\t\tcore.removeBlock(x, y);\n\t}\n\n\t// 如果要多方向可炸，把这里的false改成true\n\tif (false) {\n\t\tvar scan = core.utils.scan; // 多方向炸时默认四方向，如果要改成八方向炸可以改成 core.utils.scan2\n\t\tfor (var direction in scan) {\n\t\t\tvar delta = scan[direction];\n\t\t\tbomb(core.getHeroLoc('x') + delta.x, core.getHeroLoc('y') + delta.y);\n\t\t}\n\t} else {\n\t\t// 仅炸当前\n\t\tbomb(core.nextX(), core.nextY());\n\t}\n\n\tif (bombList.length == 0) {\n\t\tcore.playSound('操作失败');\n\t\tcore.drawTip('当前无法使用' + core.material.items[itemId].name, itemId);\n\t\tcore.addItem(itemId, 1);\n\t\treturn;\n\t}\n\n\tcore.playSound('炸弹');\n\tcore.drawTip(core.material.items[itemId].name + '使用成功', itemId);\n\n\t// 取消这里的注释可以炸弹后获得金币和经验\n\t// core.status.hero.money += money;\n\t// core.status.hero.exp += exp;\n\n\t// 取消这里的注释可以炸弹引发战后事件\n\t// if (todo.length > 0) core.insertAction(todo);\n\n})();",
		"canUseItemEffect": "true",
		"noAutoSaveBeforeToolUse": true
	},
	"centerFly": {
		"cls": "tools",
		"name": "中心对称飞行器",
		"text": "可以飞向当前楼层中心对称的位置",
		"useItemEffect": "core.playSound('centerFly.mp3');\ncore.clearMap('hero');\ncore.setHeroLoc('x', core.bigmap.width - 1 - core.getHeroLoc('x'));\ncore.setHeroLoc('y', core.bigmap.height - 1 - core.getHeroLoc('y'));\ncore.drawHero();\ncore.drawTip(core.material.items[itemId].name + '使用成功');",
		"canUseItemEffect": "(function () {\n\tvar toX = core.bigmap.width - 1 - core.getHeroLoc('x'),\n\t\ttoY = core.bigmap.height - 1 - core.getHeroLoc('y');\n\tvar id = core.getBlockId(toX, toY);\n\treturn id == null;\n})();"
	},
	"upFly": {
		"cls": "tools",
		"name": "上楼器",
		"text": "可以飞往楼上的相同位置",
		"useItemEffect": "(function () {\n\tvar floorId = core.floorIds[core.floorIds.indexOf(core.status.floorId) + 1];\n\tif (core.status.event.id == 'action') {\n\t\tcore.insertAction([\n\t\t\t{ \"type\": \"changeFloor\", \"loc\": [core.getHeroLoc('x'), core.getHeroLoc('y')], \"floorId\": floorId },\n\t\t\t{ \"type\": \"tip\", \"text\": core.material.items[itemId].name + '使用成功' }\n\t\t]);\n\t} else {\n\t\tcore.changeFloor(floorId, null, core.status.hero.loc, null, function () {\n\t\t\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n\t\t\tcore.replay();\n\t\t});\n\t}\n})();",
		"canUseItemEffect": "(function () {\n\tvar floorId = core.status.floorId,\n\t\tindex = core.floorIds.indexOf(floorId);\n\tif (index < core.floorIds.length - 1) {\n\t\tvar toId = core.floorIds[index + 1],\n\t\t\ttoX = core.getHeroLoc('x'),\n\t\t\ttoY = core.getHeroLoc('y');\n\t\tvar mw = core.floors[toId].width,\n\t\t\tmh = core.floors[toId].height;\n\t\tif (toX >= 0 && toX < mw && toY >= 0 && toY < mh && core.getBlock(toX, toY, toId) == null) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n})();"
	},
	"downFly": {
		"cls": "tools",
		"name": "下楼器",
		"text": "可以飞往楼下的相同位置",
		"useItemEffect": "(function () {\n\tvar floorId = core.floorIds[core.floorIds.indexOf(core.status.floorId) - 1];\n\tif (core.status.event.id == 'action') {\n\t\tcore.insertAction([\n\t\t\t{ \"type\": \"changeFloor\", \"loc\": [core.getHeroLoc('x'), core.getHeroLoc('y')], \"floorId\": floorId },\n\t\t\t{ \"type\": \"tip\", \"text\": core.material.items[itemId].name + '使用成功' }\n\t\t]);\n\t} else {\n\t\tcore.changeFloor(floorId, null, core.status.hero.loc, null, function () {\n\t\t\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n\t\t\tcore.replay();\n\t\t});\n\t}\n})();",
		"canUseItemEffect": "(function () {\n\tvar floorId = core.status.floorId,\n\t\tindex = core.floorIds.indexOf(floorId);\n\tif (index > 0) {\n\t\tvar toId = core.floorIds[index - 1],\n\t\t\ttoX = core.getHeroLoc('x'),\n\t\t\ttoY = core.getHeroLoc('y');\n\t\tvar mw = core.floors[toId].width,\n\t\t\tmh = core.floors[toId].height;\n\t\tif (toX >= 0 && toX < mw && toY >= 0 && toY < mh && core.getBlock(toX, toY, toId) == null) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n})();"
	},
	"earthquake": {
		"cls": "tools",
		"name": "地震卷轴",
		"text": "可以破坏当前层的所有墙",
		"useItemEffect": "(function () {\n\tvar indexes = [];\n\tfor (var index in core.status.thisMap.blocks) {\n\t\tvar block = core.status.thisMap.blocks[index];\n\t\tif (!block.disable && block.event.canBreak) {\n\t\t\tindexes.push(index);\n\t\t}\n\t}\n\tcore.removeBlockByIndexes(indexes);\n\tcore.redrawMap();\n\tcore.playSound('炸弹');\n\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n})();",
		"canUseItemEffect": "(function () {\n\treturn core.status.thisMap.blocks.filter(function (block) {\n\t\treturn !block.disable && block.event.canBreak;\n\t}).length > 0;\n})();"
	},
	"poisonWine": {
		"cls": "tools",
		"name": "解毒药水",
		"text": "可以解除中毒状态",
		"useItemEffect": "core.triggerDebuff('remove', 'poison');",
		"canUseItemEffect": "core.hasFlag('poison');"
	},
	"weakWine": {
		"cls": "tools",
		"name": "解衰药水",
		"text": "可以解除衰弱状态",
		"useItemEffect": "core.triggerDebuff('remove', 'weak');",
		"canUseItemEffect": "core.hasFlag('weak');"
	},
	"curseWine": {
		"cls": "tools",
		"name": "解咒药水",
		"text": "可以解除诅咒状态",
		"useItemEffect": "core.triggerDebuff('remove', 'curse');",
		"canUseItemEffect": "core.hasFlag('curse');"
	},
	"superWine": {
		"cls": "tools",
		"name": "万能药水",
		"text": "可以解除所有不良状态",
		"useItemEffect": "core.triggerDebuff('remove', ['poison', 'weak', 'curse']);",
		"canUseItemEffect": "(function() {\n\treturn core.hasFlag('poison') || core.hasFlag('weak') || core.hasFlag('curse');\n})();"
	},
	"hammer": {
		"cls": "items",
		"name": "中钱包",
		"text": null,
		"itemEffect": "core.status.hero.money += 10",
		"itemEffectTip": "，金币+10"
	},
	"jumpShoes": {
		"cls": "tools",
		"name": "跳跃靴",
		"text": "能跳跃到前方两格处",
		"useItemEffect": "core.playSound(\"跳跃\");\ncore.insertAction({ \"type\": \"jumpHero\", \"loc\": [core.nextX(2), core.nextY(2)] });",
		"canUseItemEffect": "(function () {\n\tvar nx = core.nextX(2),\n\t\tny = core.nextY(2);\n\treturn nx >= 0 && nx < core.bigmap.width && ny >= 0 && ny < core.bigmap.height && core.getBlockId(nx, ny) == null;\n})();"
	},
	"wand": {
		"cls": "tools",
		"name": "生命魔杖",
		"text": "使用后回复100体力。",
		"canUseItemEffect": "true",
		"useItemEffect": null,
		"hideInReplay": true,
		"useItemEvent": [
			{
				"type": "comment",
				"text": "先静默增加一个魔杖（因为使用道具必须消耗一个）"
			},
			{
				"type": "function",
				"function": "function(){\ncore.addItem('wand', 1);\n}"
			},
			{
				"type": "input",
				"text": "请输入使用生命杖的次数"
			},
			{
				"type": "if",
				"condition": "Number.isNaN(flag:input)",
				"true": [
					{
						"type": "exit"
					}
				]
			},
			{
				"type": "if",
				"condition": "(flag:input>item:wand)",
				"true": [
					{
						"type": "setValue",
						"name": "flag:input",
						"value": "item:wand"
					}
				]
			},
			{
				"type": "if",
				"condition": "(flag:input<0)",
				"true": [
					{
						"type": "setValue",
						"name": "flag:input",
						"value": "0"
					}
				]
			},
			{
				"type": "setValue",
				"name": "item:wand",
				"operator": "-=",
				"value": "flag:input"
			},
			{
				"type": "setValue",
				"name": "status:hp",
				"operator": "+=",
				"value": "100*flag:input"
			}
		],
		"noAutoSaveBeforeToolUse": true
	},
	"pack": {
		"cls": "items",
		"name": "钱袋",
		"itemEffect": "core.status.hero.money += 20",
		"itemEffectTip": "，金币+20"
	},
	"blueWine": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"silverCoin": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": null,
		"useItemEffect": null,
		"useItemEvent": null
	},
	"orb": {
		"cls": "items",
		"name": "法球",
		"canUseItemEffect": null,
		"itemEffect": "core.status.hero.mdef += 20",
		"itemEffectTip": "，护盾+20"
	},
	"bentWand": {
		"cls": "constants",
		"name": "技能轮盘",
		"canUseItemEffect": "true",
		"useItemEffect": "core.plugin.openSkillWheel();"
	},
	"setting": {
		"cls": "constants",
		"name": "设置",
		"canUseItemEffect": "true",
		"text": "可以调节设置开关。",
		"useItemEffect": "core.plugin.openSetting();"
	},
	"redWand": {
		"cls": "tools",
		"name": "生命杖小",
		"text": "使用后恢复500体力。如果结算时仍持有，计10万分。",
		"hideInReplay": false,
		"useItemEffect": null,
		"canUseItemEffect": "true",
		"useItemEvent": [
			{
				"type": "setValue",
				"name": "status:hp",
				"operator": "+=",
				"value": "500"
			}
		]
	},
	"cyanWand": {
		"cls": "tools",
		"name": "生命杖中",
		"canUseItemEffect": "true",
		"text": "使用后恢复1000体力。如果结算时仍持有，计10万分。",
		"useItemEvent": [
			{
				"type": "setValue",
				"name": "status:hp",
				"operator": "+=",
				"value": "1000"
			}
		]
	},
	"yellowWand": {
		"cls": "tools",
		"name": "生命杖大",
		"canUseItemEffect": "true",
		"text": "使用后恢复2000体力。如果结算时仍持有，计10万分。",
		"useItemEvent": [
			{
				"type": "setValue",
				"name": "status:hp",
				"operator": "+=",
				"value": "2000"
			}
		]
	},
	"greenWand": {
		"cls": "tools",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"blueWand": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"whiteWand": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"purpleKey": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"scroll": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"crossChest": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"postman": {
		"cls": "constants",
		"name": "言灵",
		"canUseItemEffect": "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"
									}
								]
							}
						]
					}
				]
			}
		],
		"text": "可以发送和接收在线留言。",
		"hideInReplay": true
	},
	"I344": {
		"cls": "constants",
		"name": "暴力箭",
		"canUseItemEffect": "true",
		"autoSaveBeforeConstantUse": false,
		"text": "将正前方第一个非空地目标击退至障碍处。(对楼梯无效，每层限${core.plugin.getCountsLimit(\"I344\")}次)",
		"useItemEffect": "core.plugin.pushArrow();"
	},
	"I345": {
		"cls": "constants",
		"name": "回力箭",
		"canUseItemEffect": "true",
		"autoSaveBeforeConstantUse": false,
		"useItemEffect": "core.plugin.pullArrow();",
		"text": "将正前方第一个非空地目标拉到主角面前。\\n(每层限${core.plugin.getCountsLimit(\"I345\")}次)"
	},
	"I346": {
		"cls": "constants",
		"name": "御箭术",
		"canUseItemEffect": "true",
		"autoSaveBeforeConstantUse": false,
		"useItemEffect": "core.plugin.goToDoorArrow();",
		"text": "向前御箭飞行。可穿越一切障碍，在路上的第一个门处落下。\\n(每层限${core.plugin.getCountsLimit(\"I346\")}次)"
	},
	"I347": {
		"cls": "constants",
		"name": "贯穿箭",
		"canUseItemEffect": "true",
		"autoSaveBeforeConstantUse": false,
		"useItemEffect": "core.plugin.strikeArrow();",
		"text": "与前方2或3格的第一个怪物战斗，若为非b怪则伤害减免50%，且\\r[brown]引爆\\r该怪物背后第一个非空地目标。\\n\\r[brown]引爆\\r:\\n•若为物品，拾取之。\\n•若为可炸怪物，消灭之并获取金币。\\n•若为其它图块，摧毁之\\n(每层限${core.plugin.getCountsLimit(\"I344\")}次)"
	},
	"I348": {
		"cls": "constants",
		"name": "粒子控制器",
		"canUseItemEffect": "true",
		"useItemEffect": "core.plugin.toggleGameParticles();",
		"text": "可以显示/关闭游戏粒子"
	},
	"I349": {
		"cls": "constants",
		"name": "动画控制器",
		"canUseItemEffect": "true",
		"useItemEffect": "core.plugin.toggleItemFx();",
		"text": "可以关闭/显示 战斗和拾取特效！"
	}
}