This commit is contained in:
aozhiwei 2024-08-30 14:01:15 +08:00
parent 73e7669ab5
commit 3f5d6baad9
3 changed files with 11 additions and 1 deletions

View File

@ -217,6 +217,11 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string killer_name, in
int dmg_type,
int dmg_bp)
{
if (IsPlayer() && room->IsNewBieBattle()) {
if (dec_hp > 10) {
dec_hp = 10;
}
}
real_dmg_out = 0.0f;
if (!room->BattleStarted()) {
return;

View File

@ -162,6 +162,9 @@ public:
hp_ = (hero_meta->GetBasicMeta()->vOrigHealth() * (1 + pHealth / hero_meta->GetBasicMeta()->pBaseHealth()) + vHealthAm) *
(1 + vHealthRateSe) * (1 + vHealthRateIn);
if (owner_.Get()->room->IsNewBieBattle() && !owner_.Get()->IsPlayer()) {
hp_ = 50;
}
}
void RecalcAttack()

View File

@ -170,9 +170,11 @@ void Player::Initialize()
&xtimer_attacher);
}
if (room->IsNewBieBattle()) {
#if 0
GetAbility()->AddAttr(kHAT_vAttackRateSe, 5.0f);
GetAbility()->AddAttr(kHAT_pDefendRateSe, 2.0f);
GetAbility()->AddAttr(kHAT_vHealthRateSe, 3.0f);
GetAbility()->AddAttr(kHAT_vHealthRateSe, 1.0f);
#endif
}
}