Skip to content

Commit a22a781

Browse files
authored
Change default Unarmed Crit to 5% (#1192)
* Change default Unarmed Crit to 5% * Update TestAttacks_spec --------- Co-authored-by: majochem <majochem@users.noreply.github.com>
1 parent cd486b1 commit a22a781

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

spec/System/TestAttacks_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe("TestAttacks", function()
88
end)
99

1010
it("creates an item and has the correct crit chance", function()
11-
assert.are.equals(build.calcsTab.mainOutput.CritChance, 0)
11+
assert.are.equals(build.calcsTab.mainOutput.CritChance, data.unarmedWeaponData[0].CritChance * build.calcsTab.mainOutput.HitChance / 100)
1212
build.itemsTab:CreateDisplayItemFromRaw([[
1313
New Item
1414
Heavy Bow

src/Modules/Data.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -502,13 +502,13 @@ data.weaponTypeInfo = {
502502
["Two Handed Sword"] = { oneHand = false, melee = true, flag = "Sword" },
503503
}
504504
data.unarmedWeaponData = {
505-
[0] = { type = "None", AttackRate = 1.4, CritChance = 0, PhysicalMin = 2, PhysicalMax = 6 }, -- Scion
506-
[1] = { type = "None", AttackRate = 1.4, CritChance = 0, PhysicalMin = 2, PhysicalMax = 8 }, -- Marauder
507-
[2] = { type = "None", AttackRate = 1.4, CritChance = 0, PhysicalMin = 2, PhysicalMax = 5 }, -- Ranger
508-
[3] = { type = "None", AttackRate = 1.4, CritChance = 0, PhysicalMin = 2, PhysicalMax = 5 }, -- Witch
509-
[4] = { type = "None", AttackRate = 1.4, CritChance = 0, PhysicalMin = 2, PhysicalMax = 6 }, -- Duelist
510-
[5] = { type = "None", AttackRate = 1.4, CritChance = 0, PhysicalMin = 2, PhysicalMax = 6 }, -- Templar
511-
[6] = { type = "None", AttackRate = 1.4, CritChance = 0, PhysicalMin = 2, PhysicalMax = 5 }, -- Shadow
505+
[0] = { type = "None", AttackRate = 1.4, CritChance = 5, PhysicalMin = 2, PhysicalMax = 6 }, -- Scion
506+
[1] = { type = "None", AttackRate = 1.4, CritChance = 5, PhysicalMin = 2, PhysicalMax = 8 }, -- Marauder
507+
[2] = { type = "None", AttackRate = 1.4, CritChance = 5, PhysicalMin = 2, PhysicalMax = 5 }, -- Ranger
508+
[3] = { type = "None", AttackRate = 1.4, CritChance = 5, PhysicalMin = 2, PhysicalMax = 5 }, -- Witch
509+
[4] = { type = "None", AttackRate = 1.4, CritChance = 5, PhysicalMin = 2, PhysicalMax = 6 }, -- Duelist
510+
[5] = { type = "None", AttackRate = 1.4, CritChance = 5, PhysicalMin = 2, PhysicalMax = 6 }, -- Templar
511+
[6] = { type = "None", AttackRate = 1.4, CritChance = 5, PhysicalMin = 2, PhysicalMax = 5 }, -- Shadow
512512
}
513513

514514
data.setJewelRadiiGlobally = function(treeVersion)

0 commit comments

Comments
 (0)