I like that Petz mutants, but they don't appear randomly ... #6574
Labels
No Label
1. kind/balancing
1. kind/breaking
1. kind/bug
1. kind/construction
1. kind/documentation
1. kind/enhancement
1. kind/griefing
1. kind/invalid
1. kind/meme
1. kind/node limit
1. kind/other
1. kind/protocol
2. prio/controversial
2. prio/critical
2. prio/elevated
2. prio/good first issue
2. prio/interesting
2. prio/low
3. source/art
3. source/client
3. source/engine
3. source/ingame
3. source/integration
3. source/lag
3. source/license
3. source/mod upstream
3. source/unknown
3. source/website
4. step/approved
4. step/at work
4. step/blocked
4. step/discussion
4. step/help wanted
4. step/needs confirmation
4. step/partially fixed
4. step/question
4. step/ready to deploy
4. step/ready to QA test
4. step/want approval
5. result/cannot reproduce
5. result/duplicate
5. result/fixed
5. result/maybe
5. result/wontfix
ugh/petz
ugh/QA main
ugh/QA NOK
ugh/QA OK
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: your-land/bugtracker#6574
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
... 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.
I think that's because some animals always seem to spawn in groups.
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
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.
chance of a white elephant would be 1/4. they aren't that common. hm.
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.
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.
elephants don't spawn in clusters.
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 ...
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".