コード例 #1
0
        void AddStressToMark(StressDrainType stresstype, int eventAmount)
        {
            int amount = eventAmount;


            theMark.currentStress += amount;
            CapStatsMark();
        }
コード例 #2
0
        void AddStressToCharacters(StressDrainType stresstype, int eventAmount, Boolean isAll, Person affectedperson)
        {
            int amount = eventAmount;

            if (isAll == true)
            {
                for (int i = 0; i < partyMembers.Count; ++i)
                {
                    partyMembers[i].currentStress += amount;
                    CapStatsCharacter(i);
                }
            }
            else
            {
                for (int i = 0; i < partyMembers.Count; ++i)
                {
                    if (partyMembers[i] == affectedperson)
                    {
                        partyMembers[i].currentStress += amount;
                        CapStatsCharacter(i);
                    }
                }
            }
        }
コード例 #3
0
 public void GainStressSingleMark(StressDrainType stresstype, int eventamount)
 {
     AddStressToMark(stresstype, eventamount);
 }
コード例 #4
0
 public void GainStressSingleCharacter(StressDrainType stresstype, int eventamount, Person person)
 {
     AddStressToCharacters(stresstype, eventamount, false, person);
 }
コード例 #5
0
 public void GainStress(StressDrainType stresstype)
 {
     AddStressToMark(stresstype, 0);
     AddStressToCharacters(stresstype, 0, true, null);
 }