Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Damage armor health scaling #26

Merged
merged 2 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-- Warning: .ReapplyUpdates = 0 must be disabled (=0) in the .conf
-- or this will have no effect
-- Warning: Scaling may have already been applied in the naxx40_creatures.sql
-- Warning: Only run this once after applying naxx40*sql scripts
SET @DAMAGE_MULTIPLIER:= 0.80;
SET @HEALTH_MULTIPLIER:= 1.00;
SET @ARMOR_MULTIPLIER:= 1.00;

UPDATE `creature_template`
SET
`DamageModifier` = `DamageModifier` * @DAMAGE_MULTIPLIER,
`HealthModifier` = `HealthModifier` * @HEALTH_MULTIPLIER,
`ArmorModifier` = `ArmorModifier` * @ARMOR_MULTIPLIER
WHERE `entry` IN (
SELECT `id1`
FROM `creature`
WHERE `map` = 533 AND `spawnMask` = 4
);
16 changes: 16 additions & 0 deletions src/Naxxramas/sql/world/naxx40_creatures.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5717,3 +5717,19 @@ DELETE FROM `smart_scripts` WHERE (`entryorguid` IN (351033, 351034)) AND (`sour
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(351033, 0, 0, 0, 76, 0, 100, 0, 0, 181202, 54, 1500, 0, 0, 41, 200, 10, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Diseased Maggot - On Distance 54y To GameObject - Despawn In 200 ms'),
(351034, 0, 0, 0, 76, 0, 100, 0, 0, 181202, 54, 1500, 0, 0, 41, 200, 10, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Rotten Maggot - On Distance 54y To GameObject - Despawn In 200 ms');

-- Scaling
SET @DAMAGE_MULTIPLIER:= 0.69;
SET @HEALTH_MULTIPLIER:= 1.00;
SET @ARMOR_MULTIPLIER:= 1.00;

UPDATE `creature_template`
SET
`DamageModifier` = `DamageModifier` * @DAMAGE_MULTIPLIER,
`HealthModifier` = `HealthModifier` * @HEALTH_MULTIPLIER,
`ArmorModifier` = `ArmorModifier` * @ARMOR_MULTIPLIER
WHERE `entry` IN (
SELECT `id1`
FROM `creature`
WHERE `map` = 533 AND `spawnMask` = 4
);
Loading