This commit is contained in:
aozhiwei 2024-01-15 14:38:09 +08:00
parent 35aededcf4
commit 0a2dd098a2

View File

@ -372,7 +372,7 @@ void Ability::GMClearAttr()
std::vector<std::string> Ability::GMShowAttrs()
{
std::vector<std::string> strings;
strings.push_back(a8::Format("curr_hp:%f max_hp:%f atk:%f def:%f block:%f crit:%f",
strings.push_back(a8::Format("curr_hp:%f max_hp:%f atk:%f def:%f block:%f crit:%f level:%d exp:%f",
{
owner_.Get()->GetHP(),
owner_.Get()->GetNetData()->GetMaxHP(),
@ -380,6 +380,8 @@ std::vector<std::string> Ability::GMShowAttrs()
owner_.Get()->GetNetData()->GetDef(),
owner_.Get()->GetNetData()->GetBlock(),
owner_.Get()->GetNetData()->GetCrit(),
owner_.Get()->GetHeroLevel(),
owner_.Get()->GetHeroExp()
}));
{
std::vector<std::string> tmp_strings;