mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 00:34:00 -06:00
Even more charsheet goodness and birthdays and dates
This commit is contained in:
@@ -174,10 +174,10 @@ Cheats:
|
|||||||
|
|
||||||
|
|
||||||
<script type="text/charsheet" id="sheet">
|
<script type="text/charsheet" id="sheet">
|
||||||
$Traits.Name [$hostname]
|
$Traits.Name the $Traits.Race [$hostname]
|
||||||
|
$motto
|
||||||
|
|
||||||
$Traits.Race $Traits.Class
|
Level $Traits.Level $Traits.Class (exp. $ExpBar.position/$ExpBar.max)
|
||||||
Level $Traits.level (exp. $ExpBar.position/$ExpBar.max)
|
|
||||||
|
|
||||||
Plot stage: $Plots.last ($PlotBar.Hint)
|
Plot stage: $Plots.last ($PlotBar.Hint)
|
||||||
Quest: $Quests.last ($QuestBar.Hint)
|
Quest: $Quests.last ($QuestBar.Hint)
|
||||||
@@ -192,13 +192,10 @@ Stats:
|
|||||||
|
|
||||||
Equipment:
|
Equipment:
|
||||||
$Equips.___
|
$Equips.___
|
||||||
|
|
||||||
Spell Book:
|
Spell Book:
|
||||||
$Spells.___
|
$Spells.___
|
||||||
|
|
||||||
Inventory ($EncumBar.Hint):
|
Inventory ($EncumBar.Hint):
|
||||||
$Inventory.___
|
$Inventory.___
|
||||||
|
|
||||||
-- $date
|
-- $date
|
||||||
-- Progress Quest 6.3.web - http://progressquest.com/
|
-- Progress Quest 6.3.web - http://progressquest.com/
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1135,6 +1135,8 @@ function SaveGame() {
|
|||||||
Log('Saving game: ' + GameSaveName());
|
Log('Saving game: ' + GameSaveName());
|
||||||
$.each(AllBars.concat(AllLists), function (i, e) { e.save(game); });
|
$.each(AllBars.concat(AllLists), function (i, e) { e.save(game); });
|
||||||
HotOrNot();
|
HotOrNot();
|
||||||
|
game.date = ''+new Date();
|
||||||
|
game.stamp = +new Date();
|
||||||
return addToRoster(game);
|
return addToRoster(game);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1173,6 +1175,7 @@ function InputBox(message, def) {
|
|||||||
|
|
||||||
function FormKeyDown(e) {
|
function FormKeyDown(e) {
|
||||||
if (e.which == 1) { // ^A
|
if (e.which == 1) { // ^A
|
||||||
|
SaveGame();
|
||||||
alert(CharSheet());
|
alert(CharSheet());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -142,7 +142,9 @@ function sold() {
|
|||||||
name: $("#Name").val(),
|
name: $("#Name").val(),
|
||||||
race: $("input:radio[name=Race]:checked").val(),
|
race: $("input:radio[name=Race]:checked").val(),
|
||||||
'class': $("input:radio[name=Class]:checked").val(),
|
'class': $("input:radio[name=Class]:checked").val(),
|
||||||
seed: stats.seed
|
seed: stats.seed,
|
||||||
|
birthday: ''+new Date(),
|
||||||
|
birthstamp: +new Date();
|
||||||
};
|
};
|
||||||
$.each('STR,CON,DEX,INT,WIS,CHA'.split(','), function (index,value) {
|
$.each('STR,CON,DEX,INT,WIS,CHA'.split(','), function (index,value) {
|
||||||
newguy[value] = stats[value];
|
newguy[value] = stats[value];
|
||||||
|
|||||||
Reference in New Issue
Block a user