private void baseStatusButton_Click(object sender, EventArgs e) { InputStatus status = new InputStatus(true); if (status.ShowDialog(this) == DialogResult.OK) { baseStatus = status.ChosenString(); } if (baseStatus == "Delay +5") { baseStatus = "Delay"; } UpdateData(); }
private void baseStatusButton_Click(object sender, EventArgs e) { InputStatus status = new InputStatus(!statusList.Items.Contains("Delay")); if (status.ShowDialog(this) == DialogResult.OK) { string chosenStatus = status.ChosenString(); if (chosenStatus == "Delay +5") { chosenStatus = "Delay"; } statusList.Items.Add(chosenStatus); } UpdateData(); }
public override bool Prepare(Monster m) { if (this.GetParent() == m.BasicAttack) { Complain(4); return false; } InputStatus d = new InputStatus(false); if (d.ShowDialog() == DialogResult.OK) { String status = d.ChosenString(); if (status == "Stone" || status == "Sleep" || status == "Stop") { if (!m.HasLinkedStatusBonus) { slotCost = -1; m.HasLinkedStatusBonus = true; } } name = "Linked to Status: " + d.ChosenString(); return true; } else { return false; } }