Correct casing and such in undertale

This commit is contained in:
Dragon Fire
2020-06-14 22:15:37 -04:00
parent 37b62a0203
commit 3b8730b8e1
4 changed files with 17 additions and 6 deletions

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

+1 -1
View File
@@ -3,7 +3,7 @@
"asgore", "asgore",
"chara", "chara",
"flowey", "flowey",
"ghost", "napstablook",
"papyrus", "papyrus",
"sans", "sans",
"temmie", "temmie",
+15 -4
View File
@@ -82,11 +82,22 @@ module.exports = class UndertaleCommand extends Command {
const canvas = createCanvas(base.width, base.height); const canvas = createCanvas(base.width, base.height);
const ctx = canvas.getContext('2d'); const ctx = canvas.getContext('2d');
ctx.drawImage(base, 0, 0); ctx.drawImage(base, 0, 0);
let font; let font = 'DeterminationMono';
switch (character) { switch (character) {
case 'sans': font = 'UndertaleSans'; break; case 'sans':
case 'papyrus': font = 'UndertalePapyrus'; break; font = 'UndertaleSans';
default: font = 'DeterminationMono'; break; text = text.toLowerCase();
break;
case 'papyrus':
font = 'UndertalePapyrus';
text = text.toUpperCase();
break;
case 'napstablook':
text = text.toLowerCase();
break;
case 'temmie':
text = this.client.registry.commands.get('temmie').temmize(text);
break;
} }
ctx.font = `31px ${font}`; ctx.font = `31px ${font}`;
ctx.fillStyle = 'white'; ctx.fillStyle = 'white';
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "xiao", "name": "xiao",
"version": "116.27.0", "version": "116.27.1",
"description": "Your personal server companion.", "description": "Your personal server companion.",
"main": "Xiao.js", "main": "Xiao.js",
"scripts": { "scripts": {