mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 00:34:00 -06:00
Go through proper channels with test button
This commit is contained in:
@@ -85,6 +85,9 @@ $(document).ready(function () {
|
||||
|
||||
seed = new Alea();
|
||||
RollEm();
|
||||
|
||||
if (window.location.href.indexOf("?sold") > 0)
|
||||
sold(); // TODO: cheesy
|
||||
});
|
||||
|
||||
|
||||
@@ -147,11 +150,15 @@ function sold() {
|
||||
birthday: ''+new Date(),
|
||||
birthstamp: +new Date()
|
||||
};
|
||||
$.each('STR,CON,DEX,INT,WIS,CHA'.split(','), function (index,value) {
|
||||
newguy[value] = stats[value];
|
||||
});
|
||||
$.each(K.Stats, function (index,value) {
|
||||
newguy[value] = stats[value];
|
||||
});
|
||||
addToRoster(newguy);
|
||||
window.location = "main.html#" + newguy.name;
|
||||
|
||||
// TODO: cheesy
|
||||
var args = (window.location.href.indexOf("?sold") > 0) ? "?quit" : "";
|
||||
|
||||
window.location = "main.html" + args + "#" + newguy.name;
|
||||
}
|
||||
|
||||
function cancel() {
|
||||
|
||||
Reference in New Issue
Block a user