Added all Core Rules and thoroughly tested.

This commit is contained in:
Yord 2015-09-22 20:48:17 +02:00
parent 36dd6fe9e7
commit 8e1bd9b0dc
3 changed files with 2695 additions and 917 deletions

View file

@ -8,6 +8,22 @@ var ikrpg = ikrpg || {};
ikrpg.cards = ikrpg.cards || {};
ikrpg.cards.cleanData = function() {
function clean(object) {
$.each(object, function(key, value) {
if($.type(value) === "object") {
clean(value);
} else {
object[key] = "";
}
});
}
clean(ikrpg.cards.data);
};
ikrpg.cards.data = {
"portrait": { "url": "", "top": 0, "left": 0, "width": 0 },
"hero-name": "Hero's name",