This commit is contained in:
aozhiwei 2024-01-15 14:41:38 +08:00
parent 0a2dd098a2
commit 968b825a5d

View File

@ -4017,6 +4017,22 @@ void Creature::GenLevelAttr()
if (!handle.expired()) {
grow_attr_list_.push_back(handle);
}
#ifdef MYDEBUG
if (!handle.expired()) {
std::string source_name = a8::Format
("<-levelup.%d",
{
GetHeroLevel()
});
auto cb = std::make_shared<std::function<std::string()>>
(
[source_name] () -> std::string
{
return source_name;
});
GetAbility()->SetSource(handle, cb);
}
#endif
}
}
}