Пример #1
0
		public override void Edit(Monster monster)
		{
			if (monster.Tier == 1)
			{
				slotCost = 3;
			}
			else
			{
				slotCost = 1;
			}
			InputTectonicType dialog = new InputTectonicType();
			if (dialog.ShowDialog() == DialogResult.OK)
			{
				name = "Tectonic";
				if (dialog.NonElemental())
				{
					name += " - Strips Element";
					slotCost += 1;
					stripsElement = true;
					InputAdditionalCost dialog2 = new InputAdditionalCost(5, 20);
					if (dialog2.ShowDialog() == DialogResult.OK)
					{
						if (dialog2.Result() == AdditionalCost.Delay)
						{
							name += " (Cost: +5D)";
							delayMod = 5;
							mpScale = 0;
						}
						else
						{
							name += " (Cost: +20 MP/Tier)";
							delayMod = 0;
							mpScale = 20;
						}
					}
				}
				else
				{
					delayMod = 0;
					mpScale = 0;
					stripsElement = false;
				}
				if (dialog.Result() == TectonicResult.PowerMod)
				{
					name += " - Increased Power";
					powerMod = 3;
				}
				else
				{
					name += " - Delays struck targets by 10D";
					powerMod = 0;
				}
			}
		}
Пример #2
0
		public override bool Prepare(Monster m)
		{
			if (this.GetParent() == m.BasicAttack)
			{
				Complain(4);
				return false;
			}
			if (base.Prepare(m))
			{
				if (m.Tier == 1)
				{
					slotCost += 2;
				}
				InputTectonicType dialog = new InputTectonicType();
				if (dialog.ShowDialog() == DialogResult.OK)
				{
					if (dialog.NonElemental())
					{
						name += " - Strips Element";
						slotCost += 1;
						stripsElement = true;
						InputAdditionalCost dialog2 = new InputAdditionalCost(5, 20);
						if (dialog2.ShowDialog() == DialogResult.OK)
						{
							if (dialog2.Result() == AdditionalCost.Delay)
							{
								name += " (Cost: +5D)";
								delayMod = 5;
							}
							else
							{
								name += " (Cost: +20 MP/Tier)";
								mpScale = 20;
							}
						}
					}
					if (dialog.Result() == TectonicResult.PowerMod)
					{
						name += " - Increased Power";
						powerMod = 3;
					}
					else
					{
						name += " - Delays struck targets by 10D";
					}
					return true;
				}
				else
				{
					return false;
				}
			}
			else
			{
				return false;
			}
		}