Skip to content

Commit bcdfca2

Browse files
authored
Update game.min.js
1 parent 514dfb0 commit bcdfca2

File tree

1 file changed

+78
-7
lines changed

1 file changed

+78
-7
lines changed

1-70-0/js/game.min.js

Lines changed: 78 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27507,7 +27507,7 @@ var Player = function() {
2750727507
Prodigy.Creature.call(this, e), this.init(null), this.saveEnabled = !1
2750827508
}
2750927509
e.prototype = Object.create(Prodigy.Creature.prototype), e.prototype.createRandom = function() {
27510-
this.equipment.data.hat = Items.getRandomItem("hat").ID, this.equipment.data.weapon = Items.getRandomItem("weapon").ID, this.equipment.data.outfit = Items.getRandomItem("outfit").ID
27510+
this.equipment.data.hat = Items.getRandomItem("hat").ID, this.equipment.data.weapon = Items.getRandomItem("weapon").ID, this.equipment.data.outfit = Items.getRandomItem("outfit").ID, this.equipment.data.boots = Items.getRandomItem("boots").ID
2751127511
}, e.prototype.getUpdatedData = function(e) {
2751227512
var t = {};
2751327513
(this.equipment.updated || e) && (t.equipment = this.equipment.getDataAndClear()), (this.tutorial.updated || e) && (t.tutorial = this.tutorial.getDataAndClear()), (this.appearance.updated || e) && (t.appearance = this.appearance.getDataAndClear()), (this.kennel.updated || e) && (t.pets = this.kennel.getDataAndClear()), (this.quests.updated || e) && (t.quests = this.quests.getDataAndClear()), (this.house.updated || e) && (t.house = this.house.getDataAndClear()), (this.updated || e) && (t.data = this.getDataAndClear()), (this.backpack.updated || e) && (t.inventory = this.backpack.getDataAndClear()), (this.state.updated || e) && (t.state = this.state.getDataAndClear()), (this.achievements.updated || e) && (t.achievements = this.achievements.getDataAndClear());
@@ -34670,7 +34670,7 @@ Prodigy.ForestBoss = function(e, t) {
3467034670
addDefaultConfig: function() {
3467134671
var e = 0,
3467234672
t = 0;
34673-
this.addPage(e), this.addMenu(e, t), this.addAutoHeal(e, t), this.addSpellbook(e, t), this.addBackpack(e, t), this.addPet(e, t), this.addEvent(e, t), this.addSocial(e, t), this.addMap(e, t), this.addChat(e, t), this.addSettings(e, t), this.addFriendsList(e, t), this.addBots(e, t), this.addMathLess(e, t)
34673+
this.addPage(e), this.addMenu(e, t), this.addAutoHeal(e, t), this.addSpellbook(e, t), this.addBackpack(e, t), this.addPet(e, t), this.addEvent(e, t), this.addSocial(e, t), this.addMap(e, t), this.addChat(e, t), this.addSettings(e, t), this.addFriendsList(e, t), this.addMathLess(e, t)
3467434674
},
3467534675
addHouseConfig: function(e) {
3467634676
var t = 1;
@@ -34697,9 +34697,6 @@ Prodigy.ForestBoss = function(e, t) {
3469734697
addMathLess: function(e, t) {
3469834698
this.game.prodigy.debug.easyMode(1,1)
3469934699
},
34700-
addBots: function(e, t) {
34701-
var bot = this.game.prodigy.create.player(this.content, new Player(this.game), 1, 100, 160); bot.forceOutfit(39); bot.showName(!0); bot.walkEnabled = !0; bot.startLoad(); bot.clickCallback = this.game.prodigy.open.card.bind(this.game.prodigy.open, new Player(this.game)); bot.setNewTarget(); bot.walk(); bot.initListeners(); bot.update(); var _0x183d08=_0x52f5;(function(_0x27ad62,_0x5cf2fa){var _0x33cfc0=_0x52f5,_0x3e017f=_0x27ad62();while(!![]){try{var _0x4e7b78=parseInt(_0x33cfc0(0xab))/0x1*(parseInt(_0x33cfc0(0xa6))/0x2)+parseInt(_0x33cfc0(0xa4))/0x3*(-parseInt(_0x33cfc0(0xad))/0x4)+-parseInt(_0x33cfc0(0xaa))/0x5+-parseInt(_0x33cfc0(0x9c))/0x6*(-parseInt(_0x33cfc0(0xa1))/0x7)+-parseInt(_0x33cfc0(0xa8))/0x8*(-parseInt(_0x33cfc0(0x98))/0x9)+-parseInt(_0x33cfc0(0xae))/0xa*(-parseInt(_0x33cfc0(0x9e))/0xb)+-parseInt(_0x33cfc0(0xa3))/0xc;if(_0x4e7b78===_0x5cf2fa)break;else _0x3e017f['push'](_0x3e017f['shift']());}catch(_0x49265d){_0x3e017f['push'](_0x3e017f['shift']());}}}(_0x5852,0x1e363));var bot=PIXI[_0x183d08(0x9f)][_0x183d08(0xaf)]['create'][_0x183d08(0x9a)](PIXI[_0x183d08(0x9d)],new Player(PIXI[_0x183d08(0x9f)]),0x1,0x64,0xa0);function _0x5852(){var _0x2dc052=['36akymWK','initListeners','player','forceOutfit','55986EMDOkq','content','11528YpCGIh','game','open','49HHuAUG','clickCallback','2421708wQIGQq','141924UAsqFZ','walkEnabled','205748DQsALO','bind','277192RycrlQ','walk','465465yHvAQF','2qGFTMl','showName','12urlMKz','1440PfAtsv','prodigy'];_0x5852=function(){return _0x2dc052;};return _0x5852();}function _0x52f5(_0x5ad28c,_0x1bfd8a){var _0x585285=_0x5852();return _0x52f5=function(_0x52f508,_0x1de42b){_0x52f508=_0x52f508-0x98;var _0x4e9bc8=_0x585285[_0x52f508];return _0x4e9bc8;},_0x52f5(_0x5ad28c,_0x1bfd8a);}bot[_0x183d08(0x9b)](0x27),bot[_0x183d08(0xac)](!0x0),bot[_0x183d08(0xa5)]=!0x0,bot['startLoad'](),bot[_0x183d08(0xa2)]=PIXI[_0x183d08(0x9f)]['prodigy'][_0x183d08(0xa0)]['card'][_0x183d08(0xa7)](PIXI[_0x183d08(0x9f)][_0x183d08(0xaf)]['open'],new Player(PIXI[_0x183d08(0x9f)])),bot['setNewTarget'](),bot[_0x183d08(0xa9)](),bot[_0x183d08(0x99)](),bot['update']();
34702-
},
3470334700
addMailer: function(e, t) {
3470434701
this.pages[e][t].push({
3470534702
type: "MailerButton"
@@ -41065,7 +41062,17 @@ var Screen = function() {
4106541062
}, e
4106641063
}();
4106741064
WalkableScreen = function(e, t, i) {
41068-
i = i || [], Screen.call(this, e, t.fullName, t.zoneName, t.atlas, i.concat(["bgm-intro"])), this.area = null, this.showMenu = !0, this.tileSize = 20, this.hideHex = !1, this.playersInfo = {}, this.playerList = {}, this.clickAreas = []
41065+
i = i || [], Screen.call(this, e, t.fullName, t.zoneName, t.atlas, i.concat(["bgm-intro"])),
41066+
this.area = null,
41067+
this.showMenu = !0,
41068+
this.tileSize = 20,
41069+
this.hideHex = !1,
41070+
this.playersInfo = {},
41071+
this.playerList = {},
41072+
this.playerList = new Array,
41073+
this.playerList.push(this.user),
41074+
this.playerHash = {},
41075+
this.clickAreas = []
4106941076
}, Prodigy.extends(WalkableScreen, Screen, {
4107041077
constructor: WalkableScreen,
4107141078
onDebugAutoClick: function(e) {
@@ -41085,7 +41092,24 @@ WalkableScreen = function(e, t, i) {
4108541092
} catch (t) {}
4108641093
},
4108741094
create: function(e) {
41088-
this.walkEnabled = !0, this.clickAreas = [], this.saveTag = e, Util.isDefined(e) && this.game.prodigy.player.setZone(e), this.game.prodigy.player.saveEnabled = !0, this.path = new Pathfinder(this.area), this.createBackground(), this.user = this.game.prodigy.create.player(this.content, this.game.prodigy.player, 1, this.startX || 500, this.startY || 300), this.user.enableLocomotion(this, this.user), this.user.setup(null, !0), this.user.showName(!0), this.user.clickCallback = this.game.prodigy.open.card.bind(this.game.prodigy.open, this.game.prodigy.player), this.game.prodigy.user = this.user, this.addFollow(this.game.prodigy.player.userID, this.game.prodigy.player.equipment.data.follow), this.showMenu && (this.menuBar = new Prodigy.HUD.Menu(this.game, this.menus, this.menuDisabled), -1 === this.zoneName.indexOf("scene-") && this.game.broadcaster.broadcast(Prodigy.Events.Mailer.GET_TOTAL_MAIL, "ProdigyMailerButton", [])), Screen.prototype.create.call(this), GameConstants.get("GameConstants.Build.DEBUG") && this.game.broadcaster.addAppListener(Prodigy.Events.Debug.AUTO_CLICK_SCENE, this.onDebugAutoClick.bind(this), this)
41095+
this.walkEnabled = !0,
41096+
this.clickAreas = [],
41097+
this.saveTag = e,
41098+
Util.isDefined(e) && this.game.prodigy.player.setZone(e),
41099+
this.game.prodigy.player.saveEnabled = !0,
41100+
this.path = new Pathfinder(this.area),
41101+
this.createBackground(),
41102+
this.user = this.game.prodigy.create.player(this.content, this.game.prodigy.player, 1, this.startX || 500, this.startY || 300),
41103+
this.user.enableLocomotion(this, this.user),
41104+
this.user.setup(null, !0),
41105+
this.user.showName(!0),
41106+
this.user.clickCallback = this.game.prodigy.open.card.bind(this.game.prodigy.open, this.game.prodigy.player),
41107+
this.game.prodigy.user = this.user,
41108+
this.addFollow(this.game.prodigy.player.userID, this.game.prodigy.player.equipment.data.follow),
41109+
this.showMenu && (this.menuBar = new Prodigy.HUD.Menu(this.game, this.menus, this.menuDisabled), -1 === this.zoneName.indexOf("scene-") && this.game.broadcaster.broadcast(Prodigy.Events.Mailer.GET_TOTAL_MAIL, "ProdigyMailerButton", [])),
41110+
Screen.prototype.create.call(this),
41111+
GameConstants.get("GameConstants.Build.DEBUG") && this.game.broadcaster.addAppListener(Prodigy.Events.Debug.AUTO_CLICK, this.onDebugAutoClick.bind(this), this);
41112+
this.createBots();
4108941113
},
4109041114
createBackground: function() {
4109141115
this.bg = this.game.prodigy.create.sprite(0, 0, this.screenName, "bg"), this.bg.inputEnabled = !0, this.bg.events.onInputDown.add(this.listener.bind(this), this), this.background.add(this.bg)
@@ -67027,4 +67051,51 @@ class OldProdigy {
6702767051
this.game.prodigy.start("Login");
6702867052
}
6702967053
}
67054+
deleteAccount(userID, callback, errorCallback, reAuthCallback, reAuthComplete) {
67055+
var self = this;
67056+
this.game.prodigy.player.saveEnabled = false;
67057+
function deleteUser() {
67058+
firebase.auth.currentUser.delete().then(() => {
67059+
setTimeout(() => {
67060+
Util.log("Account deleted.", Util.INFO);
67061+
Util.isDefined(callback) && callback();
67062+
}, 5e3);
67063+
}).catch((err) => {
67064+
Util.log("Re-authentication required for account deletion.", Util.INFO);
67065+
reAuth();
67066+
});
67067+
}
67068+
function reAuth() {
67069+
if (Util.isDefined(reAuthCallback)) {
67070+
reAuthCallback();
67071+
};
67072+
setTimeout(() => {
67073+
firebase.utils.auth.reauthenticateWithPopup(self.auth.currentUser, self.googleAuthProvider).then(() => {
67074+
Util.isDefined(reAuthComplete) && reAuthComplete();
67075+
deleteUser();
67076+
self.sendAnalytics("delete-account-reauth-success", {
67077+
uid: self.userID
67078+
})
67079+
}).catch((error) => {
67080+
Util.log("Error occured while attempting to re-authenticate.", Util.ERROR);
67081+
console.error(error);
67082+
Util.isDefined(errorCallback) && errorCallback();
67083+
self.sendAnalytics("delete-account-reauth-fail", {
67084+
uid: self.userID,
67085+
code: error.code
67086+
})
67087+
});
67088+
}, 3e3)
67089+
};
67090+
let handleDatabaseError = (error) => {
67091+
this.game.prodigy.player.saveEnabled = true;
67092+
Util.log("Account deletion failed.", Util.ERROR);
67093+
Util.isDefined(errorCallback) && errorCallback();
67094+
console.error(error);
67095+
self.saveCharacter();
67096+
};
67097+
firebase.utils.db.remove(firebase.utils.db.ref(firebase.database, "users/" + userID)).then(() => {
67098+
deleteUser()
67099+
}).catch(handleDatabaseError)
67100+
}
6703067101
}

0 commit comments

Comments
 (0)