I like that Petz mutants, but they don't appear randomly ... #6574

Closed
opened 2024-03-26 17:50:18 +00:00 by Boot · 7 comments
Member

... but according to a pattern that has nothing to do with the actual chance (wasn't it 1 in 200?). In fact, it must have something to do with places. Two years ago I found four black wolves in a short time in almost always the same place one after the other, then nothing for ages and now again in a short time several black wolves in one place. Never in the past almost three years have I found a white elephant, now almost always in the same place four in a row.

... but according to a pattern that has nothing to do with the actual chance (wasn't it 1 in 200?). In fact, it must have something to do with places. Two years ago I found four black wolves in a short time in almost always the same place one after the other, then nothing for ages and now again in a short time several black wolves in one place. Never in the past almost three years have I found a white elephant, now almost always in the same place four in a row.
AliasAlreadyTaken was assigned by Boot 2024-03-26 18:25:06 +00:00

I think that's because some animals always seem to spawn in groups.

I think that's because some animals always seem to spawn in groups.
Member

the spawning rules say nothing about the mutants, it's up to petz to choose the skin it wants for a new animal. it's possible that's somehow not actually random, but it has nothing directly to do with the location of the spawn:

35d400a31c/petz/api/api_init_prop.lua (L104-L112)

it doesn't seem to be the "1 in 200 chance" you get when breeding them though. if there's 6 textures, the array looks something like

[1, 1, 1, 1, 1, 1],
[1, 2, 2, 2, 2, 2],
[1, 2, 3, 3, 3, 3],
[1, 2, 3, 4, 4, 4],
[1, 2, 3, 4, 5, 5],
[1, 2, 3, 4, 5, 6]

so the chances are 11/36, 9/36, 7/36, 5/36, 3/36, 1/36.

wolves only have 4 color variants, so the chance of a black wolf is 1/16.

the spawning rules say nothing about the mutants, it's up to petz to choose the skin it wants for a new animal. it's possible that's somehow not actually random, but it has nothing directly to do with the location of the spawn: https://gitea.your-land.de/your-land/petz/src/commit/35d400a31c25f42b5a8a2693fcdf023e21ed8e71/petz/api/api_init_prop.lua#L104-L112 it doesn't seem to be the "1 in 200 chance" you get when breeding them though. if there's 6 textures, the array looks something like ``` [1, 1, 1, 1, 1, 1], [1, 2, 2, 2, 2, 2], [1, 2, 3, 3, 3, 3], [1, 2, 3, 4, 4, 4], [1, 2, 3, 4, 5, 5], [1, 2, 3, 4, 5, 6] ``` so the chances are 11/36, 9/36, 7/36, 5/36, 3/36, 1/36. wolves only have 4 color variants, so the chance of a black wolf is 1/16.
flux added the
1. kind/bug
3. source/unknown
labels 2024-03-26 22:20:56 +00:00
Member

chance of a white elephant would be 1/4. they aren't that common. hm.

chance of a white elephant would be 1/4. they aren't that common. hm.
Author
Member

I'm sorry, but your calculations don't correspond to "the reality" in the game. The chance of a black wolf is by no means more than 1 in 200 and certainly not of a white elephant. Apart from that, I'm not concerned about the spawning rate, but that if you tame and remove a mutant, the chance of getting the same mutant relatively soon afterwards in the same environment is extremely high.

I'm sorry, but your calculations don't correspond to "the reality" in the game. The chance of a black wolf is by no means more than 1 in 200 and certainly not of a white elephant. Apart from that, I'm not concerned about the spawning rate, but that if you tame and remove a mutant, the chance of getting the same mutant relatively soon afterwards in the same environment is extremely high.
Author
Member

I think that's because some animals always seem to spawn in groups.

Yes, could be the right hint, because elephants and wolves are spawning in groups. With other individual mutants, I didn't notice this accumulation in any other way.

> I think that's because some animals always seem to spawn in groups. Yes, could be the right hint, because elephants and wolves are spawning in groups. With other individual mutants, I didn't notice this accumulation in any other way.
Member

elephants don't spawn in clusters.

chances

looks like i was ignoring an important part of the calculation: 35d400a31c/petz/api/api_init_prop.lua (L242-L248)

by this logic, mutants should never spawn though ...

elephants don't spawn in clusters. > chances looks like i was ignoring an important part of the calculation: https://gitea.your-land.de/your-land/petz/src/commit/35d400a31c25f42b5a8a2693fcdf023e21ed8e71/petz/api/api_init_prop.lua#L242-L248 by this logic, mutants should *never* spawn though ...
Member

the petz code is just terrible, the previous bits of code are only for "captured" animals which don't have a texture already. if the animal isn't capture, but is breed-able, then this block covers which variant is chosen. mutants are a 1 in 200 chance.

in any event, the variant that's chosen has nothing to do with the location where it spawns, closing this as confirmation bias until someone can provide better evidence than "i noticed a couple mutants near the same place".

the petz code is just terrible, the previous bits of code are only for *"captured"* animals which don't have a texture already. if the animal isn't capture, but is breed-able, then [this block](https://gitea.your-land.de/your-land/petz/src/commit/35d400a31c25f42b5a8a2693fcdf023e21ed8e71/petz/api/api_init_prop.lua#L198-L236) covers which variant is chosen. mutants are a 1 in 200 chance. in any event, the variant that's chosen has *nothing* to do with the location where it spawns, closing this as [confirmation bias](https://en.wikipedia.org/wiki/Confirmation_bias#Biased_memory_recall_of_information) until someone can provide better evidence than "i noticed a couple mutants near the same place".
flux closed this issue 2024-03-27 19:57:04 +00:00
flux added the
5. result/cannot reproduce
label 2024-03-27 19:57:12 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#6574
No description provided.