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>
|
||||
|
||||
<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> ·
|
||||
<a href="/info.php">Info</a> ·
|
||||
<a href="/faq.php">FAQ</a> ·
|
||||
<a href="/insitu/">Play</a> ·
|
||||
<a href="/dl.php">Download</a> ·
|
||||
<a href="/realms.php">Realms</a> ·
|
||||
<a href="/acct.php">Accounts</a> ·
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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
@@ -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
@@ -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> ·
|
||||
<a href="/info.php">Info</a> ·
|
||||
<a href="/faq.php">FAQ</a> ·
|
||||
<a href="/insitu/">Play</a> ·
|
||||
<a href="/dl.php">Download</a> ·
|
||||
<a href="/realms.php">Realms</a> ·
|
||||
<a href="/acct.php">Accounts</a> ·
|
||||
|
||||
Reference in New Issue
Block a user