Store tool names in RFR

develop
Japa 2018-03-05 19:00:18 +05:30
parent ebf9651896
commit c765e12254
1 changed files with 6 additions and 0 deletions

@ -27,6 +27,7 @@
#include "df/item_threadst.h"
#include "df/item_toolst.h"
#include "df/itemdef_instrumentst.h"
#include "df/itemdef_toolst.h"
#include "df/itemimprovement.h"
#include "df/itemimprovement_art_imagest.h"
#include "df/itemimprovement_bandsst.h"
@ -641,6 +642,11 @@ DFHack::command_result GetItemList(DFHack::color_ostream &stream, const DFHack::
send_instrument->set_description(DF2UTF(instrument->description));
break;
}
case df::enums::item_type::TOOL:
{
VIRTUAL_CAST_VAR(tool, df::itemdef_toolst, item);
mat_def->set_name(DF2UTF(tool->name));
}
default:
break;
}