mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -05:00
feat: redemption codes, world count, den visitor count and more fixes
- codes made in the admin panel (Messages) give an item, gems or diamonds through the game's Redeem Code window, which was never answered; its "need help?" says what codes are here - the number of worlds is set in the admin panel (Debug), live - a den's owner is told how many are in it: the HUD's count and doorbell - the map counts the player's buddies in each land of their world - gifts whose item no longer exists, or with a nonsense amount, are no gift at all, rather than a window that will not close - custom item pictures are 256 pixels and 100 KB at most - the account page's buddies and den visitors fold away - shops no longer count down "X days left"
This commit is contained in:
1 parent
15f321fb00
commit
7de41ceed5
14 files changed
+707
-27
No files matched your search
+3
-3
@@ -2391,8 +2391,8 @@
|
||||
// moving), else drawn into a PNG that fits, smaller until it is small
|
||||
// enough. any picture this browser can open will do (WebP, AVIF, BMP...).
|
||||
// null when it cannot be read at all.
|
||||
const PICTURE_SIDE = 512;
|
||||
const PICTURE_BYTES = 300 * 1024;
|
||||
const PICTURE_SIDE = 256;
|
||||
const PICTURE_BYTES = 100 * 1024;
|
||||
const preparePicture = async file => {
|
||||
const kept = ["image/png", "image/jpeg", "image/gif"].includes(file.type);
|
||||
let image = null;
|
||||
@@ -2406,7 +2406,7 @@
|
||||
image.close();
|
||||
return file;
|
||||
}
|
||||
for (const side of [PICTURE_SIDE, 384, 256, 128]) {
|
||||
for (const side of [PICTURE_SIDE, 192, 128, 96]) {
|
||||
const scale = Math.min(1, side / image.width, side / image.height);
|
||||
const canvas = document.createElement("canvas");
|
||||
canvas.width = Math.max(1, Math.round(image.width * scale));
|
||||
|
||||
Reference in new issue
Block a user