Skip to content

Commit 1f945d4

Browse files
justjuanguijustjuangui
andauthored
isFreeAllocate support was added, Masterwork was fixed (#919)
Co-authored-by: justjuangui <servicios@juacarvajal.com>
1 parent bfbe232 commit 1f945d4

File tree

4 files changed

+17
-32
lines changed

4 files changed

+17
-32
lines changed

src/Classes/PassiveSpec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ end
759759
function PassiveSpecClass:CountAllocNodes()
760760
local used, ascUsed, secondaryAscUsed, sockets, weaponSet1Used, weaponSet2Used = 0, 0, 0, 0, 0, 0
761761
for _, node in pairs(self.allocNodes) do
762-
if node.type ~= "ClassStart" and node.type ~= "AscendClassStart" then
762+
if node.type ~= "ClassStart" and node.type ~= "AscendClassStart" and node.isFreeAllocate == nil then
763763
if node.ascendancyName then
764764
if not node.isMultipleChoiceOption then
765765
if self.tree.secondaryAscendNameMap and self.tree.secondaryAscendNameMap[node.ascendancyName] then

src/Export/Scripts/passivetree.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -920,15 +920,12 @@ for i, group in ipairs(psg.groups) do
920920

921921
-- Support for Smith of Kitava
922922
if passiveRow["FreeAllocate"] == true then
923-
node["isMultipleChoice"] = true
923+
node["isFreeAllocate"] = true
924924
end
925925

926926
if passiveRow["ApplyToArmour?"] == true then
927-
node["isFreeAllocate"] = true
928-
node["isMultipleChoiceOption"] = true
927+
node["applyToArmour"] = true
929928
end
930-
931-
932929
end
933930

934931
for k, connection in ipairs(passive.connections) do

src/TreeData/0_2/tree.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/TreeData/0_2/tree.lua

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16339,13 +16339,12 @@ return {
1633916339
}
1634016340
},
1634116341
[110]={
16342+
applyToArmour=true,
1634216343
ascendancyName="Smith of Kitava",
1634316344
connections={
1634416345
},
1634516346
group=11,
1634616347
icon="Art/2DArt/SkillIcons/passives/SmithofKitava/SmithOfKitavaNormalArmourBonus10.dds",
16347-
isFreeAllocate=true,
16348-
isMultipleChoiceOption=true,
1634916348
isNotable=true,
1635016349
name="Internal Layer",
1635116350
orbit=0,
@@ -25174,13 +25173,12 @@ return {
2517425173
}
2517525174
},
2517625175
[8525]={
25176+
applyToArmour=true,
2517725177
ascendancyName="Smith of Kitava",
2517825178
connections={
2517925179
},
2518025180
group=15,
2518125181
icon="Art/2DArt/SkillIcons/passives/SmithofKitava/SmithOfKitavaNormalArmourBonus7.dds",
25182-
isFreeAllocate=true,
25183-
isMultipleChoiceOption=true,
2518425182
isNotable=true,
2518525183
name="Leather Bindings",
2518625184
orbit=0,
@@ -27142,7 +27140,7 @@ return {
2714227140
},
2714327141
group=32,
2714427142
icon="Art/2DArt/SkillIcons/passives/SmithofKitava/SmithOfKitavaCanOnlyWearNormalRarityBodyArmour.dds",
27145-
isMultipleChoice=true,
27143+
isFreeAllocate=true,
2714627144
isNotable=true,
2714727145
name="Smith's Masterwork",
2714827146
orbit=0,
@@ -27191,13 +27189,12 @@ return {
2719127189
}
2719227190
},
2719327191
[9997]={
27192+
applyToArmour=true,
2719427193
ascendancyName="Smith of Kitava",
2719527194
connections={
2719627195
},
2719727196
group=20,
2719827197
icon="Art/2DArt/SkillIcons/passives/SmithofKitava/SmithOfKitavaNormalArmourBonus9.dds",
27199-
isFreeAllocate=true,
27200-
isMultipleChoiceOption=true,
2720127198
isNotable=true,
2720227199
name="Molten Symbol",
2720327200
orbit=0,
@@ -31612,13 +31609,12 @@ return {
3161231609
}
3161331610
},
3161431611
[13772]={
31612+
applyToArmour=true,
3161531613
ascendancyName="Smith of Kitava",
3161631614
connections={
3161731615
},
3161831616
group=24,
3161931617
icon="Art/2DArt/SkillIcons/passives/SmithofKitava/SmithOfKitavaNormalArmourBonus8.dds",
31620-
isFreeAllocate=true,
31621-
isMultipleChoiceOption=true,
3162231618
isNotable=true,
3162331619
name="Flowing Metal",
3162431620
orbit=0,
@@ -34208,13 +34204,12 @@ return {
3420834204
}
3420934205
},
3421034206
[16276]={
34207+
applyToArmour=true,
3421134208
ascendancyName="Smith of Kitava",
3421234209
connections={
3421334210
},
3421434211
group=41,
3421534212
icon="Art/2DArt/SkillIcons/passives/SmithofKitava/SmithOfKitavaNormalArmourBonus2.dds",
34216-
isFreeAllocate=true,
34217-
isMultipleChoiceOption=true,
3421834213
isNotable=true,
3421934214
name="Padded Plates",
3422034215
orbit=0,
@@ -38708,13 +38703,12 @@ return {
3870838703
}
3870938704
},
3871038705
[20195]={
38706+
applyToArmour=true,
3871138707
ascendancyName="Smith of Kitava",
3871238708
connections={
3871338709
},
3871438710
group=40,
3871538711
icon="Art/2DArt/SkillIcons/passives/SmithofKitava/SmithOfKitavaNormalArmourBonus3.dds",
38716-
isFreeAllocate=true,
38717-
isMultipleChoiceOption=true,
3871838712
isNotable=true,
3871938713
name="Lead Lining",
3872038714
orbit=0,
@@ -41415,13 +41409,12 @@ return {
4141541409
}
4141641410
},
4141741411
[22908]={
41412+
applyToArmour=true,
4141841413
ascendancyName="Smith of Kitava",
4141941414
connections={
4142041415
},
4142141416
group=12,
4142241417
icon="Art/2DArt/SkillIcons/passives/SmithofKitava/SmithOfKitavaNormalArmourBonus6.dds",
41423-
isFreeAllocate=true,
41424-
isMultipleChoiceOption=true,
4142541418
isNotable=true,
4142641419
name="Heavy Bracing",
4142741420
orbit=0,
@@ -44233,13 +44226,12 @@ return {
4423344226
}
4423444227
},
4423544228
[25438]={
44229+
applyToArmour=true,
4423644230
ascendancyName="Smith of Kitava",
4423744231
connections={
4423844232
},
4423944233
group=33,
4424044234
icon="Art/2DArt/SkillIcons/passives/SmithofKitava/SmithOfKitavaNormalArmourBonus12.dds",
44241-
isFreeAllocate=true,
44242-
isMultipleChoiceOption=true,
4424344235
isNotable=true,
4424444236
name="Heatproofing",
4424544237
orbit=0,
@@ -71976,13 +71968,12 @@ return {
7197671968
}
7197771969
},
7197871970
[49340]={
71971+
applyToArmour=true,
7197971972
ascendancyName="Smith of Kitava",
7198071973
connections={
7198171974
},
7198271975
group=34,
7198371976
icon="Art/2DArt/SkillIcons/passives/SmithofKitava/SmithOfKitavaNormalArmourBonus4.dds",
71984-
isFreeAllocate=true,
71985-
isMultipleChoiceOption=true,
7198671977
isNotable=true,
7198771978
name="Support Straps",
7198871979
orbit=0,
@@ -85358,13 +85349,12 @@ return {
8535885349
}
8535985350
},
8536085351
[60913]={
85352+
applyToArmour=true,
8536185353
ascendancyName="Smith of Kitava",
8536285354
connections={
8536385355
},
8536485356
group=36,
8536585357
icon="Art/2DArt/SkillIcons/passives/SmithofKitava/SmithOfKitavaNormalArmourBonus5.dds",
85366-
isFreeAllocate=true,
85367-
isMultipleChoiceOption=true,
8536885358
isNotable=true,
8536985359
name="Kitavan Engraving",
8537085360
orbit=0,
@@ -85441,13 +85431,12 @@ return {
8544185431
}
8544285432
},
8544385433
[61039]={
85434+
applyToArmour=true,
8544485435
ascendancyName="Smith of Kitava",
8544585436
connections={
8544685437
},
8544785438
group=39,
8544885439
icon="Art/2DArt/SkillIcons/passives/SmithofKitava/SmithOfKitavaNormalArmourBonus1.dds",
85449-
isFreeAllocate=true,
85450-
isMultipleChoiceOption=true,
8545185440
isNotable=true,
8545285441
name="Tantalum Alloy",
8545385442
orbit=0,
@@ -89866,13 +89855,12 @@ return {
8986689855
}
8986789856
},
8986889857
[64962]={
89858+
applyToArmour=true,
8986989859
ascendancyName="Smith of Kitava",
8987089860
connections={
8987189861
},
8987289862
group=10,
8987389863
icon="Art/2DArt/SkillIcons/passives/SmithofKitava/SmithOfKitavaNormalArmourBonus11.dds",
89874-
isFreeAllocate=true,
89875-
isMultipleChoiceOption=true,
8987689864
isNotable=true,
8987789865
name="Dedication to Kitava",
8987889866
orbit=0,

0 commit comments

Comments
 (0)