Ejemplo n.º 1
0
		public override void Edit(Monster monster)
		{
			InputInflictsStatus savedDialog = new InputInflictsStatus();
			savedDialog.LoadFromString(statusString);
			savedDialog.CostIsDelay = costIsDelay;
			if (savedDialog.ShowDialog() == DialogResult.OK)
			{
				slotCost = savedDialog.SlotCost();
				string addedCostString;
				if (savedDialog.CostIsDelay)
				{
					costIsDelay = true;
					delayMod = savedDialog.DelayCost();
					addedCostString = " (Cost: " + delayMod.ToString() + " +D)";
					mpScale = 0;
				}
				else
				{
					costIsDelay = false;
					mpScale = savedDialog.MPScale();
					addedCostString = " (Cost: " + mpScale.ToString() + " MP/Tier)";
					delayMod = 0;
				}
				statusString = savedDialog.StatusString();
				name = "Inflicts Status - " + statusString + addedCostString;
				statusRiderText = " <Inflicts " + statusString + ">";
			}
		}
Ejemplo n.º 2
0
		public override bool Prepare(Monster m)
		{
			if (this.GetParent() == m.BasicAttack)
			{
				Complain(4);
				return false;
			}
			if (base.Prepare(m))
			{
				InputInflictsStatus savedDialog = new InputInflictsStatus();
				if (savedDialog.ShowDialog() == DialogResult.OK)
				{
					slotCost = savedDialog.SlotCost();
					cosMod = savedDialog.CoSMod();
					baseCoSMod = cosMod;
					string addedCostString;
					if (savedDialog.CostIsDelay)
					{
						costIsDelay = true;
						delayMod = savedDialog.DelayCost();
						addedCostString = " (Cost: " + delayMod.ToString() + " +D)";
					}
					else
					{
						costIsDelay = false;
						mpScale = savedDialog.MPScale();
						addedCostString = " (Cost: " + mpScale.ToString() + " MP/Tier)";
					}
					statusString = savedDialog.StatusString();
					name = "Inflicts Status - " + statusString + addedCostString;
					statusRiderText = " <Inflicts " + statusString + ">";
					return true;
				}
				else
				{
					return false;
				}
			}
			else
			{
				return false;
			}
		}