Skip to content

Commit

Permalink
misc: update CN translation, anti-jamming regex (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
DieMoe233 authored Mar 15, 2020
1 parent bf1ab36 commit 5977c4e
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 11 deletions.
10 changes: 5 additions & 5 deletions resources/lang/cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,19 @@ class CactbotLanguageCn extends CactbotLanguage {
});

this.countdownStartRegex = function() {
return Regexes.parse(/(\y{Float})/);
return Regexes.parse(/^.{14} 00:00b9:(\y{Float})/);
};
this.countdownEngageRegex = function() {
return /:/;
return /^.{14} 00:0039:/;
};
this.countdownCancelRegex = function() {
return /:(\y{Name})/;
return /^.{14} 00:00b9:(\y{Name})/;
};
this.areaSealRegex = function() {
return /:(.*)\y{Float}/;
return /^.{14} 00:0839:(.*)\y{Float}/;
};
this.areaUnsealRegex = function() {
return /:(.*)/;
return /^.{14} 00:0839:(.*)/;
};
}
}
Expand Down
5 changes: 4 additions & 1 deletion resources/responses.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ let Responses = {
de: 'Kleiner Tankbuster',
fr: 'Mini Buster',
ja: 'ミニバスター',
cn: '小死刑',
ko: '약한 탱버',
};
return obj;
Expand Down Expand Up @@ -495,7 +496,7 @@ let Responses = {
de: 'Raus aus Nahkampf',
fr: 'Eloignez-vous du CaC',
ja: '近接最大レンジ',
cn: '远离近战',
cn: '近战最远距离回避',
ko: '근접범위 밖으로',
};
return obj;
Expand Down Expand Up @@ -530,6 +531,7 @@ let Responses = {
en: 'go into middle',
fr: 'Allez au milieu',
de: 'in die Mitte gehen',
cn: '去中间',
};
return obj;
},
Expand Down Expand Up @@ -821,6 +823,7 @@ let Responses = {
de: 'Erdstoß auf DIR',
fr: 'Marque de terre sur VOUS',
ja: '自分にアースシェイカー',
cn: '大地摇动点名',
ko: '어스징 대상자',

};
Expand Down
65 changes: 60 additions & 5 deletions ui/raidboss/data/05-shb/dungeon/akadaemia_anyder.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
en: 'puddle on you',
de: 'Fläche auf DIR',
fr: 'Flaque sur VOUS',
cn: '水球点名',
ko: '징 대상자',
},
},
Expand Down Expand Up @@ -398,14 +399,68 @@
},
{
'locale': 'cn',
'missingTranslations': true,
'replaceSync': {
'Voidwalker': 'Voidwalker',
'Titan': '泰坦',
'Leviathan': '利维亚桑',
'Eden Prime': 'Eden Prime',
'marquis morbol': '侯爵魔界花',
'laboratory tomato': '研究所番茄',
'laboratory queen': '研究所王后',
'laboratory onion': '研究所洋葱',
'laboratory garlic': '研究所蒜头',
'laboratory eggplant': '研究所茄子',
'evil armor': '恶魔装甲',
'engendered soma': '创造出的苏摩',
'engendered snapweed': '创造出的捕捉草',
'engendered shark': '创造出的鲨鱼',
'engendered pteraketos': '创造出的刻托斯',
'engendered pegasus': '创造出的天马',
'engendered monk': '创造出的鬼鱼',
'engendered lycopersicum': '创造出的狼桃',
'engendered danbania': '创造出的刺枪鱼',
'engendered clionid': '创造出的冰海天使',
'engendered cactuar giant': '创造出的巨人掌',
'engendered bombfish': '创造出的爆弹鱼',
'engendered bomb': '创造出的爆弹怪',
'engendered bandersnatch': '创造出的斑攫兽',
'engendered anemone': '创造出的风花',
'Quetzalcoatl': '克察尔科亚特尔',
'Doliodus': '原祖鲨',
'Cladoselache': '裂口鲨',
'Ichthyology': '水生生物创造场',
'Phytobiology': '草木生物创造场',
'Phantomology': '幻想生物创造场',
},
'replaceText': {
'Worse Breath': '恶臭吐息',
'Winding Current': '绕组电流',
'Waterspout': '喷射水波',
'Tidal Guillotine': '怒潮断头台',
'Thunderstorm': '雷暴',
'Thunderbolt': '霹雳',
'Syrup Spout': '喷射汁液',
'Shocking Plumage': '羽翼震击',
'Shockbolt': '雷电震击',
'Sap Shower': '喷洒汁液',
'Reverse Current': '反转电流',
'Raging Waters': '怒水',
'Quasar': '类星体',
'Putrid Breath': '腐烂之息',
'Protolithic Puncture': '原始穿孔',
'Pelagic Cleaver': '深海切割者',
'Noahionto': '新烈光',
'Needle Storm': '刺针风暴',
'Marine Mayhem': '海之骚动',
'Lash': '鞭打',
'Frumious Jaws': '胡乱咬',
'Extensible Tendrils': '藤条抽打',
'Dominion Slash': '支配斩',
'Detonator': '大爆炸',
'Dark Arrivisme': '黑暗野心',
'Blossom': '花丛',
'Arbor Storm': '树木风暴',
'Aquatic Lance': '水之枪',
'Aqua Spear': '水之矛',
'Acrid Stream': '苦涩水流',
'Carcharian Verve': '鲨之气魄',
'x targetable': '个目标可选中',
},
'~effectNames': {
'Stun': '眩晕',
Expand Down

0 comments on commit 5977c4e

Please sign in to comment.