diff --git a/main.html b/main.html index 7f3823d..f7849fa 100644 --- a/main.html +++ b/main.html @@ -174,10 +174,10 @@ Cheats: diff --git a/main.js b/main.js index 13f4a9a..fff3729 100644 --- a/main.js +++ b/main.js @@ -1135,6 +1135,8 @@ function SaveGame() { Log('Saving game: ' + GameSaveName()); $.each(AllBars.concat(AllLists), function (i, e) { e.save(game); }); HotOrNot(); + game.date = ''+new Date(); + game.stamp = +new Date(); return addToRoster(game); } @@ -1173,6 +1175,7 @@ function InputBox(message, def) { function FormKeyDown(e) { if (e.which == 1) { // ^A + SaveGame(); alert(CharSheet()); } diff --git a/newguy.js b/newguy.js index 395c621..2506408 100644 --- a/newguy.js +++ b/newguy.js @@ -142,7 +142,9 @@ function sold() { name: $("#Name").val(), race: $("input:radio[name=Race]: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) { newguy[value] = stats[value];