DFHack/scripts#6 (link fixed)
Specific items addressed by an issue:
- All ban-able items must be cook-able to be banned.
- Checks to ensure that kitchen.exc_types[index] exists before attempting to write to it.
-- Ran into issues with the original script attempting to ban non-cookable plant items, which lead to mismatches in the length of the kitchen.exc_types versus the others.
- Change the index variable in the ban_cooking function from a key lookup to a numerical index value
- Fixed mill and thread banning, as they referenced local variable 'm', but didn't set it.
-- I don't know if there are any cook-able mill or thread plants...
DFHack/scripts#6 (link fixed)
Specific items addressed by an issue:
-- Ran into issues with the original script attempting to ban non-cookable plant items, which lead to mismatches in the length of the kitchen.exc_types versus the others.
-- I don't know if there are any cook-able mill or thread plants...