1
This commit is contained in:
parent
c98915e6fc
commit
df2251c4cd
@ -1125,9 +1125,11 @@ void Creature::Initialize()
|
|||||||
SERVER_FRAME_RATE * mt::Param::s().nature_recover_hp_interval,
|
SERVER_FRAME_RATE * mt::Param::s().nature_recover_hp_interval,
|
||||||
[this] (int event, const a8::Args* args) mutable
|
[this] (int event, const a8::Args* args) mutable
|
||||||
{
|
{
|
||||||
|
if (a8::TIMER_EXEC_EVENT == event) {
|
||||||
if (!dead) {
|
if (!dead) {
|
||||||
if (GetHP() + 1 < GetMaxHP()) {
|
if (GetHP() + 1 < GetMaxHP()) {
|
||||||
|
AddHp(GetMaxHP() * mt::Param::s().nature_recover_hp_rate);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user