-
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.
also a bunch of cleanup and modularize helper.lua
- Loading branch information
1 parent
a240aff
commit bef6bde
Showing
5 changed files
with
181 additions
and
46 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 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,9 @@ | ||
constants = { | ||
difficulties = { | ||
["NORMAL"] = 1, | ||
["HARD"] = 2, | ||
["EXPERT"] = 3, | ||
["LUNATIC"] = 4, | ||
} | ||
} | ||
return constants |
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
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,27 @@ | ||
-- this is roughly eqiovalent to AP player options | ||
-- TODO: use require for constants and helper | ||
|
||
|
||
local difficulties = constants.difficulties | ||
local Choice = helper.Choice | ||
|
||
|
||
LogicLevel = { | ||
value_to_code = { | ||
[difficulties.NORMAL] = "normal", | ||
[difficulties.HARD] = "hard", | ||
[difficulties.EXPERT] = "expert", | ||
[difficulties.LUNATIC] = "lunatic", | ||
}, | ||
default = difficulties.NORMAL, | ||
} | ||
setmetatable(LogicLevel, Choice) | ||
|
||
|
||
options = { | ||
pseudoregalia_options = { | ||
logic_level = LogicLevel | ||
} | ||
} | ||
|
||
return options |