Skip to content

Commit

Permalink
Add missing stat perks to ParticipantStats (BenFradet#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Ouborny authored and BenFradet committed May 16, 2019
1 parent 4712f8d commit 9b3006c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RiotSharp.Test/RiotApiTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ public void GetMatchAsync_Perks_Test()
Assert.IsTrue(participant.Stats.Perk3 != 0);
Assert.IsTrue(participant.Stats.Perk4 != 0);
Assert.IsTrue(participant.Stats.Perk5 != 0);
Assert.IsTrue(participant.Stats.StatPerk0 != 0);
Assert.IsTrue(participant.Stats.StatPerk1 != 0);
Assert.IsTrue(participant.Stats.StatPerk2 != 0);
}
});
}
Expand Down
18 changes: 18 additions & 0 deletions RiotSharp/Endpoints/MatchEndpoint/ParticipantStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,24 @@ internal ParticipantStats() { }
/// </summary>
[JsonProperty("perk5Var3")]
public int Perk5Var3 { get; set; }

/// <summary>
/// Rune stat
/// </summary>
[JsonProperty("statPerk0")]
public int StatPerk0 { get; set; }

/// <summary>
/// Rune stat
/// </summary>
[JsonProperty("statPerk1")]
public int StatPerk1 { get; set; }

/// <summary>
/// Rune stat
/// </summary>
[JsonProperty("statPerk2")]
public int StatPerk2 { get; set; }
#endregion
}
}

0 comments on commit 9b3006c

Please sign in to comment.