Fixed broken robots/spiders with the power of hardcoding x2

This commit is contained in:
Colon 2020-06-21 00:21:14 -04:00
parent 0456a0e741
commit 29f8c0b9bc
2 changed files with 10 additions and 10 deletions

View file

@ -284,7 +284,7 @@ module.exports = async (app, req, res) => {
ic.getBuffer(Jimp.AUTO, function (err, buff) { ic.getBuffer(Jimp.AUTO, function (err, buff) {
if (!outline) { if (!outline) {
if (!sizeParam) { if (!sizeParam && !glowOffset.length) {
cache[iconCode] = { cache[iconCode] = {
value: buff, value: buff,
timeoutID: setTimeout(function() {delete cache[iconCode]}, 600000) timeoutID: setTimeout(function() {delete cache[iconCode]}, 600000)
@ -324,7 +324,7 @@ module.exports = async (app, req, res) => {
img.src = buff; img.src = buff;
const buffer = canvas.toBuffer(); const buffer = canvas.toBuffer();
if (!sizeParam) { if (!sizeParam && !glowOffset.length) {
cache[iconCode] = { cache[iconCode] = {
value: buffer, value: buffer,
timeoutID: setTimeout(function() {delete cache[iconCode]}, 600000) timeoutID: setTimeout(function() {delete cache[iconCode]}, 600000)

View file

@ -1,6 +1,6 @@
{ {
"robot": { "robot": {
"3": [0, 0, 0, 0, -100], "3": [-2, 0, 0, 0, -100],
"5": [4, -4, 10, 8, -100], "5": [4, -4, 10, 8, -100],
"6": [5, -1, 0, 0, -100], "6": [5, -1, 0, 0, -100],
"7": [-23, -2, 14, 5], "7": [-23, -2, 14, 5],
@ -13,14 +13,14 @@
"15": [0, 0, -7, -2], "15": [0, 0, -7, -2],
"16": [1, 0, 0, 0, -100], "16": [1, 0, 0, 0, -100],
"17": [1, 0, 0, 0, -100], "17": [1, 0, 0, 0, -100],
"18": [-6, 4, -4, 0], "18": [-6, 4, -4, 0, -100],
"19": [-10, 0, 14, 4], "19": [-21, 0, 14, 4],
"20": [1, 0, 10, 5], "20": [1, 0, 10, 5],
"21": [10, -8, 12, 3, -5, 2], "21": [10, -8, 12, 3, -5, 2],
"22": [-10, 6, -12 ,3], "22": [-10, 6, -12, 3, -100],
"23": [-18, 14, -4, 0], "23": [-18, 16, -4],
"24": [4, -2, -4], "24": [4, -2, -4],
"25": [15, -10, -1, 2], "25": [12, -9, -1, 2],
"26": [-1, 0, 5] "26": [-1, 0, 5]
}, },
@ -29,7 +29,7 @@
"10": [8, 5], "10": [8, 5],
"11": [1, 3], "11": [1, 3],
"14": [2, 1], "14": [2, 1],
"15": [2, 20, 0, 14], "15": [3, 20, 0, 14],
"17": [0, 1] "17": [1, 1]
} }
} }