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": "core.status.hero.atk += core.values.redGem * core.status.thisMap.ratio",
		"itemEffectTip": "，攻击+${core.values.redGem * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.atk += core.values.redGem",
		"canUseItemEffect": "true"
	},
	"blueGem": {
		"cls": "items",
		"name": "蓝宝石",
		"text": "，防御+${core.values.blueGem}",
		"itemEffect": "core.status.hero.def += core.values.blueGem * core.status.thisMap.ratio",
		"itemEffectTip": "，防御+${core.values.blueGem * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.def += core.values.blueGem",
		"canUseItemEffect": "true"
	},
	"greenGem": {
		"cls": "items",
		"name": "绿宝石",
		"text": "，护盾+${core.values.greenGem}",
		"itemEffect": "core.status.hero.mdef += core.values.greenGem * core.status.thisMap.ratio",
		"itemEffectTip": "，护盾+${core.values.greenGem * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.mdef += core.values.greenGem",
		"canUseItemEffect": "true"
	},
	"yellowGem": {
		"cls": "items",
		"name": "黄宝石",
		"text": "可以进行加点",
		"itemEffect": "core.status.hero.hp += 200;\ncore.status.hero.atk += core.values.redGem;\ncore.status.hero.def += core.values.blueGem;\ncore.status.hero.mdef += core.values.greenGem;",
		"itemEffectTip": "，全属性提升",
		"useItemEvent": [],
		"canUseItemEffect": "true"
	},
	"redPotion": {
		"cls": "items",
		"name": "红血瓶",
		"text": "，生命+${core.values.redPotion}",
		"itemEffect": "core.status.hero.hp += core.values.redPotion * core.status.thisMap.ratio",
		"itemEffectTip": "，生命+${core.values.redPotion * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.hp += core.values.redPotion",
		"canUseItemEffect": "true"
	},
	"bluePotion": {
		"cls": "items",
		"name": "蓝血瓶",
		"text": "，生命+${core.values.bluePotion}",
		"itemEffect": "core.status.hero.hp += core.values.bluePotion * core.status.thisMap.ratio",
		"itemEffectTip": "，生命+${core.values.bluePotion * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.hp += core.values.bluePotion",
		"canUseItemEffect": "true"
	},
	"yellowPotion": {
		"cls": "items",
		"name": "黄血瓶",
		"text": "，生命+${core.values.yellowPotion}",
		"itemEffect": "core.status.hero.hp += core.values.yellowPotion * core.status.thisMap.ratio",
		"itemEffectTip": "，生命+${core.values.yellowPotion * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.hp += core.values.yellowPotion",
		"canUseItemEffect": "true"
	},
	"greenPotion": {
		"cls": "items",
		"name": "绿血瓶",
		"text": "，生命+${core.values.greenPotion}",
		"itemEffect": "core.status.hero.hp += core.values.greenPotion * core.status.thisMap.ratio",
		"itemEffectTip": "，生命+${core.values.greenPotion * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.hp += core.values.greenPotion",
		"canUseItemEffect": "true"
	},
	"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 += 10",
		"itemEffectTip": "，攻击+10"
	},
	"sword2": {
		"cls": "constants",
		"name": "剑",
		"text": "攻击+20%",
		"itemEffect": "core.addBuff('atk', 0.2)",
		"itemEffectTip": "，攻击+20%"
	},
	"sword3": {
		"cls": "items",
		"name": "骑士剑",
		"text": "一把很普通的骑士剑",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 40
			}
		},
		"itemEffect": "core.status.hero.atk += 40",
		"itemEffectTip": "，攻击+40"
	},
	"sword4": {
		"cls": "items",
		"name": "圣剑",
		"text": "一把很普通的圣剑",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 80
			}
		},
		"itemEffect": "core.status.hero.atk += 80",
		"itemEffectTip": "，攻击+80"
	},
	"sword5": {
		"cls": "items",
		"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 += 10",
		"itemEffectTip": "，防御+10"
	},
	"shield2": {
		"cls": "constants",
		"name": "盾",
		"text": "防御+20%",
		"itemEffect": "core.addBuff('def', 0.2)",
		"itemEffectTip": "，防御+20%"
	},
	"shield3": {
		"cls": "constants",
		"name": "护甲",
		"text": "护盾+100",
		"itemEffect": "core.status.hero.mdef += 100",
		"itemEffectTip": "，护盾+100"
	},
	"shield4": {
		"cls": "items",
		"name": "圣盾",
		"text": "一个很普通的圣盾",
		"equip": {
			"type": 1,
			"value": {
				"def": 80
			}
		},
		"itemEffect": "core.status.hero.def += 80",
		"itemEffectTip": "，防御+80"
	},
	"shield5": {
		"cls": "items",
		"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": "core.status.hero.hp *= 2",
		"itemEffectTip": "，生命值翻倍",
		"useItemEffect": "core.status.hero.hp *= 2; core.playSound('回血');",
		"canUseItemEffect": "true",
		"text": "生命值翻倍"
	},
	"silverCoin": {
		"cls": "items",
		"name": "银币",
		"itemEffect": "core.status.hero.money += 500",
		"itemEffectTip": "，金币+500"
	},
	"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\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) {\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 + '使用成功');\n\t} else {\n\t\tcore.playSound('操作失败');\n\t\tcore.drawTip(\"当前无法使用\" + core.material.items[itemId].name);\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 canBreak = function (x, y) {\n\t\tvar block = core.getBlock(x, y);\n\t\tif (block == null || block.disable) return false;\n\t\treturn block.event.canBreak;\n\t};\n\n\tvar success = false;\n\tvar pickaxeFourDirections = false; // 是否四方向破；如果是将其改成true\n\tif (pickaxeFourDirections) {\n\t\t// 四方向破\n\t\tfor (var direction in core.utils.scan) {\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 (canBreak(nx, ny)) {\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\t// 仅破当前\n\t\tif (canBreak(core.nextX(), core.nextY())) {\n\t\t\tcore.autosave();\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 + '使用成功');\n\t} else {\n\t\t// 无法使用\n\t\tcore.playSound('操作失败');\n\t\tcore.drawTip(\"当前无法使用\" + core.material.items[itemId].name);\n\t\tcore.addItem(itemId, 1);\n\t\treturn;\n\t}\n})();",
		"canUseItemEffect": "true"
	},
	"icePickaxe": {
		"cls": "tools",
		"name": "破冰镐",
		"text": "可以破坏勇士面前的一堵冰墙",
		"useItemEffect": "(function () {\n\tcore.removeBlock(core.nextX(), core.nextY());\n\tcore.playSound('打开界面');\n\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n})();",
		"canUseItemEffect": "(function () {\n\treturn core.getBlockId(core.nextX(), core.nextY()) == 'ice' || core.getBlockId(core.nextX(), core.nextY()) == 'iceDoor';\n})();"
	},
	"bomb": {
		"cls": "tools",
		"name": "炸弹",
		"text": "对身前的一个敌人造成500点伤害",
		"useItemEffect": "(function () {\n\tvar 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.material.enemys[block.event.id];\n\t\treturn enemy && !enemy.notBomb;\n\t};\n\n\tvar bombList = []; // 炸掉的怪物坐标列表\n\tvar bombFourDirections = false; // 是否四方向可炸；如果是将其改成true。\n\tif (bombFourDirections) {\n\t\t// 四方向炸\n\t\tfor (var direction in core.utils.scan) {\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 (canBomb(nx, ny)) {\n\t\t\t\tbombList.push([nx, ny]);\n\t\t\t}\n\t\t}\n\t} else {\n\t\t// 仅炸当前\n\t\tif (canBomb(core.nextX(), core.nextY())) {\n\t\t\tbombList.push([core.nextX(), core.nextY()]);\n\t\t}\n\t}\n\n\tif (bombList.length > 0) {\n\t\tcore.autosave();\n\t\tcore.playSound('炸弹');\n\t\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n\t\t// 获取金币、经验，处理战后事件\n\t\tfor (let [x, y] of bombList) {\n\t\t\tlet mon_hp = core.getEnemyValue(core.getBlockId(x, y), 'hp', x, y);\n\t\t\tmon_hp = Math.max(mon_hp - 500, 0);\n\t\t\tif (mon_hp <= 0) {\n\t\t\t\tlet enemy = core.getBlockId(x, y);\n\t\t\t\tlet money = core.getEnemyValue(enemy, 'money', x, y),\n\t\t\t\t\texp = core.getEnemyValue(enemy, 'exp', x, y);\n\t\t\t\tcore.removeBlock(x, y);\n\t\t\t\tcore.status.hero.money += money;\n\t\t\t\tcore.status.hero.statistics.money += money;\n\t\t\t\tcore.status.hero.exp += exp;\n\t\t\t\tcore.status.hero.statistics.exp += exp;\n\t\t\t\tcore.status.hero.statistics.battle++;\n\t\t\t\tlet afterBattleEvert = core.floors[core.status.floorId].afterBattle[x + \",\" + y];\n\t\t\t\tif (afterBattleEvert) {\n\t\t\t\t\tcore.insertAction(afterBattleEvert, x, y)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcore.setEnemyOnPoint(x, y, null, 'hp', mon_hp);\n\t\t\t}\n\t\t}\n\t} else {\n\t\tcore.playSound('操作失败');\n\t\tcore.drawTip('当前无法使用' + core.material.items[itemId].name);\n\t\tcore.addItem(itemId, 1);\n\t\treturn;\n\t}\n})();",
		"canUseItemEffect": "true",
		"getItemEvent": [
			{
				"type": "if",
				"condition": "(!flag:tip1)",
				"true": [
					"（提示：使用道具消灭敌人可以正常获得金币与分数。）",
					{
						"type": "setValue",
						"name": "flag:tip1",
						"value": "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.drawMap();\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": "使接下来的2次战斗攻击力和防御力提升至180%，但随后的2次战斗每回合额外损失150点生命",
		"canUseItemEffect": "true",
		"useItemEffect": "core.autosave();\ncore.plugin.addTempBuff('atk', 1.8, 2);\ncore.plugin.addTempBuff('def', 1.8, 2);\ncore.plugin.addTempBuff('xdmg', -150, 2);\ncore.plugin.addTempBuff('xdmg', 150, 4);\ncore.playSound('回血');"
	},
	"weakWine": {
		"cls": "tools",
		"name": "烈酒",
		"text": "使接下来的2次战斗攻击力提升至240%，但随后的2次战斗攻击力下降至80%",
		"canUseItemEffect": "true",
		"useItemEffect": "core.autosave();\ncore.plugin.addTempBuff('atk', 3, 2); // 前两轮两个buff同时生效，相当于240%\ncore.plugin.addTempBuff('atk', 0.8, 4);\ncore.playSound('回血');"
	},
	"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": "constants",
		"name": "穿甲弹",
		"text": "敌方防御-30%",
		"itemEffectTip": "，敌方防御-30%"
	},
	"lifeWand": {
		"cls": "tools",
		"name": "生命魔杖",
		"text": "可以恢复100点生命值",
		"canUseItemEffect": "true"
	},
	"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})();"
	},
	"skill1": {
		"cls": "constants",
		"name": "技能：二倍斩",
		"text": "可以打开或关闭主动技能二倍斩",
		"hideInReplay": true,
		"useItemEffect": "(function () {\n\tvar skillValue = 1; // 技能的flag:skill值，可用于当前开启技能的判定；对于新技能可以依次改成2，3等等\n\tvar skillNeed = 5; // 技能的需求\n\tvar skillName = '二倍斩'; // 技能的名称\n\n\tif (core.getFlag('skill', 0) != skillValue) { // 判断当前是否已经开了技能\n\t\tif (core.getStatus('mana') >= skillNeed) { // 这里要写当前能否开技能的条件判断，比如魔力值至少要多少\n\t\t\tcore.playSound('打开界面');\n\t\t\tcore.setFlag('skill', skillValue); // 开技能1\n\t\t\tcore.setFlag('skillName', skillName); // 设置技能名\n\t\t} else {\n\t\t\tcore.playSound('操作失败');\n\t\t\tcore.drawTip('魔力不足，无法开启技能');\n\t\t}\n\t} else { // 关闭技能\n\t\tcore.setFlag('skill', 0); // 关闭技能状态\n\t\tcore.setFlag('skillName', '无');\n\t}\n})();",
		"canUseItemEffect": "true"
	},
	"wand": {
		"cls": "items",
		"name": "新物品"
	},
	"usegun": {
		"cls": "constants",
		"name": "使用远程攻击",
		"text": "开始或取消远程攻击",
		"canUseItemEffect": "true",
		"useItemEffect": "core.plugin.toggleShooting();"
	},
	"I326": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I328": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I329": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I330": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I331": {
		"cls": "tools",
		"name": "中心对称换位器",
		"text": "使自己与中心对称位置的物体换位",
		"useItemEffect": "core.autosave();\ncore.playSound('centerFly.mp3');\nconst { x: currX, y: currY } = core.getHeroLoc();\nconst toX = core.bigmap.width - 1 - currX,\n\ttoY = core.bigmap.height - 1 - currY;\nconst floorId = core.status.floorId;\n// 交换两个地块的物体和事件\nconst currId = core.getBlockId(currX, currY);\nconst currEvent = core.plugin.cacheEvent(currX, currY);\nconst toId = core.getBlockId(toX, toY);\nconst toEvent = core.plugin.cacheEvent(toX, toY);\n\ncore.removeBlock(currX, currY);\ncore.removeBlock(toX, toY);\n\ncore.setBlock(currId, toX, toY);\ncore.plugin.setEvent(toX, toY, floorId, currEvent, 'all');\ncore.setBlock(toId, currX, currY);\ncore.plugin.setEvent(currX, currY, floorId, toEvent, 'all');\n\n//core.jumpHero(toX, toY);\ncore.insertAction({ \"type\": \"jumpHero\", \"loc\": [toX, toY], \"time\": 500 });\ncore.drawTip(core.material.items[itemId].name + '使用成功');",
		"canUseItemEffect": "(function () {\n\tconst { x: currX, y: currY } = core.getHeroLoc();\n\tconst toX = core.bigmap.width - 1 - currX,\n\t\ttoY = core.bigmap.height - 1 - currY;\n\tconst id = core.getBlockId(toX, toY);\n\tif (!core.hasItem('divingMask') &&\n\t\tcore.getBgNumber(toX, toY) == 16) return false;\n\tif (core.getBlockId(toX, toY) == 'blueKing' || core.getBlockId(toX, toY) == 'xiu')\n\t\treturn false; // 不可移动的敌人\n\treturn (toX != currX || toY != currY) &&\n\t\t(id === null || id === 'none' ||\n\t\t\tcore.getBlockCls(toX, toY) == 'enemys' ||\n\t\t\tcore.getBlockCls(toX, toY) == 'enemy48' ||\n\t\t\t!core.getBlock(toX, toY).event.noPass) &&\n\t\t!['portal', 'upPortal', 'leftPortal', 'downPortal', 'rightPortal', 'downFloor', 'upFloor'].includes(id);\n})();"
	},
	"I332": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I333": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I334": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I335": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I336": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I338": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I339": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I340": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I341": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I342": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I343": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I344": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I345": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I346": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I347": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I348": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I349": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I350": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I351": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I353": {
		"cls": "constants",
		"name": "王者之盾",
		"text": "防御+30%，但护盾-150",
		"itemEffectTip": "，防御+30%，但护盾-150",
		"itemEffect": "core.addBuff('def', 0.3);\ncore.status.hero.mdef = Math.max(core.status.hero.mdef - 150, 0);"
	},
	"I354": {
		"cls": "constants",
		"name": "荆棘铠甲",
		"text": "受到的伤害降低30%，但生命值立即减少50%（至多1000点）",
		"itemEffectTip": "，受到的伤害降低30%，但生命值立即减少50%（至多1000点）",
		"itemEffect": "core.addFlag('damageDec', 0.3);\nif (core.status.hero.hp > 2000)\n\tcore.status.hero.hp -= 1000;\nelse\n\tcore.status.hero.hp *= 0.5;\nif (!core.getFlag('__statistics__')) core.playSound('zone.mp3');"
	},
	"I355": {
		"cls": "items",
		"name": "新物品"
	},
	"I356": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I357": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I358": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I359": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I360": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I361": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I362": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I363": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I364": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I365": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I366": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I367": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I368": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I369": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I371": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I372": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I373": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I374": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I375": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I376": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I377": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I378": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I379": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I380": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I381": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I386": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I388": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I389": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I390": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I391": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I392": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I398": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I399": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I400": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I401": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I402": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I403": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I404": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I406": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I407": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I408": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I409": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I410": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I411": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I412": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I413": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I414": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I415": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I416": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I417": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I418": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I420": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I422": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I423": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I424": {
		"cls": "constants",
		"name": "高分考卷",
		"text": "使作战获得的分数+50%（仅影响结算，包括获得本道具前的作战分数）"
	},
	"I427": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I428": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I429": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I430": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I431": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I432": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I433": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I434": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I435": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I437": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I438": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I439": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I440": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I441": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I442": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I444": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I445": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I454": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I455": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I456": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I457": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I458": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I459": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I460": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I461": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I462": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I463": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I464": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I465": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I466": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I467": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I468": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I469": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I470": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I471": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I472": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I473": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I475": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I476": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I478": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I479": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I480": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I481": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I482": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I483": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I485": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I486": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I487": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I489": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I490": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I491": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I492": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I493": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I494": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I495": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I496": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I497": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I498": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I499": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I500": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I501": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I502": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I503": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I504": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I505": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I506": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I507": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I508": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I509": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I510": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I511": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I512": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I513": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I515": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I516": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I517": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I518": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I519": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I520": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I521": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I522": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I523": {
		"cls": "constants",
		"name": "王者之剑",
		"text": "攻击+30%，但防御-10%",
		"itemEffectTip": "，攻击+30%，但防御-10%",
		"itemEffect": "core.addBuff('atk', 0.3);\ncore.addBuff('def', -0.1);"
	},
	"I524": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I525": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I526": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I527": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I528": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I529": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I530": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I531": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I532": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I533": {
		"cls": "constants",
		"name": "王者之杖",
		"text": "攻击附加22%的法术伤害，但攻击-10%",
		"itemEffectTip": "，攻击附加22%的法术伤害，但攻击-10%",
		"itemEffect": "core.addFlag('matk', 0.22);\ncore.addBuff('atk', -0.1);"
	},
	"I534": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I535": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I536": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I537": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I538": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I539": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I540": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I541": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I542": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I543": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I544": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I545": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I546": {
		"cls": "tools",
		"name": "力量药剂",
		"canUseItemEffect": "true",
		"text": "使接下来的2次战斗攻击力提升至135%",
		"useItemEffect": "core.autosave();\ncore.plugin.addTempBuff('atk', 1.35, 2);\ncore.playSound('回血');"
	},
	"I547": {
		"cls": "tools",
		"name": "抵抗药剂",
		"canUseItemEffect": "true",
		"text": "使接下来的2次战斗防御力提升至180%",
		"useItemEffect": "core.autosave();\ncore.plugin.addTempBuff('def', 1.8, 2);\ncore.playSound('回血');"
	},
	"I548": {
		"cls": "tools",
		"name": "回复药剂",
		"canUseItemEffect": "true",
		"text": "使接下来的2次战斗后回复损失生命值的50%",
		"useItemEffect": "core.autosave();\ncore.plugin.addTempBuff('recovery', 0.5, 2);\ncore.playSound('回血');"
	},
	"I549": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I550": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I551": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I552": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I553": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I554": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I555": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I556": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I557": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I558": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I559": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I560": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I561": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I562": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I563": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I565": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I588": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I589": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"stun": {
		"cls": "constants",
		"name": "眩晕锤",
		"text": "使敌人无法行动一回合"
	},
	"specialKey": {
		"cls": "tools",
		"name": "机关修理工具",
		"text": "直接开启一个机关门"
	},
	"treasureMap": {
		"cls": "constants",
		"name": "藏宝图",
		"text": "可以进入洞穴"
	},
	"flashLight": {
		"cls": "constants",
		"name": "手电筒",
		"text": "在洞穴中获得更大的视野"
	},
	"laser": {
		"cls": "tools",
		"name": "激光器",
		"canUseItemEffect": "true",
		"text": "对身前直线上的所有敌人造成240点伤害",
		"useItemEffect": "// 检测身前直线上的怪物\nlet { x, y, direction } = core.getHeroLoc();\nlet { x: stepX, y: stepY } = core.utils.scan[direction];\nlet monsters = [];\ndo {\n\tx += stepX;\n\ty += stepY;\n\tlet blockCls = core.getBlockCls(x, y);\n\tif (blockCls == 'enemys' || blockCls == 'enemy48') {\n\t\tmonsters.push([x, y]);\n\t}\n} while (x >= 0 && x < core.bigmap.width && y >= 0 && y < core.bigmap.height);\n\nif (monsters.length) {\n\tcore.autosave();\n\tcore.playSound('save.mp3');\n\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n\tfor (let [x, y] of monsters) {\n\t\tlet mon_hp = core.getEnemyValue(core.getBlockId(x, y), 'hp', x, y);\n\t\tmon_hp = Math.max(mon_hp - 240, 0);\n\t\tif (mon_hp <= 0) {\n\t\t\t// 获取金币、经验，处理战后事件\n\t\t\tlet enemy = core.getBlockId(x, y);\n\t\t\tlet money = core.getEnemyValue(enemy, 'money', x, y),\n\t\t\t\texp = core.getEnemyValue(enemy, 'exp', x, y);\n\t\t\tcore.removeBlock(x, y);\n\t\t\tcore.status.hero.money += money;\n\t\t\tcore.status.hero.statistics.money += money;\n\t\t\tcore.status.hero.exp += exp;\n\t\t\tcore.status.hero.statistics.exp += exp;\n\t\t\tcore.status.hero.statistics.battle++;\n\t\t\tlet afterBattleEvert = core.floors[core.status.floorId].afterBattle[x + \",\" + y];\n\t\t\tif (afterBattleEvert) {\n\t\t\t\tcore.insertAction(afterBattleEvert, x, y)\n\t\t\t}\n\t\t} else {\n\t\t\tcore.setEnemyOnPoint(x, y, null, 'hp', mon_hp);\n\t\t}\n\n\t}\n} else {\n\tcore.playSound('操作失败');\n\tcore.drawTip('当前无法使用' + core.material.items[itemId].name);\n\tcore.addItem(itemId, 1);\n}",
		"getItemEvent": [
			{
				"type": "if",
				"condition": "(!flag:tip1)",
				"true": [
					"（提示：使用道具消灭敌人可以正常获得金币与分数。）",
					{
						"type": "setValue",
						"name": "flag:tip1",
						"value": "true"
					}
				]
			}
		]
	},
	"gun": {
		"cls": "constants",
		"name": "手枪",
		"canUseItemEffect": "true",
		"text": "远程攻击敌人（快捷键：5）",
		"useItemEffect": "core.plugin.toggleShooting();",
		"itemEffect": "core.enable_shooting = true;",
		"itemEffectTip": "，可以使用远程攻击",
		"getItemEvent": [
			{
				"type": "if",
				"condition": "(!flag:tip2)",
				"true": [
					"（提示：从远处使用手枪可以减少来自敌方的远程攻击，但仍会进行一次战斗。无法射击被障碍物遮挡的敌人。）",
					{
						"type": "setValue",
						"name": "flag:tip2",
						"value": "true"
					}
				]
			}
		]
	},
	"magicWand": {
		"cls": "constants",
		"name": "法杖",
		"text": "攻击附加15%的法术伤害",
		"itemEffectTip": "，攻击附加15%的法术伤害",
		"itemEffect": "core.addFlag('matk', 0.15)"
	},
	"reactiveArmor": {
		"cls": "constants",
		"name": "反应装甲",
		"text": "附加敌方攻击10%的伤害",
		"itemEffectTip": "，附加敌方攻击10%的伤害",
		"itemEffect": "core.addFlag('revatk', 0.1)"
	},
	"nanoArmor": {
		"cls": "constants",
		"name": "纳米护甲",
		"text": "护盾立即翻倍",
		"itemEffect": "core.status.hero.mdef *= 2;",
		"itemEffectTip": "，护盾立即翻倍"
	},
	"atkBook": {
		"cls": "constants",
		"name": "《战斗技巧》",
		"text": "战斗的前3个回合攻击力提升至150%",
		"itemEffect": "core.flags.useLoop = true;"
	},
	"defBook": {
		"cls": "constants",
		"name": "《战地工事》",
		"text": "战斗的前3个回合防御力提升至200%"
	},
	"coke": {
		"cls": "constants",
		"name": "碳酸饮料",
		"text": "战斗后回复战前生命值的2%，不超过受到的伤害值"
	},
	"invisibilityCloak": {
		"cls": "constants",
		"name": "隐形斗篷",
		"text": "不再受到敌方主动远程攻击"
	},
	"divingMask": {
		"cls": "constants",
		"name": "潜水套装",
		"text": "可以在水下探索",
		"itemEffect": "// 去除所有楼层设置的移动限制\nfor (let floorId in core.floors) {\n\tcore.floors[floorId].cannotMove = {};\n}\nif (flags.cannotMove) delete flags.cannotMove;",
		"itemEffectTip": "，可以在水下探索"
	},
	"electricity": {
		"cls": "constants",
		"name": "电能术式",
		"text": "攻击任意敌人时，对周围3×3范围内的其它敌人造成攻击力150%的伤害"
	},
	"trident": {
		"cls": "constants",
		"name": "鱼叉",
		"text": "对水下敌人的伤害提升至125%"
	},
	"magicArmor": {
		"cls": "constants",
		"name": "法术护盾",
		"text": "受到的法术伤害降低50%"
	},
	"frozenFish": {
		"cls": "constants",
		"name": "冻鱼",
		"text": "使敌人受到随回合数递增的额外伤害，10回合后达到最大",
		"itemEffect": "core.flags.useLoop = true;"
	},
	"fishingRod": {
		"cls": "tools",
		"name": "钓竿",
		"canUseItemEffect": "true",
		"text": "获得远处的一个物品",
		"useItemEffect": "core.addItem(itemId, 1); // 在成功使用前不消耗\ncore.plugin.toggleShooting((target) => {\n\tlet { x, y } = target;\n\tif (core.getBlockCls(x, y) == 'items') {\n\t\tcore.autosave();\n\t\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n\t\t// 获得该点物品\n\t\tlet item = core.getBlockId(x, y);\n\t\tcore.getItem(item, 1, x, y);\n\t\t// 结束使用并扣除道具\n\t\tcore.removeItem(itemId, 1);\n\t\t// 记录录像\n\t\tcore.status.route.push(`fishing:${x}:${y}`);\n\t\tcore.plugin.cancelShooting();\n\t} else {\n\t\tcore.playSound('操作失败');\n\t\tcore.drawTip('当前无法使用' + core.material.items[itemId].name);\n\t}\n});"
	},
	"push": {
		"cls": "tools",
		"name": "水炮",
		"canUseItemEffect": "true",
		"text": "将前方的一个敌人推远一格",
		"useItemEffect": "// 检测身前直线上的怪物\nlet { x, y, direction } = core.getHeroLoc();\nconst { x: stepX, y: stepY } = core.utils.scan[direction];\nlet toMove = [];\nlet findEnemy = false;\nlet canMove = false;\ndo {\n\tx += stepX;\n\ty += stepY;\n\tlet blockCls = core.getBlockCls(x, y);\n\tif (findEnemy) {\n\t\t// 检测到空地，可以移动\n\t\tif (blockCls === null || core.getBlockId(x, y) === 'none') {\n\t\t\tcanMove = true;\n\t\t\tbreak;\n\t\t}\n\t\t// 检测到不可进入地块或下一个敌人，不可移动\n\t\tif (blockCls == 'enemys' || blockCls == 'enemy48' || ['portal', 'upPortal', 'leftPortal', 'downPortal', 'rightPortal'].includes(core.getBlockId(x, y)) ||\n\t\t\tcore.getBlock(x, y).event.noPass) {\n\t\t\ttoMove = [];\n\t\t\tbreak;\n\t\t}\n\t\t// 其它地块都会被一起推动\n\t\ttoMove.push([x, y]);\n\t} else if (blockCls == 'enemys' || blockCls == 'enemy48') {\n\t\tif (core.getBlockId(x, y) == 'blueKing' || core.getBlockId(x, y) == 'xiu') break; // 不可移动的敌人\n\t\ttoMove.push([x, y]);\n\t\tfindEnemy = true;\n\t}\n} while (x >= 0 && x < core.bigmap.width && y >= 0 && y < core.bigmap.height);\n\nif (canMove) {\n\tcore.autosave();\n\tcore.playSound('save.mp3');\n\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n\t// 从最后一个开始移动图块和事件\n\tfor (let i = toMove.length - 1; i >= 0; i--) {\n\t\tlet [x, y] = toMove[i];\n\t\tcore.plugin.moveBlockandEvent(x, y, [direction], 200, true);\n\t}\n} else {\n\tcore.playSound('操作失败');\n\tcore.drawTip('当前无法使用' + core.material.items[itemId].name);\n\tcore.addItem(itemId, 1);\n}"
	},
	"dice": {
		"cls": "constants",
		"name": "色子",
		"text": "每次战斗前随机触发以下效果之一：攻击+10%；防御+10%；免疫法术伤害；护盾+200"
	},
	"magicDice": {
		"cls": "constants",
		"name": "魔力色子",
		"text": "每次战斗后随机触发以下效果之一：攻击永久+1；防御永久+1；护盾永久+1；生命值+100"
	},
	"luckyDice": {
		"cls": "constants",
		"name": "幸运色子",
		"text": "每次战斗后随机获得一定量的金币"
	},
	"I594": {
		"cls": "items",
		"name": "铜元",
		"canUseItemEffect": "true",
		"itemEffectTip": "，金币+1",
		"itemEffect": "core.status.hero.money += 1"
	},
	"I595": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I596": {
		"cls": "items",
		"name": "银元",
		"canUseItemEffect": "true",
		"itemEffectTip": "，金币+10",
		"itemEffect": "core.status.hero.money += 10"
	},
	"I597": {
		"cls": "items",
		"name": "金元",
		"canUseItemEffect": "true",
		"itemEffectTip": "，金币+50",
		"itemEffect": "core.status.hero.money += 50"
	},
	"I598": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I599": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I600": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I601": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I602": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I603": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I604": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I605": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I606": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I607": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I608": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I609": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"cake": {
		"cls": "tools",
		"name": "蛋糕",
		"canUseItemEffect": "true",
		"text": "生命值提升当前的50%",
		"useItemEffect": "core.autosave();\ncore.status.hero.hp *= 1.5;\ncore.playSound('回血');"
	},
	"placePortal": {
		"cls": "tools",
		"name": "传送器",
		"canUseItemEffect": "// 状态为shooting时关闭，否则检查当前位置是否为空\nconst { x, y } = core.getHeroLoc();\ncore.shooting || core.getBlockId(x, y) === null;",
		"text": "在当前位置和任一空地放置一对传送门",
		"useItemEffect": "core.addItem(itemId, 1); // 在成功使用前不消耗\ncore.plugin.toggleShooting((target) => {\n\tconst { x: targetX, y: targetY } = target;\n\tconst { x: currX, y: currY } = core.getHeroLoc();\n\tconst floorId = core.status.floorId;\n\tif ((targetX != currX || targetY != currY) &&\n\t\tcore.getBlockId(currX, currY) === null &&\n\t\tcore.getBlockId(targetX, targetY) === null &&\n\t\t(core.hasItem('divingMask') || core.getBgNumber(targetX, targetY) != 16)) {\n\t\tcore.autosave();\n\t\tcore.playSound('pickaxe.mp3');\n\t\tcore.drawTip(core.material.items[itemId].name + '使用成功');\n\t\t// 放置传送门\n\t\tcore.setBlock('portal', currX, currY);\n\t\tcore.setBlock('portal', targetX, targetY);\n\t\tlet teleport = core.getFlag('teleport', {});\n\t\tif (!teleport[floorId]) teleport[floorId] = {};\n\t\tteleport[floorId][currX + ',' + currY] = [targetX, targetY];\n\t\tteleport[floorId][targetX + ',' + targetY] = [currX, currY];\n\t\tcore.setFlag('teleport', teleport);\n\t\t// 结束使用并扣除道具\n\t\tcore.removeItem(itemId, 1);\n\t\t// 记录录像\n\t\tcore.status.route.push(`placePortal:${targetX}:${targetY}`);\n\t\tcore.plugin.cancelShooting();\n\t} else {\n\t\tcore.playSound('操作失败');\n\t\tcore.drawTip('当前无法放置传送门');\n\t}\n});"
	},
	"itemBox": {
		"cls": "items",
		"name": "宝物盒",
		"text": "随机获得一个道具",
		"itemEffect": "const currRegion = core.floors[core.status.floorId].area;\nconst item = core.plugin.getRandomItem(currRegion);\ncore.setFlag('lastItem', item);\ncore.getItem(item);",
		"itemEffectTip": "，随机获得一个道具"
	},
	"itemBox2": {
		"cls": "items",
		"name": "高级宝物盒",
		"text": "随机获得两个道具",
		"itemEffect": "const currRegion = core.floors[core.status.floorId].area;\nlet item1 = core.plugin.getRandomItem(currRegion);\ncore.getItem(item1);\nlet item2 = core.plugin.getRandomItem(currRegion);\ncore.getItem(item2);\ncore.setFlag('lastItem', [item1, item2]);",
		"itemEffectTip": "，随机获得两个道具"
	},
	"I447": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"curseDice": {
		"cls": "constants",
		"name": "诅咒色子",
		"text": "立即使一个随机敌人生命、攻击、防御-50%",
		"itemEffectTip": "，使一个随机敌人生命、攻击、防御-50%",
		"itemEffect": "const { width, height } = core.floors[core.status.floorId];\nlet enemies = [];\nfor (let x = 0; x < width; x++) {\n\tfor (let y = 0; y < height; y++) {\n\t\tlet cls = core.getBlockCls(x, y);\n\t\tif (cls == 'enemys' || cls == 'enemy48') {\n\t\t\tenemies.push([x, y]);\n\t\t}\n\t}\n}\nif (enemies.length > 0) {\n\tlet r = Math.floor(core.rand() * enemies.length);\n\tlet [x, y] = enemies[r];\n\tlet enemyId = core.getBlockId(x, y);\n\tcore.setEnemyOnPoint(x, y, null, 'hp', core.getEnemyValue(null, 'hp', x, y) * 0.5);\n\tcore.setEnemyOnPoint(x, y, null, 'atk', core.getEnemyValue(null, 'atk', x, y) * 0.5);\n\tcore.setEnemyOnPoint(x, y, null, 'def', core.getEnemyValue(null, 'def', x, y) * 0.5);\n\tsetTimeout(() => {\n\t\tcore.drawTip('诅咒色子已作用于' + core.material.enemys[enemyId].name, 'curseDice');\n\t}, 1000);\n}"
	}
}