小镇提示日期错误修复

This commit is contained in:
woohoo 2021-12-25 14:22:42 +08:00
parent d64bcb682a
commit 13bfce86ed
2 changed files with 14 additions and 5 deletions

View File

@ -1,8 +1,8 @@
// ==UserScript== // ==UserScript==
// @lastmodified 202112241715 // @lastmodified 202112251422
// @name Torn翻译 // @name Torn翻译
// @namespace WOOH // @namespace WOOH
// @version 0.1.1224c // @version 0.1.1225a
// @description Torn UI翻译 // @description Torn UI翻译
// @author Woohoo-[2687093] sabrina_devil[2696209] // @author Woohoo-[2687093] sabrina_devil[2696209]
// @match https://www.torn.com/* // @match https://www.torn.com/*
@ -23,6 +23,11 @@
todo: true, todo: true,
cont: `baza npc商店 imarket及imarket搜索结果`, cont: `baza npc商店 imarket及imarket搜索结果`,
}, },
{
ver: '0.1.1225a',
date: '20211225',
cont: `小镇提示日期错误修复`,
},
{ {
ver: '0.1.1224c', ver: '0.1.1224c',
date: '20211224', date: '20211224',
@ -785,7 +790,7 @@
"User's Name / ID": '用户名或ID', "User's Name / ID": '用户名或ID',
"Name": '用户名', "Name": '用户名',
'Faction': '帮派', 'Faction': '帮派',
'Company': '帮派', 'Company': '公司',
'Places': '地点', 'Places': '地点',
'Item Market': '交易市场', 'Item Market': '交易市场',
'Forum posts': '论坛', 'Forum posts': '论坛',
@ -1539,6 +1544,9 @@
"Antidote": '抗生素', "Antidote": '抗生素',
"Felovax": '妙三多', "Felovax": '妙三多',
"Zylkene": '法国威隆苏劲猫犬降压药', "Zylkene": '法国威隆苏劲猫犬降压药',
"Cake Frosting": '蛋糕糖霜',
"Lock Picking Kit": '开锁器套装',
"Special Fruitcake": '特别的水果蛋糕',
// 主武器 // 主武器
"Sawed-Off Shotgun": '截短型霰弹枪', "Sawed-Off Shotgun": '截短型霰弹枪',
"Thompson": '汤普森冲锋枪', "Thompson": '汤普森冲锋枪',
@ -2392,6 +2400,7 @@
'效果对手脑部震荡闪避下降到1/5持续15-20秒。', '效果对手脑部震荡闪避下降到1/5持续15-20秒。',
// other // other
"Effect: Increases happiness by 5-20 if under 20% of maximum.": '', "Effect: Increases happiness by 5-20 if under 20% of maximum.": '',
"Effect: Can be used with a Fruitcake and Cake Frosting to create a Special Fruitcake.": '',
}; };
const itemTypeDict = { const itemTypeDict = {
'is a Defensive Armor.': '是一种防御性盔甲。', 'is a Defensive Armor.': '是一种防御性盔甲。',
@ -5674,7 +5683,7 @@ margin: 0 0 3px;
dropHist[hist_key] = { dropHist[hist_key] = {
pos: `[${nearby_item.x},${nearby_item.y}]`, pos: `[${nearby_item.x},${nearby_item.y}]`,
map: $ct_title.firstChild.nodeValue.trim(), map: $ct_title.firstChild.nodeValue.trim(),
last: `${now.getFullYear()}-${now.getMonth()}-${now.getDay()} ${now.getHours()}:${now.getMinutes()}:${now.getSeconds()}`, last: `${now.getFullYear()}-${now.getMonth()+1}-${now.getDate()} ${now.getHours()}:${now.getMinutes()}:${now.getSeconds()}`,
name: item_name, name: item_name,
id: Object.keys(dropHist).length, id: Object.keys(dropHist).length,
}; };

View File

@ -209,7 +209,7 @@
dropHist[hist_key] = { dropHist[hist_key] = {
pos: `[${nearby_item.x},${nearby_item.y}]`, pos: `[${nearby_item.x},${nearby_item.y}]`,
map: $ct_title.firstChild.nodeValue.trim(), map: $ct_title.firstChild.nodeValue.trim(),
last: `${now.getFullYear()}-${now.getMonth()}-${now.getDay()} ${now.getHours()}:${now.getMinutes()}:${now.getSeconds()}`, last: `${now.getFullYear()}-${now.getMonth()+1}-${now.getDate()} ${now.getHours()}:${now.getMinutes()}:${now.getSeconds()}`,
name: item_name, name: item_name,
id: Object.keys(dropHist).length, id: Object.keys(dropHist).length,
}; };