更新物品名、任务

This commit is contained in:
woohoo 2021-12-05 21:49:27 +08:00
parent bcca17112a
commit 32f151fa49

View File

@ -1,8 +1,8 @@
// ==UserScript==
// @lastmodified 202112031724
// @lastmodified 202112052149
// @name Torn翻译
// @namespace WOOH
// @version 0.1.1203a
// @version 0.1.1205a
// @description Torn UI翻译
// @author Woohoo-[2687093] sabrina_devil[2696209]
// @match https://www.torn.com/*
@ -1383,6 +1383,9 @@
'Circ:': '流通:',
'Quality:': '品质:',
'Stealth:': '隐匿:',
'Caliber:': '口径:',
'Ammo:': '弹药:',
'Bonus:': '额外:',
};
const itemNameDict = {
"Ammunition Pack": '弹药包',
@ -1403,41 +1406,41 @@
"Neumune Tablet": '雄烯二醇抗辐射药品',
"Antidote": '抗生素',
// 主武器
"Sawed-Off Shotgun": '短喷',
"Sawed-Off Shotgun": '截短型霰弹枪',
"Thompson": '汤普森冲锋枪',
"TMP": '',
"Benelli M1 Tactical": '战术连喷',
"TMP": '施泰尔TMP冲锋枪',
"Benelli M1 Tactical": '贝内利M1战术霰弹枪',
"MP5k": 'MP5k',
"MP5 Navy": 'MP5海军型',
"Skorpion": '',
"Skorpion": '蝎式冲锋枪',
"MP 40": 'MP40',
"SKS Carbine": 'SKS卡宾枪',
"Vektor CR-21": '维克托CR-21',
"P90": 'P90',
"Ithaca 37": '',
"Ithaca 37": '伊萨卡37泵动式霰弹枪',
"XM8 Rifle": 'XM8突击步枪',
"AK74U": 'AK74U',
"AK74U": 'AK74U短管突击步枪',
"AK-47": 'AK-47',
"Bushmaster Carbon 15": '',
"M4A1 Colt Carbine": '',
"Benelli M4 Super": '',
"Heckler & Koch SL8": '',
"M16 A2 Rifle": '',
"Mag 7": '',
"Steyr AUG": '',
"SIG 550": '',
"Enfield SA-80": '',
"Tavor TAR-21": '',
"9mm Uzi": '',
"M249 SAW": '',
"Bushmaster Carbon 15": '碳15短管步枪',
"M4A1 Colt Carbine": 'M4A1卡宾枪',
"Benelli M4 Super": '贝内利M4 Super半自动霰弹枪',
"Heckler & Koch SL8": 'HK SL8半自动步枪',
"M16 A2 Rifle": 'M16A2步枪',
"Mag 7": 'Mag 7',
"Steyr AUG": '施泰尔AUG突击步枪',
"SIG 550": 'SIG 550突击步枪',
"Enfield SA-80": '恩菲尔德SA80',
"Tavor TAR-21": '21世纪他泊山突击步枪TAR-21',
"9mm Uzi": '9mm Uzi',
"M249 SAW": 'M249班用自动武器',
"Minigun": '加特林式旋管机枪',
"Jackhammer": '',
"SIG 552": '',
"ArmaLite M-15A4": '',
"Nock Gun": '',
"Snow Cannon": '',
"Rheinmetall MG 3": '',
"Gold Plated AK-47": '',
"Jackhammer": '转轮式自动霰弹枪',
"SIG 552": 'SIG 552卡宾枪',
"ArmaLite M-15A4": '阿玛莱特M15A4',
"Nock Gun": '诺克枪',
"Snow Cannon": '雪球加农炮',
"Rheinmetall MG 3": 'MG3通用机枪',
"Gold Plated AK-47": '黄金AK47',
// 副武器
"Lorcin 380": '',
"Flare Gun": '',
@ -1480,12 +1483,12 @@
"Leather Bullwhip": '皮牛鞭',
"Kitchen Knife": '厨房刀',
"Frying Pan": '平底锅',
"Sai": '',
"Sai": '铁尺',
"Plastic Sword": '塑料剑',
"Butterfly Knife": '蝴蝶刀',
"Dagger": '匕首',
"Swiss Army Knife": '瑞士军刀',
"Chain Whip": '',
"Chain Whip": '链条鞭',
"Axe": '斧头',
"Wooden Nunchakus": '木制双截棍',
"Taser": '电击枪',
@ -1493,27 +1496,27 @@
"Scimitar": '弯刀',
"Chainsaw": '电锯',
"Cricket Bat": '板球棒',
"Ice Pick": '',
"Ice Pick": '冰镐',
"Katana": '',
"Spear": '',
"Kama": '',
"Twin Tiger Hooks": '',
"Spear": '',
"Kama": '镰刀',
"Twin Tiger Hooks": '虎头双钩',
"Samurai Sword": '',
"Claymore Sword": '',
"Claymore Sword": '苏格兰阔刃大斩剑',
"Rusty Sword": '锈剑',
"Macana": '美洲黑曜石匕首',
"Kodachi": '',
"Wushu Double Axes": '',
"Guandao": '',
"Metal Nunchakus": '',
"Pillow": '',
"Diamond Icicle": '',
"Kodachi": '太刀',
"Wushu Double Axes": '武术双斧',
"Guandao": '关刀',
"Metal Nunchakus": '金属双截棍',
"Pillow": '枕头',
"Diamond Icicle": '钻石冰锥',
"Diamond Bladed Knife": '钻石刀',
"Pair of Ice Skates": '',
"Fine Chisel": '',
"Flail": '',
"Ivory Walking Cane": '',
"Pair of High Heels": '',
"Pair of Ice Skates": '成对滑冰鞋',
"Fine Chisel": '细凿',
"Flail": '连枷',
"Ivory Walking Cane": '象牙手杖',
"Pair of High Heels": '一双高跟鞋',
"Madball": '',
"Yasukuni Sword": '',
"Naval Cutlass": '',
@ -1560,12 +1563,12 @@
"Welding Helmet": '电焊头盔',
"Hazmat Suit": '危险品防护服',
// 投掷武器
"Brick": '',
"Ninja Star": '',
"Fireworks": '',
"Brick": '砖头',
"Ninja Star": '忍者之星',
"Fireworks": '烟花',
"Claymore Mine": '',
"Stick Grenade": '',
"Snowball": '',
"Stick Grenade": '木柄手榴弹',
"Snowball": '雪球',
"HEG": '高爆手雷',
"Grenade": '手雷',
"Flash Grenade": '闪光弹',
@ -1573,16 +1576,16 @@
"Tear Gas": '催泪弹',
"Trout": '咸鱼',
"Throwing Knife": '飞刀',
"Molotov Cocktail": '',
"Smoke Grenade": '',
"Melatonin": '',
"Tyrosine": '',
"Epinephrine": '',
"Sand": '',
"Serotonin": '',
"Nail Bomb": '',
"Concussion Grenade": '',
"Book": '',
"Molotov Cocktail": '莫洛托夫鸡尾酒',
"Smoke Grenade": '烟雾弹',
"Melatonin": '褪黑素',
"Tyrosine": '酪氨酸',
"Epinephrine": '肾上腺素',
"Sand": '',
"Serotonin": '血清素',
"Nail Bomb": '钉子炸弹',
"Concussion Grenade": '震撼弹',
"Book": '',
// 能饮
"Can of Goose Juice": '',
"Can of Damp Valley": '',
@ -1590,7 +1593,7 @@
"Can of Santa Shooters": '',
"Can of Munster": '',
"Can of Rockstar Rudolph": '',
"Can of Red Cow": '',
"Can of Red Cow": '红牛',
"Can of X-MASS": '',
"Can of Taurine Elite": '',
// 糖
@ -1636,41 +1639,41 @@
"Opium": '罂粟',
"Vicodin": '维柯丁',
// 增幅器
"Heavy Duty Padlock": '',
"High-Speed Drive": '',
"Tracking Device": '',
"Tumble Dryer": '',
"Duct Tape": '',
"Chloroform": '',
"Glasses": '',
"Fanny Pack": '',
"Slim Crowbar": '',
"Advanced Driving Manual": '',
"Cut-Throat Razor": '',
"Wireless Dongle": '',
"Screwdriver": '',
"Ergonomic Keyboard": '',
"Mountain Bike": '',
"Balaclava": '',
"Small Suitcase": '',
"Medium Suitcase": '',
"Rosary Beads": '',
"Large Suitcase": '',
"Wind Proof Lighter": '',
"Heavy Duty Padlock": '重型挂锁',
"High-Speed Drive": '高速硬盘',
"Tracking Device": '追踪设备',
"Tumble Dryer": '烘干机',
"Duct Tape": '胶带',
"Chloroform": '氯仿',
"Glasses": '眼镜',
"Fanny Pack": '腰包',
"Slim Crowbar": '细撬棍',
"Advanced Driving Manual": '高级驾驶手册',
"Cut-Throat Razor": '割喉剃刀',
"Wireless Dongle": '无线加密狗',
"Screwdriver": '螺丝刀',
"Ergonomic Keyboard": '人体工学键盘',
"Mountain Bike": '山地车',
"Balaclava": '巴拉克拉瓦头套',
"Small Suitcase": '小手提箱',
"Medium Suitcase": '中手提箱',
"Rosary Beads": '念珠',
"Large Suitcase": '大手提箱',
"Wind Proof Lighter": '防风打火机',
// 酒
"Bottle of Beer": '瓶装啤酒',
"Bottle of Champagne": '',
"Bottle of Tequila": '',
"Bottle of Sake": '',
"Bottle of Champagne": '瓶装香槟',
"Bottle of Tequila": '瓶装龙舌兰酒',
"Bottle of Sake": '瓶装清酒',
"Bottle of Kandy Kane": '',
"Bottle of Pumpkin Brew": '',
"Bottle of Wicked Witch": '',
"Bottle of Pumpkin Brew": '瓶装南瓜啤酒',
"Bottle of Wicked Witch": '邪恶女巫蛙腿酒',
"Bottle of Minty Mayhem": '',
"Bottle of Christmas Cocktail": '',
"Bottle of Christmas Cocktail": '圣诞鸡尾酒',
"Bottle of Mistletoe Madness": '',
"Bottle of Stinky Swamp Punch": '',
"Bottle of Moonshine": '',
"Bottle of Green Stout": '',
"Bottle of Moonshine": '瓶装私酒',
"Bottle of Green Stout": '瓶装绿色世涛',
"Bottle of Christmas Spirit": '',
// 其他增益道具other booster
"Lawyer Business Card": '律师卡(黑卡)',
@ -1711,36 +1714,36 @@
"Statement Necklace": '',
"Gold Chain": '',
// 病毒
"Simple Virus": '',
"Tunneling Virus": '',
"Polymorphic Virus": '',
"Firewalk Virus": '',
"Armored Virus": '',
"Stealth Virus": '',
"Simple Virus": '简单病毒',
"Tunneling Virus": '隧道病毒',
"Polymorphic Virus": '多态病毒',
"Firewalk Virus": '火行病毒',
"Armored Virus": '装甲病毒',
"Stealth Virus": '隐形病毒',
// 花
"Bunch of Flowers": '',
"Single Red Rose": '',
"Bunch of Black Roses": '',
"Dozen Roses": '',
"Dahlia": '',
"Crocus": '',
"Banana Orchid": '',
"Orchid": '',
"Edelweiss": '',
"Ceibo Flower": '',
"Heather": '',
"African Violet": '',
"Cherry Blossom": '',
"Peony": '',
"Tribulus Omanense": '',
"Bunch of Flowers": '一束花',
"Single Red Rose": '单支红玫瑰',
"Bunch of Black Roses": '一束黑玫瑰',
"Dozen Roses": '一打玫瑰',
"Dahlia": '大丽花',
"Crocus": '番红花',
"Banana Orchid": '香蕉兰花',
"Orchid": '兰花',
"Edelweiss": '雪绒花',
"Ceibo Flower": '鸡冠刺桐花',
"Heather": '石南花',
"African Violet": '非洲紫罗兰',
"Cherry Blossom": '樱花',
"Peony": '牡丹',
"Tribulus Omanense": '蒺藜',
// 补给箱
"Box of Medical Supplies": '医疗补给包',
"Lottery Voucher": '彩票券',
"Box of Grenades": '手雷箱',
"Six Pack of Alcohol": '6瓶装酒箱',
"Denim Cache": '',
"Denim Cache": '牛仔补给箱',
"Drug Pack": '小DP 药dú品包',
"Keg of Beer": '',
"Keg of Beer": '桶装啤酒',
"Elderly Cache": '',
"Cutesy Cache": '',
"Six Pack of Energy Drink": '6瓶装饮料箱',
@ -2460,7 +2463,7 @@
inside_job: {
task: "击败特定玩家并选择secrete选项藏一个道具",
},
introduction_duke: {
'introduction:_duke': {
task: "完成10个 Duke 任务",
},
keeping_up_appearances: {
@ -3330,17 +3333,17 @@
<form id="wh-translate-quick" action="crimes.php?step=docrime4" method="post" style="display: inline-block;margin: 0 5px">
<input name="nervetake" type="hidden" value="18">
<input name="crime" type="hidden" value="hackbank">
<input style="padding: 4px;background: #e91e63;border-radius: 5px;color: white;" type="submit" value="18-1" style="padding: 0 2px" />
<input style="-webkit-appearance:none;padding: 4px;background: #e91e63;border-radius: 5px;color: white;" type="submit" value="18-1" style="padding: 0 2px" />
</form>
<form id="wh-translate-quick" action="crimes.php?step=docrime4" method="post" style="display: inline-block;margin: 0 5px">
<input name="nervetake" type="hidden" value="11">
<input name="crime" type="hidden" value="warehouse">
<input style="padding: 4px;background: #2196f3;border-radius: 5px;color: white;" type="submit" value="烧仓库" style="padding: 0 2px" />
<input style="-webkit-appearance:none;padding: 4px;background: #2196f3;border-radius: 5px;color: white;" type="submit" value="烧仓库" style="padding: 0 2px" />
</form>
<form id="wh-translate-quick" action="crimes.php?step=docrime4" method="post" style="display: inline-block;margin: 0 5px">
<input name="nervetake" type="hidden" value="4">
<input name="crime" type="hidden" value="jacket">
<input style="padding: 4px;background: #009688;border-radius: 5px;color: white;" type="submit" value="偷夹克" style="padding: 0 2px" />
<input style="-webkit-appearance:none;padding: 4px;background: #009688;border-radius: 5px;color: white;" type="submit" value="偷夹克" style="padding: 0 2px" />
</form></div><hr class="page-head-delimiter m-top10 m-bottom10 r1854"></div>`);
}
};
@ -5678,7 +5681,7 @@ ${htmlCont}</div></div></div></div><hr class="delimiter-999 m-top10 m-bottom10">
* 任务助手
*/
function getTaskHint(task_name) {
task_name = task_name.toLowerCase().replaceAll(' ', '_');
task_name = task_name.toLowerCase().replaceAll(' ', '_').replaceAll(':', '');
if (!missionDict._taskHint[task_name]) return '暂无,请联系开发者';
const task = missionDict._taskHint[task_name].task || null;
const hint = missionDict._taskHint[task_name].hint || null;