Welcome to Pixpet!  Login or  Register Account   Resend Activation Email  Forgot Password? Dark Mode
Posts Overview
Item Rarity Excluder potion results in incorrect grade (6 Posts and 70 Views)
Member

Sep 18th, 2018
Posts: 115
Pixpets: 151
Pixdex: 64
4 Years ago
Feb 7th, 2020 - 5:39 PM
Nr. 1 #34433
Description of the Bug:
I went to make an Item Rarity Excluder potion, and the resulting potion came out at the wrong grade. My intention was to make a potion between 60 and 70 grade, so I did the math and found the right materials. The resulting potion came out 83 grade? You can see the grades of the materials I used in this screenshot:


Steps to reproduce:
I would assume the reproduction steps would be to craft an Item Rarity Excluder potion without using all g100 materials, do the math, and see what the result actually is. I'm not personally inclined to waste my remaining materials by trying it again and getting another potion I can't use. It seems like it's using an incorrect formula to generate the grade of the potion, possibly related to when the potion's recipe was changed months back (formerly used 2 flowers, 4 voxels, 1 varadium)

What should have happened?
The resulting potion should have been either 63 or 64 grade, per the math below
8 x 31 grade Voxel Fruit = 248
1 x 100 grade Aquamarine Stew = 100
2 x 100 grade Varadium = 200
4 x 100 grade Pumpkin Flower = 400
15 items, total grade = 948
average is 948 / 15 = 63.2

What did happen?
The potion result was 83 grade, too high.

My System:
PC, Windows 7, Firefox
Christovski's Signature
Member
Early Adopter

Aug 13th, 2018
Posts: 111
Pixpets: 276
Pixdex: 139
4 Years ago
Feb 8th, 2020 - 2:50 AM
Nr. 2 #34451 1
Seems like the way the grade is determined in cooking doesn't take into account the quantity of the individual items in each cooking slot. It simply averages the grades themselves.

I quickly tested it with a Potion/Evobar Ingredient Potion.




The starch cube isn't included in the calculations as it has no grade.

If it took into account there being two G80 dragonfruits, the potion grade should be: (100+100+80+80)/4 = 90

If it ignores quantity and only looks at the grade in each slot, potion grade is: (100+100+80)/3 = 93

Looks like it's the second scenario that ignores the quantity of each item.

In your case, it literally just did (100+100+100+31)/4 = 82.75 -> 83

For you to make a G60-70 item rarity excluder is challenging if you are using G100 items, because you can have no more than two ingredients at G100. Otherwise the resulting potion grade will be greater than 70 no matter what.
Ellix's Signature






Vinatha

Varan

Dvalinn

Vasuki

Svetlana
Member
Early Adopter
Forum Super Moderator

Apr 6th, 2018
Posts: 1565
Pixpets: 322
Pixdex: 157
4 Years ago
Feb 8th, 2020 - 3:01 AM
Nr. 3 #34453
Edit 4: Ok! So I've discovered some things. There's something wrong with the Item Rarity Excluder specifically. Ellix's calculation worked for every one of my tests except the Item Rarity Excluder. So I'm currently making more Item Rarity Excluders to check this out.

Edit 3: Jelly just brought to my attention the fact that basic ingredients add 100 to the calculation. I'll be revising all of my calculations shortly. ;v;

Edit 2: Actually, Ellix's theory doesn't explain some of the scenarios I came across. Potions like the Wealth Potion, Mass Range Extender, and Potion of Evolution all took into account the quantities of ingredients when the game calculated the final grade. It also doesn't explain why in some of my experiments, the game rounds down when it should've rounded up.

Edit 1: Ninja'd by Ellix xD



So, I just want to start by saying that my assumption of the way the game calculates averages is the same as Chris'. I assume that the game adds up the grades of all ingredients used, and then divides that by the number of ingredients used (and ignores non-grade items, such as the Starch Cube and so on).

Based on that assumption, I tested every potion with varying grades of ingredients, starting with the Item Rarity Excluder. So if the game is supposed to calculate averages the way that we believe it is, then I can confirm that there's something wrong with the calculations for certain potions. Below are my results for every potion.


(Don't read this, it's wrong lmao)
BK47's Signature
Helpful Links

       

avatar art by PauMol   |   custom bars by Wayvern
Member

Sep 18th, 2018
Posts: 115
Pixpets: 151
Pixdex: 64
4 Years ago
Feb 8th, 2020 - 2:40 PM
Nr. 4 #34459
@bk47
Wow thanks for your in-depth analysis now I feel bad for complaining about wasting materials on my one excluder potion honestly I'm just glad that I'm not crazy!

