public override void Edit(Monster monster) { InputAddedStatus savedDialog = new InputAddedStatus(allowMP); savedDialog.CostIsDelay = costIsDelay; savedDialog.DelRanks = delRanks; savedDialog.PotRanks = potRanks; savedDialog.DurRanks = durRanks; savedDialog.CoSRanks = cosRanks; savedDialog.Gravity = gravity; savedDialog.BaseStatus = baseStatus; if (savedDialog.ShowDialog() == DialogResult.OK) { slotCost = savedDialog.SlotCost(); costIsDelay = savedDialog.CostIsDelay; if (savedDialog.CostIsDelay) { delayMod = savedDialog.DelayCost(); addedCostString = " (Cost: " + delayMod.ToString() + " +D)"; mpScale = 0; } else { mpScale = savedDialog.MPScale(); addedCostString = " (Cost: " + mpScale.ToString() + " MP/Tier)"; delayMod = 0; } cos = Int32.Parse(savedDialog.CoS()); gravity = savedDialog.Gravity; baseStatus = savedDialog.BaseStatus; cosRanks = savedDialog.CoSRanks; durRanks = savedDialog.DurRanks; potRanks = savedDialog.PotRanks; delRanks = savedDialog.DelRanks; statusString = savedDialog.StatusString(); name = "Added Status: " + savedDialog.CoS() + " CoS " + savedDialog.StatusString() + addedCostString; statusRiderText = " <" + savedDialog.CoS() + "% " + statusString + ">"; } }
public override bool Prepare(Monster m) { allowMP = true; if (this.GetParent() == m.BasicAttack) { allowMP = false; } if (base.Prepare(m)) { InputAddedStatus savedDialog = new InputAddedStatus(allowMP); if (savedDialog.ShowDialog() == DialogResult.OK) { slotCost = savedDialog.SlotCost(); costIsDelay = savedDialog.CostIsDelay; if (costIsDelay) { delayMod = savedDialog.DelayCost(); addedCostString = " (Cost: " + delayMod.ToString() + " +D)"; } else { mpScale = savedDialog.MPScale(); addedCostString = " (Cost: " + mpScale.ToString() + " MP/Tier)"; } cos = Int32.Parse(savedDialog.CoS()); gravity = savedDialog.Gravity; baseStatus = savedDialog.BaseStatus; cosRanks = savedDialog.CoSRanks; durRanks = savedDialog.DurRanks; potRanks = savedDialog.PotRanks; delRanks = savedDialog.DelRanks; statusString = savedDialog.StatusString(); name = "Added Status: " + cos + " CoS " + statusString + addedCostString; statusRiderText = " <" + cos + "% " + statusString + ">"; return true; } else { return false; } } else { return false; } }