Skip to content

Commit 64e59dd

Browse files
authored
Update game.min.js
1 parent 053fa38 commit 64e59dd

File tree

1 file changed

+223
-96
lines changed

1 file changed

+223
-96
lines changed

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

Lines changed: 223 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -28976,130 +28976,257 @@ Prodigy.ForestBoss = function(e, t) {
2897628976
}
2897728977
},
2897828978
openSound: function() {
28979-
var e = 525,
28980-
t = this.game.prodigy.audio.getSFXVolume(),
28981-
i = this.game.prodigy.audio.getBGMVolume(),
28982-
a = this.game.prodigy.audio.getVoiceVolume();
28983-
this.game.prodigy.create.font(this.content, (600 - e) / 2, 30, this.game.prodigy.localization.getString("SETTINGS_SOUND_VOLUME"), {
28984-
width: e,
28979+
var e = this.game.prodigy.audio.getSFXVolume(),
28980+
t = this.game.prodigy.audio.getBGMVolume(),
28981+
i = this.game.prodigy.audio.getVoiceVolume();
28982+
this.game.prodigy.create.font(this.content, 37.5, 30, "Sound Volume", {
28983+
width: 525,
2898528984
align: "center"
28986-
}), this.soundVolumeBar = this.game.prodigy.create.slider(this.content, (600 - e) / 2, 55, e, !1, !1), this.soundVolumeBar.reset(101, 1, Math.floor(100 * t), this.setSound.bind(this, 0)), this.game.prodigy.create.font(this.content, (600 - e) / 2, 110, this.game.prodigy.localization.getString("SETTINGS_MUSIC_VOLUME"), {
28987-
width: e,
28985+
}), this.soundVolumeBar = this.game.prodigy.create.slider(this.content, 37.5, 55, 525, !1, !1), this.soundVolumeBar.reset(101, 1, Math.floor(100 * e), this.setSound.bind(this, 0)), this.game.prodigy.create.font(this.content, 37.5, 110, "Music Volume", {
28986+
width: 525,
2898828987
align: "center"
28989-
}), this.bgmVolumeBar = this.game.prodigy.create.slider(this.content, (600 - e) / 2, 135, e, !1, !1), this.bgmVolumeBar.reset(101, 1, Math.floor(100 * i), this.setSound.bind(this, 1)), this.game.prodigy.create.font(this.content, (600 - e) / 2, 190, this.game.prodigy.localization.getString("SETTINGS_VOICE_VOLUME"), {
28990-
width: e,
28988+
}), this.bgmVolumeBar = this.game.prodigy.create.slider(this.content, 37.5, 135, 525, !1, !1), this.bgmVolumeBar.reset(101, 1, Math.floor(100 * t), this.setSound.bind(this, 1)), this.game.prodigy.create.font(this.content, 37.5, 190, "Voice Volume", {
28989+
width: 525,
2899128990
align: "center"
28992-
}), this.voiceVolumeBar = this.game.prodigy.create.slider(this.content, (600 - e) / 2, 215, e, !1, !1), this.voiceVolumeBar.reset(101, 1, Math.floor(100 * a), this.setSound.bind(this, 2)), this.game.prodigy.audio.setSFXVolume(t), this.game.prodigy.audio.setBGMVolume(i), this.game.prodigy.audio.setVoiceVolume(a)
28991+
}), this.voiceVolumeBar = this.game.prodigy.create.slider(this.content, 37.5, 215, 525, !1, !1), this.voiceVolumeBar.reset(101, 1, Math.floor(100 * i), this.setSound.bind(this, 2)), this.game.prodigy.audio.setSFXVolume(e), this.game.prodigy.audio.setBGMVolume(t), this.game.prodigy.audio.setVoiceVolume(i)
2899328992
},
2899428993
openGraphics: function() {
28995-
this.game.prodigy.create.textButton(this.content, 150, 50, {
28996-
text: this.game.prodigy.localization.getString("SYSTEM_BUTTON_SMALL_SCREEN"),
28994+
this.game.prodigy.create.textButton(this.content, 150, -25, {
28995+
text: "Small Screen",
2899728996
size: Prodigy.Control.TextButton.MED
28998-
}, this.game.prodigy.graphics.setResolutionSmall.bind(this)), this.game.prodigy.create.textButton(this.content, 150, 125, {
28999-
text: this.game.prodigy.localization.getString("SYSTEM_BUTTON_MEDIUM_SCREEN"),
28997+
}, this.game.prodigy.graphics.setResolutionSmall.bind(this)), this.game.prodigy.create.textButton(this.content, 150, 50, {
28998+
text: "Medium Screen",
2900028999
size: Prodigy.Control.TextButton.MED
29001-
}, this.game.prodigy.graphics.setResolutionMedium.bind(this)), this.game.prodigy.create.textButton(this.content, 150, 200, {
29002-
text: this.game.prodigy.localization.getString("SYSTEM_BUTTON_LARGE_SCREEN"),
29000+
}, this.game.prodigy.graphics.setResolutionMedium.bind(this)), this.game.prodigy.create.textButton(this.content, 150, 125, {
29001+
text: "Large Screen",
2900329002
size: Prodigy.Control.TextButton.MED
29004-
}, this.game.prodigy.graphics.setResolutionLarge.bind(this))
29003+
}, this.game.prodigy.graphics.setResolutionLarge.bind(this)), this.game.prodigy.create.textButton(this.content, 150, 200, {
29004+
text: "Bigger Screen",
29005+
size: Prodigy.Control.TextButton.MED
29006+
}, this.game.prodigy.graphics.setResolutionExtraLarge.bind(this)), this.game.prodigy.create.textButton(this.content, 150, 275, {
29007+
text: "Huge Screen",
29008+
size: Prodigy.Control.TextButton.MED
29009+
}, this.game.prodigy.graphics.setResolutionGigantic.bind(this)), this.game.prodigy.create.textButton(this.content, 150, 350, {
29010+
text: "Giant Screen",
29011+
size: Prodigy.Control.TextButton.MED
29012+
}, this.game.prodigy.graphics.setResolutionExtraGigantic.bind(this))
2900529013
},
29006-
openNetwork: function() {
29007-
let e = "Click on the save character button and choose where you want your save to be in to save your character.";
29014+
openOther: function() {
29015+
var z = Util.isDefined(this.game.prodigy.player.world) ? "Your world is: " + this.game.prodigy.player.world.name : "You are playing in Offline Mode.";
29016+
this.game.prodigy.create.font(this.content, 0, -50, z, {
29017+
width: 600,
29018+
align: "center"
29019+
}); let e = "You are not currently signed in with Google.";
2900829020
if (this.game.prodigy.old.signedIn) {
2900929021
e = "You are currently signed in with Google.";
29022+
this.game.prodigy.create.font(this.content, 0, 45, `User ID: ${this.game.prodigy.player.userID}`, {
29023+
width: 600,
29024+
align: "center"
29025+
});
29026+
this.game.prodigy.create.textButton(this.content, 150, 85, {
29027+
text: "Delete Account",
29028+
size: Prodigy.Control.TextButton.MED
29029+
}, this.deleteAccountConfirm.bind(this));
2901029030
};
29011-
this.game.prodigy.create.font(this.content, 0, 50, e, {
29031+
this.game.prodigy.create.font(this.content, 0, 20, e, {
2901229032
width: 600,
2901329033
align: "center"
29014-
}), this.game.prodigy.create.textButton(this.content, 150, 200, {
29015-
text: this.game.prodigy.localization.getString("SYSTEM_BUTTON_SAVE_CHARACTER"),
29034+
});
29035+
let x = this.game.prodigy.create.textButton(this.content, 150, 150, {
29036+
text: "Save Character",
2901629037
size: Prodigy.Control.TextButton.MED
2901729038
}, this.saveCharacter.bind(this))
2901829039
},
29019-
openOther: function() {
29020-
this.game.prodigy.create.textButton(this.content, 150, 50, {
29021-
text: this.game.prodigy.localization.getString("SYSTEM_BUTTON_GET_EPICS"),
29040+
openTones: function() {
29041+
var e = Util.isDefined(this.game.prodigy.player.world) ? "" + "Change your skin color!" : "Change your skin color!";
29042+
this.game.prodigy.create.font(this.content, 0, 10, e, {
29043+
width: 600,
29044+
align: "center"
29045+
}), this.game.prodigy.create.textButton(this.content, 150, 50, {
29046+
text: "Skin Tone 1",
29047+
size: Prodigy.Control.TextButton.MED
29048+
}, this.SkinTone1.bind(this)),
29049+
this.game.prodigy.create.textButton(this.content, 150, 100, {
29050+
text: "Skin Tone 2",
2902229051
size: Prodigy.Control.TextButton.MED
29023-
}, this.unlockEpics.bind(this)), this.game.prodigy.create.textButton(this.content, 150, 125, {
29024-
text: this.game.prodigy.localization.getString("SYSTEM_BUTTON_GET_MEMBER"),
29052+
}, this.SkinTone2.bind(this)),
29053+
this.game.prodigy.create.textButton(this.content, 150, 150, {
29054+
text: "Skin Tone 3",
2902529055
size: Prodigy.Control.TextButton.MED
29026-
}, this.toggleMember.bind(this))
29056+
}, this.SkinTone3.bind(this)),
29057+
this.game.prodigy.create.textButton(this.content, 150, 200, {
29058+
text: "Skin Tone 4",
29059+
size: Prodigy.Control.TextButton.MED
29060+
}, this.SkinTone4.bind(this)),
29061+
this.game.prodigy.create.textButton(this.content, 150, 250, {
29062+
text: "Skin Tone 5",
29063+
size: Prodigy.Control.TextButton.MED
29064+
}, this.SkinTone5.bind(this))
29065+
},
29066+
openGender: function() {
29067+
var e = Util.isDefined(this.game.prodigy.player.world) ? "" + "Switch your gender or change your name!" : "Switch your gender or change your name!";
29068+
this.game.prodigy.create.font(this.content, 0, 50, e, {
29069+
width: 600,
29070+
align: "center"
29071+
}), this.game.prodigy.create.textButton(this.content, 150, 100, {
29072+
text: "Switch Gender",
29073+
size: Prodigy.Control.TextButton.MED
29074+
}, this.toggleGender.bind(this)),
29075+
this.game.prodigy.create.textButton(this.content, 150, 200, {
29076+
text: "Wizard Title",
29077+
size: Prodigy.Control.TextButton.MED
29078+
}, this.MiddleandLastName.bind(this))
29079+
},
29080+
toggleGender: function() {
29081+
let gender = this.game.prodigy.player.appearance.getGender();
29082+
if (gender === "male") {
29083+
this.game.prodigy.player.appearance.setGender("female");
29084+
} else {
29085+
this.game.prodigy.player.appearance.setGender("male");
29086+
}
29087+
this.game.prodigy.open.confirm("Your wizard's gender has been set to " + this.game.prodigy.player.appearance.getGender() + "!\n\n\nWould you like to change your first name, or leave it as is?\n(you can always change it again later)", this.game.prodigy.open.nameChange.bind(this.game.prodigy.open, true), null, null, "System Menu")
29088+
},
29089+
openCredits: function() {
29090+
this.game.prodigy.create.font(this.content, 0, 50, "Definitive Edition Team:", {
29091+
width: 600,
29092+
align: "center",
29093+
})
29094+
this.game.prodigy.create.font(this.content, 0, 75, "healingmunch/HealingMunch and healingmunch", {
29095+
width: 600,
29096+
align: "center",
29097+
})
29098+
this.game.prodigy.create.font(this.content, 0, 130, "Project Contributors:", {
29099+
width: 600,
29100+
align: "center",
29101+
})
29102+
this.game.prodigy.create.font(this.content, 0, 155, "Daboss7173, NomadX2, FireProdigy, Prodidows, steadydelusionreview, Craftersshaft", {
29103+
width: 610,
29104+
align: "center",
29105+
})
29106+
this.game.prodigy.create.font(this.content, 0, 230, "Original Game By:", {
29107+
width: 600,
29108+
align: "center",
29109+
})
29110+
this.game.prodigy.create.font(this.content, 0, 255, "Prodigy Education a.k.a. SMARTeacher", {
29111+
width: 600,
29112+
align: "center",
29113+
})
2902729114
},
2902829115
toggleMember: function() {
29029-
if (this.game.prodigy.player.isMember == true) {
29030-
this.game.prodigy.player.isMember = false;
29031-
this.game.prodigy.open.messageBoxOkay("You have deactivated Membership.", "OKAY", null, null, "Membership")
29032-
}
29033-
else {
29034-
this.game.prodigy.player.isMember = true;
29035-
this.game.prodigy.open.messageBoxOkay("You have activated Membership!", "OKAY", null, null, "Membership")
29036-
}
29116+
!0 == this.game.prodigy.player.isMember ? (this.game.prodigy.player.isMember = !1, this.game.prodigy.open.okaymessage("You have deactivated Membership.", null, null, "No longer member!", "membership")) : (this.game.prodigy.player.isMember = !0, this.game.prodigy.open.okaymessage("You have unlocked Membership!", null, null, "You are member!", "membership"))
2903729117
},
29038-
unlockEpics: function() {
29039-
this.addEpic(125);
29040-
this.addEpic(126);
29041-
this.addEpic(127);
29042-
this.addEpic(128);
29043-
this.addEpic(129);
29044-
this.addEpic(130);
29045-
this.addEpic(131);
29046-
this.addEpic(132);
29047-
this.addEpic(133);
29048-
this.game.prodigy.open.messageBoxOkay("Any epics you didn't have before have been added to your team!","OKAY",null,null,"Epics Unlocked!");
29118+
MathOn: function() {
29119+
this.game.prodigy.debug.easyMode(0,0)
2904929120
},
29050-
addEpic: function(e) {
29051-
if (!this.game.prodigy.player.kennel.hasPet(e)) {
29052-
this.game.prodigy.player.kennel.add(e, null, Prodigy.Creature.starsToLevel(19), 20)
29053-
}
29054-
if (e > 129) {
29055-
e += 4
29056-
}
29057-
if (!this.game.prodigy.player.backpack.hasItem("follow", e)) {
29058-
this.game.prodigy.player.backpack.add("follow", e)
29121+
MathOff: function() {
29122+
this.game.prodigy.debug.easyMode(1,1)
29123+
},
29124+
downloadForCharacter: function(e, t, i) {
29125+
var a = document.createElement("a"),
29126+
s = new Blob([e], {
29127+
type: i
29128+
});
29129+
return a.href = URL.createObjectURL(s), a.download = t, a.click(), !0
29130+
},
29131+
saveCharacter: function() {
29132+
if (this.game.prodigy.old.signedIn) {
29133+
this.game.prodigy.open.message("Your character is automatically savable."), this.game.prodigy.old.saveCharacter();
29134+
return;
2905929135
}
29136+
var e = this.game.prodigy.old.getSave();
29137+
this.downloadForCharacter(JSON.stringify(e), this.game.prodigy.player.appearance.data.name + ".json", "application/json")
2906029138
},
29061-
downloadForCharacter: function(content, fileName, contentType) {
29062-
var a = document.createElement("a");
29063-
var file = new Blob([content], {
29064-
type: contentType
29065-
});
29066-
a.href = URL.createObjectURL(file);
29067-
a.download = fileName;
29068-
a.click();
29069-
return !0
29070-
},
29071-
saveCharacter: function() {
29072-
var character = {
29073-
appearancedata: this.game.prodigy.player.appearance.data,
29074-
equipmentdata: this.game.prodigy.player.equipment.data,
29075-
kenneldata: this.game.prodigy.player.kennel.data,
29076-
data: this.game.prodigy.player.data,
29077-
questdata: this.game.prodigy.player.quests.data,
29078-
statedata: this.game.prodigy.player.state.data,
29079-
tutorialdata: this.game.prodigy.player.tutorial.data,
29080-
backpackdata: this.game.prodigy.player.backpack.data,
29081-
housedata: this.game.prodigy.player.house.data,
29082-
achievementsdata: this.game.prodigy.player.achievements.data,
29083-
metadata: {
29084-
isMember: this.game.prodigy.player.isMember,
29085-
appearanceChanged: this.game.prodigy.player.appearanceChanged,
29086-
broadcastId: this.game.prodigy.player.broadcastId,
29087-
inPVP: this.game.prodigy.player.inPVP,
29088-
updated: this.game.prodigy.player.updated,
29089-
},
29090-
gameVersion: this.game.prodigy.version
29091-
};
29092-
if (Util.isDefined(this.game.prodigy.player.registerDate)) {
29093-
character.metadata.registerDate = this.game.prodigy.player.registerDate
29094-
};
29095-
this.downloadForCharacter(JSON.stringify(character), this.game.prodigy.player.appearance.data.name + '.json', 'text/plain');
29096-
},
29097-
exitGame: function() {
29098-
this.game.prodigy.network.logout()
29139+
deleteAccountConfirm: function() {
29140+
this.game.prodigy.open.confirm("Are you sure you want to delete your account?", this.game.prodigy.open.confirm.bind(this.game.prodigy.open,"Last warning! You will not be able to recover your wizard once your account is deleted!\n\nAre you sure?", this.deleteAccount.bind(this), null, null, "Delete Your Account!"), null, null, "Delete Your Account!");
29141+
},
29142+
deleteAccount: function() {
29143+
let dotCount = 0,
29144+
messageBox = new Prodigy.Menu.Message(this.game, this.menuLayer);
29145+
this.game.prodigy.open.menus.push(messageBox);
29146+
messageBox.setText("Deleting", null, "Delete Your Account!");
29147+
29148+
let overlay = this.game.prodigy.create.element(messageBox.bg, 0, 0);
29149+
var t = overlay.add(this.game.prodigy.create.sprite(-10, -10, "core", "overlay-small"));
29150+
t.width = 1300, t.height = 740, t.alpha = .5
29151+
let spinner = overlay.add(this.game.prodigy.create.sprite(1200, 660, "core", "loading"));
29152+
spinner.anchor.setTo(.5, .5);
29153+
this.game.add.tween(spinner).to({
29154+
angle: 360
29155+
}, 2e3, Phaser.Easing.Linear.None, !0, 0, Number.MAX_VALUE, !1);
29156+
let makeInterval = function() {
29157+
dotCount++;
29158+
if (dotCount > 3) {
29159+
dotCount = 0;
29160+
};
29161+
messageBox.desc.setText(
29162+
dotCount == 1 ?
29163+
"Deleting." :
29164+
dotCount == 2 ?
29165+
"Deleting.." :
29166+
dotCount == 3 ?
29167+
"Deleting..." :
29168+
"Deleting");
2909929169
},
29100-
wizardName: function() {
29170+
interval = setInterval(makeInterval, 500);
29171+
29172+
this.game.prodigy.old.deleteAccount(this.game.prodigy.player.userID, () => {
29173+
clearInterval(interval);
29174+
overlay.destroy();
29175+
let deleteString = "Your account has been deleted.";
29176+
messageBox.desc.setText(deleteString);
29177+
29178+
setTimeout(() => {
29179+
messageBox.desc.setText(deleteString + "\n\nPage will reload in 5 seconds.")
29180+
}, 1e3);
29181+
setTimeout(() => {
29182+
messageBox.desc.setText(deleteString + "\n\nPage will reload in 4 seconds.")
29183+
}, 2e3);
29184+
setTimeout(() => {
29185+
messageBox.desc.setText(deleteString + "\n\nPage will reload in 3 seconds.")
29186+
}, 3e3);
29187+
setTimeout(() => {
29188+
messageBox.desc.setText(deleteString + "\n\nPage will reload in 2 seconds.")
29189+
}, 4e3);
29190+
setTimeout(() => {
29191+
messageBox.desc.setText(deleteString + "\n\nPage will reload in 1 second.")
29192+
}, 5e3);
29193+
setTimeout(() => {
29194+
window.location.reload()
29195+
}, 6e3);
29196+
}, () => {
29197+
clearInterval(interval);
29198+
overlay.destroy();
29199+
messageBox.setAlert();
29200+
messageBox.desc.setText("An error occured while attempting to delete your account.");
29201+
this.game.prodigy.api.saveCharacter(this.game.prodigy.api.userID);
29202+
}, () => {
29203+
clearInterval(interval);
29204+
messageBox.desc.setText("Re-authentication required to delete your account.")
29205+
}, () => {
29206+
interval = setInterval(makeInterval, 500);
29207+
});
29208+
},
29209+
MiddleandLastName: function() {
2910129210
this.game.prodigy.open.nameChange()
2910229211
},
29212+
SkinTone1: function() {
29213+
this.game.prodigy.player.appearance.data.skinColor=1, this.game.prodigy.open.okaymessage("Your skin tone has been changed. Teleport to any zone or change any part of your gear to make this change take effect on your reduced version of your wizard.")
29214+
},
29215+
SkinTone2: function() {
29216+
this.game.prodigy.player.appearance.data.skinColor=2, this.game.prodigy.open.okaymessage("Your skin tone has been changed. Teleport to any zone or change any part of your gear to make this change take effect on your reduced version of your wizard.")
29217+
},
29218+
SkinTone3: function() {
29219+
this.game.prodigy.player.appearance.data.skinColor=3, this.game.prodigy.open.okaymessage("Your skin tone has been changed. Teleport to any zone or change any part of your gear to make this change take effect on your reduced version of your wizard.")
29220+
},
29221+
SkinTone4: function() {
29222+
this.game.prodigy.player.appearance.data.skinColor=4, this.game.prodigy.open.okaymessage("Your skin tone has been changed. Teleport to any zone or change any part of your gear to make this change take effect on your reduced version of your wizard.")
29223+
},
29224+
SkinTone5: function() {
29225+
this.game.prodigy.player.appearance.data.skinColor=5, this.game.prodigy.open.okaymessage("Your skin tone has been changed. Teleport to any zone or change any part of your gear to make this change take effect on your reduced version of your wizard.")
29226+
},
29227+
exitGame: function() {
29228+
this.game.prodigy.old.signOut()
29229+
},
2910329230
menuUpdate: function() {
2910429231
Prodigy.Control.Menu.prototype.menuUpdate.call(this), Util.isDefined(this.soundVolumeBar) && this.game.prodigy.audio.getSFXVolume() !== this.soundVolumeBar.page && this.game.prodigy.audio.setSFXVolume(this.soundVolumeBar.page), Util.isDefined(this.voiceVolumeBar) && this.game.prodigy.audio.getVoiceVolume() !== this.voiceVolumeBar.page && this.game.prodigy.audio.setVoiceVolume(this.voiceVolumeBar.page), Util.isDefined(this.bgmVolumeBar) && this.game.prodigy.audio.getBGMVolume() !== this.bgmVolumeBar.page && this.game.prodigy.audio.setBGMVolume(this.bgmVolumeBar.page)
2910529232
}

0 commit comments

Comments
 (0)