diff --git a/config.js b/config.js index 1d4425b..59dd91a 100644 --- a/config.js +++ b/config.js @@ -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", diff --git a/lib/badges.js b/lib/badges.js index 2202b8d..438fbe6 100644 --- a/lib/badges.js +++ b/lib/badges.js @@ -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}}, diff --git a/swf-src/AvatarWorldView.as b/swf-src/AvatarWorldView.as index 70b47e3..4110296 100644 --- a/swf-src/AvatarWorldView.as +++ b/swf-src/AvatarWorldView.as @@ -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); } diff --git a/swf/ajclient.swf b/swf/ajclient.swf index 0fabb0e..bde81ea 100644 Binary files a/swf/ajclient.swf and b/swf/ajclient.swf differ