|
|
|
@ -541,6 +541,25 @@ string Units::getRaceName(df::unit* unit)
|
|
|
|
|
return getRaceNameById(unit->race);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void df_unit_get_physical_description(df::unit* unit, string* out_str)
|
|
|
|
|
{
|
|
|
|
|
static auto* const fn =
|
|
|
|
|
reinterpret_cast<void(THISCALL *)(df::unit*, string*)>(
|
|
|
|
|
Core::getInstance().vinfo->getAddress("unit_get_physical_description"));
|
|
|
|
|
if (fn)
|
|
|
|
|
fn(unit, out_str);
|
|
|
|
|
else
|
|
|
|
|
*out_str = "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
string Units::getPhysicalDescription(df::unit* unit)
|
|
|
|
|
{
|
|
|
|
|
CHECK_NULL_POINTER(unit);
|
|
|
|
|
string str;
|
|
|
|
|
df_unit_get_physical_description(unit, &str);
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// get plural of race name (used for display in autobutcher UI and for sorting the watchlist)
|
|
|
|
|
string Units::getRaceNamePluralById(int32_t id)
|
|
|
|
|
{
|
|
|
|
|