2022-01-24 02:23:08 +00:00
|
|
|
-- Fundemental script for FreeKill
|
|
|
|
-- Load mods, init the engine, etc.
|
|
|
|
|
2022-03-25 04:28:07 +00:00
|
|
|
package.path = package.path .. ";./lua/lib/?.lua"
|
2022-03-28 14:24:30 +00:00
|
|
|
.. ";./lua/?.lua"
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
-- load libraries
|
2022-03-30 08:33:56 +00:00
|
|
|
|
2022-03-25 04:28:07 +00:00
|
|
|
class = require "middleclass"
|
|
|
|
json = require "json"
|
2022-03-30 08:33:56 +00:00
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
local GroupUtils = require "core.util"
|
|
|
|
TargetGroup, AimGroup = table.unpack(GroupUtils)
|
2022-04-01 12:51:01 +00:00
|
|
|
dofile "lua/core/debug.lua"
|
2022-03-31 05:29:23 +00:00
|
|
|
|
2022-03-28 14:24:30 +00:00
|
|
|
math.randomseed(os.time())
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
-- load core classes
|
2022-03-30 06:14:40 +00:00
|
|
|
Engine = require "core.engine"
|
|
|
|
Package = require "core.package"
|
|
|
|
General = require "core.general"
|
|
|
|
Card = require "core.card"
|
|
|
|
Skill = require "core.skill"
|
|
|
|
Player = require "core.player"
|
2022-03-25 04:28:07 +00:00
|
|
|
|
|
|
|
-- load packages
|
2022-03-31 05:29:23 +00:00
|
|
|
dofile "lua/fk_ex.lua"
|
2022-03-28 14:24:30 +00:00
|
|
|
Fk = Engine:new()
|