Moved cheats aside and finalize nav links. Moved to pq.com/insitu/.

This commit is contained in:
Eric Fredricksen
2010-07-16 14:12:57 -07:00
parent 480d5c7544
commit 4746cea675
7 changed files with 85 additions and 96 deletions
-82
View File
@@ -993,87 +993,9 @@ function LoadCharacter() {
if (document)
$("#title").text("Progress Quest - " + GameSaveName());
if (window.location.href.indexOf("?quit#") > 0)
quit(); // TODO: cheesy
}
function Cheats() {
if ($(".cheater").length) return;
function cheat(label, effect) {
$("<button/>", {
"class": "cheater",
text: label,
click: effect}).appendTo('body');
}
cheat("Task", function () {
TaskBar.reposition(TaskBar.Max());
});
cheat("Level", function () {
LevelUp();
});
cheat("Quest", function () {
QuestBar.reposition(QuestBar.Max());
TaskBar.reposition(TaskBar.Max());
});
cheat("Plot", function () {
PlotBar.reposition(PlotBar.Max());
TaskBar.reposition(TaskBar.Max());
});
cheat("Pause", function () {
if (timerid) {
StopTimer();
} else {
StartTimer();
}
});
cheat("Break", function () {
debugger;
});
cheat("Equip", function () {
WinEquip();
});
cheat("Item", function () {
WinItem();
});
cheat("Clear items", function () {
while (Inventory.length() > 1)
Inventory.remove1();
});
cheat("Spell", function () {
WinSpell();
});
cheat("Stat", function () {
WinStat();
});
cheat("$$$", function () {
Add(Inventory,'Gold',Random(100));
});
cheat("Save", function () {
SaveGame();
alert(JSON.stringify(game).length);
});
cheat("Quit", quit);
}
function HotOrNot() {
// Figure out which spell is best
if (Spells.length()) {
@@ -1150,10 +1072,6 @@ function FormKeyDown(e) {
//Navigate(GetHostAddr() + 'name=' + UrlEncode(Get(Traits,'Name')));
}
if (e.which == 3) { // ^C
Cheats();
}
if (e.which == 7) { // ^G
game.guild = InputBox('Choose a guild.\r\rMake sure you undestand the guild rules before you join one. To learn more about guilds, visit http://progressquest.com/guilds.php', game.guild);
Brag("guild");