Skip to content

Commit 9fdeaea

Browse files
LocalIdentitymajochem
authored andcommitted
Fix crash from wrong references to miscData
1 parent d103012 commit 9fdeaea

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/Modules/CalcSetup.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function calcs.initModDB(env, modDB)
2525
modDB:NewMod("TotemLightningResistMax", "BASE", 75, "Base")
2626
modDB:NewMod("TotemChaosResistMax", "BASE", 75, "Base")
2727
modDB:NewMod("BlockChanceMax", "BASE", data.characterConstants["object_inherent_base_maximum_block_%_from_ot"], "Base")
28-
modDB:NewMod("SpellBlockChanceMax", "BASE", data.characterConstants["base_maximum_spell_block_%"], "Base")
28+
modDB:NewMod("SpellBlockChanceMax", "BASE", data.characterConstants["object_inherent_base_maximum_block_%_from_ot"], "Base")
2929
modDB:NewMod("SpellDodgeChanceMax", "BASE", 75, "Base")
3030
modDB:NewMod("ChargeDuration", "BASE", 15, "Base")
3131
modDB:NewMod("PowerChargesMax", "BASE", data.characterConstants["max_power_charges"], "Base")

src/Modules/Data.lua

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ data.misc = { -- magic numbers
176176
EnemyPhysicalDamageReductionCap = data.monsterConstants["maximum_physical_damage_reduction_%"],
177177
ResistFloor = -200,
178178
MaxResistCap = 90,
179-
EvadeChanceCap = data.characterConstants["base_maximum_chance_to_evade_%"],
179+
EvadeChanceCap = data.gameConstants["DefaultMaxEvadeChancePercent"],
180180
DodgeChanceCap = 75,
181181
BlockChanceCap = 90,
182182
SuppressionChanceCap = 100,
@@ -518,13 +518,13 @@ data.weaponTypeInfo = {
518518
["Two Handed Sword"] = { oneHand = false, melee = true, flag = "Sword" },
519519
}
520520
data.unarmedWeaponData = {
521-
[0] = { type = "None", AttackRate = 1.4, CritChance = 5, PhysicalMin = 2, PhysicalMax = 6 }, -- Scion
522-
[1] = { type = "None", AttackRate = 1.4, CritChance = 5, PhysicalMin = 2, PhysicalMax = 8 }, -- Marauder
523-
[2] = { type = "None", AttackRate = 1.4, CritChance = 5, PhysicalMin = 2, PhysicalMax = 5 }, -- Ranger
524-
[3] = { type = "None", AttackRate = 1.4, CritChance = 5, PhysicalMin = 2, PhysicalMax = 5 }, -- Witch
525-
[4] = { type = "None", AttackRate = 1.4, CritChance = 5, PhysicalMin = 2, PhysicalMax = 6 }, -- Duelist
526-
[5] = { type = "None", AttackRate = 1.4, CritChance = 5, PhysicalMin = 2, PhysicalMax = 6 }, -- Templar
527-
[6] = { type = "None", AttackRate = 1.4, CritChance = 5, PhysicalMin = 2, PhysicalMax = 5 }, -- Shadow
521+
[0] = { type = "None", AttackRate = 1.4, CritChance = data.characterConstants["unarmed_base_critical_strike_chance"] / 100, PhysicalMin = 2, PhysicalMax = 6 }, -- Scion
522+
[1] = { type = "None", AttackRate = 1.4, CritChance = data.characterConstants["unarmed_base_critical_strike_chance"] / 100, PhysicalMin = 2, PhysicalMax = 8 }, -- Marauder
523+
[2] = { type = "None", AttackRate = 1.4, CritChance = data.characterConstants["unarmed_base_critical_strike_chance"] / 100, PhysicalMin = 2, PhysicalMax = 5 }, -- Ranger
524+
[3] = { type = "None", AttackRate = 1.4, CritChance = data.characterConstants["unarmed_base_critical_strike_chance"] / 100, PhysicalMin = 2, PhysicalMax = 5 }, -- Witch
525+
[4] = { type = "None", AttackRate = 1.4, CritChance = data.characterConstants["unarmed_base_critical_strike_chance"] / 100, PhysicalMin = 2, PhysicalMax = 6 }, -- Duelist
526+
[5] = { type = "None", AttackRate = 1.4, CritChance = data.characterConstants["unarmed_base_critical_strike_chance"] / 100, PhysicalMin = 2, PhysicalMax = 6 }, -- Templar
527+
[6] = { type = "None", AttackRate = 1.4, CritChance = data.characterConstants["unarmed_base_critical_strike_chance"] / 100, PhysicalMin = 2, PhysicalMax = 5 }, -- Shadow
528528
}
529529

530530
-- TODO use exported data instead

0 commit comments

Comments
 (0)