Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When getting the definedTrophies for trophyGroup, it will get the definedTrophies for the entire game #230

Open
MnKashpour opened this issue Dec 7, 2022 · 2 comments
Labels

Comments

@MnKashpour
Copy link

When I try to access the defined trophies in each trophy group of a title, I get the same result for all groups, here is a code snippet for the title "Horizon Forbidden West" with the outcome

$groups =  $this->getClient()->trophies('NPWR21008_00', 'trophy2')->trophyGroups();

foreach ($groups as $key => $value) {
   echo $value->id() .' : ' . PHP_EOL;
   echo json_encode($value->definedTrophies()) . PHP_EOL;
}

The outcome:

default : 
{"bronze":53,"silver":7,"gold":1,"platinum":1}
001 :
{"bronze":53,"silver":7,"gold":1,"platinum":1}

The default game only has bronze:50 silver:7 gold:1 platinum:1
and the DLC '001' only has bronze:3 silver:0 gold:0 platinum:0

so the result should be:

default : 
{"bronze":50,"silver":7,"gold":1,"platinum":1}
001 :
{"bronze":3,"silver":0,"gold":0,"platinum":0}
Tustin added a commit that referenced this issue Dec 16, 2022
@owendswang
Copy link

This problem still remains.

@stale
Copy link

stale bot commented Apr 3, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants