private void createItem() { DSRItemCategory category = cmbCategory.SelectedItem as DSRItemCategory; DSRItem item = lbxItems.SelectedItem as DSRItem; int id = item.ID; if (item.UpgradeType == DSRItem.Upgrade.PyroFlame || item.UpgradeType == DSRItem.Upgrade.PyroFlameAscended) { id += (int)nudUpgrade.Value * 100; } else { id += (int)nudUpgrade.Value; } if (item.UpgradeType == DSRItem.Upgrade.Infusable || item.UpgradeType == DSRItem.Upgrade.InfusableRestricted) { DSRInfusion infusion = cmbInfusion.SelectedItem as DSRInfusion; id += infusion.Value; } Hook.GetItem(category.ID, id, (int)nudQuantity.Value); }
private void cmbInfusion_SelectedIndexChanged(object sender, EventArgs e) { DSRInfusion infusion = cmbInfusion.SelectedItem as DSRInfusion; nudUpgrade.Maximum = infusion.MaxUpgrade; }