diff --git a/assets/json/periodic-table.json b/assets/json/periodic-table.json index 1c613061..68a62acc 100644 --- a/assets/json/periodic-table.json +++ b/assets/json/periodic-table.json @@ -951,6 +951,60 @@ "period": 7, "phase": "Solid", "symbol": "Og" + }, + { + "name": "Ununennium", + "mass": 315, + "number": 119, + "period": 8, + "phase": "Solid", + "symbol": "Uue", + "undiscovered": true + }, + { + "name": "Unbinilium", + "mass": 299, + "number": 120, + "period": 8, + "phase": "Solid", + "symbol": "Ubn", + "undiscovered": true + }, + { + "name": "Unbiunium", + "mass": 320, + "number": 121, + "period": 8, + "phase": null, + "symbol": "Ubu", + "undiscovered": true + }, + { + "name": "Unbibium", + "mass": null, + "number": 122, + "period": 8, + "phase": null, + "symbol": "Ubb", + "undiscovered": true + }, + { + "name": "Unbitrium", + "mass": null, + "number": 123, + "period": 8, + "phase": null, + "symbol": "Ubt", + "undiscovered": true + }, + { + "name": "Unbiquadium", + "mass": null, + "number": 124, + "period": 8, + "phase": null, + "symbol": "Ubq", + "undiscovered": true } ], "colors": { diff --git a/commands/search/periodic-table.js b/commands/search/periodic-table.js index e363bec1..0b28f75a 100644 --- a/commands/search/periodic-table.js +++ b/commands/search/periodic-table.js @@ -63,7 +63,7 @@ module.exports = class PeriodicTableCommand extends Command { ctx.drawImage(batman, 100, 166); } else { ctx.font = '210px Noto'; - ctx.fillStyle = colors[element.phase]; + ctx.fillStyle = colors[element.phase] || 'gray'; ctx.fillText(element.symbol, 250, 320); } ctx.fillStyle = 'black'; @@ -71,10 +71,11 @@ module.exports = class PeriodicTableCommand extends Command { ctx.fillText(element.number, 250, 100); ctx.fillText(element.name, 250, 450); ctx.font = '30px Noto'; - ctx.fillText(element.mass, 250, 400); + ctx.fillText(element.mass || '?', 250, 400); const period = element.number === 0 ? element.period : `period ${element.period}`; + const phase = element.undiscovered ? `hypothetical ${element.phase || 'element'}` : element.phase; return msg.say( - `**${element.name} (${element.symbol})** is a ${element.phase} in ${period}.`, + `**${element.name} (${element.symbol})** is a ${phase} in ${period}.`, { files: [{ attachment: canvas.toBuffer(), name: `${element.name}.png` }] } ); } diff --git a/package.json b/package.json index c33bbb5a..ec164615 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "109.4.1", + "version": "109.4.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {