예제 #1
0
        private void update_value()
        {
            if (this.fData.Count != 1)
            {
                this.ValBox.Text = "(multiple tokens)";
                return;
            }
            int _value = DamageForm.get_value((int)this.DmgBox.Value, this.fData[0].Modifier, this.HalveBtn.Checked);

            this.ValBox.Text = _value.ToString();
        }
예제 #2
0
        internal void DoDamage(CombatData data, EncounterCard card, int damage, List <DamageType> types, bool halve_damage)
        {
            int damageModifier = 0;

            if (card != null)
            {
                damageModifier = card.GetDamageModifier(types, data);
            }
            int _value = DamageForm.get_value(damage, damageModifier, halve_damage);

            this.DamageCommand.AddTarget(data, _value);
            //if (data.TempHP > 0)
            //{
            //	int num = Math.Min(data.TempHP, _value);
            //	CombatData tempHP = data;
            //	tempHP.TempHP = tempHP.TempHP - num;
            //	_value -= num;
            //}
            //CombatData combatDatum = data;
            //combatDatum.Damage = combatDatum.Damage + _value;
        }