Beispiel #1
0
        public void Roll(RollType rollType, IHasTurn hasTurn, IRollData rollData)
        {
            RollDictID rollDictID = new RollDictID(hasTurn, rollType);

            if (RollAlterationDict.ContainsKey(rollDictID))
            {
                foreach (IRollDataAlteration rollDataAlteration in RollAlterationDict[rollDictID])
                {
                    rollDataAlteration.Alter(rollData);
                }
            }

            int rollInt = MyAdvantageRoller.Roll(rollData.MyAdvantageSetter);

            rollData.SetRoll(rollInt);
        }
Beispiel #2
0
 public void Alter(IRollData rollData)
 {
     rollData.AddMod(MyDexMod);
 }