Exemplo n.º 1
0
        public SaveSituation(Sheet _char, DcProducer cp, AbilityType abilityType, SaveContext context, SpellLibrary.Spell spell = null)
        {
            this.saveProducer = _char;
            this.dcProducer   = cp;
            this.abilityType  = abilityType;
            this.spell        = spell;
            this.context      = context;

            saveValue = new Gauge(abilityType.ToString().ToLower() + " save");
            DC        = new Gauge("DC");
        }
Exemplo n.º 2
0
        //skill type is optional
        public CheckSituation(Sheet _char, DcProducer cp, AbilityType abilityType, SkillType skillType = SkillType.NULL)          //add a check producer for second this.
        {
            this.checkProducer = _char;
            this.dcProducer    = cp;
            this.abilityType   = abilityType;
            this.skillType     = skillType;

            string name = abilityType.ToString().ToLower();

            if (skillType != SkillType.NULL)
            {
                name += " (" + skillType.ToString().ToLower() + ")";
            }

            checkValue = new Gauge(name + " check");
            DC         = new Gauge("DC");
        }