forked from GitHub-Mirrors/foundry-sw5e
Add skill proficiencies
This commit is contained in:
parent
e942a9b803
commit
e25140b529
1 changed files with 22 additions and 0 deletions
|
@ -44,12 +44,34 @@ export default class CharacterImporter {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const skills = {
|
||||||
|
acr: { value: sourceCharacter.attribs.find((e) => e.name == "acrobatics_type").current },
|
||||||
|
ani: { value: sourceCharacter.attribs.find((e) => e.name == "animal_handling_type").current },
|
||||||
|
ath: { value: sourceCharacter.attribs.find((e) => e.name == "athletics_type").current },
|
||||||
|
dec: { value: sourceCharacter.attribs.find((e) => e.name == "deception_type").current },
|
||||||
|
ins: { value: sourceCharacter.attribs.find((e) => e.name == "insight_type").current },
|
||||||
|
inv: { value: sourceCharacter.attribs.find((e) => e.name == "investigation_type").current },
|
||||||
|
itm: { value: sourceCharacter.attribs.find((e) => e.name == "intimidation_type").current },
|
||||||
|
lor: { value: sourceCharacter.attribs.find((e) => e.name == "lore_type").current },
|
||||||
|
med: { value: sourceCharacter.attribs.find((e) => e.name == "medicine_type").current },
|
||||||
|
nat: { value: sourceCharacter.attribs.find((e) => e.name == "nature_type").current },
|
||||||
|
per: { value: sourceCharacter.attribs.find((e) => e.name == "persuasion_type").current },
|
||||||
|
pil: { value: sourceCharacter.attribs.find((e) => e.name == "piloting_type").current },
|
||||||
|
prc: { value: sourceCharacter.attribs.find((e) => e.name == "perception_type").current },
|
||||||
|
prf: { value: sourceCharacter.attribs.find((e) => e.name == "performance_type").current },
|
||||||
|
slt: { value: sourceCharacter.attribs.find((e) => e.name == "sleight_of_hand_type").current },
|
||||||
|
ste: { value: sourceCharacter.attribs.find((e) => e.name == "stealth_type").current },
|
||||||
|
sur: { value: sourceCharacter.attribs.find((e) => e.name == "survival_type").current },
|
||||||
|
tec: { value: sourceCharacter.attribs.find((e) => e.name == "technology_type").current }
|
||||||
|
};
|
||||||
|
|
||||||
const targetCharacter = {
|
const targetCharacter = {
|
||||||
name: sourceCharacter.name,
|
name: sourceCharacter.name,
|
||||||
type: "character",
|
type: "character",
|
||||||
data: {
|
data: {
|
||||||
abilities: abilities,
|
abilities: abilities,
|
||||||
details: details,
|
details: details,
|
||||||
|
skills: skills,
|
||||||
attributes: {
|
attributes: {
|
||||||
hp: hp
|
hp: hp
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue