Incidencia #48306

citizens_convert() not weighting nationalities by the number of citizens

Abrir Fecha: 2023-06-27 18:03 Última actualización: 2023-06-27 18:03

Informador:
Propietario:
(Ninguno)
Tipo:
Estado:
Open
Componente:
Hito:
(Ninguno)
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Ninguno
Fichero:
Ninguno

Details

At least surprisingly, if not erroneously, citizens_convert() converts citizen of a random nationality, not random citizen. The difference this makes is that all nationalities get the same weight, regardless how many citizens there are. If there's 1 citizen on nationality A and 5 citizens of nationality B, the citizen of A has 50% chance of getting converted and each citizen of B has 10% chance of getting converted.

Ticket History (1/1 Histories)

2023-06-27 18:03 Updated by: cazfi
  • New Ticket "citizens_convert() not weighting nationalities by the number of citizens" created

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Entrar