mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 09:37:50 -05:00
fix: eggs, pets, minigames, themes, HQ facts and more
- egg stands sell an egg again; a bought egg hatches and is named at once - pets whose bits name no pet the game has no longer stop loading - the adopt-a-pet gift path opens with nothing adopted yet - Spider Zapper and Wind Rider start with their players: spiders can be shot, and Wind Rider is played; Spider Zapper's waves are answered - Phantom's Treasure can be left from its title screen and level choice - the Touch Pool's fact window always closes - the last key in Return of the Phantoms lies where it can be reached - the Alpha HQ's bios and relics open and close - a land animal in water (and a sea one on land) is drawn when it stands - a seasonal theme's room has today's shops in it (lib/themerooms.js) - the Forgotten Archive sells its own stock, not unfinished pieces - custom items whose def is gone stay out of trade lists - the captcha is always shown, and tried again when it fails - builds 85
This commit is contained in:
1 parent
c7efda7030
commit
4355994253
19 files changed
+4891
-28
No files matched your search
+15
-1
@@ -307,7 +307,21 @@ class Amf3Writer {
|
||||
this.value(element);
|
||||
}
|
||||
}
|
||||
else if (typeof value === "object" && !Buffer.isBuffer(value)) {
|
||||
else if (value instanceof Date) {
|
||||
// A date (a room file's timestamps): its milliseconds, written in place.
|
||||
this.byte(0x08);
|
||||
this.u29(1);
|
||||
this.room(8);
|
||||
this.pos = this.buf.writeDoubleBE(value.getTime(), this.pos);
|
||||
}
|
||||
else if (Buffer.isBuffer(value)) {
|
||||
// A ByteArray (a room file's pictures and shapes).
|
||||
this.byte(0x0c);
|
||||
this.u29((value.length << 1) | 1);
|
||||
this.room(value.length);
|
||||
this.pos += value.copy(this.buf, this.pos);
|
||||
}
|
||||
else if (typeof value === "object") {
|
||||
// A dynamic object of no class, with its traits written in place.
|
||||
this.byte(0x0a);
|
||||
this.byte(0x0b);
|
||||
|
||||
Reference in new issue
Block a user