mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 08:44:00 -06:00
Moved cheats aside and finalize nav links. Moved to pq.com/insitu/.
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@@ -33,7 +33,9 @@ font-size: 30pt;
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<a href="/">
|
||||||
<img src="pq.gif" alt="Progress Quest">
|
<img src="pq.gif" alt="Progress Quest">
|
||||||
|
</a>
|
||||||
|
|
||||||
<h1>Progress Quest in Your Browser</h1>
|
<h1>Progress Quest in Your Browser</h1>
|
||||||
|
|
||||||
@@ -78,6 +80,7 @@ Fame yet. If anyone cares, that will come later.
|
|||||||
<a href="/">Home</a> ·
|
<a href="/">Home</a> ·
|
||||||
<a href="/info.php">Info</a> ·
|
<a href="/info.php">Info</a> ·
|
||||||
<a href="/faq.php">FAQ</a> ·
|
<a href="/faq.php">FAQ</a> ·
|
||||||
|
<a href="/insitu/">Play</a> ·
|
||||||
<a href="/dl.php">Download</a> ·
|
<a href="/dl.php">Download</a> ·
|
||||||
<a href="/realms.php">Realms</a> ·
|
<a href="/realms.php">Realms</a> ·
|
||||||
<a href="/acct.php">Accounts</a> ·
|
<a href="/acct.php">Accounts</a> ·
|
||||||
|
|||||||
@@ -993,87 +993,9 @@ function LoadCharacter() {
|
|||||||
|
|
||||||
if (document)
|
if (document)
|
||||||
$("#title").text("Progress Quest - " + GameSaveName());
|
$("#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() {
|
function HotOrNot() {
|
||||||
// Figure out which spell is best
|
// Figure out which spell is best
|
||||||
if (Spells.length()) {
|
if (Spells.length()) {
|
||||||
@@ -1150,10 +1072,6 @@ function FormKeyDown(e) {
|
|||||||
//Navigate(GetHostAddr() + 'name=' + UrlEncode(Get(Traits,'Name')));
|
//Navigate(GetHostAddr() + 'name=' + UrlEncode(Get(Traits,'Name')));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.which == 3) { // ^C
|
|
||||||
Cheats();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (e.which == 7) { // ^G
|
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);
|
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");
|
Brag("guild");
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ function sold() {
|
|||||||
'task|10|Experiencing an enigmatic and foreboding night vision',
|
'task|10|Experiencing an enigmatic and foreboding night vision',
|
||||||
"task|6|Much is revealed about that wise old bastard you'd underestimated",
|
"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|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'
|
'plot|2|Loading'
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@@ -207,10 +207,7 @@ function sold() {
|
|||||||
|
|
||||||
addToRoster(newguy);
|
addToRoster(newguy);
|
||||||
|
|
||||||
// TODO: cheesy
|
window.location.href = "main.html#" + newguy.Traits.Name;
|
||||||
var args = (window.location.href.indexOf("?sold") > 0) ? "?quit" : "";
|
|
||||||
|
|
||||||
window.location.href = "main.html" + args + "#" + newguy.Traits.Name;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function cancel() {
|
function cancel() {
|
||||||
|
|||||||
+1
-2
@@ -16,8 +16,7 @@ manifest = [
|
|||||||
"close*.png",
|
"close*.png",
|
||||||
"*.css"]
|
"*.css"]
|
||||||
includes = sum(map(list, zip(["--include"] * len(manifest), manifest)), [])
|
includes = sum(map(list, zip(["--include"] * len(manifest), manifest)), [])
|
||||||
server = "play.progressquest.com"
|
destination = "progressquest.com:www/progressquest.com/insitu/"
|
||||||
destination = "grumdrig.com:www/" + server + "/"
|
|
||||||
|
|
||||||
print manifest
|
print manifest
|
||||||
output = subprocess.call(
|
output = subprocess.call(
|
||||||
|
|||||||
+4
-6
@@ -70,7 +70,9 @@ a.x, a.sheet {
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<a href="/">
|
||||||
<img src="pq.gif" alt="Progress Quest">
|
<img src="pq.gif" alt="Progress Quest">
|
||||||
|
</a>
|
||||||
|
|
||||||
<h1>Character Roster</h1>
|
<h1>Character Roster</h1>
|
||||||
|
|
||||||
@@ -88,17 +90,13 @@ a.x, a.sheet {
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
<div>
|
<br>
|
||||||
Testing:
|
|
||||||
<button id=test>Test</button>
|
|
||||||
<button id=clear>Clear</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<div align="center" id="nabar">
|
<div align="center" id="nabar">
|
||||||
<a href="/">Home</a> ·
|
<a href="/">Home</a> ·
|
||||||
<a href="/info.php">Info</a> ·
|
<a href="/info.php">Info</a> ·
|
||||||
<a href="/faq.php">FAQ</a> ·
|
<a href="/faq.php">FAQ</a> ·
|
||||||
|
<a href="/insitu/">Play</a> ·
|
||||||
<a href="/dl.php">Download</a> ·
|
<a href="/dl.php">Download</a> ·
|
||||||
<a href="/realms.php">Realms</a> ·
|
<a href="/realms.php">Realms</a> ·
|
||||||
<a href="/acct.php">Accounts</a> ·
|
<a href="/acct.php">Accounts</a> ·
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ for (var i = 0; i < 100000000; ++i) {
|
|||||||
SaveGame();
|
SaveGame();
|
||||||
charsheet(game);
|
charsheet(game);
|
||||||
l = game.Traits.Level;
|
l = game.Traits.Level;
|
||||||
if (l >= 5) break;
|
//if (l >= 5) break;
|
||||||
}
|
}
|
||||||
//assert(timers.length == 2);// TODO: this is for simplicity
|
//assert(timers.length == 2);// TODO: this is for simplicity
|
||||||
now += timers[1].interval;
|
now += timers[1].interval;
|
||||||
|
|||||||
Reference in New Issue
Block a user