mirror of
https://github.com/ikrpg/ikrpg.github.io.git
synced 2026-05-13 14:27:22 +00:00
Added all Core Rules and thoroughly tested.
This commit is contained in:
parent
36dd6fe9e7
commit
8e1bd9b0dc
3 changed files with 2695 additions and 917 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue