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);
}
+3
View File
@@ -33,7 +33,9 @@ font-size: 30pt;
<body>
<a href="/">
<img src="pq.gif" alt="Progress Quest">
</a>
<h1>Progress Quest in Your Browser</h1>
@@ -78,6 +80,7 @@ Fame yet. If anyone cares, that will come later.
<a href="/">Home</a> &middot;
<a href="/info.php">Info</a> &middot;
<a href="/faq.php">FAQ</a> &middot;
<a href="/insitu/">Play</a> &middot;
<a href="/dl.php">Download</a> &middot;
<a href="/realms.php">Realms</a> &middot;
<a href="/acct.php">Accounts</a> &middot;
-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");
+2 -5
View File
@@ -186,7 +186,7 @@ function sold() {
'task|10|Experiencing an enigmatic and foreboding night vision',
"task|6|Much is revealed about that wise old bastard you'd underestimated",
'task|6|A shocking series of events leaves you alone and bewildered, but resolute',
'task|4|Drawing upon an unexpected reserve of determination, you set out on a long and dangerous journey',
'task|4|Drawing upon an unrealized reserve of determination, you set out on a long and dangerous journey',
'plot|2|Loading'
]
};
@@ -207,10 +207,7 @@ function sold() {
addToRoster(newguy);
// TODO: cheesy
var args = (window.location.href.indexOf("?sold") > 0) ? "?quit" : "";
window.location.href = "main.html" + args + "#" + newguy.Traits.Name;
window.location.href = "main.html#" + newguy.Traits.Name;
}
function cancel() {
+1 -2
View File
@@ -16,8 +16,7 @@ manifest = [
"close*.png",
"*.css"]
includes = sum(map(list, zip(["--include"] * len(manifest), manifest)), [])
server = "play.progressquest.com"
destination = "grumdrig.com:www/" + server + "/"
destination = "progressquest.com:www/progressquest.com/insitu/"
print manifest
output = subprocess.call(
+4 -6
View File
@@ -70,7 +70,9 @@ a.x, a.sheet {
<body>
<a href="/">
<img src="pq.gif" alt="Progress Quest">
</a>
<h1>Character Roster</h1>
@@ -88,17 +90,13 @@ a.x, a.sheet {
</table>
<div>
Testing:
<button id=test>Test</button>
<button id=clear>Clear</button>
</div>
<br>
<br>
<div align="center" id="nabar">
<a href="/">Home</a> &middot;
<a href="/info.php">Info</a> &middot;
<a href="/faq.php">FAQ</a> &middot;
<a href="/insitu/">Play</a> &middot;
<a href="/dl.php">Download</a> &middot;
<a href="/realms.php">Realms</a> &middot;
<a href="/acct.php">Accounts</a> &middot;
+1 -1
View File
@@ -141,7 +141,7 @@ for (var i = 0; i < 100000000; ++i) {
SaveGame();
charsheet(game);
l = game.Traits.Level;
if (l >= 5) break;
//if (l >= 5) break;
}
//assert(timers.length == 2);// TODO: this is for simplicity
now += timers[1].interval;