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 basic support for the Flea Market #1923

Merged
merged 5 commits into from Aug 30, 2023

Conversation

libraryaddict
Copy link
Contributor

Original issue was opened here: https://kolmafia.us/threads/items-placed-in-flea-market-are-not-tracked-as-removed-from-inventory.29181/

This PR just aims to correctly track when an item is added to the Flea Market and remove it from our inventory, as well as log when we buy or sell.

As a note, I'm against the idea of adding more support to the Flea Market such as a buy or sell command. Or a "whats for sale" search.

The flea market already sucks, and I don't want to see it turn into a "lets undercut each other" v2 mall. It sucks enough already without having people buy out underpriced items automatically, and undercutting each other on overpriced items automatically.

If you want to do that stuff, make your own script. It's a noob market with prices detached from reality, and we should respect that by leaving it to the noobs.

I saw someone automatically undercut everyone on the flea market so that they were the only seller, if you placed new items for sale they automatically added an item that undercut you.. It was worse than in mall, at least in the mall I can ignore your store to buy the next cheapest. They did eventually stop, but still.

@libraryaddict libraryaddict requested a review from a team as a code owner August 30, 2023 09:53
@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Merging #1923 (c24d978) into main (92f990d) will increase coverage by 0.01%.
The diff coverage is 56.41%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1923      +/-   ##
============================================
+ Coverage     36.47%   36.48%   +0.01%     
- Complexity    18879    18895      +16     
============================================
  Files          1084     1086       +2     
  Lines        166719   166797      +78     
  Branches      35410    35424      +14     
============================================
+ Hits          60805    60855      +50     
- Misses        96000    96014      +14     
- Partials       9914     9928      +14     
Files Changed Coverage Δ
...eforge/kolmafia/request/FleaMarketSellRequest.java 50.00% <50.00%> (ø)
...ourceforge/kolmafia/request/FleaMarketRequest.java 52.94% <52.94%> (ø)
src/net/sourceforge/kolmafia/RequestLogger.java 31.79% <75.00%> (+0.65%) ⬆️
...urceforge/kolmafia/session/ResponseTextParser.java 40.04% <100.00%> (+0.49%) ⬆️

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 92f990d...c24d978. Read the comment docs.

Copy link
Member

@midgleyc midgleyc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@midgleyc midgleyc merged commit 34bd261 into kolmafia:main Aug 30, 2023
5 checks passed
@libraryaddict libraryaddict deleted the track_flea_sold branch August 30, 2023 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants