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

Formalise recipes and crafting #6

Open
grofit opened this issue Oct 17, 2021 · 3 comments
Open

Formalise recipes and crafting #6

grofit opened this issue Oct 17, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@grofit
Copy link
Member

grofit commented Oct 17, 2021

I cannot remember how much was done on this but I know some use cases that depend on this library have basic recipe style crafting where you require N of X items to generate N of Y item, however this may need reviewing especially given the procedural aspect of things.

This may be a non issue but need to look into it.

@grofit grofit added question Further information is requested enhancement New feature or request labels Oct 17, 2021
@grofit grofit self-assigned this Oct 17, 2021
@grofit
Copy link
Member Author

grofit commented Feb 10, 2023

Some work has happened in this area on a related project, once its solidified more I will ripple it up.

Part of the difficulty though is that out the box i'm sure most people are used to the common recipe style crafting approach where to make X you need 1xY and 3xZ etc. This is fine for most use cases however there will also be use cases where people will want to possibly have varying outputs based on probability or qualities etc.

There are also some games which have even more complex crafting systems where you have minimum and maximum requirements and optional ones to tweak the output further, like Starwars Galaxies etc.

Anyway I think that out the box we should support the common X = 2Y + 3Z style with maybe some support for procedural item stats in some way, but it would be up to developers to build off the basic approaches to come up with more complex crafting systems (which can be shared as plugins anyway).

@grofit
Copy link
Member Author

grofit commented Sep 29, 2023

This has somewhat been added as part of the OpenRpg.Items.TradeSkills library as it provides an out the box way to express a recipe which takes N of X items and outputs N of X items, however it has not been fully added to the interactive demos yet, so once thats done I will close this off and any additional functionality can be requested as separate tasks.

@grofit
Copy link
Member Author

grofit commented Oct 6, 2023

More supporting objects have been added to make crafting easier such as the IInventoryTransaction which lets you do multiple additions/removals from an inventory in a single action. Once this has been pushed out hopefully the docs can be updated as a basis for simple crafting scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant