Skip to content

Commit 7a26c90

Browse files
committed
Convert all modules to be compatible with require()
1 parent 6aa7c1f commit 7a26c90

98 files changed

Lines changed: 538 additions & 488 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Classes/CompareEntry.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ function CompareEntryClass:CompareEntry(xmlText, label)
4848
self.outputRevision = 1
4949

5050
-- Display stats (same as primary build uses)
51-
self.displayStats, self.minionDisplayStats, self.extraSaveStats = LoadModule("Modules/BuildDisplayStats")
51+
local displayStatsModule = LoadModule("Modules/BuildDisplayStats")
52+
self.displayStats = displayStatsModule.displayStats
53+
self.minionDisplayStats = displayStatsModule.minionDisplayStats
54+
self.extraSaveStats = displayStatsModule.extraSaveStats
5255

5356
-- Load from XML
5457
if xmlText then

src/Data/Bases/amulet.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
-- This file is automatically generated, do not edit!
22
-- Item data (c) Grinding Gear Games
3-
local itemBases = ...
4-
3+
return function(itemBases)
54

65
itemBases["Paua Amulet"] = {
76
type = "Amulet",
@@ -825,3 +824,4 @@ itemBases["Monkey Paw Talisman (Frenzy)"] = {
825824
"- The Wolven King",
826825
},
827826
}
827+
end

src/Data/Bases/axe.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
-- This file is automatically generated, do not edit!
22
-- Item data (c) Grinding Gear Games
3-
local itemBases = ...
4-
3+
return function(itemBases)
54
itemBases["Rusted Hatchet"] = {
65
type = "One Handed Axe",
76
socketLimit = 3,
@@ -494,3 +493,4 @@ itemBases["Apex Cleaver"] = {
494493
weapon = { PhysicalMin = 78, PhysicalMax = 121, CritChanceBase = 5, AttackRateBase = 1.35, Range = 13, },
495494
req = { level = 70, str = 139, dex = 65, },
496495
}
496+
end

src/Data/Bases/belt.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
-- This file is automatically generated, do not edit!
22
-- Item data (c) Grinding Gear Games
3-
local itemBases = ...
4-
3+
return function(itemBases)
54
itemBases["Rustic Sash"] = {
65
type = "Belt",
76
tags = { belt = true, default = true, },
@@ -115,3 +114,4 @@ itemBases["Golden Obi"] = {
115114
implicitModTypes = { { "drop" }, },
116115
req = { },
117116
}
117+
end

src/Data/Bases/body.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
-- This file is automatically generated, do not edit!
22
-- Item data (c) Grinding Gear Games
3-
local itemBases = ...
4-
3+
return function(itemBases)
54

65
itemBases["Plate Vest"] = {
76
type = "Body Armour",
@@ -1252,3 +1251,4 @@ itemBases["Golden Mantle"] = {
12521251
armour = { ArmourBaseMin = 75, ArmourBaseMax = 86, EvasionBaseMin = 75, EvasionBaseMax = 86, EnergyShieldBaseMin = 17, EnergyShieldBaseMax = 19, },
12531252
req = { level = 20, str = 8, dex = 8, int = 8, },
12541253
}
1254+
end

src/Data/Bases/boots.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
-- This file is automatically generated, do not edit!
22
-- Item data (c) Grinding Gear Games
3-
local itemBases = ...
4-
3+
return function(itemBases)
54

65
itemBases["Iron Greaves"] = {
76
type = "Boots",
@@ -833,3 +832,4 @@ itemBases["Golden Caligae"] = {
833832
armour = { },
834833
req = { level = 12, },
835834
}
835+
end

src/Data/Bases/bow.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
-- This file is automatically generated, do not edit!
22
-- Item data (c) Grinding Gear Games
3-
local itemBases = ...
4-
3+
return function(itemBases)
54
itemBases["Crude Bow"] = {
65
type = "Bow",
76
socketLimit = 6,
@@ -278,3 +277,4 @@ itemBases["Ethereal Bow"] = {
278277
weapon = { PhysicalMin = 5, PhysicalMax = 9, CritChanceBase = 6, AttackRateBase = 1.5, Range = 120, },
279278
req = { dex = 14, },
280279
}
280+
end

src/Data/Bases/claw.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
-- This file is automatically generated, do not edit!
22
-- Item data (c) Grinding Gear Games
3-
local itemBases = ...
4-
3+
return function(itemBases)
54
itemBases["Nailed Fist"] = {
65
type = "Claw",
76
socketLimit = 3,
@@ -282,3 +281,4 @@ itemBases["Void Fangs"] = {
282281
weapon = { PhysicalMin = 22, PhysicalMax = 41, CritChanceBase = 7, AttackRateBase = 1.6, Range = 11, },
283282
req = { level = 70, dex = 113, int = 113, },
284283
}
284+
end

src/Data/Bases/dagger.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
-- This file is automatically generated, do not edit!
22
-- Item data (c) Grinding Gear Games
3-
local itemBases = ...
4-
3+
return function(itemBases)
54
itemBases["Glass Shank"] = {
65
type = "Dagger",
76
socketLimit = 3,
@@ -340,3 +339,4 @@ itemBases["Infernal Blade"] = {
340339
weapon = { PhysicalMin = 21, PhysicalMax = 85, CritChanceBase = 8.5, AttackRateBase = 1.45, Range = 10, },
341340
req = { level = 70, dex = 121, int = 121, },
342341
}
342+
end

src/Data/Bases/fishing.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
-- This file is automatically generated, do not edit!
22
-- Item data (c) Grinding Gear Games
3-
local itemBases = ...
4-
3+
return function(itemBases)
54
itemBases["Fishing Rod"] = {
65
type = "Fishing Rod",
76
socketLimit = 4,
@@ -10,3 +9,4 @@ itemBases["Fishing Rod"] = {
109
weapon = { PhysicalMin = 8, PhysicalMax = 15, CritChanceBase = 5, AttackRateBase = 1.2, Range = 13, },
1110
req = { str = 8, dex = 8, },
1211
}
12+
end

0 commit comments

Comments
 (0)