1
This commit is contained in:
parent
0a2dd098a2
commit
968b825a5d
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user