Пример #1
0
		public override void Edit(Monster monster)
		{
			InputName d = new InputName();
			d.SetName(savedName);
			InputEffectType typeDialog = new InputEffectType();
			if (d.ShowDialog() == DialogResult.OK && typeDialog.ShowDialog() == DialogResult.OK)
			{
				savedName = d.ReturnName();
				if (savedName.Length > 0)
				{
					name = "[" + savedName + "]";
					type = typeDialog.SelectedType();
					if (type == AttackType.PhysicalEffect)
					{
						baseDelay = 45;
						keywords.Add(Keyword.Technique);
						keywords.Remove(Keyword.Magic);
						keywords.Remove(Keyword.Spell);
					}
					else
					{
						MPCost = 21;
						mpPerTierAfterOne = 3;
						keywords.Add(Keyword.Magic);
						keywords.Add(Keyword.Spell);
						keywords.Remove(Keyword.Technique);
					}
				}
			}
		}
Пример #2
0
		public override bool Prepare(Monster m)
		{
			parent = m;
			InputName d = new InputName();
			InputEffectType typeDialog = new InputEffectType();
			if (d.ShowDialog() == DialogResult.OK && typeDialog.ShowDialog() == DialogResult.OK)
			{
				savedName = d.ReturnName();
				if (savedName.Length > 0)
				{
					name = "[" + savedName + "]";
					type = typeDialog.SelectedType();
					if (type == AttackType.PhysicalEffect)
					{
						baseDelay = 45;
						keywords.Add(Keyword.Technique);
					}
					else
					{
						MPCost = 21;
						mpPerTierAfterOne = 3;
						keywords.Add(Keyword.Magic);
						keywords.Add(Keyword.Spell);
					}
					return true;
				}
				else
				{
					return false;
				}
			}
			else
			{
				return false;
			}
		}