Add G.calckeys and G.calccontext debugging tools
This commit is contained in:
parent
e74f4d44c9
commit
5d096d5f58
3 changed files with 7 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -38,3 +38,6 @@ luac.out
|
|||
*.i*86
|
||||
*.x86_64
|
||||
*.hex
|
||||
|
||||
# Syncthing
|
||||
.stfolder
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
"author": [
|
||||
"Emik"
|
||||
],
|
||||
"version": "2.2.7",
|
||||
"version": "2.2.8",
|
||||
"badge_colour": "8BE9FD",
|
||||
"main_file": "src/main.lua",
|
||||
"badge_text_colour": "44475A",
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
"provides": [],
|
||||
"conflicts": [],
|
||||
"dependencies": [
|
||||
"Steamodded (>=1.*)",
|
||||
"Steamodded (>=1.0~*)",
|
||||
"Lovely (>=0.6)",
|
||||
"Bakery (>=0.1.26~*)"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -337,6 +337,8 @@ function SMODS.current_mod:calculate(context)
|
|||
modifiers.Roland_martingale_seed = (modifiers.Roland_martingale_seed or 0) + 1
|
||||
end
|
||||
|
||||
local _ = type(G.calccontext) == "function" and G.calccontext(context)
|
||||
local _ = type(G.calckeys) == "function" and G.calckeys(f(context):keys())
|
||||
local _ = type(G.calc) == "function" and G.calc(f(context):keys():string())
|
||||
local improbable, orig = G.GAME.modifiers.Roland_improbable, G.GAME.probabilities
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue