Example #1
0
 public EffectProxyDefinitionBuilder SetAttack(bool canAttack, RuleDefinitions.ProxyAttackMethod attackMethod,
                                               RuleDefinitions.DieType damageDie, string damageType)
 {
     Definition.SetCanAttack(canAttack);
     Definition.SetAttackMethod(attackMethod);
     Definition.SetDamageDie(damageDie);
     Definition.SetDamageType(damageType);
     return(this);
 }
Example #2
0
 public void SetAdditionalDamageWhenHitFields(bool additionalDamageWhenHit, DamageDefinition additionalDamageType, ConditionDefinition.DamageQuantity additionalDamageQuantity,
                                              RuleDefinitions.DieType additionalDamageDieType, int additionalDamageDieNumber)
 {
     Traverse.Create(condition).Field("additionalDamageWhenHit").SetValue(additionalDamageWhenHit);
     Traverse.Create(condition).Field("additionalDamageType").SetValue(additionalDamageType.Name);
     Traverse.Create(condition).Field("additionalDamageQuantity").SetValue(additionalDamageQuantity);
     Traverse.Create(condition).Field("additionalDamageDieType").SetValue(additionalDamageDieType);
     Traverse.Create(condition).Field("additionalDamageDieNumber").SetValue(additionalDamageDieNumber);
 }
Example #3
0
 public EffectDescriptionBuilder SetTargetFiltering(RuleDefinitions.TargetFilteringMethod targetFilteringMethod, RuleDefinitions.TargetFilteringTag targetFilteringTag,
                                                    int poolFilterDiceNumber, RuleDefinitions.DieType poolFilterDieType)
 {
     effect.SetTargetFilteringMethod(targetFilteringMethod);
     effect.SetTargetFilteringTag(targetFilteringTag);
     effect.SetPoolFilterDiceNumber(poolFilterDiceNumber);
     effect.SetPoolFilterDieType(poolFilterDieType);
     return(this);
 }
        public EffectFormBuilder SetTempHPForm(int bonusHitPoints, RuleDefinitions.DieType dieType, int diceNumber)
        {
            effectForm.FormType = EffectForm.EffectFormType.TemporaryHitPoints;
            TemporaryHitPointsForm tempHPForm = new TemporaryHitPointsForm
            {
                BonusHitPoints = bonusHitPoints,
                DieType        = dieType,
                DiceNumber     = diceNumber
            };

            effectForm.SetTemporaryHitPointsForm(tempHPForm);
            return(this);
        }
        public EffectFormBuilder SetDamageForm(bool versatile, RuleDefinitions.DieType versatileDieType, string damageType, int bonusDamage,
                                               RuleDefinitions.DieType dieType, int diceNumber, RuleDefinitions.HealFromInflictedDamage healFromInflictedDamage,
                                               List <RuleDefinitions.TrendInfo> damageBonusTrends)
        {
            effectForm.FormType = EffectForm.EffectFormType.Damage;
            DamageForm damageForm = new DamageForm();

            damageForm.SetVersatile(versatile);
            damageForm.VersatileDieType = versatileDieType;
            damageForm.BonusDamage      = bonusDamage;
            damageForm.DamageType       = damageType;
            damageForm.DiceNumber       = diceNumber;
            damageForm.DieType          = dieType;
            damageForm.SetHealFromInflictedDamage(healFromInflictedDamage);
            damageForm.SetField("damageBonusTrends", damageBonusTrends);
            effectForm.DamageForm = damageForm;
            return(this);
        }
        public EffectFormBuilder SetHealingForm(RuleDefinitions.HealingComputation healingComputation,
                                                int bonusHitPoints, RuleDefinitions.DieType dieType, int diceNumber, bool variablePool,
                                                RuleDefinitions.HealingCap healingCap)
        {
            effectForm.FormType = EffectForm.EffectFormType.Healing;

            HealingForm healingForm = new HealingForm
            {
                HealingComputation = healingComputation,
                BonusHealing       = bonusHitPoints,
                DieType            = dieType,
                DiceNumber         = diceNumber,
                VariablePool       = variablePool,
                HealingCap         = healingCap
            };

            effectForm.SetHealingForm(healingForm);
            return(this);
        }
 public void SetHitDice(RuleDefinitions.DieType die)
 {
     Traverse.Create(myClass).Field("hitDice").SetValue(die);
 }
Example #8
0
 public void SetSpecialDurationFields(bool specialDuration, RuleDefinitions.DurationType durationType, RuleDefinitions.DieType durationParameterDie,
                                      int durationParameter, RuleDefinitions.TurnOccurenceType turnOccurence)
 {
     Traverse.Create(condition).Field("specialDuration").SetValue(specialDuration);
     Traverse.Create(condition).Field("durationType").SetValue(durationType);
     Traverse.Create(condition).Field("durationParameterDie").SetValue(durationParameterDie);
     Traverse.Create(condition).Field("durationParameter").SetValue(durationParameter);
     Traverse.Create(condition).Field("turnOccurence").SetValue(turnOccurence);
 }
Example #9
0
 public CharacterClassDefinitionBuilder SetHitDice(RuleDefinitions.DieType die)
 {
     Definition.SetHitDice(die);
     return(this);
 }