More cleanup

This commit is contained in:
Openarl
2016-05-05 02:11:27 +10:00
parent 200494e64f
commit 3b6700f259
36 changed files with 123 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
-- Path of Building
--
-- Module: Common
-- Libaries, functions and classes used by various modules.
--
common = { }
common.curl = require("lcurl")

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Active Dexterity skills
-- Skill gem data (c) Grinding Gear Games
--
local gems = ...
gems["Animate Weapon"] = {

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Active Intelligence skills
-- Skill gem data (c) Grinding Gear Games
--
local gems = ...
gems["Arc"] = {

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Active Strength skills
-- Skill gem data (c) Grinding Gear Games
--
local gems = ...
gems["Abyssal Cry"] = {

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Dexterity support gems
-- Skill gem data (c) Grinding Gear Games
--
local gems = ...
gems["Added Cold Damage"] = {

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Intelligence support gems
-- Skill gem data (c) Grinding Gear Games
--
local gems = ...
gems["Added Chaos Damage"] = {

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Strength support gems
-- Skill gem data (c) Grinding Gear Games
--
local gems = ...
gems["Added Fire Damage"] = {

View File

@@ -1,3 +1,4 @@
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Rusted Hatchet"] = {

View File

@@ -1,3 +1,4 @@
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Plate Vest"] = {

View File

@@ -1,3 +1,4 @@
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Iron Greaves"] = {

View File

@@ -1,3 +1,4 @@
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Crude Bow"] = {

View File

@@ -1,3 +1,4 @@
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Nailed Fist"] = {

View File

@@ -1,3 +1,4 @@
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Glass Shank"] = {

View File

@@ -1,3 +1,4 @@
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Iron Gauntlets"] = {

View File

@@ -1,3 +1,4 @@
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Iron Hat"] = {

View File

@@ -1,3 +1,4 @@
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Driftwood Club"] = {

View File

@@ -1,3 +1,4 @@
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Paua Amulet"] = {

View File

@@ -1,3 +1,4 @@
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Splintered Tower Shield"] = {

View File

@@ -1,3 +1,4 @@
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Gnarled Branch"] = {

View File

@@ -1,3 +1,4 @@
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Rusted Sword"] = {

View File

@@ -1,3 +1,4 @@
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Driftwood Wand"] = {

View File

@@ -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")

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Module: Build
-- Loads and manages the active build.
--
local launch, cfg, main = ...
local ipairs = ipairs

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Module: BuildList
-- Displays the list of builds.
--
local launch, cfg, main = ...
local vfs = require("vfs")

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Module: Calcs
-- Calculations view for the active build
--
local launch, cfg, main = ...
cfg.gridHeight = 18

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Module: CalcsControl
-- Control script for calculations
--
local grid = ...
local m_abs = math.abs

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Module: CalcsView
-- Configures the grid display in the calculations view
--
local grid = ...
local s_format = string.format

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Module: Data
-- Contains static data used by other modules
--
data = { }

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Module: Items
-- Items view for the active build
--
local launch, cfg, main = ...
local t_insert = table.insert

View File

@@ -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, ...)

View File

@@ -1,3 +1,9 @@
-- Path of Building
--
-- Module: ModParser
-- Parser function for modifier names
--
-- List of modifier forms
local formList = {
["^(%d+)%% increased"] = "INC",

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Module: ModTools
-- Various functions for dealing with modifier lists and databases
--
local t_insert = table.insert

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Module: Spec
-- Passive tree spec class.
--
local launch, cfg, main = ...
local pairs = pairs

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Module: Tree
-- Passive skill tree class.
--
local launch, cfg, main = ...
local pairs = pairs

View File

@@ -1,3 +1,8 @@
-- Path of Building
--
-- Module: TreeView
-- Passive skill tree view for the active build
--
local launch, cfg, main = ...
local pairs = pairs

View File

@@ -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