1
This commit is contained in:
parent
45e5c2b80e
commit
21a04fd567
@ -94,7 +94,7 @@ void KillMgr::FillHintInfo(Human* dead_hum, KillInfo* info, RollMsgHintInfo& hin
|
||||
{
|
||||
hint_info.killer_name = "";
|
||||
hint_info.hint_template = MetaMgr::Instance()->GetTextElements
|
||||
(a8::Format("battle_server_dead_text_buff_%d", {1}));
|
||||
(a8::Format("battle_server_dead_text_buff_%d", {info->weapon_id}));
|
||||
if (!hint_info.hint_template) {
|
||||
hint_info.hint_template = MetaMgr::Instance()->GetTextElements
|
||||
("battle_server_dead_text_buff_default");
|
||||
@ -105,7 +105,7 @@ void KillMgr::FillHintInfo(Human* dead_hum, KillInfo* info, RollMsgHintInfo& hin
|
||||
{
|
||||
hint_info.killer_name = "";
|
||||
hint_info.hint_template = MetaMgr::Instance()->GetTextElements
|
||||
(a8::Format("battle_server_dead_text_explosion_%d", {1}));
|
||||
(a8::Format("battle_server_dead_text_explosion_%d", {info->weapon_id}));
|
||||
if (!hint_info.hint_template) {
|
||||
hint_info.hint_template = MetaMgr::Instance()->GetTextElements
|
||||
("battle_server_dead_text_explosion_default");
|
||||
@ -116,6 +116,10 @@ void KillMgr::FillHintInfo(Human* dead_hum, KillInfo* info, RollMsgHintInfo& hin
|
||||
{
|
||||
Entity* killer = dead_hum->room->GetEntityByUniId(info->killer_id);
|
||||
if (killer) {
|
||||
MetaData::Equip* equip_meta = MetaMgr::Instance()->GetEquip(info->weapon_id);
|
||||
if (equip_meta) {
|
||||
hint_info.weapon_text_icon = equip_meta->i->text_icon();
|
||||
}
|
||||
hint_info.killer_name = killer->GetName();
|
||||
if (info->killer_id == dead_hum->GetUniId()) {
|
||||
//${dead.name} 自杀
|
||||
|
Loading…
x
Reference in New Issue
Block a user