This commit is contained in:
aozhiwei 2023-06-27 13:39:12 +08:00
parent d799fa3d26
commit 38beead6c1
4 changed files with 9 additions and 1 deletions

View File

@ -32,6 +32,11 @@ void OnceChgAttrBuff::InternalProcOnceChgAttr()
real_killer_id = caster_.Get()->GetUniId();
real_killer_name = caster_.Get()->GetName();
}
#ifdef DEBUG
if (caster_.Get()->IsPlayer()) {
a8::XPrintf("once chgattr %d %d\n", {real_killer_id, real_killer_name});
}
#endif
if (meta->_int_buff_param2 == 1) {
//绝对值
if (meta->_buff_param3 > 0) {

View File

@ -306,7 +306,7 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string killer_name, in
BeKill(killer_id, killer_name, weapon_id, real_killer_id, real_killer_name);
SyncAroundPlayers(__FILE__, __LINE__, __func__);
} else {
if ((HasNoDownedTeammate() && !room->IsPveRoom()) ||
if ((mt::Param::s().downed_switch && HasNoDownedTeammate() && !room->IsPveRoom()) ||
GetInventory(IS_SHEN_BAO) > 0) {
SetHP(GetMaxHP() *
std::min(1.0f, (float)mt::Param::GetFloatParam("downed_recover_hp")));

View File

@ -47,6 +47,7 @@ namespace mt
s_.pre_client_shot = GetIntParam("pre_client_shot", 0);
s_.rank_mode_wait_time = GetIntParam("rank_mode_wait_time", 10);
s_.rank_mode_min_player = GetIntParam("rank_mode_min_player", 3);
s_.downed_switch = GetIntParam("downed_switch", 0);
#if 1
{
std::string point = GetStringParam("newbie_room_born_point", "3471.3662:6.8399:5268.6240");

View File

@ -117,6 +117,8 @@ namespace mt
int rank_mode_wait_time = 0;
int rank_mode_min_player = 0;
int downed_switch = 0;
};
static void StaticPostInit();
static const S& s() { return s_; };