Skip to content

Commit 06b3212

Browse files
author
Justin
committed
Added parsing for ability special talent bonus.
1 parent 7ce829c commit 06b3212

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

SourceSchemaParser/Dota2/DotaAbilitySpecialSchemaItem.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ internal class DotaAbilitySpecialSchemaItem
55
public string Name { get; set; }
66
public string Value { get; set; }
77
public string VarType { get; set; }
8+
public string LinkedSpecialBonus { get; set; }
89
}
910
}

SourceSchemaParser/JsonConverters/DotaAbilitySpecialSchemaItemJsonConverter.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist
3636
}
3737

3838
string currentVarType = String.Empty;
39+
string currentLinkedSpecialBonus = String.Empty;
3940

4041
// we need to go through all the actual values of the special properties
4142
var abilitySpecialIndividualProperties = abilitySpecialProperty.Value.Children<JProperty>();
@@ -49,6 +50,12 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist
4950
continue;
5051
}
5152

53+
if (abilitySpecialIndividualProperty.Name == "LinkedSpecialBonus")
54+
{
55+
currentLinkedSpecialBonus = abilitySpecialIndividualProperty.Value.ToString();
56+
continue;
57+
}
58+
5259
// construct the special attribute
5360
DotaAbilitySpecialSchemaItem abilitySpecial = new DotaAbilitySpecialSchemaItem()
5461
{

0 commit comments

Comments
 (0)