Compare commits
2 Commits
f8e5039833
...
a77ae03c4b
Author | SHA1 | Date |
---|---|---|
Adam Goldsmith | a77ae03c4b | |
Adam Goldsmith | 903253f5c8 |
|
@ -2,7 +2,7 @@
|
|||
# ArkhamDB Export Root File
|
||||
#
|
||||
|
||||
id = CATALOGUEID{0736ec6b-6307-4fe2-a8ed-c30d14a2c4c5:2022-11-5-17-6-0-599}
|
||||
id = CATALOGUEID{0736ec6b-6307-4fe2-a8ed-c30d14a2c4c5:2023-11-31-18-47-9-509}
|
||||
|
||||
catalog-name = ArkhamDB Exporter
|
||||
catalog-homepage = https://git.adamgoldsmith.name/adam/SE3-ArkhamDBExporter
|
||||
|
|
|
@ -335,6 +335,14 @@ function build_card(component, pack_code, cycle_prefix, copies) {
|
|||
|
||||
// TODO: parse out some keywords into their own fields
|
||||
|
||||
let overrides = {};
|
||||
try {
|
||||
const comments_json = JSON.parse(component.comment);
|
||||
if ("arkhamdb_override" in comments_json) {
|
||||
overrides = comments_json["arkhamdb_override"];
|
||||
}
|
||||
} catch (e) {}
|
||||
|
||||
println(String(component.getFrontTemplateKey()));
|
||||
switch (String(component.getFrontTemplateKey())) {
|
||||
case "AHLCG-Event-Default":
|
||||
|
@ -342,13 +350,15 @@ function build_card(component, pack_code, cycle_prefix, copies) {
|
|||
{ type_code: "event" },
|
||||
common_data(),
|
||||
player_card_common(),
|
||||
cost()
|
||||
cost(),
|
||||
overrides,
|
||||
));
|
||||
case "AHLCG-Skill-Default":
|
||||
return order_by_keys(Object.assign(
|
||||
{ type_code: "skill" },
|
||||
common_data(),
|
||||
player_card_common()
|
||||
player_card_common(),
|
||||
overrides,
|
||||
));
|
||||
case "AHLCG-Asset-Default":
|
||||
return order_by_keys(Object.assign(
|
||||
|
@ -359,7 +369,8 @@ function build_card(component, pack_code, cycle_prefix, copies) {
|
|||
subtitle(),
|
||||
is_unique(),
|
||||
health_and_sanity(),
|
||||
slots()
|
||||
slots(),
|
||||
overrides,
|
||||
));
|
||||
case "AHLCG-Investigator-Default":
|
||||
return order_by_keys(Object.assign(
|
||||
|
@ -369,13 +380,15 @@ function build_card(component, pack_code, cycle_prefix, copies) {
|
|||
subtitle(),
|
||||
health_and_sanity(),
|
||||
investigator(),
|
||||
overrides,
|
||||
));
|
||||
case "AHLCG-WeaknessEnemy-Default":
|
||||
return order_by_keys(Object.assign(
|
||||
{ type_code: "enemy", },
|
||||
common_data(),
|
||||
is_unique(),
|
||||
enemy()
|
||||
enemy(),
|
||||
overrides,
|
||||
));
|
||||
case "AHLCG-WeaknessTreachery-Default":
|
||||
return order_by_keys(Object.assign(
|
||||
|
@ -384,7 +397,8 @@ function build_card(component, pack_code, cycle_prefix, copies) {
|
|||
faction_code: "neutral",
|
||||
},
|
||||
common_data(),
|
||||
treachery_subtype()
|
||||
treachery_subtype(),
|
||||
overrides,
|
||||
));
|
||||
default:
|
||||
throw new UnsupportedComponentError();
|
||||
|
|
Loading…
Reference in New Issue