feat: owner, moderator and verified name tag badges seen by everyone

The game shows a name tag's badge to buddies only, except the News Crew
camera. AvatarWorldView now shows the Owner, Moderator and Verified badges
(def ids 63, 64, 76) to everyone too. ajclient.swf rebuilt with
tools/build-client.sh; buildVersion 61, so clients fetch it (PR #5's client
changes went out under 60 and may still be cached).
This commit is contained in:
Burrowdev committed 2026-10-18 05:44:09 +03:00
1 parent 783feb7788
commit 408b7d4864
4 files changed
+11 -3

No files matched your search

+2 -1
View File
@@ -132,7 +132,8 @@ module.exports = {
// 41: the game's text says "Burrow" where it said Animal Jam.
// 48: the item giver (the item finder renamed) with previews and hex colours;
// 49 and 50: its link to a colour picker.
buildVersion: env.AJ_BUILD_VERSION || "60",
// 61: the Owner, Moderator and Verified name tag badges seen by everyone.
buildVersion: env.AJ_BUILD_VERSION || "61",
// what the official CDN is asked for; not ours to change.
upstreamBuildVersion: "3",
+3 -1
View File
@@ -33,7 +33,9 @@ const cdn = require("./cdn.js");
// there are no more than a hundred (lib/accounts.js); the admin may give
// it and take it away like any other.
// in the order they are listed and drawn.
// in the order they are listed and drawn. the Verified, Owner and Moderator
// name tags show their badge to everyone, not only to buddies: their def ids
// are in PUBLIC_BADGE_IDS of swf-src/AvatarWorldView.as.
const BADGES = [
// first, so its tick comes straight after the name, as on other sites.
{id: "verified", label: "Verified", tag: {def: 76, media: 20014, bit: 21}},
+6 -1
View File
@@ -63,6 +63,11 @@ package avatar
private static const ATTACHMENT_Y_OFFSET:int = -320;
private static const SLIDE_FRAME_TIME:Number = 41.666666666666664;
// name tag badges everyone sees, buddy or not, as the game shows its
// News Crew camera (NameBar.isVIPBadge): the Owner, Moderator and
// Verified badges of lib/badges.js, by their def ids.
private static const PUBLIC_BADGE_IDS:Array = [63,64,76];
private static const GLOW_LAND_DEFAULT_COLOR:int = 5586479;
@@ -2185,7 +2190,7 @@ package avatar
{
_loc2_ = param1;
}
if(BuddyManager.isBuddy(_avatar.userName) || isSelf || _isMember && NameBar.isVIPBadge(_loc2_))
if(BuddyManager.isBuddy(_avatar.userName) || isSelf || _isMember && (NameBar.isVIPBadge(_loc2_) || PUBLIC_BADGE_IDS.indexOf((_loc2_ >> 8 & 0xFF) + 1) != -1))
{
_namebar.setNubType(NameBar.BUDDY);
}
BIN
View File
Binary file not shown.