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
+2
-2
@@ -22,9 +22,9 @@ const imageModeration = require("./image-moderation.js");
|
||||
// kept as data/itemart/<kind>-<id>.<png|jpg|gif>; its version, a hash, is on
|
||||
// the item (customItems.setArt), so a new picture is a new address.
|
||||
|
||||
const MAX_BYTES = 300 * 1024; // a picture kept
|
||||
const MAX_BYTES = 100 * 1024; // a picture kept: every player who sees the item downloads it
|
||||
const MAX_UPLOAD = 2 * 1024 * 1024; // one sent (a BMP is bigger than the PNG it becomes)
|
||||
const MAX_SIDE = 512;
|
||||
const MAX_SIDE = 256; // drawn fitted to the item anyway (a den item's place is 160)
|
||||
const MIN_SIDE = 8;
|
||||
const DIR = path.join(config.dataDir, "itemart");
|
||||
const PNG_SIGNATURE = Buffer.from([0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A]);
|
||||
|
||||
Reference in new issue
Block a user