Exemplo n.º 1
0
    public void OccurSociety()
    {
        if (Random.Range(0f, 1f) > societyOccurenceRate)
        {
            return;
        }

        Society society = societies[Random.Range(0, societies.Count)];

        Trait[] traits = society.GetTraitInfluenced();

        List <Trait> chosenTraits = new List <Trait>();

        for (int i = 0; i < modifiedTraitsPerSociety; i++)
        {
            chosenTraits.Add(traits[Random.Range(0, traits.Length)]);
        }


        EconomyManager.instance.TweakModifier(society, chosenTraits);


        PublishGloomyberg(society, chosenTraits);
        PopupSociety();
    }