更新任务页面,添加任务助手
This commit is contained in:
parent
de0b14f9b5
commit
ddf96690de
316
mission_hint.js
Normal file
316
mission_hint.js
Normal file
@ -0,0 +1,316 @@
|
||||
const MISSION_HINTS = {
|
||||
a_good_day_to_get_hard: {
|
||||
task: "Achieve a killstreak of 3 - 10.",
|
||||
hint: "Buying losses is a valid strategy.",
|
||||
},
|
||||
a_kimpossible_task: {
|
||||
task: "Defeat (P) using only melee and temporary weapons.",
|
||||
hint: "Guns can stay equipped.",
|
||||
},
|
||||
a_problem_at_the_tracks: {
|
||||
task: "Defeat 3 (P) without using any guns.",
|
||||
hint: "Guns can stay equipped. Using a gun will fail this mission!",
|
||||
},
|
||||
a_thor_loser: {
|
||||
task: "Use Duke's hammer to hit 8 - 16 unique body parts",
|
||||
hint: "Stalemating is a good way to achieve this.",
|
||||
},
|
||||
against_the_odds: {
|
||||
task: "Defeat 2 (P).",
|
||||
},
|
||||
an_honorary_degree: {
|
||||
task: "Defeat (P) without using any guns",
|
||||
hint: "Guns can stay equipped. Using a gun will fail this mission!",
|
||||
},
|
||||
army_of_one: {
|
||||
task: "Attack (P) 3 times with various masks.",
|
||||
hint: "Duke will send you the two masks to wear. Make sure that one of the attacks is without any mask.",
|
||||
},
|
||||
bakeout_breakout: {
|
||||
task: "Combine a fruitcake and the lock pick, and send 'special fruitcake' to someone in jail.",
|
||||
},
|
||||
bare_knuckle: {
|
||||
task: "Defeat (P) with no weapons or armor equipped.",
|
||||
hint: "Unequip everything. Residual effects from previous fights will fail this mission!",
|
||||
},
|
||||
batshit_crazy: {
|
||||
task: async () => {
|
||||
await requireSidebar();
|
||||
const max = parseInt(document.find("#barLife [class*='bar-value___']").textContent.split("/")[1]);
|
||||
|
||||
return `Inflict ${formatNumber(max * 0.5, { decimals: 0 })} - ${formatNumber(max * 4, {
|
||||
decimals: 0,
|
||||
})} (based on your maximum life) damage with Penelope.`;
|
||||
},
|
||||
hint: "You'll receive Penelope from Duke.",
|
||||
},
|
||||
battering_ram: {
|
||||
task: "Attack (P) 3 times.",
|
||||
},
|
||||
big_tub_of_muscle: {
|
||||
task: "Defeat (P) despite their gargantuan strength.",
|
||||
},
|
||||
birthday_surprise: {
|
||||
task: "Obtain and send a specific item as a present to Duke.",
|
||||
hint: "Place the item in an empty box, then gift wrap it to get it as a parcel.",
|
||||
},
|
||||
bonnie_and_clyde: {
|
||||
task: "Defeat (P), and their spouse.",
|
||||
},
|
||||
bountiful: {
|
||||
task: "Successfully claim 2 - 5 bounties",
|
||||
hint: "Make sure to hospitalize the target.",
|
||||
},
|
||||
bounty_on_the_mutiny: {
|
||||
task: "Bounty (P) and wait for the bounty to be claimed.",
|
||||
hint: "You cannot claim your own bounties.",
|
||||
},
|
||||
bring_it: {
|
||||
task: "Defeat Duke in a group attack",
|
||||
hint: "Unlike other missions, you'll have a week to finish this one. Doesn't have to be the finishing hit, so just join when people try to loot him.",
|
||||
},
|
||||
candy_from_babies: {
|
||||
task: "Collect $50,000 - $250,000 in bounties.",
|
||||
hint: "Doesn't have to be in a single bounty. Make sure to hospitalize the target(s).",
|
||||
},
|
||||
charity_work: {
|
||||
task: "Mug 2 (P)",
|
||||
hint: "Must be a successful mug. Sending them a small amount will guarantee a mug.",
|
||||
},
|
||||
cracking_up: {
|
||||
task: "Defeat and interrogate (P) for the code to unlock Duke's safe and send the content to Duke after opening it.",
|
||||
hint: "Can take a few times to get the code.",
|
||||
},
|
||||
critical_education: {
|
||||
task: "Achieve 3 - 9 critical hits",
|
||||
},
|
||||
cut_them_down_to_size: {
|
||||
task: "Defeat any player of your level or higher.",
|
||||
},
|
||||
dirty_little_secret: {
|
||||
task: "Put a bounty on (P), then attack the person who claimed it.",
|
||||
hint: "If the claimer is anonymous, their ID # still shows up in the mission screen.",
|
||||
},
|
||||
double_jeopardy: {
|
||||
task: "Defeat (P) and put a bounty on them.",
|
||||
hint: "Bounty can be any amount as it doesn't have to be claimed.",
|
||||
},
|
||||
drug_problem: {
|
||||
task: "Defeat 4 - 7 (P).",
|
||||
},
|
||||
emotional_debt: {
|
||||
task: "Hit (P) with tear gas or pepper spray.",
|
||||
hint: "Will count as long as it isn't blocked. Tear gas is blocked by an hazmat suit. Most helmets block pepper spray.",
|
||||
},
|
||||
estranged: {
|
||||
task: "Injure one of (P)'s legs.",
|
||||
},
|
||||
family_ties: {
|
||||
task: "Hospitalize (P) 3 times",
|
||||
},
|
||||
field_trip: {
|
||||
task: "Win $100 - $1,000,000 on 3 casino games.",
|
||||
},
|
||||
fireworks: {
|
||||
task: "Expend 250 - 1250 rounds of ammunition",
|
||||
},
|
||||
forgotten_bills: {
|
||||
task: "Defeat (P)",
|
||||
},
|
||||
frenzy: {
|
||||
task: "Defeat any 5 - 15 players.",
|
||||
},
|
||||
get_things_jumping: {
|
||||
task: "Deal 2,000 - 50,000 and receive 1,000 - 25,000 damage based your max life.",
|
||||
hint: "Values are apparently based on your max life.",
|
||||
},
|
||||
graffiti: {
|
||||
task: "Hit (P) with pepper spray.",
|
||||
},
|
||||
guardian: {
|
||||
task: "Defeat (P).",
|
||||
},
|
||||
hammer_time: {
|
||||
task: "Defeat (P) with a hammer.",
|
||||
hint: "Guns can stay equipped. Dual hammers don't count.",
|
||||
},
|
||||
hands_off: {
|
||||
task: "Defeat 3 - 5 (P).",
|
||||
},
|
||||
hare_meet_tortoise: {
|
||||
task: "Defeat (P) despite their lightning fast speed.",
|
||||
hint: "Flash and smoke grenades will reduce their speed.",
|
||||
},
|
||||
hide_and_seek: {
|
||||
task: "Find (P) from 3 - 5 listed and defeat them.",
|
||||
hint: "Given clues make it easy to identify the target.",
|
||||
},
|
||||
hiding_in_plain_view: {
|
||||
task: "Defeat (P) in a random country.",
|
||||
},
|
||||
high_fliers: {
|
||||
task: "Defeat 3 (P) in random countries",
|
||||
},
|
||||
hobgoblin: {
|
||||
task: "Defeat a player of your choice 5 times",
|
||||
},
|
||||
immovable_object: {
|
||||
task: "Defeat (P) despite their impenetrable defense.",
|
||||
},
|
||||
inside_job: {
|
||||
task: "Attack (P) and secrete an item on them.",
|
||||
},
|
||||
introduction_duke: {
|
||||
task: "Complete 10 Duke contracts.",
|
||||
},
|
||||
keeping_up_appearances: {
|
||||
task: "Mug (P) and send them back the money.",
|
||||
hint: "Must be a successful mug. Sending them a small amount will guarantee a mug.",
|
||||
},
|
||||
kiss_of_death: {
|
||||
task: "Defeat (P) and use the kiss option.",
|
||||
},
|
||||
lack_of_awareness: {
|
||||
task: "Defeat (P).",
|
||||
},
|
||||
lost_and_found: {
|
||||
task: "Put (P) in the hospital for 12 hours.",
|
||||
},
|
||||
loud_and_clear: {
|
||||
task: "Use 3 - 11 explosive grenades.",
|
||||
hint: "Grenades must be a type that causes damage.",
|
||||
},
|
||||
loyal_customer: {
|
||||
task: "Defeat (P).",
|
||||
},
|
||||
make_it_slow: {
|
||||
task: "Defeat (P) in no fewer than 5 - 9 turns in a single attack.",
|
||||
hint: "Survive for at least 7 or 9 turns then defeat the target. You can keep retrying if it fails.",
|
||||
},
|
||||
marriage_counseling: {
|
||||
task: "Defeat (P)'s spouse.",
|
||||
},
|
||||
massacrist: {
|
||||
task: "Defeat (P).",
|
||||
},
|
||||
meeting_the_challenge: {
|
||||
task: "Mug people for a total of $10,000 - $16,000,000.",
|
||||
},
|
||||
motivator: {
|
||||
task: "Lose or stalemate to (P) on the first attempt.",
|
||||
hint: "Timing out doesn't fail this mission, so if you're about to win, let it time out. You can get your health low by using the wrong blood bag. Make yourself weak by unequipping armor and equip a rusty sword.",
|
||||
},
|
||||
new_kid_on_the_block: {
|
||||
task: "Defeat 5 players.",
|
||||
},
|
||||
no_man_is_an_island: {
|
||||
task: "Mug 2 out of 3 (P).",
|
||||
hint: "You can select which of the targets to hit, as long as you mug 2 different ones.",
|
||||
},
|
||||
no_second_chances: {
|
||||
task: "Defeat (P) on the first attempt.",
|
||||
},
|
||||
out_of_the_frying_pan: {
|
||||
task: "Go to the jail, use Felovax to go to the hospital, then use Zylkene.",
|
||||
},
|
||||
painleth_dentitht: {
|
||||
task: "Defeat (P) with a baseball bat.",
|
||||
hint: "Other weapons can stay equipped. Using any other weapon will fail this mission!",
|
||||
},
|
||||
party_tricks: {
|
||||
task: "Defeat (P) despite their nimble dexterity.",
|
||||
},
|
||||
pass_the_word: {
|
||||
task: "Send a message including keyword to (P).",
|
||||
hint: "It's easy to achieve this by copying the mission description.",
|
||||
},
|
||||
peak_experience: {
|
||||
task: "Defeat (P).",
|
||||
},
|
||||
proof_of_the_pudding: {
|
||||
task: "Use a specific weapon on (P), then send the weapon to them.",
|
||||
hint: "You don't have to send the exact same gun you used to attack with, just same type.",
|
||||
},
|
||||
rabbit_response: {
|
||||
task: "Defeat 3 (P) within 30 - 10 minutes.",
|
||||
hint: "Timer starts after attacking one of the targets, so make sure they are all out of the hospital.",
|
||||
},
|
||||
reconstruction: {
|
||||
task: "Equip kitchen knife and leather gloves, defeat (P) then dump both items.",
|
||||
hint: "Don't have to actually use the kitchen knife.",
|
||||
},
|
||||
red_faced: {
|
||||
task: "Defeat (P) with a trout on the finishing hit.",
|
||||
},
|
||||
rising_costs: {
|
||||
task: "Hit (P) with a brick.",
|
||||
hint: "Brick has to hit, a miss won't count.",
|
||||
},
|
||||
rolling_in_it: {
|
||||
task: "Mug (P).",
|
||||
hint: "Must be a successful mug. Sending them a small amount will guarantee a mug.",
|
||||
},
|
||||
safari: {
|
||||
task: "Defeat (P) with a rifle in South Africa.",
|
||||
},
|
||||
scammer: {
|
||||
task: "Defeat (P).",
|
||||
hint: "Target might have some nice cash on him, mugging could be beneficial.",
|
||||
},
|
||||
sellout_slayer: {
|
||||
task: "Buy a gun, use the gun on any 2 - 6 players, then sell it again.",
|
||||
},
|
||||
sending_a_message: {
|
||||
task: "Defeat (P).",
|
||||
},
|
||||
show_some_muscle: {
|
||||
task: "Attack (P).",
|
||||
hint: "You just need to attack the target, defeating them isn't a requirement.",
|
||||
},
|
||||
sleep_aid: {
|
||||
task: "Defeat (P).",
|
||||
},
|
||||
some_people: {
|
||||
task: "Send any item as a parcel to (P).",
|
||||
},
|
||||
standard_routine: {
|
||||
task: "Defeat (P) with a clubbed weapon, fists or kick.",
|
||||
},
|
||||
stomach_upset: {
|
||||
task: "Injure (P)'s stomach.",
|
||||
},
|
||||
swan_step_too_far: {
|
||||
task: "Get an item from the dump and defeat its previous owner.",
|
||||
hint: "You can keep searching till you find an item previously owned by someone you can actually defeat.",
|
||||
},
|
||||
the_executive_game: {
|
||||
task: "Defeat (P) using only fists or kick.",
|
||||
hint: "Weapons can stay equipped.",
|
||||
},
|
||||
the_tattoo_artist: {
|
||||
task: "Defeat (P) using only a slashing or piercing weapon.",
|
||||
hint: "Guns can stay equipped.",
|
||||
},
|
||||
three_peat: {
|
||||
task: "Leave any player, mug any player and hospitalize any player.",
|
||||
},
|
||||
training_day: {
|
||||
task: "Use 250 - 1,250 energy in the gym.",
|
||||
},
|
||||
tree_huggers: {
|
||||
task: "Defeat 5 - 8 (P).",
|
||||
},
|
||||
undercutters: {
|
||||
task: "Defeat 3 (P).",
|
||||
},
|
||||
unwanted_attention: {
|
||||
task: "Hospitalize 4 (P).",
|
||||
},
|
||||
withdrawal: {
|
||||
task: "Injure (P)'s both arms.",
|
||||
hint: "Hands count as arms in this case.",
|
||||
},
|
||||
wrath_of_duke: {
|
||||
task: "Defeat 4 (P).",
|
||||
},
|
||||
};
|
||||
@ -40,6 +40,8 @@
|
||||
'Faction': '帮派',
|
||||
'Your Properties': '你的房产',
|
||||
'Stock Market': '股市',
|
||||
'Preferences': '首选项',
|
||||
'Missions': '任务',
|
||||
'Spouse\'s Properties': '配偶的房产',
|
||||
};
|
||||
const titleLinksDict = {
|
||||
@ -68,6 +70,7 @@
|
||||
'Leave Faction': '离开帮派',
|
||||
'Properties': '所有房产',
|
||||
'Back to Properties': '返回所有房产',
|
||||
'Your Profile': '你的个人资料',
|
||||
};
|
||||
const sidebarDict = { // todo 从json加载
|
||||
'Money': '现金',
|
||||
@ -228,7 +231,7 @@
|
||||
"mugged": "打劫了 ",
|
||||
"attached": "攻击了 ",
|
||||
"arrested": "逮捕了 ",
|
||||
"hospitalized": "暴力殴打了 ",
|
||||
"hospitalized": "强制住院 ",
|
||||
"but": "但是",
|
||||
"Someone": "有人",
|
||||
"lost": "失败了"
|
||||
@ -848,7 +851,7 @@
|
||||
"general": "被玩家 ",
|
||||
"Hit in the head by flying metal": "被飞来的金属击中头部",
|
||||
"Shot themselves in the foot": "打了自己腿一枪",
|
||||
"Hospitalized by someone": "被某人殴打并送入医院",
|
||||
"Hospitalized by someone": "被某人强制住院",
|
||||
"Attacked by someone": "被某人攻击",
|
||||
"Mugged by someone": "被某人抢劫",
|
||||
"Gunned down by FBI agents": "被联邦调查局特工枪击",
|
||||
@ -859,6 +862,7 @@
|
||||
"Choked out by Leslie": "被Leslie掐喉",
|
||||
"Shot in the back": "背部中枪",
|
||||
"Lost to": "输给了 ",
|
||||
"Suspect of a presidential assassination": "刺杀总统的嫌疑犯",
|
||||
};
|
||||
const awDict = {
|
||||
'Honors (': '荣誉 (',
|
||||
@ -1328,6 +1332,328 @@
|
||||
"Clothing Cache": '服饰箱',
|
||||
"Box of Medical Supplies": '医疗补给包',
|
||||
};
|
||||
const tornSettingsDict = {
|
||||
'API Keys': '',
|
||||
'General settings': '',
|
||||
'Attack settings': '',
|
||||
};
|
||||
const missionDict = {
|
||||
'_taskHint': {
|
||||
a_good_day_to_get_hard: {
|
||||
task: "实现3-10的连杀",
|
||||
hint: "建议买lost",
|
||||
},
|
||||
a_kimpossible_task: {
|
||||
task: "击败3个特定玩家且只使用近战武器和手雷",
|
||||
hint: "枪可以保持装备状态",
|
||||
},
|
||||
a_problem_at_the_tracks: {
|
||||
task: "击败3个特定玩家且不使用枪",
|
||||
hint: "枪可以保持装备状态,但是使用任何的枪任务就会失败。",
|
||||
},
|
||||
a_thor_loser: {
|
||||
task: "用Duke的锤子(Duke's hammer)打中8-16个不同的身体部位",
|
||||
hint: "找防御怪来打",
|
||||
},
|
||||
against_the_odds: {
|
||||
task: "击败2个特定玩家",
|
||||
},
|
||||
an_honorary_degree: {
|
||||
task: "击败特定玩家且不使用枪",
|
||||
hint: "枪可以保持装备状态,但是使用任何的枪任务就会失败。",
|
||||
},
|
||||
army_of_one: {
|
||||
task: "装备不同的面具攻击3次1个特定玩家",
|
||||
hint: "Duke会给你发2个面具,请确保其中一次攻击不戴任何面具。为了快速完成任务,可以选择右上角的逃跑选项,这样不需要等待目标出院。",
|
||||
},
|
||||
bakeout_breakout: {
|
||||
task: "把开锁器(lock pick)放到水果蛋糕(fruitcake)里,并且把特别的水果蛋糕(special fruitcake)发送给监狱里的任意自选玩家。",
|
||||
hint: "你需要自己买一个水果蛋糕,佐料Duke会给",
|
||||
},
|
||||
bare_knuckle: {
|
||||
task: "击败特定玩家,且不装备任何防具和武器。",
|
||||
hint: "取消装备所有东西。注意:前一次战斗残余的buff会让任务失败!",
|
||||
},
|
||||
batshit_crazy: {
|
||||
task: "用Penelope造成基于你的最大生命的一定伤害",
|
||||
hint: "你会收到Duke发来的Penelope",
|
||||
},
|
||||
battering_ram: {
|
||||
task: "攻击特定玩家3次",
|
||||
},
|
||||
big_tub_of_muscle: {
|
||||
task: "击败特定玩家,尽管他有巨大的力量",
|
||||
},
|
||||
birthday_surprise: {
|
||||
task: "获取特定物品并将它作为礼物发送给Duke",
|
||||
hint: "使用一个空盒子(Empty box)可以把物品装箱(parcel),然后用礼品包装将他包起来就可以得到一个生日礼物。",
|
||||
},
|
||||
bonnie_and_clyde: {
|
||||
task: "击败特定玩家和他的配偶",
|
||||
},
|
||||
bountiful: {
|
||||
task: "成功拿到2-5个悬赏赏金",
|
||||
hint: "请记得击败玩家后选择强制住院(hospitalize)才能领取赏金",
|
||||
},
|
||||
bounty_on_the_mutiny: {
|
||||
task: "悬赏特定玩家,然后等待赏金被人领取",
|
||||
hint: "你不能领取自己的悬赏赏金",
|
||||
},
|
||||
bring_it: {
|
||||
task: "在多人战斗中击败Duke",
|
||||
hint: "不像其他任务,这个任务你有一周的时间来完成。且不需要最后一击,你只需要参与到多人战斗中就可以。更多详情请群内询问大佬或查看公众号攻略。",
|
||||
},
|
||||
candy_from_babies: {
|
||||
task: "获得$50,000-$250,000的悬赏奖励",
|
||||
hint: "可以是总计多次悬赏奖励。请记得击败玩家后选择强制住院(hospitalize)才能获得悬赏奖励。",
|
||||
},
|
||||
charity_work: {
|
||||
task: "抢劫2个特定玩家",
|
||||
hint: "必须成功抢到钱,可以事先发一点钱给目标来确保成功抢劫",
|
||||
},
|
||||
cracking_up: {
|
||||
task: "击败特定玩家后选择审问选项(interrogate)获取密码,然后使用密码打开Duke的保险箱(Duke's Safe),并将获得的物品发送给Duke。",
|
||||
hint: "可能会需要数次审问才能获得密码",
|
||||
},
|
||||
critical_education: {
|
||||
task: "造成3-9次暴击",
|
||||
},
|
||||
cut_them_down_to_size: {
|
||||
task: "击败任意等级大于等于你的玩家",
|
||||
},
|
||||
dirty_little_secret: {
|
||||
task: "给特定玩家下一个悬赏,然后攻击拿悬赏的玩家",
|
||||
hint: "如果拿悬赏的玩家是匿名的,他的ID还是会被显示在任务界面。攻击不需要胜利,只需要攻击即可完成任务。",
|
||||
},
|
||||
double_jeopardy: {
|
||||
task: "击败特定玩家,且给他下一个悬赏",
|
||||
hint: "赏金可以是任何金额,因为它不需要被认领。",
|
||||
},
|
||||
drug_problem: {
|
||||
task: "Defeat 4 - 7 (P).",
|
||||
},
|
||||
emotional_debt: {
|
||||
task: "用催泪弹(tear gas)或辣椒水(pepper spray)命中特定玩家",
|
||||
hint: "不被阻挡才算数。Hazmat Suit会阻挡催泪弹,很多头盔阻挡辣椒水。(也有说法辣椒水不需要生效也能完成任务)",
|
||||
},
|
||||
estranged: {
|
||||
task: "打伤特定玩家的一条腿",
|
||||
},
|
||||
family_ties: {
|
||||
task: "强制住院特定玩家3次",
|
||||
},
|
||||
field_trip: {
|
||||
task: "在3个赌场游戏中赚到$100-$1,000,000",
|
||||
},
|
||||
fireworks: {
|
||||
task: "消耗250-1250发子弹",
|
||||
hint: "用弹药多的武器,如minigun、m249",
|
||||
},
|
||||
forgotten_bills: {
|
||||
task: "击败特定玩家",
|
||||
},
|
||||
frenzy: {
|
||||
task: "击败任意5-15个玩家",
|
||||
},
|
||||
get_things_jumping: {
|
||||
task: "造成2000-50000伤害,受到1000-25000伤害,基于你的生命上限",
|
||||
// hint: "Values are apparently based on your max life.",
|
||||
},
|
||||
graffiti: {
|
||||
task: "给特定目标喷辣椒水(pepper spray)",
|
||||
},
|
||||
guardian: {
|
||||
task: "击败特定玩家",
|
||||
},
|
||||
hammer_time: {
|
||||
task: "用锤子(hammer)击败特定玩家",
|
||||
hint: "枪可以保持装备,双锤不算锤子",
|
||||
},
|
||||
hands_off: {
|
||||
task: "击败3-5个特定玩家",
|
||||
},
|
||||
hare_meet_tortoise: {
|
||||
task: "击败特定玩家,尽管他的速度快如闪电",
|
||||
hint: "闪光弹和烟雾弹可以降低目标的速度",
|
||||
},
|
||||
hide_and_seek: {
|
||||
task: "从3-5人的列表中找到并击败1个特定玩家",
|
||||
hint: "给出的线索可以很容易识别目标,比如等级,地区,如无法找到请截图群聊询问。",
|
||||
},
|
||||
hiding_in_plain_view: {
|
||||
task: "击败在随机国家的特定玩家",
|
||||
},
|
||||
high_fliers: {
|
||||
task: "击败3个在随机国家的特定玩家",
|
||||
},
|
||||
hobgoblin: {
|
||||
task: "击败自选的某个相同玩家5次",
|
||||
},
|
||||
immovable_object: {
|
||||
task: "击败特定玩家,尽管他的防御很高",
|
||||
},
|
||||
inside_job: {
|
||||
task: "击败特定玩家并选择secrete选项藏一个道具",
|
||||
},
|
||||
introduction_duke: {
|
||||
task: "完成10个 Duke 任务",
|
||||
},
|
||||
keeping_up_appearances: {
|
||||
task: "抢劫特定玩家然后把钱发回给他",
|
||||
hint: "必须成功抢到钱,可以事先发一点钱给目标来确保成功抢劫",
|
||||
},
|
||||
kiss_of_death: {
|
||||
task: "击败特定玩家然后选择kiss选项",
|
||||
},
|
||||
lack_of_awareness: {
|
||||
task: "击败特定玩家",
|
||||
},
|
||||
lost_and_found: {
|
||||
task: "强制住院特定目标总计12小时",
|
||||
},
|
||||
loud_and_clear: {
|
||||
task: "使用3-11个爆炸性手榴弹(HEG或Grenade等)",
|
||||
hint: "手榴弹必须是可以造成伤害的类型",
|
||||
},
|
||||
loyal_customer: {
|
||||
task: "击败特定玩家",
|
||||
},
|
||||
make_it_slow: {
|
||||
task: "击败特定玩家且单次攻击中使用不低于5-9回合",
|
||||
hint: "存活7或9回合后击败目标,如果失败可以再次尝试。",
|
||||
},
|
||||
marriage_counseling: {
|
||||
task: "击败特定玩家的配偶",
|
||||
},
|
||||
massacrist: {
|
||||
task: "击败特定玩家",
|
||||
},
|
||||
meeting_the_challenge: {
|
||||
task: "抢劫到$10,000-$16,000,000金额的钱",
|
||||
},
|
||||
motivator: {
|
||||
task: "第一次对战中输给或平手给特定玩家",
|
||||
hint: "超时不会任务失败,所以如果看起来要赢了可以等5分钟超时。可以抽血减血,不装备防具并使用锈剑。",
|
||||
},
|
||||
new_kid_on_the_block: {
|
||||
task: "击败5名玩家",
|
||||
},
|
||||
no_man_is_an_island: {
|
||||
task: "从3个特定目标中选2个抢劫",
|
||||
hint: "可以自选哪两个目标,只要抢劫2个不同的目标",
|
||||
},
|
||||
no_second_chances: {
|
||||
task: "一次击败特定玩家",
|
||||
},
|
||||
out_of_the_frying_pan: {
|
||||
task: "去监狱使用Felovax以住院,再使用Zylkene",
|
||||
},
|
||||
painleth_dentitht: {
|
||||
task: "用棒球棒击败特定玩家",
|
||||
hint: "其他武器可以保持装备,但是使用其他武器会让任务失败",
|
||||
},
|
||||
party_tricks: {
|
||||
task: "击败特定玩家,尽管他的DEX很高",
|
||||
},
|
||||
pass_the_word: {
|
||||
task: "给特定玩家发送包含关键词的聊天信息",
|
||||
hint: "复制任务描述发送给目标就可以完成",
|
||||
},
|
||||
peak_experience: {
|
||||
task: "击败特定玩家",
|
||||
},
|
||||
proof_of_the_pudding: {
|
||||
task: "使用某个武器击败特定玩家,然后发送这个武器给他",
|
||||
hint: "不需要发送你具体使用的武器,只需发送同名武器",
|
||||
},
|
||||
rabbit_response: {
|
||||
task: "10-30分钟内击败3个特定玩家",
|
||||
hint: "攻击其中一个目标时开始计时,所以攻击前确定他们都不在住院",
|
||||
},
|
||||
reconstruction: {
|
||||
task: "装备菜刀(kitchen knife)和皮手套(leather gloves),击败特定玩家然后扔掉这两样东西。",
|
||||
hint: "战斗中不必须使用菜刀攻击",
|
||||
},
|
||||
red_faced: {
|
||||
task: "使用咸鱼(trout)完成最后一击以击败特定玩家",
|
||||
},
|
||||
rising_costs: {
|
||||
task: "用砖头(Brick)打中特定玩家",
|
||||
hint: "没打中不算",
|
||||
},
|
||||
rolling_in_it: {
|
||||
task: "抢劫特定玩家",
|
||||
hint: "必须成功抢到钱,可以事先发一点钱给目标来确保成功抢劫",
|
||||
},
|
||||
safari: {
|
||||
task: "用步枪(rifle)在南非击败特定玩家",
|
||||
},
|
||||
scammer: {
|
||||
task: "击败特定玩家",
|
||||
hint: "目标可能有不少现金,可以试着打劫一下",
|
||||
},
|
||||
sellout_slayer: {
|
||||
task: "买一把枪,用这把枪击败任意2-6个玩家,然后卖掉这把枪",
|
||||
},
|
||||
sending_a_message: {
|
||||
task: "击败特定玩家",
|
||||
},
|
||||
show_some_muscle: {
|
||||
task: "攻击特定玩家",
|
||||
hint: "攻击目标即可,无论输赢",
|
||||
},
|
||||
sleep_aid: {
|
||||
task: "击败特定玩家",
|
||||
},
|
||||
some_people: {
|
||||
task: "将任何物品制作包裹寄给特定玩家",
|
||||
hint: "买一个空盒子(Empty box)并使用空盒子,选择一个你不要的物品就可以制成包裹。",
|
||||
},
|
||||
standard_routine: {
|
||||
task: "使用冲击武器(Clubbing)或拳头或脚踢击败特定玩家",
|
||||
},
|
||||
stomach_upset: {
|
||||
task: "打伤特定玩家的胃",
|
||||
},
|
||||
swan_step_too_far: {
|
||||
task: "从垃圾场翻到一个物品并且击败他之前的所有者",
|
||||
hint: "你可以多搜索几次,直到找到一个你能打得过的前所有者。",
|
||||
},
|
||||
the_executive_game: {
|
||||
task: "只使用拳头或脚踢击败特定玩家",
|
||||
hint: "已装备的其他武器不需要卸载",
|
||||
},
|
||||
the_tattoo_artist: {
|
||||
task: "只使用切割武器(slashing)或穿刺武器(piercing)击败特定玩家",
|
||||
hint: "已装备的其他武器不需要卸载",
|
||||
},
|
||||
three_peat: {
|
||||
task: "分别击败3次后选择留在街上、抢劫、强制住院任意玩家",
|
||||
},
|
||||
training_day: {
|
||||
task: "健身房消耗250 - 1,250能量E",
|
||||
},
|
||||
tree_huggers: {
|
||||
task: "击败5-8个特定玩家",
|
||||
},
|
||||
undercutters: {
|
||||
task: "击败4个特定玩家",
|
||||
},
|
||||
unwanted_attention: {
|
||||
task: "强制住院4个特定玩家",
|
||||
},
|
||||
withdrawal: {
|
||||
task: "打伤特定玩家的双臂",
|
||||
hint: "这个任务中手也算双臂",
|
||||
},
|
||||
wrath_of_duke: {
|
||||
task: "击败4个特定玩家", // Defeat 4 (P)
|
||||
},
|
||||
},
|
||||
"Hit": '击中',
|
||||
"with a brick.": '使用砖头 (brick)',
|
||||
"Put": '',
|
||||
};
|
||||
|
||||
// 默认开启通知翻译
|
||||
if (!localStorage.getItem('wh_trans_event')) {
|
||||
@ -1338,7 +1664,10 @@
|
||||
* 时分秒转换
|
||||
*/
|
||||
String.prototype.replaceHMS = function replaceHMS() {
|
||||
return this.replace('hours', '小时')
|
||||
return this.replace('and', '')
|
||||
.replace('days', '天')
|
||||
.replace('days', '天')
|
||||
.replace('hours', '小时')
|
||||
.replace('hour', '小时')
|
||||
.replace('minutes', '分钟')
|
||||
.replace('minute', '分钟')
|
||||
@ -1945,6 +2274,57 @@
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* 任务
|
||||
*/
|
||||
if (window.location.href.contains(/loader\.php\?sid=missions/)) {
|
||||
const $$ = $('.content-wrapper');
|
||||
const OB = new MutationObserver(() => {
|
||||
OB.disconnect();
|
||||
titleTrans();
|
||||
contentTitleLinksTrans();
|
||||
trans();
|
||||
OB.observe($$.get(0), {
|
||||
characterData: true,
|
||||
attributes: true,
|
||||
subtree: true,
|
||||
childList: true
|
||||
});
|
||||
});
|
||||
const taskList = [];
|
||||
let isCapTaskList = false;
|
||||
const trans = () => {
|
||||
if (!isCapTaskList) {
|
||||
$('ul#giver-tabs a.ui-tabs-anchor').each((i, e) => {
|
||||
taskList[i] = e.innerText.trim();
|
||||
});
|
||||
isCapTaskList = true;
|
||||
}
|
||||
// 助手注入
|
||||
$('div.max-height-fix.info').each((i, e) => {
|
||||
if ($(e).find('.wh-translated').length !== 0) return;
|
||||
$(e).append(`<div class="wh-translated"><h6 style="color:green"><b>任务助手</b></h6><p>${getTaskHint(taskList[i])}</p></div>`);
|
||||
//$(e).append(`<div class="wh-translated"><h6 style="color:green"><b>任务助手</b></h6><p>${getTaskHint('taskList[i]')}</p></div>`);
|
||||
});
|
||||
// 任务目标
|
||||
$('ul.tasks-list span.title-wrap').contents().each((i, e) => {
|
||||
if (e.nodeType === 3) {
|
||||
if (missionDict[e.nodeValue.trim()]) {
|
||||
e.nodeValue = missionDict[e.nodeValue.trim()];
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
trans();
|
||||
OB.observe($$.get(0), {
|
||||
characterData: true,
|
||||
attributes: true,
|
||||
subtree: true,
|
||||
childList: true
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* 股票
|
||||
*/
|
||||
@ -2152,7 +2532,7 @@
|
||||
/**
|
||||
* profile 玩家资料页面
|
||||
*/
|
||||
if (window.location.href.contains(/profiles.php\?XID=[0-9]+/)) {
|
||||
if (window.location.href.contains(/profiles\.php\?XID=[0-9]+/)) {
|
||||
const profileOB = new MutationObserver(() => {
|
||||
profileOB.disconnect();
|
||||
titleTrans();
|
||||
@ -2240,9 +2620,10 @@
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if ($('.wh-translated').length > 0) return;
|
||||
if ($('.wh-translated').length <= 0) {
|
||||
console.log(`未找到翻译: “${action_desc.text().trim()}”`);
|
||||
}
|
||||
}
|
||||
// 添加敌人或朋友的界面
|
||||
$('.add-user .reason-wrapper').find('*').contents().each((i, e) => {
|
||||
if (e.nodeType === 3) {
|
||||
@ -3070,7 +3451,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* 通知翻译函数
|
||||
* 通知翻译
|
||||
* @param events
|
||||
*/
|
||||
function eventsTrans(events = $('span.mail-link')) {
|
||||
@ -3873,7 +4254,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* 页标题按钮content-title-links
|
||||
* 页标题右侧按钮
|
||||
*/
|
||||
function contentTitleLinksTrans() {
|
||||
const $links = $('div.content-title span:nth-child(2)').length === 0
|
||||
@ -3952,18 +4333,18 @@ ${htmlCont}</div></div></div></div><hr class="delimiter-999 m-top10 m-bottom10">
|
||||
if (!slt) return;
|
||||
slt.contents().each((i, e) => {
|
||||
if (e.nodeType === 3) {
|
||||
if (statusDict[e.nodeValue.trim()])
|
||||
if (statusDict[e.nodeValue.trim()]) {
|
||||
e.nodeValue = statusDict[e.nodeValue.trim()];
|
||||
else if (hosDict[e.nodeValue.trim()])
|
||||
} else if (hosDict[e.nodeValue.trim()]) {
|
||||
e.nodeValue = hosDict[e.nodeValue.trim()];
|
||||
}
|
||||
// 医院 监狱
|
||||
else {
|
||||
const spl = e.nodeValue.split(' ');
|
||||
if (spl[1] === 'hospital')
|
||||
if (e.nodeValue.contains(/In hospital for/))
|
||||
e.nodeValue = e.nodeValue
|
||||
.replace('In hospital for', '住院')
|
||||
.replaceHMS();
|
||||
else if (spl[1] === 'jail')
|
||||
else if (e.nodeValue.contains(/In jail for/))
|
||||
e.nodeValue = e.nodeValue
|
||||
.replace('In jail for', '坐牢')
|
||||
.replaceHMS();
|
||||
@ -3972,4 +4353,15 @@ ${htmlCont}</div></div></div></div><hr class="delimiter-999 m-top10 m-bottom10">
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 任务助手
|
||||
*/
|
||||
function getTaskHint(task_name) {
|
||||
task_name = task_name.toLowerCase().replaceAll(' ', '_');
|
||||
if (!missionDict._taskHint[task_name]) return '暂无,请联系开发者';
|
||||
const task = missionDict._taskHint[task_name].task || null;
|
||||
const hint = missionDict._taskHint[task_name].hint || null;
|
||||
return `${task ? '任务要求:' + task : '暂无,请联系<a href="profiles.php?XID=2687093">Woohoo</a>'}${hint ? '<br>提示:' + hint : ''}`;
|
||||
}
|
||||
|
||||
}());
|
||||
|
||||
27
tpl.js
Normal file
27
tpl.js
Normal file
@ -0,0 +1,27 @@
|
||||
function template() {
|
||||
if (window.location.href.contains(/[]/)) {
|
||||
const $$ = $('.content-wrapper');
|
||||
const OB = new MutationObserver(() => {
|
||||
OB.disconnect();
|
||||
titleTrans();
|
||||
contentTitleLinksTrans();
|
||||
trans();
|
||||
OB.observe($$.get(0), {
|
||||
characterData: true,
|
||||
attributes: true,
|
||||
subtree: true,
|
||||
childList: true
|
||||
});
|
||||
});
|
||||
const trans = () => {
|
||||
};
|
||||
trans();
|
||||
OB.observe($$.get(0), {
|
||||
characterData: true,
|
||||
attributes: true,
|
||||
subtree: true,
|
||||
childList: true
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user