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

Resource Map with dynamic resources and triggers #313

Open
Zomis opened this issue Aug 27, 2022 · 1 comment
Open

Resource Map with dynamic resources and triggers #313

Zomis opened this issue Aug 27, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request utility Utilities that can be used in various games

Comments

@Zomis
Copy link
Owner

Zomis commented Aug 27, 2022

Write a class that can keep track of "resources", i.e. Int values that can change over time and can be influenced by other effects.

This class should be able to replace Caravan in Spice Road, and Money in Splendor.

  • Dynamic modifiers for values ("This thing has X equal to ...")
  • Dynamic modifiers for values ("Other things have one additional X")
  • Listeners ("Whenever you get X, other stuff happens...")
  • Modifiers for when values are changing ("Whenever X changes by Y, gain 1 extra")

This class can be created individually and can be posted for review.

Related possible future features:

  • Also support wildcards, so that you can have a resource that counts as "one of X/Y/Z" (such as a wildcard in Splendor).
  • Some resources can even count as "all of X/Y/Z" or "two of X/Y/Z" (so if you use/remove the X one, you will have "one of Y/Z" left)
  • Different games may have different options for how to pay. So support priorities within the resources (to make wildcards be used first/last for example), and add a way to find out "How can I pay 3 X and 1 Y?"
@Zomis Zomis added enhancement New feature or request utility Utilities that can be used in various games labels Aug 27, 2022
@Zomis Zomis self-assigned this Aug 27, 2022
@Zomis
Copy link
Owner Author

Zomis commented Sep 26, 2022

Wildcards and resources that counts as "one of" or "all of" is currently no need to support, and I also see a very limited use-case for that. There might be some use-cases for it, but it is more coupled with actions than with resource maps themselves.

Listeners have a high potential use-case in for example in Alchemists, to things like "When you gain reputation, gain one more reputation" (although that also kinda includes a modifier)

Modifiers have a use-case in Cardshifter-like games and for potential advanced rules for other games, such as Splendor: "For the next 3 turns you have 1 wildcard to use"

@Zomis Zomis changed the title Resource Map with dynamic resources, with wildcards and options for how to pay Resource Map with dynamic resources and triggers Oct 17, 2022
@Zomis Zomis mentioned this issue Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request utility Utilities that can be used in various games
Projects
None yet
Development

No branches or pull requests

1 participant