@Ellix
That is most definitely a strange way for the game to calculate it, but I suppose when I've made other potions (which use 1 of each ingredient, or at most, 2) the result of my averaging math was so close to the *actual* manner of averaging it uses that I just never noticed.

...come to think of it where does the game tell us how potion grade is calculated?? Like I didn't pull this mathematical concept out of thin air....
Christovski's Signature
Member
Early Adopter

Jan 30th, 2018
Posts: 74
Pixpets: 219
Pixdex: 71
4 Years ago
Feb 13th, 2020 - 1:52 AM
Nr. 5 #34617
..all of the above aside, the calculation looks correct if you ignore the quantity of the items and look at the individual items themselves.

1 item type grade 100
1 item type grade 100
1 item type grade 100
1 item type grade 31

Total types of items = 4
Total grades of item types = 331

331/4 = 82.75 rounded up becomes 83

So, can confirm what Elix said. Makes sense to me that it should work this way, considering that you can't mix item grades, it shouldn't matter what quantity of each item is required, just that there are x type of items being graded so they should sum as if the total item type quantity is 1
bgyoshi's Signature
Member
Administrator

Dec 5th, 2017
Posts: 1145
Pixpets: 81
Pixdex: 30
4 Years ago
Mar 17th, 2020 - 12:04 PM
Nr. 6 #35285
The grade formula does not take into account quantity of ingredients, because the quantity itself is part of the recipe already. That is why for example 4x 100 is counted as 1x 100 because it counts all 4 as one ingredient.

I think it makes more sense this way because it is not possible to add different graded multiple ingredients.
Register
Not Registered Yet?
Join for free
Recent Activity
Pixpet Sponsor Support
Our Previous/Current Super Sponsors
Sponsor
Get your own Sponsor Banner on Pixpet (Rules) + 100 Pixpet Ticket Coupons/Month for Item Commissions!

Super Sponsor
Get your own Sponsor Banner on Pixpet (Rules) + Your Own Pixpet after 6 months support (not consecutive) on this tier! (Rules)
Totodile2064 Super Sponsor for 41 Months
bgyoshi Super Sponsor for 33 Months
Chicken_Raptor Super Sponsor for 16 Months
Dusk Super Sponsor for 15 Months
Tybaxel Super Sponsor for 6 Months
Sherrice Super Sponsor for 6 Months
Ignis Super Sponsor for 6 Months
Takkju Super Sponsor for 5 Months
Phoenix Super Sponsor for 4 Months
Kookaburra Super Sponsor for 2 Months
Isegard Super Sponsor for 1 Month
Become Pixpet Sponsor
Pixpet Chat
[jak]dacrowe  a...  aly  Amu  Astrokitty  BeasRabbit  Brandon  Brisingr12  c...  c...  Carpo (ign: CarpoPyronite )  Charzea  ckolb  DarylSun  Demm  Draxi  Dynosaur  ECDMDragon  f...  Fandomzzz1234  Fandramon  Fren Derg  Gabe  Hellsyswinged  Hikari  Hillyroars  horse (CyberneticCaballus)  hunter-z  Iségard  jaguar  Jinxie  Jyxxie  Kazuari  Kino_Kari  Komodo  LAV  Leonidas (DraconisLeonidas)  Li0nless  lucien  LuckyBonsaiTree  luna (ign Aigis)  lynn 🦴  Mage Yoshi  maggicked  Melia  Moonlightelf  Nat  Nicol (Uri)  Ozanthium  Pinkapop  Psicose  PuppyToast  Queenie  Rackiera  Rainbow is an artist  RainbowFox68  Ravenstag  Rexsaurus  ShadowXeldron (Dragon0307)  Shpee  Silver  Skylark Starflower  Snake  SomeRandomMightyena  Soulmates4Ever  Spamton  Stadler  Starfire Dragon  Steveni  Takkju  theBurnt  Tiffanbrill  Valdus Aetherius  Valeian  Will  Zen00  🌈^^Niji_Crab^^💫  💚TangledPsycho17💚  🔳🔲 
Log in to join!
Social Media
Also subscribe to our other social media accounts if you want to stay informed!

6 Users Online (Last 15 Minutes)

Welcome our newest user: Makrona
Most Users Online: 126 on Mar 19th, 2019 - 7:07 PM

Forum Stats: Total 45305 Posts in 2832 Topics.

Early Adopter Patreon Supporter Sponsor Super Sponsor Site Artist Discord Moderator Forum Moderator Forum Super Moderator Game Moderator Game Super Moderator Administrator