Beispiel #1
0
    public void MakeDisorderByProbability(Disorder.DisorderType type, int TriggerCondition)
    {
        System.Random random = new System.Random();
        int           x      = random.Next(1, 100);

        if (x < TriggerCondition)
        {
            if (PlayerCharacter.GetComponent <CharacterModel>().ContainDisorder(type))
            {
                PlayerCharacter.GetComponent <CharacterModel>().GetDisorder(type);
                InGameUIScript.Instance.DisorderNotice(type);
            }
        }
    }
Beispiel #2
0
 bool CheckDisorderTriggerCondition(Disorder.DisorderType type)
 {
     return(true);
 }