diff --git a/main.js b/main.js
index 5b56381..7768e0e 100644
--- a/main.js
+++ b/main.js
@@ -525,12 +525,15 @@ function GoButtonClick() {
PlotBar.reset(26);
Plots.Add('Prologue');
+ Put(Inventory, "Gold", 0);
+ Put(Equips, "Hauberk", "-3 Burlap");
+
StartTimer();
SaveGame();
Brag('s');
- AddR(Spells, "Lasers", 3);
- alert("DEBUG " + GetI(Stats, 3));
+ //AddR(Spells, "Lasers", 3);
+ //alert("DEBUG " + GetI(Stats, 3));
}
@@ -566,7 +569,7 @@ function Abs(x) {
}
function WinEquip() {
- var posn = Random(Equips.box.find("tr").length);
+ var posn = Random(Equips.length());
game.bestequip = posn; // remember as the "best item"
if (posn == 0) {
stuff = K.Weapons;
@@ -575,12 +578,9 @@ function WinEquip() {
} else {
better = K.DefenseAttrib;
worse = K.DefenseBad;
- if (posn == 1)
- stuff = K.Shields
- else
- stuff = K.Armors;
+ stuff = (posn == 1) ? K.Shields: K.Armors;
}
- var name = LPick(stuff,GetI(Traits,'Level'));
+ var name = LPick(stuff, GetI(Traits,'Level'));
var qual = StrToInt(Split(name,1));
name = Split(name,0);
var plus = GetI(Traits,'Level') - qual;
@@ -762,7 +762,6 @@ function toArabic(s) {
}
function CompleteAct() {
- PlotBar.reposition(0);
Plots.last().wrap("
");
PlotBar.reset(60 * 60 * (1 + 5 * Plots.length())); // 1 hr + 5/act
PlotBar.Hint = 'Cutscene omitted';
@@ -1103,14 +1102,6 @@ $(function() {
LevelUp();
});
- cheat("$$$", function () {
- WinEquip();
- WinItem();
- WinSpell();
- WinStat();
- Add(Inventory,'Gold',Random(100));
- });
-
cheat("Quest", function () {
QuestBar.reposition(QuestBar.Max);
TaskBar.reposition(TaskBar.Max);
@@ -1130,6 +1121,30 @@ $(function() {
}
});
+ cheat("Equip", function () {
+ WinEquip();
+ });
+
+ cheat("Item", function () {
+ WinItem();
+ });
+
+ cheat("Spell", function () {
+ WinSpell();
+ });
+
+ cheat("Stat", function () {
+ WinStat();
+ });
+
+ cheat("$$$", function () {
+ Add(Inventory,'Gold',Random(100));
+ });
+
+ cheat("ad hoc", function () {
+ Put(Equips, "Vambraces", "Holy shittles");
+ });
+
});
/*$ENDIF*/
diff --git a/pq.css b/pq.css
index 14234e0..9fb9bfc 100644
--- a/pq.css
+++ b/pq.css
@@ -101,6 +101,7 @@ fieldset table td {
.head {
font-weight: bold;
font-size: 9pt;
+ margin: 2px 0 2px 0;
}
div.progress-container {
@@ -131,7 +132,7 @@ div.progress-container > div.bar {
.window {
background-color: #eee;
- width: 800px;
+ width: 820px;
border: outset 2px silver;
padding: 2px;
margin: 1em;
@@ -142,9 +143,10 @@ div.progress-container > div.bar {
}
div.scroll {
- overflow: auto;
+ overflow: scroll;
height: 100px;
width: 250px;
+ overflow-x: hidden;
}
div.scroll > table {
@@ -153,4 +155,5 @@ div.scroll > table {
.selected {
background-color: yellow;
-}
\ No newline at end of file
+}
+