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
+74
View File
@@ -0,0 +1,74 @@
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);
}