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

Don't show boss damage being applied if you aren't on a boss quest #1311

Open
saraolson opened this issue Jul 12, 2023 · 11 comments
Open

Don't show boss damage being applied if you aren't on a boss quest #1311

saraolson opened this issue Jul 12, 2023 · 11 comments

Comments

@saraolson
Copy link
Collaborator

if im on a collection quest and i complete a task, it shows damage being accumulated in the toast after i complete each task. it should only show this if im on a boss quest.

@tjb
Copy link
Contributor

tjb commented Apr 8, 2024

ill take a look!

@tjb
Copy link
Contributor

tjb commented Apr 8, 2024

@saraolson is there an easy way to test this and reproduce it multiple times? any easy collection quests i can test with?

@saraolson
Copy link
Collaborator Author

@tjb sorry, missed this notification! i usually use the 'attack of the mundane' quest and just cancel it before i finish to test. new accounts get it at level 15.

@tjb
Copy link
Contributor

tjb commented May 31, 2024

ok ty! i will test next week and see if I can reproduce!

@tjb
Copy link
Contributor

tjb commented Jun 14, 2024

@saraolson i just purchased the first part of the 'attach of the mundane' quest, i started it and aborted it and i did not see any message. can you attach a video of how you start the quest? perhaps i am doing things wrong

@saraolson
Copy link
Collaborator Author

saraolson commented Jun 14, 2024

@tjb the problematic toast is only seen when you check off a task. so if you're on a collection quest, check a task and you'll see the toast includes a number by a sword icon. that indicates boss damage, but boss damage isnt relevant when you're on a collection quest.

(the note about quitting the quest before completing it is just so you dont lose the scroll while testing)

@tjb
Copy link
Contributor

tjb commented Jun 14, 2024

Ah ok cool this is super helpful thank you so much @saraolson. i believe i just misunderstood the ticket cause i always assumed the sword meant my characters damage increased and that is not the case!

i should have some free time this weekend/into next week to get a fix together!

Example: I do not have a quest started and I still see the sword icon after completing a task and i should not, correct?
simulator_screenshot_F383EADF-A1BA-4749-BDEB-705A32B6A320

@tjb
Copy link
Contributor

tjb commented Jun 15, 2024

perhaps a domain question but why do we use progressDelta as damage? is there some documentation around the definition of the models that could give more insight?

additionally i am not on a question and i am getting progressDelta off of TaskResponseTempProtocol. should this only be present if i am on a quest with my party?

unsure if this is a question for @phillipthelen or @saraolson

@saraolson
Copy link
Collaborator Author

@tjb so we always want ppl to build quest 'progress' in the background because we will apply it if they start a quest later that day. we just dont want to show it if its not relevant.

does that help?

@tjb
Copy link
Contributor

tjb commented Jan 27, 2025

apologies i have been away but i am back :) i will pick this up this weekend unless someone else has resolved.

@tjb
Copy link
Contributor

tjb commented Jan 28, 2025

after refreshing my memory on this topic and digging into the code more the crux of the issue is that with TaskRepositoryImpl#score, which is make the toast occur, we do not know what type of quest the `progressDelta is coming from.

TaskResponseTempProtocol is the serialized return object from ScoreTaskCall. I took a look into our Realm models, user repository, etc and i could not find a correlation between the user and what quest they are on to get Quest object to then pass that information down into TaskRepositoryImpl#score if it is a boss or collection quest.

I think dug into the serialized response and into the API call. I believe what could fix is issue is a modification to the API response. if we could add a property called type to TaskResponseQuestProtocol and have the API add this information into the response, we would be able to tell what type of question is in our ScoreTaskCall response and then add the appropriate logic to show the sword in the toast or not.

@phillipthelen please let me know if i went in the wrong direction or if there is a repository in the iOS app that will allow me to plug in a user id to get the quest they are on as i could not find any.

if my proposed path of modifying the API is the path we want to do down, how would we do that? just make a API in the website repo for the score function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants