This commit is contained in:
aozhiwei 2024-03-28 19:51:21 +08:00
parent 737f7a056a
commit b26726abfa
3 changed files with 3 additions and 3 deletions

View File

@ -1124,8 +1124,7 @@ void Creature::Initialize()
for (auto& node : cond_buffs_) {
INIT_LIST_HEAD(&node);
}
if (IsHuman()) {
#if 0
if (IsHuman() && mt::Param::s().nature_recover_hp_switch) {
a8::XTimerWp nature_recover_hp_timer;
nature_recover_hp_idle_timer = room->xtimer.SetIntervalWpEx
(
@ -1160,7 +1159,6 @@ void Creature::Initialize()
}
},
&xtimer_attacher);
#endif
}
}

View File

@ -82,6 +82,7 @@ namespace mt
s_.block_effect_range.push_back(a8::XValue(str).GetDouble());
}
}
s_.nature_recover_hp_switch = a8::XValue(GetStringParam("nature_recover_hp_switch", "0"));
s_.nature_recover_hp_idletime = a8::XValue(GetStringParam("nature_recover_hp_idletime", "3"));
s_.nature_recover_hp_interval = a8::XValue(GetStringParam("nature_recover_hp_interval1", "1"));
s_.nature_recover_hp_rate = a8::XValue(GetStringParam("nature_recover_hp_rate", "0.1")).GetDouble();

View File

@ -130,6 +130,7 @@ namespace mt
int revive_count = 1;
int pvp_revive_time = 10;
int nature_recover_hp_switch = 0;
int nature_recover_hp_idletime = 3;
int nature_recover_hp_interval = 1;
float nature_recover_hp_rate = 0.1f;