Merge remote-tracking branch 'gitee/dev' into dev.gitee
This commit is contained in:
commit
798c3bccda
@ -1893,12 +1893,19 @@
|
|||||||
"Crimes": "组织犯罪",
|
"Crimes": "组织犯罪",
|
||||||
"Membership": "成员资格",
|
"Membership": "成员资格",
|
||||||
"has claimed sovereignty of": "",
|
"has claimed sovereignty of": "",
|
||||||
"has abandoned": "弃用了",
|
"has abandoned": "放弃了地盘",
|
||||||
"Achieved a chain of": "达成了连击链值",
|
"Achieved a chain of": "达成了连击链值",
|
||||||
"and": "和",
|
"and": "和",
|
||||||
"respect [": "点声望 [",
|
"respect [": "点声望 [",
|
||||||
"deposited ${$1}": "存放了${$1}",
|
"deposited ${$1}": "存放了${$1}",
|
||||||
"Leadership was transferred to": "帮派领导权被移交给了 "
|
"Leadership was transferred to": "帮派领导权被移交给了 ",
|
||||||
|
"Someone mugged": "有人抢劫了 ",
|
||||||
|
"hospitalized": " 暴打了 ",
|
||||||
|
"mugged": " 抢劫了 ",
|
||||||
|
"attacked": " 攻击了 ",
|
||||||
|
"but lost": " 但是输了",
|
||||||
|
"Someone attacked": "有人攻击了 ",
|
||||||
|
"Someone hospitalized": "有人暴打了 "
|
||||||
}
|
}
|
||||||
|
|
||||||
function factionTrans() {
|
function factionTrans() {
|
||||||
@ -1933,13 +1940,42 @@
|
|||||||
$(e).text(factionDict[$(e).text().trim()]);
|
$(e).text(factionDict[$(e).text().trim()]);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
//帮派主要消息日志
|
//帮派主要消息日志
|
||||||
$('ul[class^="news-list"] span[class^="info"]').contents().each((i, e) => {
|
$('button[class^="tab"] ').each((i, e) => {
|
||||||
if (factionDict[$(e).text().trim()]) {
|
if ($(e).attr('class').indexOf("active") >= 0) {
|
||||||
e.nodeValue = e.nodeValue.replace($(e).text().trim(), factionDict[$(e).text().trim()]);
|
console.log($(e).text());
|
||||||
|
switch ($(e).text().trim()) {
|
||||||
|
case "主要消息":
|
||||||
|
$('ul[class^="news-list"] span[class^="info"]').contents().each((i, u) => {
|
||||||
|
if (factionDict[$(u).text().trim()]) {
|
||||||
|
u.nodeValue = u.nodeValue.replace($(u).text().trim(), factionDict[$(u).text().trim()]);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
break;
|
||||||
|
case "攻击":
|
||||||
|
$('ul[class^="news-list"] span[class^="info"]').find('*').contents().each((i, u) => {
|
||||||
|
console.log($(u).text().trim())
|
||||||
|
if (factionDict[$(u).text().trim()]) {
|
||||||
|
u.nodeValue = factionDict[$(u).text().trim()];
|
||||||
|
}
|
||||||
|
})
|
||||||
|
break;
|
||||||
|
case "资金流动":
|
||||||
|
$('ul[class^="news-list"] span[class^="info"]').contents().each((i, u) => {
|
||||||
|
if (u.nodeValue) {
|
||||||
|
u.nodeValue = u.nodeValue.replace("deposited", "存放了");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
// //帮派主要消息日志
|
||||||
|
// $('ul[class^="news-list"] span[class^="info"]').contents().each((i, e) => {
|
||||||
|
// if (factionDict[$(e).text().trim()]) {
|
||||||
|
// e.nodeValue = e.nodeValue.replace($(e).text().trim(), factionDict[$(e).text().trim()]);
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user