-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
73 lines (63 loc) · 3.18 KB
/
Copy pathmain.lua
File metadata and controls
73 lines (63 loc) · 3.18 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
EdithRebuilt = RegisterMod("Edith: Rebuilt", 1) ---@class ModReference
local mod = EdithRebuilt
local font = Font()
font:Load("font/pftempestasevencondensed.fnt")
if not REPENTOGON then
local text = "REPENTOGON is missing"
local text2 = "check repentogon.com"
mod:AddCallback(ModCallbacks.MC_POST_RENDER, function()
font:DrawStringScaledUTF8(text, Isaac.GetScreenWidth()/1.1 - font:GetStringWidthUTF8(text)/2, Isaac.GetScreenHeight()/1.2, 1, 1, KColor(2,.5,.5,1), 1, true )
font:DrawStringScaledUTF8(text2, Isaac.GetScreenWidth()/1.1 - font:GetStringWidthUTF8(text2)/2, Isaac.GetScreenHeight()/1.2 + 8, 1, 1, KColor(2,.5,.5,1), 1, true )
end)
return
end
if not REPENTANCE_PLUS then
local text = "This mod is meant to be used with Repentance+ DLC"
local text2 = "Look for it on steam"
mod:AddCallback(ModCallbacks.MC_POST_RENDER, function()
font:DrawStringScaledUTF8(text, Isaac.GetScreenWidth()/1.1 - font:GetStringWidthUTF8(text)/2, Isaac.GetScreenHeight()/1.2, 1, 1, KColor(2,.5,.5,1), 1, true )
font:DrawStringScaledUTF8(text2, Isaac.GetScreenWidth()/1.1 - font:GetStringWidthUTF8(text2)/2, Isaac.GetScreenHeight()/1.2 + 8, 1, 1, KColor(2,.5,.5,1), 1, true )
end)
end
EdithRebuilt.DataHolder = include("resources.scripts.libs.DataHolder")
EdithRebuilt.TempStatsLib = require("resources.scripts.libs.TempStatsLib")
EdithRebuilt.SaveManager = require("resources.scripts.libs.EdithRebuiltSaveManager")
EdithRebuilt.SaveManager.Init(mod)
EdithRebuilt.Hsx = require("resources.scripts.libs.lhsx")
local version = {
1,
8,
0,
}
include("resources.scripts.misc.dss.dssmain")
include("resources.scripts.misc.dss.changelogs")
include("resources.scripts.libs.hud_helper")
include("resources.scripts.libs.prenpckillcallback")
include("resources.scripts.libs.EdithKotryJumpLib").Init()
include("resources.scripts.definitions")
include("resources.scripts.libs.status_effect_library")
EdithRebuilt.Modules = {
FLOOR = include("resources.scripts.functions.Floor"),
RNG = include("resources.scripts.functions.RNG"),
HELPERS = include("resources.scripts.functions.Helpers"),
VEC_DIR = include("resources.scripts.functions.VecDir"),
MATHS = include("resources.scripts.functions.Maths"),
TARGET_ARROW = include("resources.scripts.functions.TargetArrow"),
PLAYER = include("resources.scripts.functions.Player"),
EDITH = include("resources.scripts.functions.Edith"),
LAND = include("resources.scripts.functions.Land"),
TEDITH = include("resources.scripts.functions.TEdith"),
STATUS_EFFECTS = include("resources.scripts.functions.StatusEffects"),
CREEPS = include("resources.scripts.functions.Creeps"),
JUMP = include("resources.scripts.functions.Jump"),
BIT_MASK = include("resources.scripts.functions.BitMask"),
STOMP_UTILS = include("resources.scripts.functions.StompUtils"),
}
include("include")
local utils = mod.Enums.Utils
mod:AddCallback(ModCallbacks.MC_POST_GAME_STARTED, function()
utils.RNG:SetSeed(utils.Game:GetSeeds():GetStartSeed())
end)
EdithRebuilt.Version = "v" .. version[1].. "." .. version[2] .. "." .. version[3] .. "beta"
Isaac.DebugString("Edith Rebuilt " .. EdithRebuilt.Version .. " loaded correctly")
print("Edith Rebuilt " .. EdithRebuilt.Version .. " loaded correctly")