fix(register): use a valid default avatar figure

The starter look for a new account was `hr-100-.hd-180-1...`, whose empty
hair colour slot is rejected by the imager with 400 "Invalid figure format".
Every player who registered without a look therefore got a broken avatar.
Add the missing colour slot (`hr-100-1`), which the imager renders.
This commit is contained in:
openhands committed 2026-10-15 16:26:31 +02:00
1 parent 73005a3c05
commit ef2f8c30f0
3 files changed
+5 -2

No files matched your search

File renamed without changes.
+1 -1
View File
@@ -146,7 +146,7 @@ describe("register", () => {
accountCreated: expect.any(Number),
ipRegister: "203.0.113.9",
ipCurrent: "203.0.113.9",
look: "hr-100-.hd-180-1.ch-255-66.lg-280-110.sh-305-62",
look: "hr-100-1.hd-180-1.ch-255-66.lg-280-110.sh-305-62",
termsAccepted: true,
});
expect(state.invalidateKey).toHaveBeenCalledWith("login:user:Alice_123");
+4 -1
View File
@@ -169,7 +169,10 @@ const ZOD_MESSAGE_CODES: Record<string, RegisterErrorCode> = {
};
// A valid starter Habbo figure so the avatar renders in-client immediately.
const DEFAULT_LOOK = "hr-100-.hd-180-1.ch-255-66.lg-280-110.sh-305-62";
// The hair part needs a colour slot (`hr-100-1`, not `hr-100-`) or the imager
// rejects the whole figure with 400 "Invalid figure format" and every avatar
// for the user renders broken.
const DEFAULT_LOOK = "hr-100-1.hd-180-1.ch-255-66.lg-280-110.sh-305-62";
export interface RegisterState {
error: string | null;