This repository was archived by the owner on Jun 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompat.lua
More file actions
145 lines (134 loc) · 4.42 KB
/
compat.lua
File metadata and controls
145 lines (134 loc) · 4.42 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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
-- Note: Jen's dependencies will also have to be updated to not display as incompatible.
-- Things that are not yet included:
-- single hand planets don't use the new colors
if SMODS.current_mod then
SMODS.current_mod.description_loc_vars = function()
return { background_colour = G.C.CLEAR, text_colour = G.C.WHITE, scale = 1.2 }
end
end
-- encoded handling
SMODS.Back:take_ownership("b_cry_encoded", {
apply = function(self)
G.GAME.joker_rate = 1
G.GAME.planet_rate = 1
G.GAME.tarot_rate = 1
G.GAME.code_rate = 1e100
G.E_MANAGER:add_event(Event({
func = function()
if G.jokers then
if
G.P_CENTERS["j_cry_CodeJoker"]
and (G.GAME.banned_keys and not G.GAME.banned_keys["j_cry_CodeJoker"])
then
local card = create_card("Joker", G.jokers, nil, nil, nil, nil, "j_cry_CodeJoker")
card:add_to_deck()
card:start_materialize()
G.jokers:emplace(card)
end
return true
end
end,
}))
end,
})
Cryptid_config.gameset_toggle = false -- prevents changing gamesets. Easy.
function Cryptid.gameset(card, center)
return "madness"
end
-- This will have to get added to Jen's process_loc_text function
function SMODS.current_mod.process_loc_text()
G.localization.descriptions.Other["jen_pointer"] = {
name = "POINTER://",
text = {
"Create a card",
"of {C:cry_code}your choice",
"{C:inactive,s:0.8}(Exotic Jokers and OMEGA consumables excluded)",
},
}
end
local uhtr = update_hand_text
function update_hand_text(config, vals)
if not vals.colour then
vals.colour = G.C.UI.TEXT_DARK
end
uhtr(config, vals)
end
-- a guide on what these new functions do is in Cryptid/items/pointer.lua
Cryptid.pointerblistify("j_jen_kosmos") -- here as an example
Cryptid.pointerblistifytype("rarity", "jen_wondrous")
Cryptid.pointerblistifytype("rarity", "jen_extraordinary")
Cryptid.pointerblistifytype("rarity", "jen_ritualistic")
Cryptid.pointerblistifytype("rarity", "jen_transcendent")
Cryptid.pointerblistifytype("rarity", "jen_omegatranscendent")
Cryptid.pointerblistifytype("rarity", "jen_omnipotent")
Cryptid.pointerblistifytype("rarity", "jen_miscellaneous")
Cryptid.pointerblistifytype("rarity", "jen_junk")
Cryptid.pointerblistifytype("set", "jen_omegaconsumable")
Cryptid.pointeraliasify("j_jen_kosmos", "Kosmos") -- also here as an example, this will have to be done for every alias (won't let you create kosmos because of blacklist)
-- the old pointer thing, it's still case insensitive though (unless it's 1 letter long)
local aliases = {
freddy = "freddy snowshoe",
paupovlin = "paupovlin revere",
poppin = "paupovlin revere",
dandy = 'Dandicus "Dandy" Dancifer',
jen = "jen walter",
jen2 = "Jen Walter the Wondergeist",
jen3 = "Jen Walter the Wondergeist (Ascended)",
survivor = "the survivor",
monk = "the monk",
hunter = "the hunter",
gourmand = "the gourmand",
saint = "the saint",
genius = "the genius",
r_fool = "the genius",
scientist = "the scientist",
r_magician = "the scientist",
lowlaywoman = "the low laywoman",
laywoman = "the low laywoman",
r_priestess = "the low laywoman",
peasant = "the peasant",
r_empress = "the peasant",
servant = "the servant",
r_emperor = "the servant",
adversary = "the adversary",
r_hierophant = "the adversary",
rivals = "the rivals",
r_lovers = "the rivals",
hitchhiker = "the hitchhiker",
r_chariot = "the hitchhiker",
injustice = "c_jen_reverse_justice",
r_justice = "c_jen_reverse_justice",
extrovert = "the extrovert",
r_hermit = "the extrovert",
discofpenury = "the disc of penury",
r_wheeloffortune = "the disc of penury",
r_wof = "the disc of penury",
infirmity = "infirmity",
r_strength = "infirmity",
zen = "zen",
r_hangedman = "zen",
life = "life",
r_death = "life",
prodigality = "prodigality",
r_temperance = "prodigality",
angel = "the angel",
r_devil = "the angel",
collapse = "the collapse",
r_tower = "the collapse",
flash = "the flash",
r_star = "the flash",
eclipsespectral = "c_jen_reverse_moon",
eclipsetorat = "c_jen_reverse_moon",
r_moon = "c_jen_reverse_moon",
darkness = "the darkness",
r_sun = "the darkness",
cunctation = "cunctation",
r_judgement = "cunctation",
desolate = "desolate",
r_world = "desolate",
-- jen tokens
topuptoken = "top-up token",
sagittarius = "sagittarius a*",
["sagitarius a*"] = "sagittarius a*", --minor spelling mistakes are forgiven
sagitarius = "sagittarius a*", --minor spelling mistakes are forgiven
}