montana05 wrote: ↑Tue Feb 16, 2021 1:04 pm
However, 2 ships with 10% role isn't automatically 20%, it just raises the chances to be spawned more often in the "lower" level. Like usually, if I didn't understand it correct please correct me, I am always happy to learn.
As I understand it, 0.1 isn't a 10% chance of appearing but rather a 10% chance of a 'share' in appearing. If they were the only ships with the pirate role in the game then they would appear 100% of the time whenever the game spawned a pirate.
The more ships there are however (through oxps for example) then the more that chance gets diluted. In order to accurately calculate its chance of appearing then you need to have the role weights of all the other ships with that role.
So if you have a total of 100 ships (and no others), each with role 'pirate (0.1)' then each ship would have a 1% chance of appearing, just as it would if they were all pirate (0.5).
However, the fraction listed is relevant for having some ships be rarer or more common than others. So for example, tsoj could wish to make the green ship rarer than the blue ship by giving it a role of pirate '0.05' rather than 0.1. This proportional difference would be accurate regardless of what other oxps were installed
but how rare they were in relation to other ships would depend not only on the role weight of other ships but also the number of other ships installed.
When we make a new ship, we're increasing the number of lottery tickets for their role(s). Some ships come with more tickets than others but each time we add more tickets we reduce the chance of those with a ticket having one of their numbers come up.