...
private static ItemGain outCome = new ItemGain();
outCome.type = ItemDropType.Weapon;
outCome.id = 4;
outCome.level = 1;
outCome.quantity = 1;
outCome.chance = 100;
EquipShortcut equipShortcut = new EquipShortcut();
equipShortcut = (EquipShortcut)outCome.CreateShortcut();
Equipment equipment = equipShortcut.Setting;
equipment.level[0].bonus.custom.statusBonus[0].statusID = 1;
equipment.level[0].bonus.custom.statusBonus[0].bonus = 999;
//didn't work
//equipment.level[0].bonus.custom.statusBonus[1].statusID = 4;
//equipment.level[0].bonus.custom.statusBonus[1].bonus = 9999;
It looks like you're new here. If you want to get involved, click one of these buttons!
The actual bonuses of an in-game equipment are stored in the EquipShortcut instance representing it, i.e. changing the settings will only change future equipments that are instantiated. The status value bonuses of an EquipShortcut are not accessible from the outside, though ... but you can change them via the ChangeStatusValueBonus function :)
E.g.:
equipShortcut.ChangeStatusValueBonus(statusID, value, SimpleOperator.Add);
This will add value to the status value bonus for the status value with ID/index statusID.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!