famous last words: fuck (changing ORM)
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -23,6 +23,11 @@ class CharacterRepository {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
equipment: {
|
||||
include: {
|
||||
item: true
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
@ -55,6 +60,11 @@ class CharacterRepository {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
equipment: {
|
||||
include: {
|
||||
item: true
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
@ -86,6 +96,11 @@ class CharacterRepository {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
equipment: {
|
||||
include: {
|
||||
item: true
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
@ -117,6 +132,11 @@ class CharacterRepository {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
equipment: {
|
||||
include: {
|
||||
item: true
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -158,9 +158,12 @@ export default class SpriteUpdateEvent {
|
||||
const processedInput = await sharp(buffer)
|
||||
.ensureAlpha()
|
||||
.resize({
|
||||
width: frameWidth, // Set maximum width
|
||||
height: frameHeight, // Set maximum height
|
||||
fit: 'inside', // Ensure image fits within dimensions
|
||||
kernel: sharp.kernel.nearest,
|
||||
fit: 'contain',
|
||||
position: 'center'
|
||||
position: 'center',
|
||||
withoutEnlargement: true // Don't enlarge smaller images
|
||||
})
|
||||
.png({
|
||||
compressionLevel: 9,
|
||||
|
Reference in New Issue
Block a user