39 lines
899 B
Lua
39 lines
899 B
Lua
-- Fundemental script for FreeKill
|
|
-- Load mods, init the engine, etc.
|
|
|
|
package.path = package.path .. ";./lua/lib/?.lua"
|
|
.. ";./lua/?.lua"
|
|
|
|
-- disable dangerous functions
|
|
os.remove = nil
|
|
os.execute = nil
|
|
os.exit = nil
|
|
os.rename = nil
|
|
io = nil
|
|
|
|
-- load libraries
|
|
|
|
class = require "middleclass"
|
|
json = require "json"
|
|
|
|
local GroupUtils = require "core.util"
|
|
TargetGroup, AimGroup = table.unpack(GroupUtils)
|
|
dofile "lua/core/debug.lua"
|
|
|
|
math.randomseed(os.time())
|
|
|
|
-- load core classes
|
|
Engine = require "core.engine"
|
|
Package = require "core.package"
|
|
General = require "core.general"
|
|
Card = require "core.card"
|
|
Exppattern = require "core.exppattern"
|
|
Skill = require "core.skill"
|
|
UsableSkill = require "core.skill_type.usable_skill"
|
|
StatusSkill = require "core.skill_type.status_skill"
|
|
Player = require "core.player"
|
|
|
|
-- load packages
|
|
dofile "lua/fk_ex.lua"
|
|
Fk = Engine:new()
|