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

Money achievements #42198

Closed
wants to merge 2 commits into from
Closed

Conversation

nexusmrsep
Copy link
Contributor

Summary

SUMMARY: Content "Money achievements"

Purpose of change

To add more achievements

Describe the solution

Added two new, money related achievements:

  • Croesus
  • Allowance

Describe alternatives you've considered

N/A

Testing

Spawning 1000 cash cards in game and building a house of cards.

Additional context

N/A

@nexusmrsep nexusmrsep added [JSON] Changes (can be) made in JSON [C++] Changes (can be) made in C++. Previously named `Code` Game: Achievements / Conducts / Scores Player goals and how they are tracked. labels Jul 16, 2020
@kevingranade
Copy link
Member

This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there:

https://discourse.cataclysmdda.org/t/your-ideas-for-new-achievements-and-conducts/24008/35

Copy link
Contributor

@jbytheway jbytheway left a comment

Choose a reason for hiding this comment

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

Some suggestions. I can see arguments against these suggestions, if there are no other uses for my proposed generalizations, but the events you've added seem over-specific to me.

Comment on lines +560 to +562
if( u.cash < 100000000 && ( u.cash + amount ) >= 100000000 ) {
g->events().send<event_type::becomes_millionaire>( u.getID() );
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The events you've added are very niche. I feel like this one should e.g. be a generic 'deposit' event, which includes the amount deposited and the new balance. I think deposits are rare enough that shouldn't overwhelm the log.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What you suggest here is future-proofing, even though I can't imagine any specific use for it offhandedly, so I'll do it.

Comment on lines +608 to +610
if( cc->ammo_remaining() == cc->ammo_capacity( money ) ) {
g->events().send<event_type::fills_cashcard>( u.getID() );
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Similarly this could be a 'transfer_money' event with the new balance.

@nexusmrsep nexusmrsep marked this pull request as draft July 24, 2020 04:54
@stale
Copy link

stale bot commented Sep 2, 2020

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. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

@stale stale bot added the stale Closed for lack of activity, but still valid. label Sep 2, 2020
@stale
Copy link

stale bot commented Oct 3, 2020

This issue has been automatically closed due to lack of activity. This does not mean that we do not value the issue. Feel free to request that it be re-opened if you are going to actively work on it

@stale stale bot closed this Oct 3, 2020
@kevingranade kevingranade reopened this Oct 4, 2020
@stale stale bot removed the stale Closed for lack of activity, but still valid. label Oct 4, 2020
@stale
Copy link

stale bot commented Nov 7, 2020

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. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

@stale stale bot added the stale Closed for lack of activity, but still valid. label Nov 7, 2020
@stale
Copy link

stale bot commented Dec 10, 2020

This issue has been automatically closed due to lack of activity. This does not mean that we do not value the issue. Feel free to request that it be re-opened if you are going to actively work on it

@stale stale bot closed this Dec 10, 2020
@nexusmrsep nexusmrsep deleted the money_achieve branch November 20, 2021 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Game: Achievements / Conducts / Scores Player goals and how they are tracked. [JSON] Changes (can be) made in JSON stale Closed for lack of activity, but still valid.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants