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

Support for achievements hidden by other achievements #40090

Merged
merged 4 commits into from
May 3, 2020

Conversation

jbytheway
Copy link
Contributor

Summary

SUMMARY: Features "Support for achievements hidden by other achievements"

Purpose of change

We want to support sequences of similar achievements (such as surviving for ever longer periods, or killing even more monsters). To have all those visible in the achievements UI simultaneously would be clutter; it makes sense for only the next one (and all completed ones) to be visible.

Describe the solution

Each achievement can specify a list of achievements which hide it. The achievement will not appear until all those which hide it have been completed.

I'm supporting a list rather than just a single hiding achievement, because there might be situations where you should complete two different achievements before seeing one. e.g. "drive an electric car 100 miles" might be hidden by both "drive a vehicle 10 miles" and "drive an electric car".

To demonstrate the feature, added two sequences of achievements:

  • Survival for increasing periods of time.
  • Killing more monsters.

The latter sequence only has "kill 10" and "kill 100" currently. I'd like to add more (I'm thinking 10, 30, 100, 300, ..., 10000) but I haven't thought of a good naming scheme for them. Ideas welcome below (but they can be added later, this PR needn't wait for them).

Describe alternatives you've considered

Defining explicit sequences of achievements, rather than this implicit structure. But I think the greater flexibility of this approach is better.

Testing

Checked in-game

Additional context

Initially, you only see the "survive a day" achievement:
achievements-with-hidden
Later, you see the "survive a month" one:
achievements-after-unhidden
(Since taking these screenshots I've added achievement descriptions and fixed the time display bug evidenced here (#40068).)

jbytheway added 4 commits May 2, 2020 21:50
Allow one achievement to be hidden by another.  It will not appear in
the list until that other has been completed.

Add several new survival achievements, each of which hides the next, for
progressively longer periods.
Another example of hiding.
Copy link
Contributor

@ifreund ifreund left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ifreund ifreund merged commit 0c074f2 into CleverRaven:master May 3, 2020
@jbytheway jbytheway deleted the hidden_by_achievements branch May 4, 2020 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants