Fixed broken robots/spiders with the power of hardcoding x2
This commit is contained in:
parent
0456a0e741
commit
29f8c0b9bc
2 changed files with 10 additions and 10 deletions
|
@ -284,7 +284,7 @@ module.exports = async (app, req, res) => {
|
|||
ic.getBuffer(Jimp.AUTO, function (err, buff) {
|
||||
|
||||
if (!outline) {
|
||||
if (!sizeParam) {
|
||||
if (!sizeParam && !glowOffset.length) {
|
||||
cache[iconCode] = {
|
||||
value: buff,
|
||||
timeoutID: setTimeout(function() {delete cache[iconCode]}, 600000)
|
||||
|
@ -324,7 +324,7 @@ module.exports = async (app, req, res) => {
|
|||
img.src = buff;
|
||||
const buffer = canvas.toBuffer();
|
||||
|
||||
if (!sizeParam) {
|
||||
if (!sizeParam && !glowOffset.length) {
|
||||
cache[iconCode] = {
|
||||
value: buffer,
|
||||
timeoutID: setTimeout(function() {delete cache[iconCode]}, 600000)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"robot": {
|
||||
"3": [0, 0, 0, 0, -100],
|
||||
"3": [-2, 0, 0, 0, -100],
|
||||
"5": [4, -4, 10, 8, -100],
|
||||
"6": [5, -1, 0, 0, -100],
|
||||
"7": [-23, -2, 14, 5],
|
||||
|
@ -13,14 +13,14 @@
|
|||
"15": [0, 0, -7, -2],
|
||||
"16": [1, 0, 0, 0, -100],
|
||||
"17": [1, 0, 0, 0, -100],
|
||||
"18": [-6, 4, -4, 0],
|
||||
"19": [-10, 0, 14, 4],
|
||||
"18": [-6, 4, -4, 0, -100],
|
||||
"19": [-21, 0, 14, 4],
|
||||
"20": [1, 0, 10, 5],
|
||||
"21": [10, -8, 12, 3, -5, 2],
|
||||
"22": [-10, 6, -12 ,3],
|
||||
"23": [-18, 14, -4, 0],
|
||||
"22": [-10, 6, -12, 3, -100],
|
||||
"23": [-18, 16, -4],
|
||||
"24": [4, -2, -4],
|
||||
"25": [15, -10, -1, 2],
|
||||
"25": [12, -9, -1, 2],
|
||||
"26": [-1, 0, 5]
|
||||
},
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
"10": [8, 5],
|
||||
"11": [1, 3],
|
||||
"14": [2, 1],
|
||||
"15": [2, 20, 0, 14],
|
||||
"17": [0, 1]
|
||||
"15": [3, 20, 0, 14],
|
||||
"17": [1, 1]
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue