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:
Burrowdev committed 2026-10-23 22:25:35 +03:00
1 parent 15f321fb00
commit 7de41ceed5
14 files changed
+707 -27

No files matched your search

+3 -3
View File
@@ -4762,9 +4762,9 @@ package
// the picture read: sent as it is when the server takes it so (a PNG,
// JPEG or GIF small enough, or a BMP, which the server makes a PNG); one
// too big is drawn smaller here and sent as a PNG.
private static const MAKER_PICTURE_SIDE:int = 512;
private static const MAKER_PICTURE_SIDE:int = 256;
private static const MAKER_PICTURE_BYTES:int = 300 * 1024;
private static const MAKER_PICTURE_BYTES:int = 100 * 1024;
private function onMakerPictureRead(param1:Event) : void
{
@@ -4804,7 +4804,7 @@ package
private static function shrunkPng(param1:BitmapData) : ByteArray
{
var _loc2_:ByteArray = null;
for each(var _loc3_:int in [MAKER_PICTURE_SIDE,384,256,128])
for each(var _loc3_:int in [MAKER_PICTURE_SIDE,192,128,96])
{
var _loc4_:Number = Math.min(1,_loc3_ / param1.width,_loc3_ / param1.height);
var _loc5_:BitmapData = new BitmapData(Math.max(1,Math.round(param1.width * _loc4_)),Math.max(1,Math.round(param1.height * _loc4_)),true,0);