mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-09 22:20:24 +00:00
[Quest API] Add GetBodyTypeName() to Perl/Lua. (#1863)
* [Quest API] Add GetBodyTypeName() to Perl/Lua. - Add GetBodyTypeName() and GetBodyTypeMap() helper methods. - Add quest::getbodytypename(bodytype_id) to Perl. - Add eq.get_body_type_name(bodytype_id) to Lua. * ShowStats() cleanup.
This commit is contained in:
+13
-1
@@ -1765,12 +1765,24 @@ void Mob::ShowStats(Client* client)
|
||||
}
|
||||
|
||||
// Body
|
||||
auto bodytype_name = EQ::constants::GetBodyTypeName(target->GetBodyType());
|
||||
client->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Body | Size: {:.2f} Type: {}",
|
||||
target->GetSize(),
|
||||
target->GetBodyType()
|
||||
(
|
||||
bodytype_name.empty() ?
|
||||
fmt::format(
|
||||
"{}",
|
||||
target->GetBodyType()
|
||||
) :
|
||||
fmt::format(
|
||||
"{} ({})",
|
||||
bodytype_name,
|
||||
target->GetBodyType()
|
||||
)
|
||||
)
|
||||
).c_str()
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user