@ -11,6 +11,7 @@ DFHack future
- digfort: improved csv parsing, add start() comment handling
- exterminate: allow specifying a caste (exterminate gob:male)
- siege-engine: engine quality and distance to target now affect accuracy.
- createitem: in adventure mode it now defaults to the controlled unit as maker.
DFHack v0.34.11-r4
@ -344,8 +344,16 @@ command_result df_createitem (color_ostream &out, vector <string> & parameters)
df::unit *unit = Gui::getSelectedUnit(out, true);
if (!unit)
{
out.printerr("No unit selected!\n");
return CR_FAILURE;
if (*gametype == game_type::ADVENTURE_ARENA || *gametype == game_type::ADVENTURE_MAIN)
// Use the adventurer unit
unit = world->units.active[0];
}
else
if (!Maps::IsValid())