seeker / dwarftherapist

Automatically exported from code.google.com/p/dwarftherapist
Other
0 stars 0 forks source link

Add current_job or is_idle to d object in filter scripts #462

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'd like to be able to see what custom professions my idle dwarves have, and 
then tweak the labors accordingly.  However, I can't filter based on current 
job or based on whether the dwarf is idle.  Please add this functionality.

To accomplish the above, I would like to group by profession, and use this 
filter script, based on the number for No Job:

d.can_set_labors() &&
d.current_job() == -1

Though, since On Break has the same number, maybe an alternative method that 
separates the two out would be better for that particular case.  

Original issue reported on code.google.com by tatharn...@gmail.com on 30 Jul 2013 at 3:17

GoogleCodeExporter commented 8 years ago
Adding the feature in issue #316 would also help accomplish my end goal, but in 
a different way that doesn't use filters.  It would be very helpful to have 
both features, since even though this is better for seeing what professions my 
idle dwarves have, a secondary grouping feature would be helpful to see other 
things that would affect my decision-making.  

One example of the latter is where I'm looking to put military dwarves into 
squads.  I use multiple custom professions to mark which dwarves should be 
using which weapon, but I don't always know whether they are in a squad yet or 
still need to be assigned to one.  Being able to group first by profession and 
then by squad would help greatly in that case.

Original comment by tatharn...@gmail.com on 31 Jul 2013 at 6:19