-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.lua
117 lines (110 loc) · 3.31 KB
/
main.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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
--- STEAMODDED HEADER
--- MOD_NAME: Aiz Jokers
--- MOD_ID: AIZ
--- MOD_AUTHOR: [Aiz]
--- MOD_DESCRIPTION: A mod adding Jokers I thought would be funny, cool or just felt like making. Has not been balance tested.
--- BADGE_COLOUR: 0ea5e9
--- VERSION: 0.8.2
--- LOADER_VERSION_GEQ: 1.0.0-ALPHA-0731b-STEAMODDED
----------------------------------------------
------------MOD CODE -------------------------
-- Global table for mod utils
Aiz = {}
local current_mod = SMODS.current_mod
local mod_path = SMODS.current_mod.path
-- contains filenames of modules that can be enabled disabled
local modules = {
jokers = {
"chill_joker",
"loudspeaker",
"easy_mode",
"blåhaj",
"antibubzia",
"hand_size",
"tetris",
"penny",
"trollker",
"chess_pawn",
"chess_knight",
"chess_bishop",
"chess_rook",
"chess_queen",
"chess_king",
"jay_z",
"randomizer",
"tinkerer",
"skipper",
"banana_farm",
"kiki_bouba",
"slightly_cooler_joker",
"ultimate_unknown",
"ultimate_gamer",
"battle_pass",
"chess_pawn_storm",
},
}
function SMODS.current_mod.process_loc_text()
-- Localization
G.localization.misc.dictionary.k_aiz_advance = "Advance!"
G.localization.misc.dictionary.k_aiz_promoted = "Promoted!"
G.localization.misc.dictionary.k_aiz_trolled = "Trolled!"
G.localization.misc.dictionary.k_aiz_squared = "Squared!"
G.localization.misc.dictionary.k_aiz_cancelled = "Cancelled!"
G.localization.misc.dictionary.k_aiz_knowledge_gained = "Knowledge Gained!"
G.localization.misc.dictionary.k_aiz_dinner_postponed = "Dinner Postponed!"
G.localization.misc.dictionary.k_aiz_destroy = "Destroyed!"
G.localization.misc.dictionary.k_aiz_light = "Light"
G.localization.misc.dictionary.k_aiz_dark = "Dark"
G.localization.misc.dictionary.k_aiz_new_hand = "New Hand!"
G.localization.misc.dictionary.k_aiz_odds_increased = "Odds Increased!"
G.localization.misc.dictionary.k_aiz_odds_doubled = "Odds Doubled!"
G.localization.misc.dictionary.k_aiz_kiki = "Kiki!"
G.localization.misc.dictionary.k_aiz_bouba = "Bouba!"
G.localization.misc.challenge_names.c_aiz_penny = "In For a Penny..."
end
SMODS.Atlas({
key = "jokers",
path = "jokers.png",
px = 71,
py = 95,
})
SMODS.Atlas({
key = "jokers_soul",
path = "jokers_soul.png",
px = 71,
py = 95,
})
-- load utils
assert(SMODS.load_file("utils.lua"))()
assert(SMODS.load_file("configuration.lua"))()
-- load all enabled jokers
-- only explicitly disabled jokers are disabled
-- jokers not listed are still enabled
for _, joker in ipairs(modules.jokers) do
local enabled = Aiz.config.jokers[joker] == nil or Aiz.config.jokers[joker]
if enabled then
assert(SMODS.load_file("jokers/" .. joker .. ".lua"))()
end
end
--Challenge
table.insert(G.CHALLENGES, 1, {
name = "Doubled",
id = "c_aiz_penny",
rules = {
custom = {},
modifiers = {},
},
jokers = {
{ id = "j_aiz_penny", eternal = true },
},
consumeables = {},
vouchers = {},
deck = {
type = "Challenge Deck",
},
restrictions = {
banned_cards = {},
banned_tags = {},
banned_other = {},
},
})