var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = 
{
	"yellowKey": {
		"cls": "tools",
		"name": "黄钥匙（1级）",
		"text": "可以打开一扇黄门",
		"hideInToolbox": true,
		"hideInReplay": true,
		"level": 1
	},
	"blueKey": {
		"cls": "tools",
		"name": "蓝钥匙（1级）",
		"text": "可以打开一扇蓝门",
		"hideInToolbox": true,
		"hideInReplay": true,
		"level": 1
	},
	"redKey": {
		"cls": "tools",
		"name": "红钥匙（2级）",
		"text": "可以打开一扇红门",
		"hideInToolbox": true,
		"hideInReplay": true,
		"level": 2
	},
	"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+=1000;core.status.hero.atk+=6;core.status.hero.def+=6;core.status.hero.mdef+=10;",
		"itemEffectTip": "，全属性提升",
		"useItemEvent": [
			{
				"type": "choices",
				"choices": [
					{
						"text": "攻击+1",
						"action": [
							{
								"type": "setValue",
								"name": "status:atk",
								"operator": "+=",
								"value": "1"
							}
						]
					},
					{
						"text": "防御+2",
						"action": [
							{
								"type": "setValue",
								"name": "status:def",
								"operator": "+=",
								"value": "2"
							}
						]
					},
					{
						"text": "生命+200",
						"action": [
							{
								"type": "setValue",
								"name": "status:hp",
								"operator": "+=",
								"value": "200"
							}
						]
					}
				]
			}
		],
		"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": "equips",
		"name": "铁剑\n（1级）",
		"text": "攻击力+10",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 10
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.atk += 10; core.setFlag('nowWeapon', 'sword1');",
		"itemEffectTip": "，提升 10 点攻击",
		"level": 1
	},
	"sword2": {
		"cls": "equips",
		"name": "银剑\n（2级）",
		"text": "攻击力+20",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 20
			}
		},
		"itemEffect": "core.status.hero.atk += 20; core.setFlag('nowWeapon', 'sword2');",
		"itemEffectTip": "，提升 20 点攻击",
		"level": 2
	},
	"sword3": {
		"cls": "equips",
		"name": "骑士剑\n（3级）",
		"text": "攻击力+40",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 40
			}
		},
		"itemEffect": "core.status.hero.atk += 40; core.setFlag('nowWeapon', 'sword3');",
		"itemEffectTip": "，提升 40 点攻击",
		"level": 3
	},
	"sword4": {
		"cls": "equips",
		"name": "圣剑\n（4级）",
		"text": "攻击力+80",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 80
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.atk += 50; core.setFlag('nowWeapon', 'sword4');",
		"itemEffectTip": "，提升 50 点攻击",
		"level": 4
	},
	"sword5": {
		"cls": "equips",
		"name": "神圣剑\n（5级）",
		"text": "攻击力+160",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 160
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.atk += 100; core.setFlag('nowWeapon', 'sword5');",
		"itemEffectTip": "，提升 100 点攻击",
		"level": 5
	},
	"shield0": {
		"cls": "items",
		"name": "破旧的盾",
		"text": "一个很破旧的铁盾",
		"equip": {
			"type": 1,
			"value": {
				"def": 0
			}
		},
		"itemEffect": "core.status.hero.def += 0",
		"itemEffectTip": "，防御+0"
	},
	"shield1": {
		"cls": "equips",
		"name": "铁盾\n（1级）",
		"text": "防御力+10",
		"equip": {
			"type": 1,
			"value": {
				"def": 10
			}
		},
		"itemEffect": "core.status.hero.def += 10; core.setFlag('nowShield', 'shield1');",
		"itemEffectTip": "，提升 10 点防御",
		"level": 1
	},
	"shield2": {
		"cls": "equips",
		"name": "银盾\n（2级）",
		"text": "防御力+20",
		"equip": {
			"type": 1,
			"value": {
				"def": 20
			}
		},
		"itemEffect": "core.status.hero.def += 20; core.setFlag('nowShield', 'shield2');",
		"itemEffectTip": "，提升 20 点防御",
		"level": 2
	},
	"shield3": {
		"cls": "equips",
		"name": "骑士盾\n（3级）",
		"text": "防御力+40",
		"equip": {
			"type": 1,
			"value": {
				"def": 40
			}
		},
		"itemEffect": "core.status.hero.def += 40; core.setFlag('nowShield', 'shield3');",
		"itemEffectTip": "，提升 40 点防御",
		"level": 3
	},
	"shield4": {
		"cls": "equips",
		"name": "圣盾\n（4级）",
		"text": "防御力+80",
		"equip": {
			"type": 1,
			"value": {
				"def": 80
			}
		},
		"itemEffect": "core.status.hero.def += 50; core.setFlag('nowShield', 'shield4');",
		"itemEffectTip": "，提升 50 点防御",
		"level": 4
	},
	"shield5": {
		"cls": "equips",
		"name": "神圣盾\n（5级）",
		"text": "防御力+160",
		"equip": {
			"type": 1,
			"value": {
				"def": 160
			}
		},
		"itemEffect": "core.status.hero.def += 100;core.setFlag('nowShield', 'shield5');core.setFlag('shield5', 1);",
		"itemEffectTip": "，提升 100 点防御，并免疫魔法伤害",
		"level": 5
	},
	"superPotion": {
		"cls": "tools",
		"name": "圣水",
		"itemEffect": "core.status.hero.hp *= 2",
		"itemEffectTip": "增加7.4倍攻防和的生命",
		"useItemEffect": "var hp = Math.round(10 * core.status.hero.atk + 5 * core.status.hero.def)\ncore.status.hero.hp += hp;\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"使用圣水，增加 \" + hp + \" 生命\" },\n]);",
		"canUseItemEffect": "true",
		"text": "增加 10倍攻击 + 5倍防御的生命",
		"hideInToolbox": true,
		"hideInReplay": true
	},
	"book": {
		"cls": "constants",
		"name": "怪物手册",
		"text": "可以查看当前楼层各怪物属性",
		"hideInToolbox": true,
		"useItemEffect": "core.ui.drawBook(0);",
		"canUseItemEffect": "true",
		"hideInReplay": true
	},
	"fly": {
		"cls": "constants",
		"name": "楼层传送器",
		"text": "可以自由往来去过的楼层",
		"hideInReplay": true,
		"hideInToolbox": true,
		"useItemEffect": "core.ui.drawFly(core.floorIds.indexOf(core.status.floorId));",
		"canUseItemEffect": "true"
	},
	"coin": {
		"cls": "tools",
		"name": "幸运金币",
		"text": "持有时打败怪物可得双倍金币",
		"hideInToolbox": true,
		"hideInReplay": true,
		"level": 7
	},
	"snow": {
		"cls": "constants",
		"name": "冰冻徽章",
		"text": "可以将面前的熔岩变成平地",
		"useItemEffect": "(function () {\n\tvar success = false;\n\n\tvar snowFourDirections = true; // 是否多方向雪花；如果是将其改成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",
		"hideInToolbox": true,
		"hideInReplay": true
	},
	"cross": {
		"cls": "tools",
		"name": "十字架",
		"text": "持有后无视怪物的无敌属性",
		"hideInToolbox": true,
		"hideInReplay": true
	},
	"knife": {
		"cls": "tools",
		"name": "屠龙匕首",
		"text": "对魔龙攻击加倍",
		"hideInToolbox": true,
		"hideInReplay": true
	},
	"amulet": {
		"cls": "constants",
		"name": "护符",
		"text": "持有时无视负面地形",
		"hideInToolbox": true,
		"hideInReplay": true
	},
	"bigKey": {
		"cls": "tools",
		"name": "大黄门钥匙（4级）",
		"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})();",
		"hideInToolbox": true,
		"hideInReplay": true,
		"level": 4
	},
	"greenKey": {
		"cls": "tools",
		"name": "绿钥匙",
		"text": "可以打开一扇绿门",
		"hideInToolbox": true,
		"hideInReplay": true
	},
	"steelKey": {
		"cls": "tools",
		"name": "铁门钥匙",
		"text": "可以打开一扇铁门",
		"hideInToolbox": true,
		"hideInReplay": true
	},
	"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 = true; // 是否多方向破；如果是将其改成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\ttrue\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",
		"hideInToolbox": true,
		"hideInReplay": true
	},
	"moneyPocket": {
		"cls": "items",
		"name": "大福袋",
		"text": "随机获得一个高2等级道具",
		"useItemEffect": null,
		"canUseItemEffect": null,
		"hideInToolbox": false,
		"hideInReplay": false,
		"useItemEvent": [
			{
				"type": "function",
				"function": "function(){\nlet floor = flags.floor,\n\trandomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\nfloor += 1;\nluck += 1 + core.rand(luck);\n\n//构建随机池，构建奖品\nfor (let i = 1; i <= floor; i++) { //i，物品等级\n\tif (flags.level[i]) {\n\t\tfor (let j = 0; j < flags.level[i].length; j++) { //物品池\n\t\t\tlet item = flags.level[i][j],\n\t\t\t\tweight = flags.weight[i][item]\n\t\t\tweight *= (floor - i + 1) //物品等级越低，权重越大\n\t\t\tweight += luck //物品权重增加幸运等级\n\t\t\tfor (let k = 0; k < weight; k++) {\n\t\t\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t\t\t}\n\t\t}\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand()); //打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh + 2 //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			}
		]
	},
	"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})();",
		"hideInToolbox": true,
		"hideInReplay": true
	},
	"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 (true) {\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 + '使用成功，你获得了 ' + money + ' 金币');\n\n\t// 取消这里的注释可以炸弹后获得金币和经验\n\tcore.status.hero.money += money;\n\t// core.status.hero.exp += exp;\n\n\t// 取消这里的注释可以炸弹引发战后事件\n\tif (todo.length > 0) core.insertAction(todo);\n})();",
		"canUseItemEffect": "true",
		"hideInToolbox": true,
		"hideInReplay": 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.setFlag('talking', 0);\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})();",
		"hideInToolbox": true,
		"hideInReplay": true
	},
	"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 (floorId == 'MT49') return false;\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})();",
		"hideInToolbox": true,
		"hideInReplay": true
	},
	"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 (floorId == \"MT50\") return false;\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})();",
		"hideInToolbox": true,
		"hideInReplay": true
	},
	"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('door.mp3');\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})();",
		"hideInToolbox": true,
		"hideInReplay": true
	},
	"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": "记事本",
		"text": "可以记录并查看老人和商人说的话",
		"itemEffect": null,
		"canUseItemEffect": "true",
		"hideInToolbox": true,
		"hideInReplay": true,
		"useItemEffect": "flags.title = \"请选择你的物品\"\ncore.insertCommonEvent(\"记事本\");"
	},
	"pack": {
		"cls": "items",
		"name": "钱袋",
		"itemEffect": "core.status.hero.money += 500",
		"itemEffectTip": "，金币+500"
	},
	"I300": {
		"cls": "constants",
		"name": "帮助",
		"text": "使用后可以查看帮助",
		"itemEffect": "core.insertCommonEvent(\"帮助\");",
		"canUseItemEffect": "true",
		"hideInToolbox": true,
		"hideInReplay": true
	},
	"itembag": {
		"cls": "items",
		"name": "小福袋",
		"canUseItemEffect": "true",
		"text": "随机获得一个道具",
		"useItemEvent": [
			{
				"type": "function",
				"function": "function(){\nlet floor = flags.floor,\n\trandomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n//构建随机池，构建奖品\nfor (let i = 1; i <= floor; i++) { //i，物品等级\n\tif (flags.level[i]) {\n\t\tfor (let j = 0; j < flags.level[i].length; j++) { //物品池\n\t\t\tlet item = flags.level[i][j],\n\t\t\t\tweight = flags.weight[i][item]\n\t\t\tweight *= (floor - i + 1) //物品等级越低，权重越大\n\t\t\tweight += luck //物品权重增加幸运等级\n\t\t\tfor (let k = 0; k < weight; k++) {\n\t\t\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t\t\t}\n\t\t}\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand()); //打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			}
		]
	},
	"itemequip": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I359": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I361": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I362": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"I363": {
		"cls": "items",
		"name": "新物品",
		"canUseItemEffect": "true"
	},
	"redGem1": {
		"cls": "tools",
		"name": "1级红宝石",
		"text": "攻击+1",
		"itemEffect": "core.status.hero.atk += 1",
		"itemEffectTip": "提升1点攻击",
		"useItemEffect": "core.status.hero.atk += 1",
		"canUseItemEffect": "true",
		"level": 1
	},
	"redGem2": {
		"cls": "tools",
		"name": "2级红宝石",
		"text": "攻击+2",
		"itemEffect": "core.status.hero.atk += 2",
		"itemEffectTip": "提升2点攻击",
		"useItemEffect": "core.status.hero.atk += 2",
		"canUseItemEffect": "true",
		"level": 2
	},
	"redGem3": {
		"cls": "tools",
		"name": "3级红宝石",
		"text": "攻击+4",
		"itemEffect": "core.status.hero.atk += 4",
		"itemEffectTip": "提升4点攻击",
		"useItemEffect": "core.status.hero.atk += 4",
		"canUseItemEffect": "true",
		"level": 3
	},
	"redGem4": {
		"cls": "tools",
		"name": "4级红宝石",
		"text": "攻击+8",
		"itemEffect": "core.status.hero.atk += 8",
		"itemEffectTip": "提升8点攻击",
		"useItemEffect": "core.status.hero.atk += 8",
		"canUseItemEffect": "true",
		"level": 4
	},
	"redGem5": {
		"cls": "tools",
		"name": "5级红宝石",
		"text": "攻击+16",
		"itemEffect": "core.status.hero.atk += 16",
		"itemEffectTip": "提升16点攻击",
		"useItemEffect": "core.status.hero.atk += 16",
		"canUseItemEffect": "true",
		"level": 5
	},
	"redGem6": {
		"cls": "tools",
		"name": "6级红宝石",
		"text": "攻击+32",
		"itemEffect": "core.status.hero.atk += 32",
		"itemEffectTip": "提升32点攻击",
		"useItemEffect": "core.status.hero.atk += 32",
		"canUseItemEffect": "true",
		"level": 6
	},
	"redGem7": {
		"cls": "tools",
		"name": "7级红宝石",
		"text": "攻击+64",
		"itemEffect": "core.status.hero.atk += 64",
		"itemEffectTip": "提升64点攻击",
		"useItemEffect": "core.status.hero.atk += 64",
		"canUseItemEffect": "true",
		"level": 7
	},
	"redGem8": {
		"cls": "tools",
		"name": "8级红宝石",
		"text": "攻击+128",
		"itemEffect": "core.status.hero.atk += 128",
		"itemEffectTip": "提升128点攻击",
		"useItemEffect": "core.status.hero.atk += 128",
		"canUseItemEffect": "true",
		"level": 8
	},
	"redGem9": {
		"cls": "tools",
		"name": "9级红宝石",
		"text": "攻击+256",
		"itemEffect": "core.status.hero.atk += 256",
		"itemEffectTip": "提升256点攻击",
		"useItemEffect": "core.status.hero.atk += 256",
		"canUseItemEffect": "true",
		"level": 9
	},
	"redGem10": {
		"cls": "tools",
		"name": "10级红宝石",
		"text": "攻击+512，不可三连",
		"itemEffect": "core.status.hero.atk += 512",
		"itemEffectTip": "提升512点攻击",
		"useItemEffect": "core.status.hero.atk += 512",
		"canUseItemEffect": "true",
		"level": 10
	},
	"blueGem1": {
		"cls": "tools",
		"name": "1级蓝宝石",
		"text": "防御+1",
		"itemEffect": "core.status.hero.def += 1",
		"itemEffectTip": "提升1点防御",
		"useItemEffect": "core.status.hero.def += 1",
		"canUseItemEffect": "true",
		"level": 1
	},
	"blueGem2": {
		"cls": "tools",
		"name": "2级蓝宝石",
		"text": "防御+2",
		"itemEffect": "core.status.hero.def += 2",
		"itemEffectTip": "提升2点防御",
		"useItemEffect": "core.status.hero.def += 2",
		"canUseItemEffect": "true",
		"level": 2
	},
	"blueGem3": {
		"cls": "tools",
		"name": "3级蓝宝石",
		"text": "防御+4",
		"itemEffect": "core.status.hero.def += 4",
		"itemEffectTip": "提升4点防御",
		"useItemEffect": "core.status.hero.def += 4",
		"canUseItemEffect": "true",
		"level": 3
	},
	"blueGem4": {
		"cls": "tools",
		"name": "4级蓝宝石",
		"text": "防御+8",
		"itemEffect": "core.status.hero.def += 8",
		"itemEffectTip": "提升8点防御",
		"useItemEffect": "core.status.hero.def += 8",
		"canUseItemEffect": "true",
		"level": 4
	},
	"blueGem5": {
		"cls": "tools",
		"name": "5级蓝宝石",
		"text": "防御+16",
		"itemEffect": "core.status.hero.def += 16",
		"itemEffectTip": "提升16点防御",
		"useItemEffect": "core.status.hero.def += 16",
		"canUseItemEffect": "true",
		"level": 5
	},
	"blueGem6": {
		"cls": "tools",
		"name": "6级蓝宝石",
		"text": "防御+32",
		"itemEffect": "core.status.hero.def += 32",
		"itemEffectTip": "提升32点防御",
		"useItemEffect": "core.status.hero.def += 32",
		"canUseItemEffect": "true",
		"level": 6
	},
	"blueGem7": {
		"cls": "tools",
		"name": "7级蓝宝石",
		"text": "防御+64",
		"itemEffect": "core.status.hero.def += 64",
		"itemEffectTip": "提升64点防御",
		"useItemEffect": "core.status.hero.def += 64",
		"canUseItemEffect": "true",
		"level": 7
	},
	"blueGem8": {
		"cls": "tools",
		"name": "8级蓝宝石",
		"text": "防御+128",
		"itemEffect": "core.status.hero.def += 128",
		"itemEffectTip": "提升128点防御",
		"useItemEffect": "core.status.hero.def += 128",
		"canUseItemEffect": "true",
		"level": 8
	},
	"blueGem9": {
		"cls": "tools",
		"name": "9级蓝宝石",
		"text": "防御+256",
		"itemEffect": "core.status.hero.def += 256",
		"itemEffectTip": "提升256点防御",
		"useItemEffect": "core.status.hero.def += 256",
		"canUseItemEffect": "true",
		"level": 9
	},
	"blueGem10": {
		"cls": "tools",
		"name": "10级蓝宝石",
		"text": "防御+512，不可三连",
		"itemEffect": "core.status.hero.def += 512",
		"itemEffectTip": "提升512点防御",
		"useItemEffect": "core.status.hero.def += 512",
		"canUseItemEffect": "true",
		"level": 10
	},
	"yellowGem1": {
		"cls": "tools",
		"name": "1级黄宝石",
		"text": "攻击和防御+1",
		"itemEffect": "core.status.hero.atk += 1\ncore.status.hero.def += 1",
		"itemEffectTip": "提升1点攻击和防御",
		"useItemEffect": "core.status.hero.atk += 1\ncore.status.hero.def += 1",
		"canUseItemEffect": "true",
		"level": 1
	},
	"yellowGem2": {
		"cls": "tools",
		"name": "2级黄宝石",
		"text": "攻击和防御+2",
		"itemEffect": "core.status.hero.atk += 2\ncore.status.hero.def += 2",
		"itemEffectTip": "提升1点攻击和防御",
		"useItemEffect": "core.status.hero.atk += 2\ncore.status.hero.def += 2",
		"canUseItemEffect": "true",
		"level": 2
	},
	"yellowGem3": {
		"cls": "tools",
		"name": "3级黄宝石",
		"text": "攻击和防御+4",
		"itemEffect": "core.status.hero.atk += 4\ncore.status.hero.def += 4",
		"itemEffectTip": "提升4点攻击和防御",
		"useItemEffect": "core.status.hero.atk += 4\ncore.status.hero.def += 4",
		"canUseItemEffect": "true",
		"level": 3
	},
	"yellowGem4": {
		"cls": "tools",
		"name": "4级黄宝石",
		"text": "攻击和防御+8",
		"itemEffect": "core.status.hero.atk += 8\ncore.status.hero.def += 8",
		"itemEffectTip": "提升8点攻击和防御",
		"useItemEffect": "core.status.hero.atk += 8\ncore.status.hero.def += 8",
		"canUseItemEffect": "true",
		"level": 4
	},
	"yellowGem5": {
		"cls": "tools",
		"name": "5级黄宝石",
		"text": "攻击和防御+16",
		"itemEffect": "core.status.hero.atk += 16\ncore.status.hero.def += 16",
		"itemEffectTip": "提升16点攻击和防御",
		"useItemEffect": "core.status.hero.atk += 16\ncore.status.hero.def += 16",
		"canUseItemEffect": "true",
		"level": 5
	},
	"yellowGem6": {
		"cls": "tools",
		"name": "6级黄宝石",
		"text": "攻击和防御+32",
		"itemEffect": "core.status.hero.atk += 32\ncore.status.hero.def += 32",
		"itemEffectTip": "提升32点攻击和防御",
		"useItemEffect": "core.status.hero.atk += 32\ncore.status.hero.def += 32",
		"canUseItemEffect": "true",
		"level": 6
	},
	"yellowGem7": {
		"cls": "tools",
		"name": "7级黄宝石",
		"text": "攻击和防御+64",
		"itemEffect": "core.status.hero.atk += 64\ncore.status.hero.def += 64",
		"itemEffectTip": "提升64点攻击和防御",
		"useItemEffect": "core.status.hero.atk += 64\ncore.status.hero.def += 64",
		"canUseItemEffect": "true",
		"level": 7
	},
	"yellowGem8": {
		"cls": "tools",
		"name": "8级黄宝石",
		"text": "攻击和防御+128",
		"itemEffect": "core.status.hero.atk += 128\ncore.status.hero.def += 128",
		"itemEffectTip": "提升128点攻击和防御",
		"useItemEffect": "core.status.hero.atk += 128\ncore.status.hero.def += 128",
		"canUseItemEffect": "true",
		"level": 8
	},
	"yellowGem9": {
		"cls": "tools",
		"name": "9级黄宝石",
		"text": "攻击和防御+256",
		"itemEffect": "core.status.hero.atk += 256\ncore.status.hero.def += 256",
		"itemEffectTip": "提升256点攻击和防御",
		"useItemEffect": "core.status.hero.atk += 256\ncore.status.hero.def += 256",
		"canUseItemEffect": "true",
		"level": 9
	},
	"yellowGem10": {
		"cls": "tools",
		"name": "10级黄宝石",
		"text": "攻击和防御+512，不可三连",
		"itemEffect": "core.status.hero.atk += 512\ncore.status.hero.def += 512",
		"itemEffectTip": "提升512点攻击和防御",
		"useItemEffect": "core.status.hero.atk += 512\ncore.status.hero.def += 512",
		"canUseItemEffect": "true",
		"level": 10
	},
	"redPotion1": {
		"cls": "tools",
		"name": "1级红血瓶",
		"text": "生命+50",
		"itemEffect": "core.status.hero.hp += 50",
		"itemEffectTip": "提升50点生命",
		"useItemEffect": "core.status.hero.hp += 50",
		"canUseItemEffect": "true",
		"level": 1
	},
	"redPotion2": {
		"cls": "tools",
		"name": "2级红血瓶",
		"text": "生命+100",
		"itemEffect": "core.status.hero.hp += 100",
		"itemEffectTip": "提升100点生命",
		"useItemEffect": "core.status.hero.hp += 100",
		"canUseItemEffect": "true",
		"level": 2
	},
	"redPotion3": {
		"cls": "tools",
		"name": "3级红血瓶",
		"text": "生命+200",
		"itemEffect": "core.status.hero.hp += 200",
		"itemEffectTip": "提升200点生命",
		"useItemEffect": "core.status.hero.hp += 200",
		"canUseItemEffect": "true",
		"level": 3
	},
	"redPotion4": {
		"cls": "tools",
		"name": "4级红血瓶",
		"text": "生命+400",
		"itemEffect": "core.status.hero.hp += 400",
		"itemEffectTip": "提升400点生命",
		"useItemEffect": "core.status.hero.hp += 400",
		"canUseItemEffect": "true",
		"level": 4
	},
	"redPotion5": {
		"cls": "tools",
		"name": "5级红血瓶",
		"text": "生命+800",
		"itemEffect": "core.status.hero.hp += 800",
		"itemEffectTip": "提升800点生命",
		"useItemEffect": "core.status.hero.hp += 800",
		"canUseItemEffect": "true",
		"level": 5
	},
	"redPotion6": {
		"cls": "tools",
		"name": "6级红血瓶",
		"text": "生命+1600",
		"itemEffect": "core.status.hero.hp += 1600",
		"itemEffectTip": "提升1600点生命",
		"useItemEffect": "core.status.hero.hp += 1600",
		"canUseItemEffect": "true",
		"level": 6
	},
	"redPotion7": {
		"cls": "tools",
		"name": "7级红血瓶",
		"text": "生命+3200",
		"itemEffect": "core.status.hero.hp += 3200",
		"itemEffectTip": "提升3200点生命",
		"useItemEffect": "core.status.hero.hp += 3200",
		"canUseItemEffect": "true",
		"level": 7
	},
	"redPotion8": {
		"cls": "tools",
		"name": "8级红血瓶",
		"text": "生命+6400",
		"itemEffect": "core.status.hero.hp += 6400",
		"itemEffectTip": "提升6400点生命",
		"useItemEffect": "core.status.hero.hp += 6400",
		"canUseItemEffect": "true",
		"level": 8
	},
	"redPotion9": {
		"cls": "tools",
		"name": "9级红血瓶",
		"text": "生命+12800",
		"itemEffect": "core.status.hero.hp += 12800",
		"itemEffectTip": "提升12800点生命",
		"useItemEffect": "core.status.hero.hp += 12800",
		"canUseItemEffect": "true",
		"level": 9
	},
	"redPotion10": {
		"cls": "tools",
		"name": "10级红血瓶",
		"text": "生命+25600，不可三连",
		"itemEffect": "core.status.hero.hp += 25600",
		"itemEffectTip": "提升25600点生命",
		"useItemEffect": "core.status.hero.hp += 25600",
		"canUseItemEffect": "true",
		"level": 10
	},
	"yellowPotion1": {
		"cls": "tools",
		"name": "1级黄血瓶",
		"text": "生命+100",
		"itemEffect": "core.status.hero.hp += 100",
		"itemEffectTip": "提升100点生命",
		"useItemEffect": "core.status.hero.hp += 100",
		"canUseItemEffect": "true",
		"level": 1
	},
	"yellowPotion2": {
		"cls": "tools",
		"name": "2级黄血瓶",
		"text": "生命+200",
		"itemEffect": "core.status.hero.hp += 200",
		"itemEffectTip": "提升200点生命",
		"useItemEffect": "core.status.hero.hp += 200",
		"canUseItemEffect": "true",
		"level": 2
	},
	"yellowPotion3": {
		"cls": "tools",
		"name": "3级黄血瓶",
		"text": "生命+400",
		"itemEffect": "core.status.hero.hp += 400",
		"itemEffectTip": "提升400点生命",
		"useItemEffect": "core.status.hero.hp += 400",
		"canUseItemEffect": "true",
		"level": 3
	},
	"yellowPotion4": {
		"cls": "tools",
		"name": "4级黄血瓶",
		"text": "生命+800",
		"itemEffect": "core.status.hero.hp += 800",
		"itemEffectTip": "提升800点生命",
		"useItemEffect": "core.status.hero.hp += 800",
		"canUseItemEffect": "true",
		"level": 4
	},
	"yellowPotion5": {
		"cls": "tools",
		"name": "5级黄血瓶",
		"text": "生命+1600",
		"itemEffect": "core.status.hero.hp += 1600",
		"itemEffectTip": "提升1600点生命",
		"useItemEffect": "core.status.hero.hp += 1600",
		"canUseItemEffect": "true",
		"level": 5
	},
	"yellowPotion6": {
		"cls": "tools",
		"name": "6级黄血瓶",
		"text": "生命+3200",
		"itemEffect": "core.status.hero.hp += 3200",
		"itemEffectTip": "提升3200点生命",
		"useItemEffect": "core.status.hero.hp += 3200",
		"canUseItemEffect": "true",
		"level": 6
	},
	"yellowPotion7": {
		"cls": "tools",
		"name": "7级黄血瓶",
		"text": "生命+6400",
		"itemEffect": "core.status.hero.hp += 6400",
		"itemEffectTip": "提升6400点生命",
		"useItemEffect": "core.status.hero.hp += 6400",
		"canUseItemEffect": "true",
		"level": 7
	},
	"yellowPotion8": {
		"cls": "tools",
		"name": "8级黄血瓶",
		"text": "生命+12800",
		"itemEffect": "core.status.hero.hp += 12800",
		"itemEffectTip": "提升12800点生命",
		"useItemEffect": "core.status.hero.hp += 12800",
		"canUseItemEffect": "true",
		"level": 8
	},
	"yellowPotion9": {
		"cls": "tools",
		"name": "9级黄血瓶",
		"text": "生命+25600",
		"itemEffect": "core.status.hero.hp += 25600",
		"itemEffectTip": "提升25600点生命",
		"useItemEffect": "core.status.hero.hp += 25600",
		"canUseItemEffect": "true",
		"level": 9
	},
	"yellowPotion10": {
		"cls": "tools",
		"name": "10级黄血瓶",
		"text": "生命+51200，不可三连",
		"itemEffect": "core.status.hero.hp += 51200",
		"itemEffectTip": "提升51200点生命",
		"useItemEffect": "core.status.hero.hp += 51200",
		"canUseItemEffect": "true",
		"level": 10
	},
	"bluePotion1": {
		"cls": "tools",
		"name": "1级蓝血瓶",
		"text": "生命+200",
		"itemEffect": "core.status.hero.hp += 200",
		"itemEffectTip": "提升200点生命",
		"useItemEffect": "core.status.hero.hp += 200",
		"canUseItemEffect": "true",
		"level": 1
	},
	"bluePotion2": {
		"cls": "tools",
		"name": "2级蓝血瓶",
		"text": "生命+400",
		"itemEffect": "core.status.hero.hp += 400",
		"itemEffectTip": "提升400点生命",
		"useItemEffect": "core.status.hero.hp += 400",
		"canUseItemEffect": "true",
		"level": 2
	},
	"bluePotion3": {
		"cls": "tools",
		"name": "3级蓝血瓶",
		"text": "生命+800",
		"itemEffect": "core.status.hero.hp += 800",
		"itemEffectTip": "提升800点生命",
		"useItemEffect": "core.status.hero.hp += 800",
		"canUseItemEffect": "true",
		"level": 3
	},
	"bluePotion4": {
		"cls": "tools",
		"name": "4级蓝血瓶",
		"text": "生命+1600",
		"itemEffect": "core.status.hero.hp += 1600",
		"itemEffectTip": "提升1600点生命",
		"useItemEffect": "core.status.hero.hp += 1600",
		"canUseItemEffect": "true",
		"level": 4
	},
	"bluePotion5": {
		"cls": "tools",
		"name": "5级蓝血瓶",
		"text": "生命+3200",
		"itemEffect": "core.status.hero.hp += 3200",
		"itemEffectTip": "提升3200点生命",
		"useItemEffect": "core.status.hero.hp += 3200",
		"canUseItemEffect": "true",
		"level": 5
	},
	"bluePotion6": {
		"cls": "tools",
		"name": "6级蓝血瓶",
		"text": "生命+6400",
		"itemEffect": "core.status.hero.hp += 6400",
		"itemEffectTip": "提升6400点生命",
		"useItemEffect": "core.status.hero.hp += 6400",
		"canUseItemEffect": "true",
		"level": 6
	},
	"bluePotion7": {
		"cls": "tools",
		"name": "7级蓝血瓶",
		"text": "生命+12800",
		"itemEffect": "core.status.hero.hp += 12800",
		"itemEffectTip": "提升12800点生命",
		"useItemEffect": "core.status.hero.hp += 12800",
		"canUseItemEffect": "true",
		"level": 7
	},
	"bluePotion8": {
		"cls": "tools",
		"name": "8级蓝血瓶",
		"text": "生命+25600",
		"itemEffect": "core.status.hero.hp += 25600",
		"itemEffectTip": "提升25600点生命",
		"useItemEffect": "core.status.hero.hp += 25600",
		"canUseItemEffect": "true",
		"level": 8
	},
	"bluePotion9": {
		"cls": "tools",
		"name": "9级蓝血瓶",
		"text": "生命+51200",
		"itemEffect": "core.status.hero.hp += 51200",
		"itemEffectTip": "提升51200点生命",
		"useItemEffect": "core.status.hero.hp += 51200",
		"canUseItemEffect": "true",
		"level": 9
	},
	"bluePotion10": {
		"cls": "tools",
		"name": "10级蓝血瓶",
		"text": "生命+102400，不可三连",
		"itemEffect": "core.status.hero.hp += 102400",
		"itemEffectTip": "提升102400点生命",
		"useItemEffect": "core.status.hero.hp += 102400",
		"canUseItemEffect": "true",
		"level": 10
	},
	"greenPotion1": {
		"cls": "tools",
		"name": "1级绿血瓶",
		"text": "生命随机增加0-400点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let hp = core.rand(401);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\thp = Math.max(hp, core.rand(401));\n}\ncore.status.hero.hp += hp\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + hp + \" 生命\" },\n]);",
		"canUseItemEffect": "true",
		"level": 1
	},
	"greenPotion2": {
		"cls": "tools",
		"name": "2级绿血瓶",
		"text": "生命随机增加0-800点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let hp = core.rand(801);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\thp = Math.max(hp, core.rand(801));\n}\ncore.status.hero.hp += hp\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + hp + \" 生命\" },\n]);",
		"canUseItemEffect": "true",
		"level": 2
	},
	"greenPotion3": {
		"cls": "tools",
		"name": "3级绿血瓶",
		"text": "生命随机增加0-1600点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let hp = core.rand(1601);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\thp = Math.max(hp, core.rand(1601));\n}\ncore.status.hero.hp += hp\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + hp + \" 生命\" },\n]);",
		"canUseItemEffect": "true",
		"level": 3
	},
	"greenPotion4": {
		"cls": "tools",
		"name": "4级绿血瓶",
		"text": "生命随机增加0-3200点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let hp = core.rand(3201);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\thp = Math.max(hp, core.rand(3201));\n}\ncore.status.hero.hp += hp\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + hp + \" 生命\" },\n]);",
		"canUseItemEffect": "true",
		"level": 4
	},
	"greenPotion5": {
		"cls": "tools",
		"name": "5级绿血瓶",
		"text": "生命随机增加0-6400点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let hp = core.rand(6401);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\thp = Math.max(hp, core.rand(6401));\n}\ncore.status.hero.hp += hp\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + hp + \" 生命\" },\n]);",
		"canUseItemEffect": "true",
		"level": 5
	},
	"greenPotion6": {
		"cls": "tools",
		"name": "6级绿血瓶",
		"text": "生命随机增加0-12800点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let hp = core.rand(12801);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\thp = Math.max(hp, core.rand(12801));\n}\ncore.status.hero.hp += hp\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + hp + \" 生命\" },\n]);",
		"canUseItemEffect": "true",
		"level": 6
	},
	"greenPotion7": {
		"cls": "tools",
		"name": "7级绿血瓶",
		"text": "生命随机增加0-25600点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let hp = core.rand(25601);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\thp = Math.max(hp, core.rand(25601));\n}\ncore.status.hero.hp += hp\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + hp + \" 生命\" },\n]);",
		"canUseItemEffect": "true",
		"level": 7
	},
	"greenPotion8": {
		"cls": "tools",
		"name": "8级绿血瓶",
		"text": "生命随机增加0-51200点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let hp = core.rand(51201);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\thp = Math.max(hp, core.rand(51201));\n}\ncore.status.hero.hp += hp\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + hp + \" 生命\" },\n]);",
		"canUseItemEffect": "true",
		"level": 8
	},
	"greenPotion9": {
		"cls": "tools",
		"name": "9级绿血瓶",
		"text": "生命随机增加0-102400点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let hp = core.rand(102401);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\thp = Math.max(hp, core.rand(102401));\n}\ncore.status.hero.hp += hp\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + hp + \" 生命\" },\n]);",
		"canUseItemEffect": "true",
		"level": 9
	},
	"greenPotion10": {
		"cls": "tools",
		"name": "10级绿血瓶",
		"text": "生命随机增加0-204800点，不可三连",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let hp = core.rand(204801);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\thp = Math.max(hp, core.rand(204801));\n}\ncore.status.hero.hp += hp\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + hp + \" 生命\" },\n]);",
		"canUseItemEffect": "true",
		"level": 10
	},
	"greenGem1": {
		"cls": "tools",
		"name": "1级绿宝石",
		"text": "攻击和防御随机增加0-2点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let n = 3\nlet atk = core.rand(n);\nlet def = core.rand(n);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\tatk = Math.max(atk, core.rand(n));\n\tdef = Math.max(def, core.rand(n));\n}\ncore.status.hero.atk += atk\ncore.status.hero.def += def\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + atk + \"点攻击，\" + def + \"点防御\" },\n]);",
		"canUseItemEffect": "true",
		"level": 1
	},
	"greenGem2": {
		"cls": "tools",
		"name": "2级绿宝石",
		"text": "攻击和防御随机增加0-4点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let n = 5\nlet atk = core.rand(n);\nlet def = core.rand(n);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\tatk = Math.max(atk, core.rand(n));\n\tdef = Math.max(def, core.rand(n));\n}\ncore.status.hero.atk += atk\ncore.status.hero.def += def\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + atk + \"点攻击，\" + def + \"点防御\" },\n]);",
		"canUseItemEffect": "true",
		"level": 2
	},
	"greenGem3": {
		"cls": "tools",
		"name": "3级绿宝石",
		"text": "攻击和防御随机增加0-8点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let n = 9\nlet atk = core.rand(n);\nlet def = core.rand(n);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\tatk = Math.max(atk, core.rand(n));\n\tdef = Math.max(def, core.rand(n));\n}\ncore.status.hero.atk += atk\ncore.status.hero.def += def\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + atk + \"点攻击，\" + def + \"点防御\" },\n]);",
		"canUseItemEffect": "true",
		"level": 3
	},
	"greenGem4": {
		"cls": "tools",
		"name": "4级绿宝石",
		"text": "攻击和防御随机增加0-16点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let n = 17\nlet atk = core.rand(n);\nlet def = core.rand(n);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\tatk = Math.max(atk, core.rand(n));\n\tdef = Math.max(def, core.rand(n));\n}\ncore.status.hero.atk += atk\ncore.status.hero.def += def\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + atk + \"点攻击，\" + def + \"点防御\" },\n]);",
		"canUseItemEffect": "true",
		"level": 4
	},
	"greenGem5": {
		"cls": "tools",
		"name": "5级绿宝石",
		"text": "攻击和防御随机增加0-32点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let n = 33\nlet atk = core.rand(n);\nlet def = core.rand(n);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\tatk = Math.max(atk, core.rand(n));\n\tdef = Math.max(def, core.rand(n));\n}\ncore.status.hero.atk += atk\ncore.status.hero.def += def\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + atk + \"点攻击，\" + def + \"点防御\" },\n]);",
		"canUseItemEffect": "true",
		"level": 5
	},
	"greenGem6": {
		"cls": "tools",
		"name": "6级绿宝石",
		"text": "攻击和防御随机增加0-64点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let n = 65\nlet atk = core.rand(n);\nlet def = core.rand(n);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\tatk = Math.max(atk, core.rand(n));\n\tdef = Math.max(def, core.rand(n));\n}\ncore.status.hero.atk += atk\ncore.status.hero.def += def\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + atk + \"点攻击，\" + def + \"点防御\" },\n]);",
		"canUseItemEffect": "true",
		"level": 6
	},
	"greenGem7": {
		"cls": "tools",
		"name": "7级绿宝石",
		"text": "攻击和防御随机增加0-128点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let n = 129\nlet atk = core.rand(n);\nlet def = core.rand(n);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\tatk = Math.max(atk, core.rand(n));\n\tdef = Math.max(def, core.rand(n));\n}\ncore.status.hero.atk += atk\ncore.status.hero.def += def\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + atk + \"点攻击，\" + def + \"点防御\" },\n]);",
		"canUseItemEffect": "true",
		"level": 7
	},
	"greenGem8": {
		"cls": "tools",
		"name": "8级绿宝石",
		"text": "攻击和防御随机增加0-256点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let n = 257\nlet atk = core.rand(n);\nlet def = core.rand(n);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\tatk = Math.max(atk, core.rand(n));\n\tdef = Math.max(def, core.rand(n));\n}\ncore.status.hero.atk += atk\ncore.status.hero.def += def\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + atk + \"点攻击，\" + def + \"点防御\" },\n]);",
		"canUseItemEffect": "true",
		"level": 8
	},
	"greenGem9": {
		"cls": "tools",
		"name": "9级绿宝石",
		"text": "攻击和防御随机增加0-512点",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let n = 513\nlet atk = core.rand(n);\nlet def = core.rand(n);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\tatk = Math.max(atk, core.rand(n));\n\tdef = Math.max(def, core.rand(n));\n}\ncore.status.hero.atk += atk\ncore.status.hero.def += def\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + atk + \"点攻击，\" + def + \"点防御\" },\n]);",
		"canUseItemEffect": "true",
		"level": 9
	},
	"greenGem10": {
		"cls": "tools",
		"name": "10级绿宝石",
		"text": "攻击和防御随机增加0-1024点，不可三连",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "let n = 1025\nlet atk = core.rand(n);\nlet def = core.rand(n);\nlet luck = flags.luck + flags.temp_luck\nflags.temp_luck = 0\nfor (let i = 0; i < luck; i++) {\n\tatk = Math.max(atk, core.rand(n));\n\tdef = Math.max(def, core.rand(n));\n}\ncore.status.hero.atk += atk\ncore.status.hero.def += def\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"增加 \" + atk + \"点攻击，\" + def + \"点防御\" },\n]);",
		"canUseItemEffect": "true",
		"level": 10
	},
	"superPotion5": {
		"cls": "tools",
		"name": "初级圣水",
		"itemEffect": "var hp = Math.round(9 * core.status.hero.atk + 6 * core.status.hero.def)\ncore.status.hero.hp += hp;",
		"itemEffectTip": "增加 9倍攻击 + 6倍防御的生命",
		"useItemEffect": "var hp = Math.round(9 * core.status.hero.atk + 6 * core.status.hero.def)\ncore.status.hero.hp += hp;\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"使用圣水，增加 \" + hp + \" 生命\" },\n]);",
		"canUseItemEffect": "true",
		"text": "增加 9倍攻击 + 6倍防御的生命，不可三连",
		"hideInToolbox": false,
		"hideInReplay": false,
		"level": 5
	},
	"superPotion8": {
		"cls": "tools",
		"name": "高级圣水",
		"itemEffect": "var hp = Math.round(22.5 * core.status.hero.atk + 15 * core.status.hero.def)\ncore.status.hero.hp += hp;",
		"itemEffectTip": "增加 22.5倍攻击 + 15倍防御的生命",
		"useItemEffect": "var hp = Math.round(22.5 * core.status.hero.atk + 15 * core.status.hero.def)\ncore.status.hero.hp += hp;\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"使用圣水，增加 \" + hp + \" 生命\" },\n]);",
		"canUseItemEffect": "true",
		"text": "增加 22.5倍攻击 + 15倍防御的生命，不可三连",
		"hideInToolbox": false,
		"hideInReplay": false,
		"level": 8
	},
	"atkWine6": {
		"cls": "tools",
		"name": "初级攻击魔药",
		"itemEffect": "var hp = Math.round(core.status.hero.hp / 2)\nvar atk = Math.round(hp * 0.02)\ncore.status.hero.hp -= hp;\ncore.status.hero.atk += atk;",
		"itemEffectTip": "消耗一半生命值，增加2%生命值的攻击力。",
		"useItemEffect": "var hp = Math.round(core.status.hero.hp / 2)\nvar atk = Math.round(hp * 0.02)\ncore.status.hero.hp -= hp;\ncore.status.hero.atk += atk;\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"使用初级攻击魔药，增加 \" + atk + \"点攻击\" },\n]);",
		"canUseItemEffect": "true",
		"text": "消耗一半生命值，增加2%生命值的攻击力，不可三连",
		"hideInToolbox": false,
		"hideInReplay": false,
		"level": 6
	},
	"atkWine9": {
		"cls": "tools",
		"name": "高级攻击魔药",
		"itemEffect": "var hp = Math.round(core.status.hero.hp / 2)\nvar atk = Math.round(hp * 0.05)\ncore.status.hero.hp -= hp;\ncore.status.hero.atk += atk;",
		"itemEffectTip": "消耗一半生命值，增加5%生命值的攻击力。",
		"useItemEffect": "var hp = Math.round(core.status.hero.hp / 2)\nvar atk = Math.round(hp * 0.05)\ncore.status.hero.hp -= hp;\ncore.status.hero.atk += atk;\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"使用高级攻击魔药，增加 \" + atk + \"点攻击\" },\n]);",
		"canUseItemEffect": "true",
		"text": "消耗一半生命值，增加5%生命值的攻击力，不可三连",
		"hideInToolbox": false,
		"hideInReplay": false,
		"level": 9
	},
	"defWine6": {
		"cls": "tools",
		"name": "初级防御魔药",
		"itemEffect": "var hp = Math.round(core.status.hero.hp / 2)\nvar def = Math.round(hp * 0.03)\ncore.status.hero.hp -= hp;\ncore.status.hero.def += def;",
		"itemEffectTip": "消耗一半生命值，增加3%生命值的防御力。",
		"useItemEffect": "var hp = Math.round(core.status.hero.hp / 2)\nvar def = Math.round(hp * 0.03)\ncore.status.hero.hp -= hp;\ncore.status.hero.def += def;\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"使用初级防御魔药，增加 \" + def + \"点防御\" },\n]);",
		"canUseItemEffect": "true",
		"text": "消耗一半生命值，增加3%生命值的防御力，不可三连。",
		"hideInToolbox": false,
		"hideInReplay": false,
		"level": 6
	},
	"defWine9": {
		"cls": "tools",
		"name": "高级防御魔药",
		"itemEffect": "var hp = Math.round(core.status.hero.hp / 2)\nvar def = Math.round(hp * 0.075)\ncore.status.hero.hp -= hp;\ncore.status.hero.def += def;",
		"itemEffectTip": "消耗一半生命值，增加7.5%生命值的防御力。",
		"useItemEffect": "var hp = Math.round(core.status.hero.hp / 2)\nvar def = Math.round(hp * 0.075)\ncore.status.hero.hp -= hp;\ncore.status.hero.def += def;\ncore.insertAction([\n\t{ \"type\": \"playSound\", \"name\": \"item.mp3\" },\n\t{ \"type\": \"tip\", \"text\": \"使用高级防御魔药，增加 \" + def + \"点防御\" },\n]);",
		"canUseItemEffect": "true",
		"text": "消耗一半生命值，增加7.5%生命值的防御力，不可三连。",
		"hideInToolbox": false,
		"hideInReplay": false,
		"level": 9
	},
	"sword6": {
		"cls": "equips",
		"name": "神剑\n（6级）",
		"text": "攻击力+320",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 320
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.atk += 100; core.setFlag('nowWeapon', 'sword5');",
		"itemEffectTip": "，提升 100 点攻击",
		"level": 6
	},
	"sword7": {
		"cls": "equips",
		"name": "勇者剑（7级）",
		"text": "攻击力+640",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 640
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.atk += 100; core.setFlag('nowWeapon', 'sword5');",
		"itemEffectTip": "，提升 100 点攻击",
		"level": 7
	},
	"sword8": {
		"cls": "equips",
		"name": "炎黄剑（8级）",
		"text": "攻击力+1280",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 1280
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.atk += 100; core.setFlag('nowWeapon', 'sword5');",
		"itemEffectTip": "，提升 100 点攻击",
		"level": 8
	},
	"sword9": {
		"cls": "equips",
		"name": "残阳剑（9级）",
		"text": "攻击力+2560",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 2560
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.atk += 100; core.setFlag('nowWeapon', 'sword5');",
		"itemEffectTip": "，提升 100 点攻击",
		"level": 9
	},
	"sword10": {
		"cls": "equips",
		"name": "天魔剑\n（10级）",
		"text": "攻击力+5120，不可三连",
		"equip": {
			"type": 0,
			"animate": "sword",
			"value": {
				"atk": 5120
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.atk += 100; core.setFlag('nowWeapon', 'sword5');",
		"itemEffectTip": "，提升 100 点攻击",
		"level": 10
	},
	"shield6": {
		"cls": "equips",
		"name": "神盾\n（6级）",
		"text": "防御力+320",
		"equip": {
			"type": 1,
			"value": {
				"def": 320
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.def += 10; core.setFlag('nowShield', 'shield1');",
		"itemEffectTip": "，提升 10 点防御",
		"level": 6
	},
	"shield7": {
		"cls": "equips",
		"name": "勇者盾（7级）",
		"text": "防御力+640",
		"equip": {
			"type": 1,
			"value": {
				"def": 640
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.def += 10; core.setFlag('nowShield', 'shield1');",
		"itemEffectTip": "，提升 10 点防御",
		"level": 7
	},
	"shield8": {
		"cls": "equips",
		"name": "炎黄盾（8级）",
		"text": "防御力+1280",
		"equip": {
			"type": 1,
			"value": {
				"def": 1280
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.def += 10; core.setFlag('nowShield', 'shield1');",
		"itemEffectTip": "，提升 10 点防御",
		"level": 8
	},
	"shield9": {
		"cls": "equips",
		"name": "残阳盾（9级）",
		"text": "防御力+2560",
		"equip": {
			"type": 1,
			"value": {
				"def": 2560
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.def += 10; core.setFlag('nowShield', 'shield1');",
		"itemEffectTip": "，提升 10 点防御",
		"level": 9
	},
	"shield10": {
		"cls": "equips",
		"name": "天魔盾\n（10级）",
		"text": "防御力+5120，不可三连",
		"equip": {
			"type": 1,
			"value": {
				"def": 5120
			},
			"percentage": {}
		},
		"itemEffect": "core.status.hero.def += 10; core.setFlag('nowShield', 'shield1');",
		"itemEffectTip": "，提升 10 点防御",
		"level": 10
	},
	"yellowKey2": {
		"cls": "items",
		"name": "2把黄钥匙（2级）",
		"text": "获得2把黄钥匙",
		"hideInToolbox": true,
		"hideInReplay": true,
		"level": 2,
		"itemEffect": "core.getItem(\"yellowKey\", 2)"
	},
	"yellowKey3": {
		"cls": "items",
		"name": "3把黄钥匙（3级）",
		"text": "获得3把黄钥匙",
		"hideInToolbox": true,
		"hideInReplay": true,
		"level": 3,
		"itemEffect": "core.getItem(\"yellowKey\", 3)"
	},
	"blueKey2": {
		"cls": "items",
		"name": "2把蓝钥匙（2级）",
		"text": "获得2把蓝钥匙",
		"hideInToolbox": true,
		"hideInReplay": true,
		"level": 2,
		"itemEffect": "core.getItem(\"blueKey\", 2)"
	},
	"blueKey3": {
		"cls": "items",
		"name": "3把蓝钥匙（3级）",
		"text": "获得3把蓝钥匙",
		"hideInToolbox": true,
		"hideInReplay": true,
		"level": 3,
		"itemEffect": "core.getItem(\"blueKey\", 3)"
	},
	"redKey2": {
		"cls": "items",
		"name": "2把红钥匙（3级）",
		"text": "获得2把红钥匙",
		"hideInToolbox": true,
		"hideInReplay": true,
		"level": 3,
		"itemEffect": "core.getItem(\"redKey\", 2)"
	},
	"redKey3": {
		"cls": "items",
		"name": "3把红钥匙（4级）",
		"text": "获得3把红钥匙",
		"hideInToolbox": true,
		"hideInReplay": true,
		"level": 4,
		"itemEffect": "core.getItem(\"redKey\", 3)"
	},
	"luckPotion3": {
		"cls": "tools",
		"name": "幸运药水（3级）",
		"text": "临时增加1点幸运值",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "flags.temp_luck += 1",
		"canUseItemEffect": "true",
		"level": 3
	},
	"luckPotion4": {
		"cls": "tools",
		"name": "幸运药水（4级）",
		"text": "临时增加2点幸运值",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "flags.temp_luck += 2",
		"canUseItemEffect": "true",
		"level": 4
	},
	"luckPotion5": {
		"cls": "tools",
		"name": "幸运药水（5级）",
		"text": "临时增加4点幸运值",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "flags.temp_luck += 4",
		"canUseItemEffect": "true",
		"level": 5
	},
	"luckPotion6": {
		"cls": "tools",
		"name": "幸运药水（6级）",
		"text": "永久增加1点幸运值",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "flags.luck += 1",
		"canUseItemEffect": "true",
		"level": 6
	},
	"luckPotion7": {
		"cls": "tools",
		"name": "幸运药水（7级）",
		"text": "永久增加2点幸运值",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "flags.luck += 2",
		"canUseItemEffect": "true",
		"level": 7
	},
	"luckPotion8": {
		"cls": "tools",
		"name": "幸运药水（8级）",
		"text": "永久增加4点幸运值，不可三连",
		"itemEffect": null,
		"itemEffectTip": null,
		"useItemEffect": "flags.luck += 4",
		"canUseItemEffect": "true",
		"level": 8
	},
	"bag2": {
		"cls": "tools",
		"name": "2级包裹",
		"canUseItemEffect": "true",
		"text": "获得3个1级物品",
		"level": 2,
		"useItemEvent": [
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 1; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand()); //打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 1; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand()); //打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 1; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand()); //打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			}
		]
	},
	"bag3": {
		"cls": "tools",
		"name": "3级包裹",
		"canUseItemEffect": "true",
		"text": "获得3个2级物品",
		"level": 3,
		"useItemEvent": [
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 2; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand()); //打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 2; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand()); //打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 2; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand()); //打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			}
		]
	},
	"bag4": {
		"cls": "tools",
		"name": "4级包裹",
		"canUseItemEffect": "true",
		"text": "获得3个3级物品",
		"level": 4,
		"useItemEvent": [
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 3; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand()); //打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 3; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 3; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			}
		]
	},
	"bag5": {
		"cls": "tools",
		"name": "5级包裹",
		"canUseItemEffect": "true",
		"text": "获得3个4级物品",
		"level": 5,
		"useItemEvent": [
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 4; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 4; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 4; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			}
		]
	},
	"bag6": {
		"cls": "tools",
		"name": "6级包裹",
		"canUseItemEffect": "true",
		"text": "获得3个5级物品",
		"level": 6,
		"useItemEffect": null,
		"useItemEvent": [
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 5; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand()); //打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 5; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 5; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			}
		]
	},
	"bag7": {
		"cls": "tools",
		"name": "7级包裹",
		"canUseItemEffect": "true",
		"text": "获得3个6级物品",
		"level": 7,
		"useItemEvent": [
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 6; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 6; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 6; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			}
		]
	},
	"bag8": {
		"cls": "tools",
		"name": "8级包裹",
		"canUseItemEffect": "true",
		"text": "获得3个7级物品",
		"level": 8,
		"useItemEvent": [
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 7; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 7; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 7; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			}
		]
	},
	"bag9": {
		"cls": "tools",
		"name": "9级包裹",
		"canUseItemEffect": "true",
		"text": "获得3个8级物品",
		"level": 9,
		"useItemEvent": [
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 8; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 8; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 8; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			}
		]
	},
	"bag10": {
		"cls": "tools",
		"name": "10级包裹",
		"canUseItemEffect": "true",
		"text": "获得3个9级物品",
		"level": 10,
		"useItemEvent": [
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 9; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand()); //打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 9; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			},
			{
				"type": "function",
				"function": "function(){\nlet randomPool = [], //随机池\n\tluck = flags.luck + flags.temp_luck //幸运值\nflags.temp_luck = 0\n\n//构建随机池，构建奖品\nlet level = 9; //三连奖品等级\nfor (let i = 0; i < flags.level[level].length; i++) {\n\tlet item = flags.level[level][i],\n\t\tweight = flags.weight[level][item] + luck //所有物品权重增加幸运值数值\n\tfor (let j = 0; j < weight; j++) {\n\t\trandomPool.push(item) //随机池里面增加三连奖品等级的物品\n\t}\n}\nrandomPool.sort(() => 0.5 - core.rand());//打乱随机池\n\nlet prizePool = [], //奖品池\n\tPrizePoolNumber = flags.PrizePoolNumber //三连奖品数量\nfor (let i = 0; i < PrizePoolNumber; i++) { //随机从随机池里面添加N个物品进入奖品池\n\tlet rand = core.rand(randomPool.length)\n\tlet item = randomPool[rand]\n\tprizePool.push(item)\n}\n\nflags.randomPool = randomPool\nflags.prizePool = prizePool\nflags.select_time = flags.refresh //挑选刷新次数\nflags.title = \"请选择奖品\"\n}"
			},
			{
				"type": "insert",
				"name": "福袋"
			}
		]
	}
}