Coder Social home page Coder Social logo

cecilbowen / pokemon-sandwich-simulator Goto Github PK

View Code? Open in Web Editor NEW
97.0 5.0 36.0 247 KB

Simulate making sandwiches for Pokemon Scarlet and Violet.

Home Page: https://cecilbowen.github.io/pokemon-sandwich-simulator/

HTML 2.42% CSS 6.58% JavaScript 91.00%
game pokemon sandwich simulator

pokemon-sandwich-simulator's Introduction

pokemon-sandwich-simulator's People

Contributors

au5ton avatar cecilbowen avatar conso-me avatar diana-dudak avatar fleker avatar iapetos163 avatar ramzpat avatar sh0wer1ee avatar tzynwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pokemon-sandwich-simulator's Issues

Clean up sandwich bubble UI

In my fork I've made a small modification to the way the sandwich recipes are shown, where the number is tucked into the corner and the bubble are a bit less round such that the text doesn't start flowing outwards.

pokemon scarlet v1.1.0 recipe don't match

image

Well, i'm using this simulator to create recepies to farm exp. point while farming EV or anyway when i'm in the midle of a outbreak, in this case i use the simulator and created the recepie on the image, but, when i tryed in game, give this boost, in this order:

  • Exp. Point: Steel
  • Encounter Power: Fairy (?????)
  • Catching Power: Eletric

At first i though that was maybe just an error on the algorithm, but the fairy type catch me by surprise

Bug shiny recipe doesn't match

I was in multiplayer and tried this recipe but it gave raid power instead of encounter power.
image
A single cherry tomato may have fallen off but 2/3 of us had all 6 on the sandwich so I'm not sure how it determines it in MP.
I removed one in the simulator which showed
Encounter: 98 and Raid: 86
so if that did occur, how does it calculate it?

language strings.json key conflict

fig1
As shown in this figure, material Egg and filter Egg (Egg Power) share the same string key in language/strings.json.
However, in other localiztions these two strings may not be identical (In fact the differences are huge).
For example:

language name egg (item) egg (abbr. of egg power)
simplified Chinese 水煮蛋片 蛋蛋(蛋蛋力)
traditional Chinese 水煮蛋片 蛋蛋(蛋蛋力)

