Exemplo n.º 1
0
    private void GenerateBio(CellGroup birthGroup)
    {
        int rngOffset = RngOffsets.AGENT_GENERATE_BIO + unchecked ((int)Id);

        IsFemale     = birthGroup.GetLocalRandomFloat(BirthDate, rngOffset++) > 0.5f;
        BaseCharisma = MinAttributeValue + birthGroup.GetLocalRandomInt(BirthDate, rngOffset++, AttributeGenMax);
        BaseWisdom   = MinAttributeValue + birthGroup.GetLocalRandomInt(BirthDate, rngOffset++, AttributeGenMax);
    }
 public float GetLocalRandomFloat(int date, int iterationOffset)
 {
     return(CoreGroup.GetLocalRandomFloat(date, iterationOffset + unchecked ((int)Id)));
 }