-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathrepl_startup.lua
28 lines (23 loc) · 937 Bytes
/
repl_startup.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
--- This file is run when the REPL starts up and affects its private
--- environment. Any globals set here will be accessable in the REPL.
---
Tools = require("mod.tools.api.Tools")
Itemgen = require("mod.tools.api.Itemgen")
Charagen = require("mod.tools.api.Charagen")
Compat = require("mod.elona_sys.api.Compat")
Benchmark = require("mod.tools.api.Benchmark")
Magic = require("mod.elona_sys.api.Magic")
Effect = require("mod.elona.api.Effect")
Quest = require("mod.elona_sys.api.Quest")
Scene = require("mod.elona_sys.scene.api.Scene")
Mx = require("mod.tools.api.Mx")
ElonaCommand = require("mod.elona.api.ElonaCommand")
PicViewer = require("mod.tools.api.PicViewer")
Skill = require("mod.elona_sys.api.Skill")
Log.set_level("info")
local test = function()
end
Event.unregister("base.on_game_initialize", "debug")
Event.register("base.on_game_initialize", "debug", function() Repl.defer_execute(test) end)
p = Chara.player()