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

Add allowance of duplicate offers. #117

Open
PirateSoftware opened this issue Feb 2, 2023 · 0 comments
Open

Add allowance of duplicate offers. #117

PirateSoftware opened this issue Feb 2, 2023 · 0 comments
Labels
enhancement New feature or request not-sponsored

Comments

@PirateSoftware
Copy link

PirateSoftware commented Feb 2, 2023

Right now a town cannot get two of the same categories under offers.
Please give us a config option to allow this if we would like to.

Currently it just skips duplicates in TownResourceDiscoveryController.java

//Skip category if we have already discovered something in it
for(String material: alreadyDiscoveredMaterials) {
if(category.getMaterialsInCategory().contains(material))
continue CATEGORY_LOOP;

This makes it impossible to give different amounts of the same material.
I'd like to make Low/Medium/High size deposits but this skips based on the Material type.

@LlmDl LlmDl added enhancement New feature or request not-sponsored labels Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request not-sponsored
Projects
None yet
Development

No branches or pull requests

2 participants