From b4ba1db698e678560b69510eb0604f2480c3368f Mon Sep 17 00:00:00 2001
From: Eric Fredricksen
Date: Wed, 7 Jul 2010 14:55:25 -0700
Subject: [PATCH] Storage bug, minor layout, cleanup
---
main.js | 20 ++++++--------------
roster.html | 17 +++++++----------
2 files changed, 13 insertions(+), 24 deletions(-)
diff --git a/main.js b/main.js
index 4448fdc..6e70ecc 100644
--- a/main.js
+++ b/main.js
@@ -9,15 +9,7 @@
// TODO: Get better ProgrOS screenshot with just PQ
// TODO: Charsheet in some more pleasing delivery method
// TODO: Take a snap of some dice. Probably 4. ::: ::: ::_ ___
-
-// revs:
-// 6: pq 6.3/web
-// 5: pq 6.3
-// 4: pq 6.2
-// 3: pq 6.1
-// 2: pq 6.0
-// 1: pq 6.0, some early release I guess;)n't remember
-var RevString = '&rev=6';
+// TODO: Use a cookie rather than a fragment to choose char?
var game = {};
var lasttick, timerid;
@@ -31,8 +23,6 @@ function StartTimer() {
lasttick = timeGetTime();
timerid = setInterval(Timer1Timer, 100);
}
- // BS location for this, but...
- // MainForm.Caption = 'ProgressQuest - ' + ChangeFileExt(ExtractFileName(MainForm.GameSaveName()), '');
}
function StopTimer() {
@@ -803,8 +793,10 @@ function CompleteAct() {
Plots.remove(0);
Plots.Add('Act ' + toRoman(game.act));
- WinItem();
- WinEquip();
+ if (game.act > 1) {
+ WinItem();
+ WinEquip();
+ }
Brag('act');
}
@@ -984,7 +976,7 @@ function LoadCharacter() {
return;
}
- if (true || !window.localStorage) {
+ if (!window.localStorage) {
// Cookies can't hold a whole game save
storage.removeItem("roster");
storage = null;
diff --git a/roster.html b/roster.html
index a658499..86a8f29 100644
--- a/roster.html
+++ b/roster.html
@@ -28,7 +28,8 @@ div.bs {
body {
text-align: center;
}
-#roster {
+
+p {
margin-left: 10%;
margin-right: 10%;
text-align: left;
@@ -56,11 +57,6 @@ a.x, a.sheet {
text-decoration: none;
}
-blockquote {
- margin: 0 10% 0 10%;
- padding: 1ex;
- font-size: 11pt;
-}
@@ -72,13 +68,13 @@ blockquote {
Character Roster
-
+
In the olden times you'd download Progress
Quest to your computer; now you may instead play Progress Quest
directly in your browser. Most modern browsers will save your game(s)
on this page, in this browser. Online leader boards and server-side
game saves are not implemented at this time.
-
+
@@ -90,10 +86,11 @@ game saves are not implemented at this time.
-