This commit is contained in:
aozhiwei 2023-10-25 11:03:09 +08:00
parent 935b4e4980
commit 5bea65c585
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ A8_DECLARE_ENUM(SpecBuffId_e,
kInWater1BuffId = 7026, kInWater1BuffId = 7026,
kInWater2BuffId = 7027, kInWater2BuffId = 7027,
kInWater3BuffId = 7028, kInWater3BuffId = 7028,
kRecoverHpEffectBuffId = 7040,
kPullToWalkableBuffId = 8003, kPullToWalkableBuffId = 8003,
kDiveBuffId = 8054, kDiveBuffId = 8054,
kInvincibleBuffId = 1005, kInvincibleBuffId = 1005,

View File

@ -1136,7 +1136,7 @@ void Creature::Initialize()
if (!dead && !poisoning) { if (!dead && !poisoning) {
if (GetHP() + 1 < GetMaxHP()) { if (GetHP() + 1 < GetMaxHP()) {
AddHp(GetMaxHP() * mt::Param::s().nature_recover_hp_rate); AddHp(GetMaxHP() * mt::Param::s().nature_recover_hp_rate);
TryAddBuff(this, 7040); TryAddBuff(this, kRecoverHpEffectBuffId);
} }
} }
} }