-
Notifications
You must be signed in to change notification settings - Fork 49
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
add_ingredient issue #146
Comments
Hi, I have the same problem with the mods pypetroleumhandling_1.6.0 and aai-industry_0.4.1 in 0.18.1 despite the addition of the 3 functions. But no problem in 0.17.79. |
I've opened a pull request that should fix this issue. |
What is the 'correct' behaviour here? To not crash obviously, but what should add_ingredients ideally do if the ingredient already there? There are 2 situations. a) the ingredient is already there with the same number, or b) it's there with a different number. What's the logic for resolving a difference in the number of items? Do you replace it or raise an error or leave it unchanged? |
|
There's also the situation of it being present as a catalyst. Should the catalyst property be inherited to the new entry? |
Well I will admit progress on this has been slow. Really slow
The goal of the whole data library is to fail silently in most cases as it
uses an 'if this then that kind of thing'
If an ingredient exists then update the count
If it was a catalyst and now it's not, remove the catalyst.
…On Thu, Sep 9, 2021, 12:45 PM Mernom ***@***.***> wrote:
There's also the situation of it being present as a catalyst. Should the
catalyst property be inherited to the new entry?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#146 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADKTFYBI3ISRHPTWXKH7TO3UBDQD3ANCNFSM4KKO5U6A>
.
|
I think my code can be updated to handle catalysts fairly easily. Otherwise I think it does the job. |
This whole thing can probably just be handled under something like this
|
https://mods.factorio.com/mod/stdlib/discussion/5dc42f6770ee0d000c1786f4
The text was updated successfully, but these errors were encountered: