Skip to content

Commit 6e87f8e

Browse files
committed
Added missing item classes and updated tests.
1 parent 56a5769 commit 6e87f8e

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

src/Sidekick.Apis.Poe/Items/ItemClass.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,10 @@ public enum ItemClass
199199

200200
[EnumValue("idol")]
201201
Idol,
202+
203+
[EnumValue("graft")]
204+
Graft,
205+
206+
[EnumValue("wombgift")]
207+
Wombgift,
202208
}

tests/Sidekick.Apis.Poe.Tests/Poe1/Parser/BreachParsing.cs

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,47 @@ Can grow into a Currency item on the Genesis Tree
4343
Place this item into an allocated currency item womb on the Genesis Tree. Right click to retrieve from the Genesis Tree.
4444
");
4545

46-
Assert.Equal(ItemClass.Unknown, actual.Properties.ItemClass);
46+
Assert.Equal(ItemClass.Wombgift, actual.Properties.ItemClass);
4747
Assert.Equal(Rarity.Currency, actual.Properties.Rarity);
4848
Assert.Equal(Category.Wombgift, actual.ApiInformation.Category);
4949
Assert.Equal("Lavish Wombgift", actual.ApiInformation.Type);
5050
Assert.Equal(34, actual.Properties.ItemLevel);
5151
}
5252

53+
[Fact]
54+
public void Graft()
55+
{
56+
var actual = parser.ParseItem(@"Item Class: Grafts
57+
Rarity: Rare
58+
Quiet Coma
59+
Freezing Tulgraft
60+
--------
61+
Graftblood: 416/865
62+
--------
63+
Requirements:
64+
Level: 29
65+
--------
66+
Item Level: 37
67+
--------
68+
10% chance to Freeze (implicit)
69+
Uses level 11 Falling Crystals (implicit)
70+
--------
71+
+12% to Global Critical Strike Multiplier
72+
10% increased Graftblood gained
73+
Skills used by this Graft have 17% increased Cooldown Recovery Rate
74+
Skills used by this Graft deal 56% increased Damage
75+
--------
76+
Graft items can only be modified by Implant currencies.
77+
");
78+
79+
Assert.Equal(ItemClass.Graft, actual.Properties.ItemClass);
80+
Assert.Equal(Rarity.Rare, actual.Properties.Rarity);
81+
Assert.Equal(Category.Graft, actual.ApiInformation.Category);
82+
Assert.Equal("Freezing Tulgraft", actual.ApiInformation.Type);
83+
Assert.Equal(37, actual.Properties.ItemLevel);
84+
Assert.Equal(29, actual.Properties.RequiresLevel);
85+
}
86+
5387
[Fact]
5488
public void Foulborn()
5589
{

0 commit comments

Comments
 (0)