forked from GitHub-Mirrors/foundry-sw5e
skills still broken
This commit is contained in:
parent
9742983db0
commit
cc96d58fa7
2 changed files with 24 additions and 17 deletions
15
.vscode/launch.json
vendored
15
.vscode/launch.json
vendored
|
@ -1,15 +0,0 @@
|
||||||
{
|
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"type": "chrome",
|
|
||||||
"request": "launch",
|
|
||||||
"name": "Launch Chrome against localhost",
|
|
||||||
"url": "http://localhost:8080",
|
|
||||||
"webRoot": "${workspaceFolder}"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -24,6 +24,28 @@ export default class CharacterImporter {
|
||||||
const wisdomSaveProf = sourceCharacter.attribs.find(o => o.name == 'wisdom_save_prof').current ? 1 : 0;
|
const wisdomSaveProf = sourceCharacter.attribs.find(o => o.name == 'wisdom_save_prof').current ? 1 : 0;
|
||||||
const charismaSaveProf = sourceCharacter.attribs.find(o => o.name == 'charisma_save_prof').current ? 1 : 0;
|
const charismaSaveProf = sourceCharacter.attribs.find(o => o.name == 'charisma_save_prof').current ? 1 : 0;
|
||||||
|
|
||||||
|
// v2 - skills and proficiencies
|
||||||
|
const acrobaticsSkill = sourceCharacter.attribs.find(o => o.name == 'acrobatics_bonus').current;
|
||||||
|
const animalHandlingSkill = sourceCharacter.attribs.find(o => o.name == 'animal_handling_bonus').current;
|
||||||
|
const athleticsSkill = sourceCharacter.attribs.find(o => o.name == 'athletics_bonus').current;
|
||||||
|
const deceptionSkill = sourceCharacter.attribs.find(o => o.name == 'deception_bonus').current;
|
||||||
|
const insightSkill = sourceCharacter.attribs.find(o => o.name == 'insight_bonus').current;
|
||||||
|
const intimidationSkill = sourceCharacter.attribs.find(o => o.name == 'intimidation_bonus').current;
|
||||||
|
const investigationSkill = sourceCharacter.attribs.find(o => o.name == 'investigation_bonus').current;
|
||||||
|
const loreSkill = sourceCharacter.attribs.find(o => o.name == 'lore_bonus').current;
|
||||||
|
const medicineSkill = sourceCharacter.attribs.find(o => o.name == 'medicine_bonus').current;
|
||||||
|
const natureSkill = sourceCharacter.attribs.find(o => o.name == 'nature_bonus').current;
|
||||||
|
const pilotingSkill = sourceCharacter.attribs.find(o => o.name == 'piloting_bonus').current;
|
||||||
|
const perceptionSkill = sourceCharacter.attribs.find(o => o.name == 'perception_bonus').current;
|
||||||
|
const performanceSkill = sourceCharacter.attribs.find(o => o.name == 'performance_bonus').current;
|
||||||
|
const persuasionSkill = sourceCharacter.attribs.find(o => o.name == 'persuasion_bonus').current;
|
||||||
|
const sleightOfHandSkill = sourceCharacter.attribs.find(o => o.name == 'sleight_of_hand_bonus').current;
|
||||||
|
const stealthSkill = sourceCharacter.attribs.find(o => o.name == 'stealth_bonus').current;
|
||||||
|
const survivalSkill = sourceCharacter.attribs.find(o => o.name == 'survival_bonus').current;
|
||||||
|
const technologySkill = sourceCharacter.attribs.find(o => o.name == 'technology_bonus').current;
|
||||||
|
const baseClassName = sourceCharacter.attribs.find(o => o.name == 'class').current;
|
||||||
|
const baseClassLvl = sourceCharacter.attribs.find(o => o.name == 'base_level').current;
|
||||||
|
|
||||||
const targetCharacter = {
|
const targetCharacter = {
|
||||||
name: sourceCharacter.name,
|
name: sourceCharacter.name,
|
||||||
type: "character",
|
type: "character",
|
||||||
|
@ -64,7 +86,7 @@ export default class CharacterImporter {
|
||||||
max: hp,
|
max: hp,
|
||||||
temp: hpTemp
|
temp: hpTemp
|
||||||
}
|
}
|
||||||
}/*,
|
},
|
||||||
skills: {
|
skills: {
|
||||||
acr: {
|
acr: {
|
||||||
value: acrobaticsSkill,
|
value: acrobaticsSkill,
|
||||||
|
@ -138,7 +160,7 @@ export default class CharacterImporter {
|
||||||
value: technologySkill,
|
value: technologySkill,
|
||||||
ability: "int"
|
ability: "int"
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue