More cleanup
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Module: Common
|
||||
-- Libaries, functions and classes used by various modules.
|
||||
--
|
||||
|
||||
common = { }
|
||||
|
||||
common.curl = require("lcurl")
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Active Dexterity skills
|
||||
-- Skill gem data (c) Grinding Gear Games
|
||||
--
|
||||
local gems = ...
|
||||
|
||||
gems["Animate Weapon"] = {
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Active Intelligence skills
|
||||
-- Skill gem data (c) Grinding Gear Games
|
||||
--
|
||||
local gems = ...
|
||||
|
||||
gems["Arc"] = {
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Active Strength skills
|
||||
-- Skill gem data (c) Grinding Gear Games
|
||||
--
|
||||
local gems = ...
|
||||
|
||||
gems["Abyssal Cry"] = {
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Dexterity support gems
|
||||
-- Skill gem data (c) Grinding Gear Games
|
||||
--
|
||||
local gems = ...
|
||||
|
||||
gems["Added Cold Damage"] = {
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Intelligence support gems
|
||||
-- Skill gem data (c) Grinding Gear Games
|
||||
--
|
||||
local gems = ...
|
||||
|
||||
gems["Added Chaos Damage"] = {
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Strength support gems
|
||||
-- Skill gem data (c) Grinding Gear Games
|
||||
--
|
||||
local gems = ...
|
||||
|
||||
gems["Added Fire Damage"] = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
-- Item data (c) Grinding Gear Games
|
||||
local itemBases = ...
|
||||
|
||||
itemBases["Rusted Hatchet"] = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
-- Item data (c) Grinding Gear Games
|
||||
local itemBases = ...
|
||||
|
||||
itemBases["Plate Vest"] = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
-- Item data (c) Grinding Gear Games
|
||||
local itemBases = ...
|
||||
|
||||
itemBases["Iron Greaves"] = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
-- Item data (c) Grinding Gear Games
|
||||
local itemBases = ...
|
||||
|
||||
itemBases["Crude Bow"] = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
-- Item data (c) Grinding Gear Games
|
||||
local itemBases = ...
|
||||
|
||||
itemBases["Nailed Fist"] = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
-- Item data (c) Grinding Gear Games
|
||||
local itemBases = ...
|
||||
|
||||
itemBases["Glass Shank"] = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
-- Item data (c) Grinding Gear Games
|
||||
local itemBases = ...
|
||||
|
||||
itemBases["Iron Gauntlets"] = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
-- Item data (c) Grinding Gear Games
|
||||
local itemBases = ...
|
||||
|
||||
itemBases["Iron Hat"] = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
-- Item data (c) Grinding Gear Games
|
||||
local itemBases = ...
|
||||
|
||||
itemBases["Driftwood Club"] = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
-- Item data (c) Grinding Gear Games
|
||||
local itemBases = ...
|
||||
|
||||
itemBases["Paua Amulet"] = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
-- Item data (c) Grinding Gear Games
|
||||
local itemBases = ...
|
||||
|
||||
itemBases["Splintered Tower Shield"] = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
-- Item data (c) Grinding Gear Games
|
||||
local itemBases = ...
|
||||
|
||||
itemBases["Gnarled Branch"] = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
-- Item data (c) Grinding Gear Games
|
||||
local itemBases = ...
|
||||
|
||||
itemBases["Rusted Sword"] = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
-- Item data (c) Grinding Gear Games
|
||||
local itemBases = ...
|
||||
|
||||
itemBases["Driftwood Wand"] = {
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
#@ SimpleGraphic
|
||||
-- Path of Building
|
||||
--
|
||||
-- Module: Launch
|
||||
-- Program entry point; runs the Main module within a protected environment
|
||||
--
|
||||
|
||||
SetWindowTitle("PathOfBuilding")
|
||||
ConExecute("vid_mode 1")
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Module: Build
|
||||
-- Loads and manages the active build.
|
||||
--
|
||||
local launch, cfg, main = ...
|
||||
|
||||
local ipairs = ipairs
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Module: BuildList
|
||||
-- Displays the list of builds.
|
||||
--
|
||||
local launch, cfg, main = ...
|
||||
|
||||
local vfs = require("vfs")
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Module: Calcs
|
||||
-- Calculations view for the active build
|
||||
--
|
||||
local launch, cfg, main = ...
|
||||
|
||||
cfg.gridHeight = 18
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Module: CalcsControl
|
||||
-- Control script for calculations
|
||||
--
|
||||
local grid = ...
|
||||
|
||||
local m_abs = math.abs
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Module: CalcsView
|
||||
-- Configures the grid display in the calculations view
|
||||
--
|
||||
local grid = ...
|
||||
|
||||
local s_format = string.format
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Module: Data
|
||||
-- Contains static data used by other modules
|
||||
--
|
||||
|
||||
data = { }
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Module: Items
|
||||
-- Items view for the active build
|
||||
--
|
||||
local launch, cfg, main = ...
|
||||
|
||||
local t_insert = table.insert
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Module: Main
|
||||
-- Main module of program.
|
||||
--
|
||||
local launch = ...
|
||||
|
||||
local ipairs = ipairs
|
||||
@@ -83,7 +88,7 @@ main.SpecClass = LoadModule("Modules/Spec", launch, cfg, main)
|
||||
main.TreeViewClass = LoadModule("Modules/TreeView", launch, cfg, main)
|
||||
|
||||
main.modes = { }
|
||||
main.modes["LIST"] = LoadModule("Modules/List", launch, cfg, main)
|
||||
main.modes["LIST"] = LoadModule("Modules/BuildList", launch, cfg, main)
|
||||
main.modes["BUILD"] = LoadModule("Modules/Build", launch, cfg, main)
|
||||
|
||||
function main:SetMode(newMode, ...)
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Module: ModParser
|
||||
-- Parser function for modifier names
|
||||
--
|
||||
|
||||
-- List of modifier forms
|
||||
local formList = {
|
||||
["^(%d+)%% increased"] = "INC",
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Module: ModTools
|
||||
-- Various functions for dealing with modifier lists and databases
|
||||
--
|
||||
|
||||
local t_insert = table.insert
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Module: Spec
|
||||
-- Passive tree spec class.
|
||||
--
|
||||
local launch, cfg, main = ...
|
||||
|
||||
local pairs = pairs
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Module: Tree
|
||||
-- Passive skill tree class.
|
||||
--
|
||||
local launch, cfg, main = ...
|
||||
|
||||
local pairs = pairs
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-- Path of Building
|
||||
--
|
||||
-- Module: TreeView
|
||||
-- Passive skill tree view for the active build
|
||||
--
|
||||
local launch, cfg, main = ...
|
||||
|
||||
local pairs = pairs
|
||||
|
||||
@@ -40,12 +40,12 @@ EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Modules", "Modules", "{35D8BE82-CD83-4C2D-AD31-47026E724F46}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
Modules\Build.lua = Modules\Build.lua
|
||||
Modules\BuildList.lua = Modules\BuildList.lua
|
||||
Modules\Calcs.lua = Modules\Calcs.lua
|
||||
Modules\CalcsControl.lua = Modules\CalcsControl.lua
|
||||
Modules\CalcsView.lua = Modules\CalcsView.lua
|
||||
Modules\Data.lua = Modules\Data.lua
|
||||
Modules\Items.lua = Modules\Items.lua
|
||||
Modules\List.lua = Modules\List.lua
|
||||
Modules\Main.lua = Modules\Main.lua
|
||||
Modules\ModParser.lua = Modules\ModParser.lua
|
||||
Modules\ModTools.lua = Modules\ModTools.lua
|
||||
|
||||
Reference in New Issue
Block a user