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

Partially Implement Papel Shop #2

Merged
merged 3 commits into from
Jul 3, 2023
Merged

Conversation

JMC47
Copy link
Contributor

@JMC47 JMC47 commented Jul 3, 2023

Partial implementation of the Papel Shop.

Also implements bare necessities to open the rare shop page at all, which means faking achievement data (for memorial shop.) Also adds a WeightedRandom generation.

The Papel Shop itself does visually function, though there are some packet differences between US852 and the reference packet that causes some functionality to be odd. Note that both shops will subtract pang, but you don't actually get the items. I put a random rare item in just for fun, but otherwise tried to match known Papel Shop items from dumped packets.

Big Papel wasn't something I used as much, so I'm not nearly as sure on the implementation. It matches what data I have, but there is a bug saying it has no more rolls. This server ignores that bug and lets you roll anyway, so it can be tested and waste your pang. Big Papel shop is weird and will let your pang go negative, which the game seems totally fine with doing, surprisingly enough. Black Papel shop has a client side check and does not allow you to go negative.

game/server/conn.go Outdated Show resolved Hide resolved
game/server/conn.go Show resolved Hide resolved
game/server/conn.go Outdated Show resolved Hide resolved
game/server/conn.go Outdated Show resolved Hide resolved
game/server/conn.go Outdated Show resolved Hide resolved
game/server/conn.go Outdated Show resolved Hide resolved
game/server/conn.go Outdated Show resolved Hide resolved
game/server/conn.go Outdated Show resolved Hide resolved
game/server/conn.go Outdated Show resolved Hide resolved
game/server/conn.go Outdated Show resolved Hide resolved
game/server/conn.go Outdated Show resolved Hide resolved
game/server/conn.go Outdated Show resolved Hide resolved
game/server/conn.go Outdated Show resolved Hide resolved
@JMC47 JMC47 force-pushed the hackyrareshopbranch branch 3 times, most recently from 2226427 to f2326d2 Compare July 3, 2023 00:48
game/packet/server.go Outdated Show resolved Hide resolved
JMC47 and others added 3 commits July 3, 2023 15:18
Co-authored-by: jchv <john@jchw.io>
Co-authored-by: jchv <john@jchw.io>
@jchv jchv enabled auto-merge (squash) July 3, 2023 19:22
@jchv jchv merged commit 7dd3426 into pangbox:master Jul 3, 2023
2 checks passed
This pull request was closed.
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