This commit is contained in:
aozhiwei 2024-04-17 17:55:12 +08:00
parent 8abd5605ec
commit c3d990c5c0
3 changed files with 12 additions and 0 deletions

View File

@ -1779,6 +1779,15 @@ void Creature::CheckSpecObject(int new_poly_flags)
{
if (a8::TIMER_EXEC_EVENT == event) {
if (!dead) {
float dmg = GetMaxHP() * mt::Param::s().magma_dec_hp_rate;
float dmg_out = 0.0f;
DecHP(dmg, VP_Magma,
TEXT("battle_server_killer_magma", "magma"), VW_Magma,
VP_Magma,
TEXT("battle_server_killer_magma", "magma"),
dmg_out,
0,
0);
}
}
},

View File

@ -61,6 +61,8 @@ namespace mt
s_.battle_gain_exp_rate_killer = GetFloatParam("battle_gain_exp_rate_killer", 0.5);
s_.battle_gain_exp_rate_teammate = GetFloatParam("battle_gain_exp_rate_teammate", 0.3);
s_.magma_dec_hp_rate = GetFloatParam("magma_dec_hp_rate", 0.1);
#ifdef MYDEBUG1
s_.moba_room_time = 60;
s_.moba_kill_times = GetIntParam("moba_kill_times", 1);

View File

@ -147,6 +147,7 @@ namespace mt
int battling_grass_hide_delay_time = 0;
int frag_dinshen_time = 1200;
float magma_dec_hp_rate = 0.1;
std::vector<float> block_effect_range;
std::vector<float> crit_effect_range;