Open ddossot opened 10 months ago
Support the rarityPercent property that was added to GKAchievementDescription in iOS 17.0.
rarityPercent
GKAchievementDescription
Doc: https://developer.apple.com/documentation/gamekit/gkachievementdescription/4273663-raritypercent
rarity_percents
achievement_descriptions
-1
nil
Tested with Godot 3.5.0 and iOS 17, fetching achievements that have and do not have rarities.
@Calinou Any interest in taking this one in?
This looks good to me, but CI is failing.
@Calinou @bruvzg Anything else preventing this PR to be merged?
Objective
Support the
rarityPercent
property that was added toGKAchievementDescription
in iOS 17.0.Doc: https://developer.apple.com/documentation/gamekit/gkachievementdescription/4273663-raritypercent
Changes
rarity_percents
to theachievement_descriptions
event dictionary and wire the value from the newly introduced property,-1
if the iOS version is below 17.0 or if the achievement doesn't have a rarity percent value (i.e.nil
is provided by GameKit).Testing
Tested with Godot 3.5.0 and iOS 17, fetching achievements that have and do not have rarities.