forked from GitHub-Mirrors/foundry-sw5e
skills v2
This commit is contained in:
parent
f4af3aad45
commit
52fd477d39
1 changed files with 9 additions and 8 deletions
|
@ -49,6 +49,15 @@ export default class CharacterImporter {
|
|||
},
|
||||
};
|
||||
|
||||
/* ----------------------------------------------------------------- */
|
||||
/* character.data.skills.<skill_name>.value is all that matters
|
||||
/* values can be 0, 0.5, 1 or 2
|
||||
/* 0 = regular
|
||||
/* 0.5 = half-proficient
|
||||
/* 1 = proficient
|
||||
/* 2 = expertise
|
||||
/* foundry takes care of calculating the rest
|
||||
/* ----------------------------------------------------------------- */
|
||||
const skills = {
|
||||
acr: {
|
||||
value: sourceCharacter.attribs.find(e => e.name == 'acrobatics_type').current
|
||||
|
@ -135,14 +144,6 @@ export default class CharacterImporter {
|
|||
await actor.createEmbeddedEntity("OwnedItem", assignedClass.data, { displaySheet: false });
|
||||
}
|
||||
|
||||
static async addSkils(){
|
||||
// data.skills.skill.value is all that matters
|
||||
// value = 0 = regular
|
||||
// value = 0.5 = half-proficient
|
||||
// value = 1 = proficient
|
||||
// value = 2 = expertise
|
||||
}
|
||||
|
||||
static addImportButton(html){
|
||||
const header = $("#actors").find("header.directory-header");
|
||||
const search = $("#actors").children().find("div.header-search");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue