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 += Math.floor(core.values.redGem * core.status.thisMap.ratio)",
		"itemEffectTip": "，攻击+${Math.floor(core.values.redGem * core.status.thisMap.ratio)}",
		"useItemEffect": "core.status.hero.atk += Math.floor(core.values.redGem * core.status.thisMap.ratio)",
		"canUseItemEffect": "true",
		"useItemEvent": null
	},
	"blueGem": {
		"cls": "items",
		"name": "蓝宝石",
		"text": "，防御+${core.values.blueGem}",
		"itemEffect": "core.status.hero.def += Math.ceil(core.values.blueGem * core.status.thisMap.ratio)",
		"itemEffectTip": "，防御+${Math.ceil(core.values.blueGem * core.status.thisMap.ratio)}",
		"useItemEffect": "core.status.hero.def += Math.ceil(core.values.blueGem * core.status.thisMap.ratio)",
		"canUseItemEffect": "true"
	},
	"greenGem": {
		"cls": "items",
		"name": "绿宝石",
		"text": "，护盾+${core.values.greenGem}",
		"itemEffect": "core.status.hero.mdef += Math.ceil(core.values.greenGem * core.status.thisMap.ratio)",
		"itemEffectTip": "，护盾+${Math.ceil(core.values.greenGem * core.status.thisMap.ratio)}",
		"useItemEffect": "core.status.hero.mdef += Math.ceil(core.values.greenGem * core.status.thisMap.ratio)",
		"canUseItemEffect": "true"
	},
	"yellowGem": {
		"cls": "items",
		"name": "能量宝石",
		"text": "可以进行加点",
		"itemEffect": "",
		"itemEffectTip": "",
		"useItemEvent": [
			{
				"type": "choices",
				"text": "\t[获得能量宝石！]请选择加点：",
				"choices": [
					{
						"text": "攻击+2",
						"color": [
							255,
							85,
							85
						],
						"action": [
							{
								"type": "setValue",
								"name": "status:atk",
								"operator": "+=",
								"value": "2"
							},
							{
								"type": "playSound",
								"name": "open_ui.mp3"
							}
						]
					},
					{
						"text": "防御+3",
						"color": [
							69,
							209,
							224
						],
						"action": [
							{
								"type": "setValue",
								"name": "status:def",
								"operator": "+=",
								"value": "3"
							},
							{
								"type": "playSound",
								"name": "open_ui.mp3"
							}
						]
					},
					{
						"text": "护盾+24",
						"color": [
							69,
							224,
							146,
							1
						],
						"action": [
							{
								"type": "setValue",
								"name": "status:mdef",
								"operator": "+=",
								"value": "24"
							},
							{
								"type": "playSound",
								"name": "open_ui.mp3"
							}
						]
					},
					{
						"text": "生命+300",
						"color": [
							160,
							247,
							83
						],
						"action": [
							{
								"type": "setValue",
								"name": "status:hp",
								"operator": "+=",
								"value": "300"
							},
							{
								"type": "playSound",
								"name": "回血"
							}
						]
					},
					{
						"text": "取消",
						"color": [
							255,
							255,
							255,
							1
						],
						"action": [
							{
								"type": "playSound",
								"name": "取消"
							},
							{
								"type": "setValue",
								"name": "item:yellowGem",
								"operator": "+=",
								"value": "1"
							}
						]
					}
				]
			}
		],
		"canUseItemEffect": "true"
	},
	"redPotion": {
		"cls": "items",
		"name": "红药水",
		"text": "，生命+${core.values.redPotion+ core.status.hero.mdef * core.status.thisMap.ratio}",
		"itemEffect": "core.status.hero.hp += Math.ceil(core.values.redPotion * core.status.thisMap.ratio) + core.status.hero.mdef * core.status.thisMap.ratio",
		"itemEffectTip": "，生命+${Math.ceil(core.values.redPotion * core.status.thisMap.ratio)+ core.status.hero.mdef * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.hp += core.values.redPotion + core.status.hero.mdef * core.status.thisMap.ratio",
		"canUseItemEffect": "true"
	},
	"bluePotion": {
		"cls": "items",
		"name": "蓝药水",
		"text": "，生命+${core.values.bluePotion+ core.status.hero.mdef * core.status.thisMap.ratio}",
		"itemEffect": "core.status.hero.hp += core.values.bluePotion * core.status.thisMap.ratio + core.status.hero.mdef * core.status.thisMap.ratio",
		"itemEffectTip": "，生命+${core.values.bluePotion * core.status.thisMap.ratio+ core.status.hero.mdef * core.status.thisMap.ratio}",
		"useItemEffect": "core.status.hero.hp += core.values.bluePotion + core.status.hero.mdef * core.status.thisMap.ratio",
		"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
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.atk += 0",
		"itemEffectTip": "，攻击+0"
	},
	"sword1": {
		"cls": "items",
		"name": "铁剑",
		"text": "一把很普通的铁剑",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 2
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.atk += 2",
		"itemEffectTip": "，攻击+2"
	},
	"sword2": {
		"cls": "items",
		"name": "银剑",
		"text": "一把很普通的银剑",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 8
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.atk += 8",
		"itemEffectTip": "，攻击+8"
	},
	"sword3": {
		"cls": "items",
		"name": "骑士剑",
		"text": "一把很普通的骑士剑",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 10
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.atk += 10",
		"itemEffectTip": "，攻击+10"
	},
	"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": {
				"mdef": 142,
				"def": 75,
				"atk": 125
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.atk += 125\ncore.status.hero.def += 75;\ncore.status.hero.mdef += 142\ncore.status.hero.hp += 1330",
		"itemEffectTip": "，攻击+119",
		"useItemEvent": [
			{
				"type": "setValue",
				"name": "item:yellowKey",
				"operator": "+=",
				"value": "2"
			},
			{
				"type": "setValue",
				"name": "item:blueKey",
				"operator": "+=",
				"value": "2"
			},
			{
				"type": "setValue",
				"name": "item:redKey",
				"operator": "+=",
				"value": "1"
			},
			{
				"type": "setValue",
				"name": "status:money",
				"operator": "+=",
				"value": "500"
			}
		]
	},
	"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": 2
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.def += 2",
		"itemEffectTip": "，防御+2"
	},
	"shield2": {
		"cls": "items",
		"name": "银盾",
		"text": "一个很普通的银盾",
		"equip": {
			"type": 1,
			"value": {
				"def": 8
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.def += 8",
		"itemEffectTip": "，防御+8"
	},
	"shield3": {
		"cls": "items",
		"name": "骑士盾",
		"text": "一个很普通的骑士盾",
		"equip": {
			"type": 1,
			"value": {
				"def": 8,
				"mdef": 10
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.def += 8\ncore.status.hero.mdef += 10",
		"itemEffectTip": "，防御+8，护盾+10"
	},
	"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": {
				"mdef": 142,
				"def": 69
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.def += 69;\ncore.status.hero.mdef += 142",
		"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": "生命值翻倍"
	},
	"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.flags.flyNearStair && !core.nearStair()) 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": "该道具尚未被定义"
	},
	"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) { // 多方向破默认四方向，如需改成八方向请将这两个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 (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.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\t// 无法使用\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"
	},
	"icePickaxe": {
		"cls": "tools",
		"name": "破冰镐",
		"text": "可以破坏勇士面前的一堵冰墙",
		"useItemEffect": "(function () {\n\tcore.drawTip(core.material.items[itemId].name + '使用成功', itemId);\n\tcore.insertAction({ \"type\": \"openDoor\", \"loc\": [\"core.nextX()\", \"core.nextY()\"] });\n})();",
		"canUseItemEffect": "(function () {\n\treturn core.getBlockId(core.nextX(), core.nextY()) == 'ice';\n})();"
	},
	"bomb": {
		"cls": "tools",
		"name": "炸弹",
		"text": "可以炸掉勇士面前的怪物",
		"useItemEffect": "(function () {\n\tvar bombList = []; // 炸掉的怪物坐标列表\n\tvar todo = []; // 炸弹后事件\n\tvar money = 0,\n\t\texp = 0; // 炸弹获得的金币和经验\n\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 bomb = function (x, y) {\n\t\tif (!canBomb(x, y)) return;\n\t\tbombList.push([x, y]);\n\t\tvar id = core.getBlockId(x, y),\n\t\t\tenemy = core.material.enemys[id];\n\t\tmoney += core.getEnemyValue(enemy, 'money', x, y) || 0;\n\t\texp += core.getEnemyValue(enemy, 'exp', x, y) || 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",
		"useItemEvent": null
	},
	"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})();",
		"useItemEvent": null
	},
	"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": "tools",
		"name": "圣锤",
		"text": "该道具尚未被定义"
	},
	"lifeWand": {
		"cls": "tools",
		"name": "生命魔杖",
		"text": "可以恢复100点生命值",
		"useItemEvent": [
			{
				"type": "comment",
				"text": "先恢复一个魔杖（因为使用道具必须消耗一个）"
			},
			{
				"type": "function",
				"function": "function(){\ncore.addItem('lifeWand', 1);\n}"
			},
			{
				"type": "playSound",
				"name": "打开界面"
			},
			{
				"type": "input",
				"text": "请输入生命魔杖使用次数：(0-${item:lifeWand})"
			},
			{
				"type": "comment",
				"text": "【接受用户输入】弹窗输入的结果将会保存在“flag:input”中\n如果需要更多帮助，请查阅帮助文档"
			},
			{
				"type": "if",
				"condition": "flag:input<=item:lifeWand",
				"true": [
					{
						"type": "setValue",
						"name": "item:lifeWand",
						"operator": "-=",
						"value": "flag:input"
					},
					{
						"type": "setValue",
						"name": "status:hp",
						"operator": "+=",
						"value": "flag:input*100"
					},
					{
						"type": "playSound",
						"name": "回血"
					},
					"成功使用${flag:input}次生命魔杖，恢复${flag:input*100}点生命。"
				],
				"false": [
					{
						"type": "playSound",
						"name": "操作失败"
					},
					"输入不合法！"
				]
			}
		],
		"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": "constants",
		"name": "显值权杖",
		"canUseItemEffect": "true",
		"useItemEvent": [
			{
				"type": "confirm",
				"default": true,
				"text": "要开启/关闭宝石血瓶显值吗？",
				"yes": [
					{
						"type": "if",
						"condition": "(flag:itemDetail===true)",
						"true": [
							{
								"type": "setValue",
								"name": "flag:itemDetail",
								"value": "false"
							}
						],
						"false": [
							{
								"type": "setValue",
								"name": "flag:itemDetail",
								"value": "true"
							}
						]
					}
				],
				"no": []
			}
		],
		"text": "可以开启/关闭宝石血瓶显值",
		"itemEffect": null
	},
	"pack": {
		"cls": "items",
		"name": "钱袋",
		"itemEffect": "core.status.hero.money += Math.ceil(5 * core.status.thisMap.ratio)",
		"itemEffectTip": "，金币+${Math.ceil(5 * core.status.thisMap.ratio)}",
		"useItemEffect": "core.status.hero.money += Math.ceil(5 * core.status.thisMap.ratio)",
		"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"
	},
	"I337": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I338": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I340": {
		"cls": "items",
		"name": "幸运币",
		"canUseItemEffect": "true",
		"text": null,
		"itemEffect": "core.status.hero.money += Math.ceil(20 * core.status.thisMap.ratio - 30)",
		"itemEffectTip": "，金币+${Math.ceil(20 * core.status.thisMap.ratio - 30)}",
		"useItemEffect": "core.status.hero.money += Math.ceil(20 * core.status.thisMap.ratio - 30)"
	},
	"I341": {
		"cls": "constants",
		"name": "水晶球",
		"canUseItemEffect": "true",
		"useItemEffect": "",
		"useItemEvent": [
			"\t[水晶球,I341]①\r[gold]\\d全塔总分\r\\d按\r[aqua]\\d<已达最高层数*1000万+红钥匙数量*20万+特殊道具总数*10万+生命>\r\\d计分！\n已达最高层数是排行的主要指标，同层玩家再比较后七位的得分~\n②\r[red]\\d爆攻天神\r\\d按\r[aqua]\\d<攻击>\r\\d计分~\n③\r[blue]\\d御敌至尊\r\\d按\r[aqua]\\d<防御>\r\\d计分~\n④\r[lime]\\d守护圣贤\r\\d按\r[aqua]\\d<护盾>\r\\d计分~\n⑤\r[teal]\\d全职高手\r\\d按\r[aqua]\\d<攻击*10.5+防御*7+护盾>\r\\d计分(当前\r[gold]\\d${Math.ceil(status:atk*10.5)+status:def*7+status:mdef}\r\\d)~",
			"\t[水晶球,I341]计分则结束游戏，结束时系统会帮你自动存档！",
			{
				"type": "confirm",
				"text": "确定要计分吗？",
				"yes": [
					{
						"type": "choices",
						"text": "\t[水晶球,I341]计分结算",
						"choices": [
							{
								"text": "计分：全塔总分(正式版)",
								"color": [
									235,
									228,
									78,
									1
								],
								"action": [
									{
										"type": "if",
										"condition": "(flag:floor>=30)",
										"true": [
											"\t[水晶球,I341]正在为你计算分数……（点击查看）",
											{
												"type": "playSound",
												"name": "确定"
											},
											{
												"type": "autoSave",
												"removeLast": true
											},
											{
												"type": "hideStatusBar"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"operator": "+=",
												"value": "flag:floor*10000000"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"operator": "+=",
												"value": "item:redKey*200000"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"operator": "+=",
												"value": "item:pickaxe*100000"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"operator": "+=",
												"value": "item:steelKey*100000"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"operator": "+=",
												"value": "item:centerFly*100000"
											},
											{
												"type": "win",
												"reason": "全塔总分(正式版)"
											}
										],
										"false": [
											{
												"type": "playSound",
												"name": "操作失败"
											},
											"\t[水晶球,I341]该榜达到\r[aqua]\\d30层\r\\d以后才能计分喔！"
										]
									}
								]
							},
							{
								"text": "计分：爆攻天神(攻击计分)",
								"color": [
									235,
									78,
									78,
									1
								],
								"action": [
									{
										"type": "if",
										"condition": "(flag:floor>=101)",
										"true": [
											"\t[水晶球,I341]正在为你计算分数……（点击查看）",
											{
												"type": "playSound",
												"name": "确定"
											},
											{
												"type": "autoSave",
												"removeLast": true
											},
											{
												"type": "hideStatusBar"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"value": "1"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"operator": "+=",
												"value": "status:atk"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"operator": "-=",
												"value": "1"
											},
											{
												"type": "win",
												"reason": "爆攻天神(攻击计分)"
											}
										],
										"false": [
											{
												"type": "playSound",
												"name": "操作失败"
											},
											"\t[水晶球,I341]该榜达到\r[aqua]\\d101层\r\\d以后才能计分喔！"
										]
									}
								]
							},
							{
								"text": "计分：御敌至尊(防御计分)",
								"color": [
									109,
									78,
									235,
									1
								],
								"action": [
									{
										"type": "if",
										"condition": "(flag:floor>=101)",
										"true": [
											"\t[水晶球,I341]正在为你计算分数……（点击查看）",
											{
												"type": "playSound",
												"name": "确定"
											},
											{
												"type": "autoSave",
												"removeLast": true
											},
											{
												"type": "hideStatusBar"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"value": "1"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"operator": "+=",
												"value": "status:def"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"operator": "-=",
												"value": "1"
											},
											{
												"type": "win",
												"reason": "御敌至尊(防御计分)"
											}
										],
										"false": [
											{
												"type": "playSound",
												"name": "操作失败"
											},
											"\t[水晶球,I341]该榜达到\r[aqua]\\d101层\r\\d以后才能计分喔！"
										]
									}
								]
							},
							{
								"text": "计分：守护圣贤(护盾计分)",
								"color": [
									89,
									235,
									78,
									1
								],
								"action": [
									{
										"type": "if",
										"condition": "(flag:floor>=101)",
										"true": [
											"\t[水晶球,I341]正在为你计算分数……（点击查看）",
											{
												"type": "playSound",
												"name": "确定"
											},
											{
												"type": "autoSave",
												"removeLast": true
											},
											{
												"type": "hideStatusBar"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"value": "1"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"operator": "+=",
												"value": "status:mdef"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"operator": "-=",
												"value": "1"
											},
											{
												"type": "win",
												"reason": "守护圣贤(护盾计分)"
											}
										],
										"false": [
											{
												"type": "playSound",
												"name": "操作失败"
											},
											"\t[水晶球,I341]该榜达到\r[aqua]\\d101层\r\\d以后才能计分喔！"
										]
									}
								]
							},
							{
								"text": "计分：全职高手(三围计分)",
								"color": [
									0,
									161,
									161,
									1
								],
								"action": [
									{
										"type": "if",
										"condition": "(flag:floor>=101)",
										"true": [
											"\t[水晶球,I341]正在为你计算分数……（点击查看）",
											{
												"type": "playSound",
												"name": "确定"
											},
											{
												"type": "autoSave",
												"removeLast": true
											},
											{
												"type": "hideStatusBar"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"value": "1"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"operator": "+=",
												"value": "status:atk*10.5"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"operator": "+=",
												"value": "status:def*7"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"operator": "+=",
												"value": "status:mdef"
											},
											{
												"type": "setValue",
												"name": "status:hp",
												"operator": "-=",
												"value": "1"
											},
											{
												"type": "win",
												"reason": "全职高手(三围计分)"
											}
										],
										"false": [
											{
												"type": "playSound",
												"name": "操作失败"
											},
											"\t[水晶球,I341]该榜达到\r[aqua]\\d101层\r\\d以后才能计分喔！"
										]
									}
								]
							},
							{
								"text": "取消",
								"color": [
									255,
									255,
									255,
									1
								],
								"action": [
									{
										"type": "playSound",
										"name": "取消"
									}
								]
							}
						]
					}
				],
				"no": [
					{
						"type": "playSound",
						"name": "取消"
					}
				]
			}
		],
		"text": "计分道具"
	},
	"I342": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I343": {
		"cls": "constants",
		"name": "播放器",
		"canUseItemEffect": "true",
		"useItemEvent": [
			{
				"type": "confirm",
				"default": true,
				"text": "你要切换\r[aqua]BGM\r吗？",
				"yes": [
					{
						"type": "choices",
						"text": "\t[切换BGM,I343]请选择歌单",
						"choices": [
							{
								"text": "歌单A：\r[lime]舒缓\r、\r[lime]平和\r",
								"color": [
									255,
									255,
									255,
									1
								],
								"action": [
									{
										"type": "playSound",
										"name": "确定"
									},
									{
										"type": "choices",
										"text": "\t[歌单A,I343]请选择你想听的BGM：",
										"choices": [
											{
												"text": "いつかのメリークリスマス",
												"color": [
													255,
													255,
													255,
													1
												],
												"action": [
													{
														"type": "playSound",
														"name": "确定"
													},
													{
														"type": "playBgm",
														"name": "1qu.mp3",
														"keep": true
													}
												]
											},
											{
												"text": "やさしい星座",
												"color": [
													255,
													255,
													255,
													1
												],
												"action": [
													{
														"type": "playSound",
														"name": "确定"
													},
													{
														"type": "playBgm",
														"name": "2qu.mp3",
														"keep": true
													}
												]
											},
											{
												"text": "告别",
												"color": [
													255,
													255,
													255,
													1
												],
												"action": [
													{
														"type": "playSound",
														"name": "确定"
													},
													{
														"type": "playBgm",
														"name": "4qu.mp3",
														"keep": true
													}
												]
											},
											{
												"text": "Dream Away",
												"color": [
													255,
													255,
													255,
													1
												],
												"action": [
													{
														"type": "playSound",
														"name": "确定"
													},
													{
														"type": "playBgm",
														"name": "3qu.mp3",
														"keep": true
													}
												]
											},
											{
												"text": "取消",
												"action": [
													{
														"type": "playSound",
														"name": "取消"
													}
												]
											}
										]
									}
								]
							},
							{
								"text": "歌单B：\r[red]激进\r、\r[red]深邃\r",
								"color": [
									255,
									255,
									255,
									1
								],
								"action": [
									{
										"type": "playSound",
										"name": "确定"
									},
									{
										"type": "choices",
										"text": "\t[歌单B,I343]请选择你想听的BGM：",
										"choices": [
											{
												"text": "Alpha",
												"color": [
													255,
													255,
													255,
													1
												],
												"action": [
													{
														"type": "playSound",
														"name": "确定"
													},
													{
														"type": "playBgm",
														"name": "5qu.mp3",
														"keep": true
													}
												]
											},
											{
												"text": "Elektric",
												"color": [
													255,
													255,
													255,
													1
												],
												"action": [
													{
														"type": "playSound",
														"name": "确定"
													},
													{
														"type": "playBgm",
														"name": "6qu.mp3",
														"keep": true
													}
												]
											},
											{
												"text": "Boundless Imagination",
												"color": [
													255,
													255,
													255,
													1
												],
												"action": [
													{
														"type": "playSound",
														"name": "确定"
													},
													{
														"type": "playBgm",
														"name": "boss.mp3",
														"keep": true
													}
												]
											},
											{
												"text": "取消",
												"action": [
													{
														"type": "playSound",
														"name": "取消"
													}
												]
											}
										]
									}
								]
							},
							{
								"text": "取消",
								"action": [
									{
										"type": "playSound",
										"name": "取消"
									}
								]
							}
						]
					}
				],
				"no": [
					{
						"type": "playSound",
						"name": "取消"
					}
				]
			}
		],
		"text": "可以切换BGM的播放器"
	},
	"I339a": {
		"cls": "tools",
		"name": "新物品",
		"canUseItemEffect": "true",
		"useItemEvent": [
			{
				"type": "confirm",
				"text": "需要\r[aqua]转换能力\r吗？(确定后有选项，可取消)",
				"yes": [
					{
						"type": "playSound",
						"name": "确定"
					},
					{
						"type": "choices",
						"text": "\t[能力转换器,I339]你需要获得哪种能力？(确定后有选项，可取消)",
						"choices": [
							{
								"text": "+${flags.change*core.values.bluePotion*3}生命",
								"color": [
									235,
									228,
									78,
									1
								],
								"action": [
									{
										"type": "choices",
										"text": "\t[能力转换器,I339]你需要将哪种能力转换为\n\r[aqua]+${flags.change*core.values.bluePotion*3}生命\r",
										"choices": [
											{
												"text": "-${Math.floor(core.values.redGem * flags.change)}攻击",
												"color": [
													235,
													78,
													78,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:atk>=Math.floor(core.values.redGem * flags.change))",
														"true": [
															{
																"type": "setValue",
																"name": "status:atk",
																"operator": "-=",
																"value": "Math.floor(core.values.redGem * flags.change)"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:hp",
																"operator": "+=",
																"value": "flags.change*core.values.bluePotion*3"
															},
															{
																"type": "playSound",
																"name": "回血"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "-${Math.ceil(core.values.blueGem * flags.change/2*3)}防御",
												"color": [
													109,
													78,
													235,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:def>=Math.ceil(core.values.blueGem * flags.change/2*3))",
														"true": [
															{
																"type": "setValue",
																"name": "status:def",
																"operator": "-=",
																"value": "Math.ceil(core.values.blueGem * flags.change/2*3)"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:hp",
																"operator": "+=",
																"value": "flags.change*core.values.bluePotion*3"
															},
															{
																"type": "playSound",
																"name": "回血"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "-${Math.ceil(core.values.greenGem  * flags.change*3)}护盾",
												"color": [
													89,
													235,
													78,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:mdef>=Math.ceil(core.values.greenGem  * flags.change*3))",
														"true": [
															{
																"type": "setValue",
																"name": "status:mdef",
																"operator": "-=",
																"value": "Math.ceil(core.values.greenGem  * flags.change*3)"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:hp",
																"operator": "+=",
																"value": "flags.change*core.values.bluePotion*3"
															},
															{
																"type": "playSound",
																"name": "回血"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "取消",
												"action": [
													{
														"type": "playSound",
														"name": "取消"
													},
													{
														"type": "setValue",
														"name": "item:I339",
														"operator": "+=",
														"value": "1"
													}
												]
											}
										]
									}
								]
							},
							{
								"text": "+${Math.floor(core.values.redGem * flags.change)}攻击",
								"color": [
									235,
									78,
									78,
									1
								],
								"action": [
									{
										"type": "choices",
										"text": "\t[能力转换器,I339]你需要将哪种能力转换为\n\r[aqua]+${Math.floor(core.values.redGem * flags.change)}攻击\r",
										"choices": [
											{
												"text": "-${Math.ceil(core.values.blueGem * flags.change/2*3)}防御",
												"color": [
													109,
													78,
													235,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:def>=Math.ceil(core.values.blueGem * flags.change/2*3))",
														"true": [
															{
																"type": "setValue",
																"name": "status:def",
																"operator": "-=",
																"value": "Math.ceil(core.values.blueGem * flags.change/2*3)"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:atk",
																"operator": "+=",
																"value": "Math.floor(core.values.redGem * flags.change)"
															},
															{
																"type": "playSound",
																"name": "打开界面"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "-${Math.ceil(core.values.greenGem  * flags.change*3)}护盾",
												"color": [
													89,
													235,
													78,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:mdef>=Math.ceil(core.values.greenGem  * flags.change*3))",
														"true": [
															{
																"type": "setValue",
																"name": "status:mdef",
																"operator": "-=",
																"value": "Math.ceil(core.values.greenGem  * flags.change*3)"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:atk",
																"operator": "+=",
																"value": "Math.floor(core.values.redGem * flags.change)"
															},
															{
																"type": "playSound",
																"name": "确定"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "取消",
												"action": [
													{
														"type": "playSound",
														"name": "取消"
													},
													{
														"type": "setValue",
														"name": "item:I339",
														"operator": "+=",
														"value": "1"
													}
												]
											}
										]
									}
								]
							},
							{
								"text": "+${Math.ceil(core.values.blueGem * flags.change/2*3)}防御",
								"color": [
									109,
									78,
									235,
									1
								],
								"action": [
									{
										"type": "choices",
										"text": "\t[能力转换器,I339]你需要将哪种能力转换为\n\r[aqua]+${Math.ceil(core.values.blueGem * flags.change/2*3)}防御\r",
										"choices": [
											{
												"text": "-${Math.floor(core.values.redGem * flags.change)}攻击",
												"color": [
													235,
													78,
													78,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:atk>=Math.floor(core.values.redGem * flags.change))",
														"true": [
															{
																"type": "setValue",
																"name": "status:atk",
																"operator": "-=",
																"value": "Math.floor(core.values.redGem * flags.change)"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:def",
																"operator": "+=",
																"value": "Math.ceil(core.values.blueGem * flags.change/2*3)"
															},
															{
																"type": "playSound",
																"name": "确定"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "-${Math.ceil(core.values.greenGem  * flags.change*3)}护盾",
												"color": [
													89,
													235,
													78,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:mdef>=Math.ceil(core.values.greenGem  * flags.change*3))",
														"true": [
															{
																"type": "setValue",
																"name": "status:mdef",
																"operator": "-=",
																"value": "Math.ceil(core.values.greenGem  * flags.change*3)"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:def",
																"operator": "+=",
																"value": "Math.ceil(core.values.blueGem * flags.change/2*3)"
															},
															{
																"type": "playSound",
																"name": "确定"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "取消",
												"action": [
													{
														"type": "playSound",
														"name": "取消"
													},
													{
														"type": "setValue",
														"name": "item:I339",
														"operator": "+=",
														"value": "1"
													}
												]
											}
										]
									}
								]
							},
							{
								"text": "+${Math.ceil(core.values.greenGem  * flags.change*3)}护盾",
								"color": [
									89,
									235,
									78,
									1
								],
								"action": [
									{
										"type": "choices",
										"text": "\t[能力转换器,I339]你需要将哪种能力转换为\n\r[aqua]+${Math.ceil(core.values.greenGem  * flags.change*3)}护盾\r",
										"choices": [
											{
												"text": "-${Math.floor(core.values.redGem * flags.change)}攻击",
												"color": [
													235,
													78,
													78,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:atk>=Math.floor(core.values.redGem * flags.change))",
														"true": [
															{
																"type": "setValue",
																"name": "status:atk",
																"operator": "-=",
																"value": "Math.floor(core.values.redGem * flags.change)"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:mdef",
																"operator": "+=",
																"value": "Math.ceil(core.values.greenGem  * flags.change*3)"
															},
															{
																"type": "playSound",
																"name": "确定"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "-${Math.ceil(core.values.blueGem * flags.change/2*3)}防御",
												"color": [
													109,
													78,
													235,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:def>=Math.ceil(core.values.blueGem * flags.change/2*3))",
														"true": [
															{
																"type": "setValue",
																"name": "status:def",
																"operator": "-=",
																"value": "Math.ceil(core.values.blueGem * flags.change/2*3)"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:mdef",
																"operator": "+=",
																"value": "Math.ceil(core.values.greenGem  * flags.change*3)"
															},
															{
																"type": "playSound",
																"name": "确定"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "取消",
												"action": [
													{
														"type": "playSound",
														"name": "取消"
													},
													{
														"type": "setValue",
														"name": "item:I339",
														"operator": "+=",
														"value": "1"
													}
												]
											}
										]
									}
								]
							},
							{
								"text": "取消",
								"action": [
									{
										"type": "playSound",
										"name": "取消"
									},
									{
										"type": "setValue",
										"name": "item:I339",
										"operator": "+=",
										"value": "1"
									}
								]
							}
						]
					}
				],
				"no": [
					{
						"type": "playSound",
						"name": "取消"
					},
					{
						"type": "setValue",
						"name": "item:I339",
						"operator": "+=",
						"value": "1"
					}
				]
			}
		],
		"text": "可以转换能力的消耗品"
	},
	"I339": {
		"cls": "tools",
		"name": "能力转换器",
		"text": "可以转换能力的消耗品，不计分，冲榜前记得转换",
		"useItemEvent": [
			{
				"type": "confirm",
				"default": true,
				"text": "需要\r[aqua]转换能力\r吗？(确定后有选项，可取消)",
				"yes": [
					{
						"type": "playSound",
						"name": "确定"
					},
					{
						"type": "choices",
						"text": "\t[能力转换器,I339]你需要获得哪种能力？(确定后有选项，可取消)",
						"choices": [
							{
								"text": "+2攻击",
								"color": [
									235,
									78,
									78,
									1
								],
								"action": [
									{
										"type": "playSound",
										"name": "确定"
									},
									{
										"type": "choices",
										"text": "\t[能力转换器,I339]你需要将哪种能力转换为\n\r[aqua]+2攻击\r",
										"choices": [
											{
												"text": "-2防御",
												"color": [
													109,
													78,
													235,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:def>=2)",
														"true": [
															{
																"type": "setValue",
																"name": "status:def",
																"operator": "-=",
																"value": "2"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:atk",
																"operator": "+=",
																"value": "2"
															},
															{
																"type": "playSound",
																"name": "打开界面"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "-20护盾",
												"color": [
													89,
													235,
													78,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:mdef>=20)",
														"true": [
															{
																"type": "setValue",
																"name": "status:mdef",
																"operator": "-=",
																"value": "20"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:atk",
																"operator": "+=",
																"value": "2"
															},
															{
																"type": "playSound",
																"name": "确定"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "取消",
												"action": [
													{
														"type": "playSound",
														"name": "取消"
													},
													{
														"type": "setValue",
														"name": "item:I339",
														"operator": "+=",
														"value": "1"
													}
												]
											}
										]
									}
								]
							},
							{
								"text": "+2防御",
								"color": [
									109,
									78,
									235,
									1
								],
								"action": [
									{
										"type": "playSound",
										"name": "确定"
									},
									{
										"type": "choices",
										"text": "\t[能力转换器,I339]你需要将哪种能力转换为\n\r[aqua]+2防御\r",
										"choices": [
											{
												"text": "-2攻击",
												"color": [
													235,
													78,
													78,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:atk>=2)",
														"true": [
															{
																"type": "setValue",
																"name": "status:atk",
																"operator": "-=",
																"value": "2"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:def",
																"operator": "+=",
																"value": "2"
															},
															{
																"type": "playSound",
																"name": "确定"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "-20护盾",
												"color": [
													89,
													235,
													78,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:mdef>=20)",
														"true": [
															{
																"type": "setValue",
																"name": "status:mdef",
																"operator": "-=",
																"value": "20"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:def",
																"operator": "+=",
																"value": "2"
															},
															{
																"type": "playSound",
																"name": "确定"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "取消",
												"action": [
													{
														"type": "playSound",
														"name": "取消"
													},
													{
														"type": "setValue",
														"name": "item:I339",
														"operator": "+=",
														"value": "1"
													}
												]
											}
										]
									}
								]
							},
							{
								"text": "+20护盾",
								"color": [
									89,
									235,
									78,
									1
								],
								"action": [
									{
										"type": "playSound",
										"name": "确定"
									},
									{
										"type": "choices",
										"text": "\t[能力转换器,I339]你需要将哪种能力转换为\n\r[aqua]+20护盾\r",
										"choices": [
											{
												"text": "-2攻击",
												"color": [
													235,
													78,
													78,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:atk>=2)",
														"true": [
															{
																"type": "setValue",
																"name": "status:atk",
																"operator": "-=",
																"value": "2"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:mdef",
																"operator": "+=",
																"value": "20"
															},
															{
																"type": "playSound",
																"name": "确定"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "-2防御",
												"color": [
													109,
													78,
													235,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:def>=2)",
														"true": [
															{
																"type": "setValue",
																"name": "status:def",
																"operator": "-=",
																"value": "2"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:mdef",
																"operator": "+=",
																"value": "20"
															},
															{
																"type": "playSound",
																"name": "确定"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "取消",
												"action": [
													{
														"type": "playSound",
														"name": "取消"
													},
													{
														"type": "setValue",
														"name": "item:I339",
														"operator": "+=",
														"value": "1"
													}
												]
											}
										]
									}
								]
							},
							{
								"text": "+${100+ core.status.hero.mdef * core.status.thisMap.ratio}生命",
								"color": [
									235,
									228,
									78,
									1
								],
								"action": [
									{
										"type": "playSound",
										"name": "确定"
									},
									{
										"type": "choices",
										"text": "\t[能力转换器,I339]你需要将哪种能力转换为\n\r[aqua]+${100+ core.status.hero.mdef * core.status.thisMap.ratio}生命\r",
										"choices": [
											{
												"text": "-2攻击",
												"color": [
													235,
													78,
													78,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:atk>=2)",
														"true": [
															{
																"type": "setValue",
																"name": "status:atk",
																"operator": "-=",
																"value": "2"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:hp",
																"operator": "+=",
																"value": "100+ core.status.hero.mdef * core.status.thisMap.ratio"
															},
															{
																"type": "playSound",
																"name": "回血"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "-2防御",
												"color": [
													109,
													78,
													235,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:def>=2)",
														"true": [
															{
																"type": "setValue",
																"name": "status:def",
																"operator": "-=",
																"value": "2"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:hp",
																"operator": "+=",
																"value": "100+ core.status.hero.mdef * core.status.thisMap.ratio"
															},
															{
																"type": "playSound",
																"name": "回血"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "-20护盾",
												"color": [
													89,
													235,
													78,
													1
												],
												"action": [
													{
														"type": "if",
														"condition": "(status:mdef>=20)",
														"true": [
															{
																"type": "setValue",
																"name": "status:mdef",
																"operator": "-=",
																"value": "20"
															},
															{
																"type": "playSound",
																"name": "确定"
															},
															{
																"type": "setValue",
																"name": "status:hp",
																"operator": "+=",
																"value": "100+ core.status.hero.mdef * core.status.thisMap.ratio"
															},
															{
																"type": "playSound",
																"name": "回血"
															}
														],
														"false": [
															{
																"type": "playSound",
																"name": "操作失败"
															},
															{
																"type": "setValue",
																"name": "item:I339",
																"operator": "+=",
																"value": "1"
															},
															"\t[能力转换器,I339]该能力不足！"
														]
													}
												]
											},
											{
												"text": "取消",
												"action": [
													{
														"type": "playSound",
														"name": "取消"
													},
													{
														"type": "setValue",
														"name": "item:I339",
														"operator": "+=",
														"value": "1"
													}
												]
											}
										]
									}
								]
							},
							{
								"text": "取消",
								"action": [
									{
										"type": "playSound",
										"name": "取消"
									},
									{
										"type": "setValue",
										"name": "item:I339",
										"operator": "+=",
										"value": "1"
									}
								]
							}
						]
					}
				],
				"no": [
					{
						"type": "playSound",
						"name": "取消"
					},
					{
						"type": "setValue",
						"name": "item:I339",
						"operator": "+=",
						"value": "1"
					}
				]
			}
		],
		"canUseItemEffect": true
	}
}