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

Generates cards stats after payment step #170

Merged
merged 6 commits into from
Jul 6, 2020
Merged

Generates cards stats after payment step #170

merged 6 commits into from
Jul 6, 2020

Conversation

austinpray
Copy link
Owner

@austinpray austinpray commented Jul 4, 2020

ref #168

before

  1. roll stats
  2. are you sure?
  3. collect payment (noop rn)
  4. publish

This is a problem: if you don't like the stats, why not just abandon the card and try recreating until you get stats you like? You need to pay to publish a card

after

  1. are you sure?
  2. collect payment (noop rn)
  3. roll stats
  4. publish

Now you are stuck with that card's stats.

ui changes

split into #172

@pull-request-size pull-request-size bot added the size/L Denotes a Pull Request that changes 100-499 lines label Jul 4, 2020
@austinpray austinpray requested a review from ridhoq July 4, 2020 22:18
@austinpray austinpray mentioned this pull request Jul 4, 2020
5 tasks
@codecov
Copy link

codecov bot commented Jul 4, 2020

Codecov Report

Merging #170 into master will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #170      +/-   ##
==========================================
+ Coverage   75.10%   75.15%   +0.05%     
==========================================
  Files          67       67              
  Lines        1928     1932       +4     
  Branches      272      272              
==========================================
+ Hits         1448     1452       +4     
  Misses        400      400              
  Partials       80       80              
Impacted Files Coverage Δ
kaori/plugins/gacha/commands/creation.py 68.27% <100.00%> (+0.34%) ⬆️
kaori/plugins/gacha/tui.py 98.21% <100.00%> (+0.06%) ⬆️

Continue to review full report at Codecov.

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

kaori/plugins/gacha/commands/display.py Outdated Show resolved Hide resolved

return u

return make_user


@pytest.fixture()
def grant_kkreds(test_db: DB) -> callable:
Copy link
Owner Author

Choose a reason for hiding this comment

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

will be useful to testing payment later

session.add(u)
session.commit()
user_id = u.id
# grant_kkreds(u, 1e10)
Copy link
Owner Author

Choose a reason for hiding this comment

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

when I make S-tier cards this test will fail until this is uncommented

@austinpray
Copy link
Owner Author

I split the UI changes into #172

@pull-request-size pull-request-size bot added size/M Denotes a Pull Request that changes 30-99 lines and removed size/L Denotes a Pull Request that changes 100-499 lines labels Jul 6, 2020
@austinpray austinpray merged commit 348d754 into master Jul 6, 2020
@austinpray austinpray deleted the 168-stats branch July 6, 2020 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/gacha needs rebase size/M Denotes a Pull Request that changes 30-99 lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants