mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 22:01:30 +00:00
Don't scale 0 values
This commit is contained in:
parent
954247956e
commit
263ed3913b
@ -2443,6 +2443,9 @@ void NPC::LevelScale() {
|
||||
|
||||
if (RuleB(NPC, NewLevelScaling)) {
|
||||
if (scalerate == 0 || maxlevel <= 25) {
|
||||
// Don't add HP to dynamically scaled NPCs since this will be calculated later
|
||||
if (max_hp > 0 || skip_auto_scale)
|
||||
{
|
||||
// pre-pop seems to scale by 20 HP increments while newer by 100
|
||||
// We also don't want 100 increments on newer noobie zones, check level
|
||||
if (zone->GetZoneID() < 200 || level < 48) {
|
||||
@ -2454,7 +2457,13 @@ void NPC::LevelScale() {
|
||||
}
|
||||
|
||||
current_hp = max_hp;
|
||||
}
|
||||
|
||||
// Don't add max_dmg to dynamically scaled NPCs since this will be calculated later
|
||||
if (max_dmg > 0 || skip_auto_scale)
|
||||
{
|
||||
max_dmg += (random_level - level) * 2;
|
||||
}
|
||||
} else {
|
||||
uint8 scale_adjust = 1;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user