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

Updates to sigilharvest and common-items to fix some logic errors in the former and add compatibility to the latter #6721

Merged
merged 4 commits into from
Nov 3, 2023

Conversation

Nyctus
Copy link
Contributor

@Nyctus Nyctus commented Nov 3, 2023

common-items: added another match string to make count_item_parts compatible with blank scrolls.

sigilharvest: fixed some logic errors that were preventing the script from buying scrolls when it otherwise should have been

NOTE: The changes to sigilharvest are dependent upon the match string added to common-items.

Added new match pattern to match_messages in count_item_parts() method
This was previously buggy and failing to order scrolls much of the time. I redid some of the logic and moved to ROUND instead of CEIL which will reduce over-buying of scrolls.
Space after # in some comments added
Removed redundant .to_s methods
added missing space after # for one of my comments
@Nyctus
Copy link
Contributor Author

Nyctus commented Nov 3, 2023

Thank you Rubocop for making my code less of a nightmare. :) All the issues should now be fixed!

@MahtraDR MahtraDR merged commit 13d6983 into elanthia-online:master Nov 3, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants