diff --git a/src/TestPanel.js b/src/TestPanel.js index 93d6f0a..a512534 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -173,16 +173,20 @@ function GetSpecialWeaponName(item) { return item[WEAPON_EXISTENCE_DATA]!==undefined?(item[WEAPON_EXISTENCE_DATA].special_name?.length>0)?item[WEAPON_EXISTENCE_DATA].special_name:(item[WEAPON_WEAPON].name+" "+item[WEAPON_WEAPONTYPE].name):"" } -function SkillTreeBoxes(p) { +function ConvertCoordinate(x,y) { + return (String.fromCharCode(Number(x)+'a'.charCodeAt(0)))+(y+1); +} - function ConvertCoordinate(x,y) { - return (x+'a')+(y+1); - } +function SkillBox(p) { + return
0/10{typeof p.GetData("class_skill",p.skill[2],"name",true)==="string"&&p.GetData("class_skill",p.skill[2],"name",true)}
+} + +function SkillTreeBoxes(p) { return <> {p.skillTreeSkillData&&p.skillTreeSkillData.map((skill)=>{ var splitter = skill.split(",") - return
0/10Bad Condition Ward
+ return splitter[0]!==""&&splitter[1]!==""&&splitter[2]!==""&&Number(numb))}/> })} {/*
1/5Blight Rounds
 1/1Blight Rounds Reinforce
@@ -590,7 +594,7 @@ AUGMENT skillLines={skillTreeData} halflineheight={halflineheight} />}
- +
: <>} diff --git a/src/skilltree/skillTreeEditor.js b/src/skilltree/skillTreeEditor.js index 84f08b4..2cabfcb 100644 --- a/src/skilltree/skillTreeEditor.js +++ b/src/skilltree/skillTreeEditor.js @@ -131,7 +131,18 @@ function SkillTreeEditor(p) { controls.push({ var string = [...skillLines] var stringLine = string[y].split('') + var newSkillData = [...skillData] stringLine[x] = char + if (char!=="□") { + for (var s in newSkillData) { + var split = newSkillData[s].split(',') + if (Number(split[0])===Number(x)&&Number(split[1])===Number(y)) { + newSkillData[s]="" + setSkillData(newSkillData) + break; + } + } + } string[y] = stringLine.join('') setSkillLines(string) }