-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
PonyWarrior
committed
Jun 6, 2024
1 parent
a132d20
commit 8f7882d
Showing
10 changed files
with
147 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
local config = { | ||
Enabled = true, | ||
return { | ||
enabled = true, | ||
} | ||
PonyAltar.Config = config | ||
return config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
---@meta AuthorName-ModName | ||
local public = {} | ||
|
||
-- document whatever you made publicly available to other plugins here | ||
-- use luaCATS annotations and give descriptions where appropriate | ||
-- e.g. | ||
-- ---@param a integer helpful description | ||
-- ---@param b string helpful description | ||
-- ---@return table c helpful description | ||
-- function public.do_stuff(a, b) end | ||
|
||
return public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,62 @@ | ||
rom.mods['SGG_Modding-DemonDaemon'].auto() | ||
---@meta _ | ||
-- grabbing our dependencies, | ||
-- these funky (---@) comments are just there | ||
-- to help VS Code find the definitions of things | ||
|
||
---@diagnostic disable-next-line: undefined-global | ||
local mods = rom.mods | ||
|
||
---@module 'SGG_Modding-ENVY-auto' | ||
mods['SGG_Modding-ENVY'].auto() | ||
-- ^ this gives us `public` and `import`, among others | ||
-- and makes all globals we define private to this plugin. | ||
---@diagnostic disable: lowercase-global | ||
|
||
---@diagnostic disable-next-line: undefined-global | ||
rom = rom | ||
---@diagnostic disable-next-line: undefined-global | ||
_PLUGIN = _PLUGIN | ||
|
||
-- get definitions for the game's globals | ||
---@module 'game' | ||
game = rom.game | ||
---@module 'game-import' | ||
import_as_fallback(game) | ||
|
||
---@module 'SGG_Modding-SJSON' | ||
sjson = mods['SGG_Modding-SJSON'] | ||
---@module 'SGG_Modding-ModUtil' | ||
modutil = mods['SGG_Modding-ModUtil'] | ||
|
||
---@module 'SGG_Modding-Chalk' | ||
chalk = mods["SGG_Modding-Chalk"] | ||
---@module 'SGG_Modding-ReLoad' | ||
reload = mods['SGG_Modding-ReLoad'] | ||
|
||
---@module 'config' | ||
config = chalk.auto 'config.lua' | ||
-- ^ this updates our `.cfg` file in the config folder! | ||
public.config = config -- so other mods can access our config | ||
|
||
local function on_ready() | ||
-- what to do when we are ready, but not re-do on reload. | ||
if config.enabled == false then return end | ||
|
||
import 'ready.lua' | ||
import 'Data/TraitData_Keepsake.lua' | ||
end | ||
|
||
local function on_reload() | ||
-- what to do when we are ready, but also again on every reload. | ||
-- only do things that are safe to run over and over. | ||
|
||
import 'reload.lua' | ||
end | ||
|
||
-- this allows us to limit certain functions to not be reloaded. | ||
local loader = reload.auto_single() | ||
|
||
-- this runs only when modutil and the game's lua is ready | ||
modutil.once_loaded.game(function() | ||
loader.load(on_ready, on_reload) | ||
end) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
---@meta _ | ||
-- globals we define are private to our plugin! | ||
---@diagnostic disable: lowercase-global | ||
|
||
-- this file will be reloaded if it changes during gameplay, | ||
-- so only assign to values or define things here. | ||
|