Add new string key (line#11 & #97) and adjust label in code can solve this issue.

+  "Egg(item)": "Egg",
-   "Egg": "Egg",
...
+ "Egg(power)": "Egg",
    "Catch": "Catching",

Can't find Sparkling Power sandwiches in search

Apologies if I've missed something obvious, but when I tried to search for Sparkling Power via the "search effects" search box, it didn't bring anything up. However, selecting ingredients that makes a Sparkling Power sandwich will display it.

Simulator not showing sparkling power sandwiches via search

Simulator showing sparkling power sandwiches via manual ingredient selection

Idea: Copy paste includes sandwich outputs

I have created some fancy sandwiches I want to share in chat, but want both ingredients and sandwich results. Maybe add an ability to include the sandwich results in the output?

sandwich output incorrect with low values and partial ingredients

input of
image
ends up with the types for the second and third powers switched. replicable with a very vast number of low value partial ingredient recipes.

in-game result of the above recipe:
image

it seems to largely be related to using 1 piece of 3 piece ingredients, as the above recipe using 2 pieces of each ingredient in calculator works as expected in-game.

Add dark theme

In my fork I've added a dark theme based on user device settings. I'll clean it up a bit and send a pull request.

Question on typing and what 1-3-2 rule is? Etc.

What do phases such as the below mean in your notes? Super curious.

types are just sorted by sum first, then in-game type sorting (check an herba or in-game pc box type search to see this order)
	then listed with effects in 1, 3, 2 order
	as far as dual/triple typings go
		::assuming [grass, fighting, ghost]::
		main type <= 280: 1, 3, 2 (grass, ghost, fighting)
		main type > 280: 1, 1, 3 (grass, grass, fighting)
		main type > 480: 1, 1, 1 (grass, grass, grass)
	1 herba defaults to 2, 2, 1 but can be 2, 2, 2 with enough type points
	2 herba defaults to 3, 3, 3 (this is 3, 3 minimum with no fillings)

Do these mean that, the type to power matching is something such as:
In this scenarios: main type <= 280: 1, 3, 2 (grass, ghost, fighting)
Grass: 30
Ghost: 20
Fire: 10

The main type is 30. Thus, it falls under the <=280 rule.

If the power was:
Encounter: 100
Humongo: 50
Teensy: 25

The matching would be:
Encounter: Grass (1st biggest)
Humongo: Fire (3rd biggest)
Teensy: Ghost (2nd biggest)

😅 Just curiosity, not quite understanding these references of 1-3-2, and 3-1-1 and 2-2-1 rules I am seeing around your notes. So curious how the logic works, and also, thanks for doing an amazing job on all of this.

How do the points work?

Hello,
I just had a question about how the point system works.
I already know that the more ppints you have, the higher the level of the sandwich, but how many points does it take to get to a sandwich level 1, 2, or 3?

Additional Hardcoded Recipe + Recipe Stats (Feature Request? Kind of?)

We've been able to get exact stats for the hardcoded recipes, including two additional recipes not actually listed in-game.
Chorizo + Salt + Pepper produces a 3 Star sandwich with no powers, because this is what the hardcoded recipe states.
Tomato + Tomato is impossible because it doesn't contain any condiments, but theoretically it would work the exact same way.
FoodPowerCombo_array.txt
I haven't been able to produce any modified hardcoded recipes, but I suspect that if they exist, the process could be "subtract ingredient from hardcoded stats" or "revert to custom recipe." I already tested, dropping a chorizo in the above recipe produces level 1 powers as if not part of a hard-coded recipe. Also, the bug you described involving the Master Dessert Sandwich is likely a result of forgetting to account for that second apple when hardcoding the recipe.

Red and green stripes

At the ingredients are red and green stripes underneath by selecting certain types. Can you create a legend for that because I have no idea what this stands for

Simulated power is not level 2 when power is boosted to 100 exactly

When a power's sum is boosted to 100 points, the result is not calculated as level 2 correctly. It remains as level 1. I have confirmed the following recipe in game:

Apple-3,Egg-3,Egg-3,Noodles-1,Noodles-1,Noodles-1_Horseradish,Horseradish

Simulated result: raid_ice_1, encounter_flying_1, exp_rock_1

Actual result: raid_ice_2, encounter_flying_1, exp_rock_1

My guess is that the program checks >100 instead of >=100 or maybe the program accidentally ignores the raid power sum since the individual ingredients don't contribute any raid points.

There are recipes that should fail

For example, I was testing x6 chorizo x4 cream cheese, (no top bread, single player), and in the game this recipe is a complete failure, until I dial back to 4 chorizo and other 2 ingredients, while the calc says that is valid.

I see that on your tests you have 6x rice recipes, so it might not be a number of ingredients threshold but a flavour threshold?

Third power level is miscalculated as level 2 instead of 1

I have a recipe where I have three types above the 180 threshold for level 2 powers. The top two powers are above the 100 point threshold, but the third (encounter) is below that threshold (96 points). The simulated sandwich had all three powers at level 2, instead of a 2, 2, 1 distrubution. I tested the recipe in game and got the 2, 2, 1 distrubution too.

Recipe:

Rice-1,Rice-1,Rice-1,Rice-1,Rice-1,Rice-1_Curry Powder,Ketchup,Wasabi

Screenshot_20221205-210328

2022120620481400-1A552196CBAEC7F073BF13D42EA6C787

Copy to clipboard does not work (Chrome+Mac)

When using Google Chrome, copy to clipboard shows the message that the copy was successful but the clipboard is not filled. The console error given is "util.js:949 Async: Could not copy text: DOMException: Document is not focused." Given the post on StackOverflow about this problem the issue may be due to the alert you show. My browser supports what you are doing, but because it fails to work, your fallback is never attempted.

If not done somewhere else, make sure you check for clipboard write permission

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.