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",
"chara",
"flowey",
"ghost",
"napstablook",
"papyrus",
"sans",
"temmie",
+15 -4
View File
@@ -82,11 +82,22 @@ module.exports = class UndertaleCommand extends Command {
const canvas = createCanvas(base.width, base.height);
const ctx = canvas.getContext('2d');
ctx.drawImage(base, 0, 0);
let font;
let font = 'DeterminationMono';
switch (character) {
case 'sans': font = 'UndertaleSans'; break;
case 'papyrus': font = 'UndertalePapyrus'; break;
default: font = 'DeterminationMono'; break;
case 'sans':
font = 'UndertaleSans';
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.fillStyle = 'white';
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "116.27.0",
"version": "116.27.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {