mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 08:44:00 -06:00
Restore the pq6.2 levelling schedule. Some half-baked online game support from 2018 that's now commented out.
This commit is contained in:
committed by
Eric Fredricksen
parent
40df70eac4
commit
60c28cd79b
@@ -304,7 +304,7 @@ Number.prototype.div = function (divisor) {
|
|||||||
function LevelUpTime(level) { // seconds
|
function LevelUpTime(level) { // seconds
|
||||||
// 20 minutes for for level 1
|
// 20 minutes for for level 1
|
||||||
// exponential increase after that
|
// exponential increase after that
|
||||||
return Math.round((20 + Math.pow(1.15, level) * 60);
|
return Math.round((20 + Math.pow(1.15, level)) * 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="http://progressquest.com/favicon.ico">
|
<link rel="shortcut icon" type="image/x-icon" href="http://progressquest.com/favicon.ico">
|
||||||
<link rel="stylesheet" href="progros.css" type="text/css">
|
<link rel="stylesheet" href="progros.css" type="text/css">
|
||||||
<link rel="stylesheet" href="main.css" type="text/css">
|
<link rel="stylesheet" href="main.css" type="text/css">
|
||||||
|
|||||||
@@ -1118,7 +1118,7 @@ function FormKeyDown(e) {
|
|||||||
alert("Your character's genome is " + ToDna(game.dna + ""));
|
alert("Your character's genome is " + ToDna(game.dna + ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (game.isonline) {
|
if (game.online) {
|
||||||
if (key === 'b') {
|
if (key === 'b') {
|
||||||
Brag('brag');
|
Brag('brag');
|
||||||
//Navigate(GetHostAddr() + 'name=' + UrlEncode(Get(Traits,'Name')));
|
//Navigate(GetHostAddr() + 'name=' + UrlEncode(Get(Traits,'Name')));
|
||||||
@@ -1176,7 +1176,7 @@ function LFSR(pt, salt) {
|
|||||||
|
|
||||||
function Brag(trigger) {
|
function Brag(trigger) {
|
||||||
SaveGame();
|
SaveGame();
|
||||||
if (game.isonline) {
|
if (game.online) {
|
||||||
game.bragtrigger = trigger;
|
game.bragtrigger = trigger;
|
||||||
$.post("webrag.php", game, function (data, textStatus, request) {
|
$.post("webrag.php", game, function (data, textStatus, request) {
|
||||||
if (data.alert)
|
if (data.alert)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="http://progressquest.com/favicon.ico">
|
<link rel="shortcut icon" type="image/x-icon" href="http://progressquest.com/favicon.ico">
|
||||||
<link rel="stylesheet" href="progros.css" type="text/css">
|
<link rel="stylesheet" href="progros.css" type="text/css">
|
||||||
<link rel="stylesheet" href="newguy.css" type="text/css">
|
<link rel="stylesheet" href="newguy.css" type="text/css">
|
||||||
@@ -33,6 +34,11 @@ input, button { display: inline; }
|
|||||||
Name
|
Name
|
||||||
<input id="Name" spellcheck="false">
|
<input id="Name" spellcheck="false">
|
||||||
<button id="RandomName">?</button>
|
<button id="RandomName">?</button>
|
||||||
|
<!--
|
||||||
|
<span style="float:right;padding-right:20px">
|
||||||
|
<input type="checkbox" checked id="multiplayer"/><label for="multiplayer">Play online</label>
|
||||||
|
</span>
|
||||||
|
-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class=hbox>
|
<div class=hbox>
|
||||||
@@ -77,6 +83,7 @@ input, button { display: inline; }
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class=hbox style="text-align:right;padding-top:15px">
|
<div class=hbox style="text-align:right;padding-top:15px">
|
||||||
<button id=Sold>Sold!</button>
|
<button id=Sold>Sold!</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -191,6 +191,15 @@ function sold() {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
if ($("#multiplayer:checked").length > 0) {
|
||||||
|
newguy.online = {
|
||||||
|
realm: "Alpaquil",
|
||||||
|
host: "http://progressquest.com/alpa.php",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if (document) {
|
if (document) {
|
||||||
newguy.Traits.Name = $("#Name").val();
|
newguy.Traits.Name = $("#Name").val();
|
||||||
newguy.Traits.Race = $("input:radio[name=Race]:checked").val();
|
newguy.Traits.Race = $("input:radio[name=Race]:checked").val();
|
||||||
|
|||||||
+9
-4
@@ -1,6 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="http://progressquest.com/favicon.ico">
|
<link rel="shortcut icon" type="image/x-icon" href="http://progressquest.com/favicon.ico">
|
||||||
<title>Progress Quest - Roster</title>
|
<title>Progress Quest - Roster</title>
|
||||||
<script src="json2.js"></script>
|
<script src="json2.js"></script>
|
||||||
@@ -31,6 +32,11 @@ div.bs {
|
|||||||
font-size: 7pt;
|
font-size: 7pt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.online {
|
||||||
|
background-color: #ddffdd;
|
||||||
|
border-color: #66eecc;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
@@ -40,7 +46,7 @@ p {
|
|||||||
margin-right: 10%;
|
margin-right: 10%;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
#newc {
|
#newc, #newm {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.brag a, .brag a:visited {
|
.brag a, .brag a:visited {
|
||||||
@@ -85,14 +91,13 @@ img {
|
|||||||
<table class="brag">
|
<table class="brag">
|
||||||
<tr>
|
<tr>
|
||||||
<td id="newc">
|
<td id="newc">
|
||||||
<b>New Character</b> <br>
|
<b>New Character</b><br>
|
||||||
<img src="dicebar.jpg"><br>
|
<img src="dicebar.jpg"><br>
|
||||||
<button id="roll">Roll One Up</button>
|
<button id="roll">Roll One Up</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<div align="center" id="nabar">
|
<div align="center" id="nabar">
|
||||||
|
|||||||
@@ -56,8 +56,14 @@ function loadGames(games) {
|
|||||||
|
|
||||||
function brag(sheet) {
|
function brag(sheet) {
|
||||||
var brag = $(template($("#badge").html(), sheet));
|
var brag = $(template($("#badge").html(), sheet));
|
||||||
if (sheet.motto)
|
if (sheet.motto) {
|
||||||
brag.find(".bs").text('"' + sheet.motto + '"');
|
brag.find(".bs").text('"' + sheet.motto + '"');
|
||||||
|
}
|
||||||
|
if (sheet.online) {
|
||||||
|
brag.addClass("online");
|
||||||
|
brag.find(".bs").text("Realm of " + sheet.online.realm);
|
||||||
|
brag.find(".icon.go").html("✿");
|
||||||
|
}
|
||||||
return brag;
|
return brag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user