Skip to content

Commit 2ae8d2b

Browse files
authored
Feat: Add DAT Files & Spec for Map Level Monster Scaling (#4485)
* Feat: Add DAT files and associated spec for getting map area level life & damage increase * Feat: added exporting the new Monster Life Multiplier from the new DAT
1 parent 0d3bdf0 commit 2ae8d2b

File tree

4 files changed

+360
-3
lines changed

4 files changed

+360
-3
lines changed

src/Data/Misc.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
-- This file is automatically generated, do not edit!
2+
13
local data = ...
24
-- From DefaultMonsterStats.dat
35
data.monsterEvasionTable = { 67, 86, 104, 124, 144, 166, 188, 211, 234, 259, 285, 311, 339, 368, 397, 428, 460, 493, 527, 563, 600, 638, 677, 718, 760, 804, 849, 896, 944, 994, 1046, 1100, 1155, 1212, 1271, 1332, 1395, 1460, 1528, 1597, 1669, 1743, 1819, 1898, 1979, 2063, 2150, 2239, 2331, 2426, 2524, 2626, 2730, 2837, 2948, 3063, 3180, 3302, 3427, 3556, 3689, 3826, 3967, 4112, 4262, 4416, 4575, 4739, 4907, 5081, 5260, 5444, 5633, 5828, 6029, 6235, 6448, 6667, 6892, 7124, 7362, 7608, 7860, 8120, 8388, 8663, 8946, 9237, 9536, 9844, 10160, 10486, 10821, 11165, 11519, 11883, 12258, 12643, 13038, 13445, }
@@ -8,3 +10,5 @@ data.monsterDamageTable = { 4.9899997711182, 5.5599999427795, 6.1599998474121, 6
810
data.monsterArmourTable = { 22, 26, 31, 36, 42, 48, 55, 62, 70, 78, 87, 97, 107, 119, 131, 144, 158, 173, 190, 207, 226, 246, 267, 290, 315, 341, 370, 400, 432, 467, 504, 543, 585, 630, 678, 730, 785, 843, 905, 972, 1042, 1118, 1198, 1284, 1375, 1472, 1575, 1685, 1802, 1927, 2059, 2200, 2350, 2509, 2678, 2858, 3050, 3253, 3469, 3698, 3942, 4201, 4476, 4768, 5078, 5407, 5756, 6127, 6520, 6937, 7380, 7850, 8348, 8876, 9436, 10030, 10660, 11328, 12036, 12787, 13582, 14425, 15319, 16265, 17268, 18331, 19457, 20649, 21913, 23250, 24667, 26168, 27756, 29438, 31220, 33105, 35101, 37214, 39450, 41817, }
911
-- From MonsterVarieties.dat combined with SkillTotemVariations.dat
1012
data.totemLifeMult = { [1] = 1, [2] = 1, [3] = 1, [4] = 1, [5] = 1, [6] = 1.2, [7] = 1, [8] = 1.2, [9] = 1, [10] = 1, [11] = 1, [12] = 1, [13] = 1.2, [15] = 1.2, [16] = 7.44, [17] = 1.2, [18] = 1, [19] = 1, [20] = 1.2, }
13+
-- From MonsterMapDifficulty.dat
14+
data.mapLevelLifeMult = { [66] = 1.01, [67] = 1.03, [68] = 1.05, [69] = 1.09, [70] = 1.13, [71] = 1.19, [72] = 1.24, [73] = 1.3, [74] = 1.36, [75] = 1.43, [76] = 1.49, [77] = 1.55, [78] = 1.61, [79] = 1.68, [80] = 1.77, [81] = 1.87, [82] = 1.98, [83] = 2.09, [84] = 2.17, [85] = 2.25, [86] = 2.34, [87] = 2.42, [88] = 2.5, [89] = 2.58, [90] = 2.66, }

src/Export/Classes/GGPKData.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ function GGPKClass:GetNeededFiles()
185185
"Data/TableCharge.dat",
186186
"Data/GrantedEffectStatSets.dat",
187187
"Data/GrantedEffectStatSetsPerLevel.dat",
188-
"Data/CooldownBypassTypes.dat",
188+
"Data/MonsterMapDifficulty.dat",
189+
"Data/MonsterMapBossDifficulty.dat",
189190
}
190191
local txtFiles = {
191192
"Metadata/StatDescriptions/passive_skill_aura_stat_descriptions.txt",

src/Export/Scripts/miscdata.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
local out = io.open("../Data/Misc.lua", "w")
2-
2+
out:write("-- This file is automatically generated, do not edit!\n\n")
33
out:write('local data = ...\n')
44
local evasion = ""
55
local accuracy = ""
@@ -34,6 +34,13 @@ end
3434
out:write('-- From MonsterVarieties.dat combined with SkillTotemVariations.dat\n')
3535
out:write('data.totemLifeMult = { '..totemMult..'}\n')
3636

37+
out:write('-- From MonsterMapDifficulty.dat\n')
38+
out:write('data.mapLevelLifeMult = { ')
39+
for row in dat("MonsterMapDifficulty"):Rows() do
40+
out:write('[' .. row.AreaLevel .. '] = ' .. (1+row.LifePercentIncrease/100) .. ', ')
41+
end
42+
out:write('}\n')
43+
3744
out:close()
3845

3946
print("Misc data exported.")

0 commit comments

Comments
 (0)