Fixed the organization of my new lua modules. They now go in library/lua instead of where plugin lua modules go. Updated scripts accordingly.

develop
expwnent 2014-06-27 02:43:05 -04:00
parent 61d73cc6c2
commit 187ce3c58b
7 changed files with 6 additions and 7 deletions

@ -3,14 +3,14 @@
--contains the "ON_REPORT" event: triggered when there is a new report in df.global.world.status.reports
--example
--local onReport = require 'plugins.onReport'
--local onReport = require 'onReport'
--onReport.triggers.someName = function (reportId)
-- --do stuff with that id
--end
local _ENV = mkmodule('onReport')
local utils = require 'utils'
local repeatUtil = require 'plugins.repeatUtil'
local repeatUtil = require 'repeatUtil'
lastReport = lastReport or -1
triggers = triggers or {}

@ -1,7 +1,7 @@
local _ENV = mkmodule('onStrike')
local onReport = require 'plugins.onReport'
local onReport = require 'onReport'
local utils = require 'utils'
debug = debug or true

@ -4,7 +4,7 @@
-- Checks for inventory changes and applies or removes syndromes that items or their materials have. Use "disable" (minus quotes) to disable and "help" to get help.
eventful=eventful or require("plugins.eventful")
syndromeUtil = syndromeUtil or require("plugins.syndromeUtil")
syndromeUtil = syndromeUtil or require("syndromeUtil")
local function printItemSyndromeHelp()
print("Arguments (non case-sensitive):")

@ -1,6 +1,5 @@
local onReport = require 'plugins.onReport'
reload('plugins.onReport')
local onReport = require 'onReport'
onReport.triggers.onReportExample = function(reportId)
-- print('report '..reportId..' happened!')

@ -1,5 +1,5 @@
local onStrike = require 'plugins.onStrike'
local onStrike = require 'onStrike'
local eventful = require 'plugins.eventful'
--print(onStrike)