mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
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:
1 parent
783feb7788
commit
408b7d4864
4 files changed
+11
-3
No files matched your search
@@ -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
@@ -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}},
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user