tylercamp / palcalc

MIT License
8 stars 1 forks source link

Take in consideration Alpha pals passive #14

Open diogo7santiago opened 1 month ago

diogo7santiago commented 1 month ago

Is it possible to also add compatibility with Alpha pals? According to Steam update v0.2.4.0 patch notes: ・Breeding eggs now have a slight chance to produce an Alpha Pal

Alpha pals list (when you catch one it is guaranteed they are alpha and they pass it down) https://palworld.wiki.gg/wiki/Alpha_Pals According to reddit it's 5% chance of passing down the Alpha passive: https://www.reddit.com/r/Palworld/comments/1cru851/just_when_i_thought_i_was_out_they_pull_me_back_in/l454b1u/

tylercamp commented 1 month ago

when you catch one it is guaranteed that they are alpha and they pass it down

Does this mean that, if either parent is an alpha pal, then the child will also be alpha? Or do both parents need to be alpha?

I don't see any mention of this behavior in the wiki page you linked

diogo7santiago commented 1 month ago

https://www.youtube.com/watch?v=-hgBV1vjIn8 According to this video you just need 1 alpha pal parent to have a chance to have a alpha child.

It is new update so it might not be on the wikis yet.

tylercamp commented 1 month ago

I asked on the discord and they said it's a flat 5% chance regardless of parents

I don't see any comments on the video you linked, and since there's no discussion, I'm hesitant to take this at face value

Can you try breeding with some alpha parents to confirm?

diogo7santiago commented 1 month ago

I've made plenty of Alpha children with 1 Alpha parent.

I'll try using only non-alpha parents and see what happens but reddit says it can also happen: https://www.reddit.com/r/Palworld/comments/1cs4u25/new_alpha_breeding_seems_to_have_a_high/

tylercamp commented 1 month ago

@diogo7santiago it sounded like you were saying before that if either parent is an alpha then the children will always be an alpha, that's what I'm unsure about

diogo7santiago commented 1 month ago

no, that part isn't true. it isn't guaranteed

tylercamp commented 1 month ago

I'm going to put this on hold for now, since breeding an alpha pal doesn't seem to be affected by the parents. The only difference would be in the final time estimate, and with a 5% chance of breeding an alpha, it'll massively increase the time estimate for that breeding step which may be confusing.

I plan to add an "explanation" popup for the breeding estimates at some point, e.g.:

- 13% chance to inherit traits (1 in 8) - x8 attempts
- 50% chance for gender (1 in 2) - x2 attempts
- 5% chance for Alpha Pal (1 in 20) - x20 attempts

320 total attempts required on average.

Pals productive 50% of the time due to day/night cycle.
With a base breeding time of 05:00, effective average breeding time per in-game day is 10:00.

320 total attempts at 10:00 per breed - 2:05:20:00 (2 days, 5 hours, 20 minutes, 0 seconds.)

I'll revisit this once I've added that "explanation" feature