Skip to content

Commit a1968c3

Browse files
committed
Support for The Soul and Black Hole
1 parent a17f7ef commit a1968c3

File tree

7 files changed

+568
-31
lines changed

7 files changed

+568
-31
lines changed

enum_to_printf.py

Lines changed: 212 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ def convert_enum(enum_code):
1818
"Mr Bones": "Mr. Bones",
1919
"Oops All 6s": "Oops! All 6s",
2020
"Drivers License": "Driver's License",
21-
"Directors Cut": "Director's Cut"
21+
"Directors Cut": "Director's Cut",
22+
"On a Knifes Edge": "On a Knife's Edge",
23+
"X ray Vision": "X-ray Vision",
24+
"Non Perishable": "Non-Perishable",
25+
"Five Card Draw": "Five-Card Draw"
2226
}
2327

2428
# Helper function to format enum item names
@@ -54,66 +58,198 @@ def format_enum_item(enum_item):
5458
Lusty_Joker,
5559
Wrathful_Joker,
5660
Gluttonous_Joker,
61+
Jolly_Joker,
62+
Zany_Joker,
63+
Mad_Joker,
64+
Crazy_Joker,
65+
Droll_Joker,
5766
Sly_Joker,
5867
Wily_Joker,
68+
Clever_Joker,
5969
Devious_Joker,
6070
Crafty_Joker,
61-
Gift_Card,
71+
Half_Joker,
72+
Credit_Card,
73+
Banner,
74+
Mystic_Summit,
75+
_8_Ball,
76+
Misprint,
77+
Raised_Fist,
78+
Chaos_the_Clown,
79+
Scary_Face,
80+
Abstract_Joker,
81+
Delayed_Gratification,
6282
Gros_Michel,
6383
Even_Steven,
6484
Odd_Todd,
65-
Misprint,
85+
Scholar,
86+
Business_Card,
87+
Supernova,
88+
Ride_the_Bus,
89+
Egg,
90+
Runner,
91+
Ice_Cream,
92+
Splash,
93+
Blue_Joker,
94+
Faceless_Joker,
6695
Green_Joker,
96+
Superposition,
97+
To_Do_List,
98+
Cavendish,
99+
Red_Card,
100+
Square_Joker,
101+
Riff_raff,
67102
Photograph,
103+
Mail_In_Rebate,
104+
Hallucination,
68105
Fortune_Teller,
106+
Juggler,
69107
Drunkard,
108+
Golden_Joker,
70109
Popcorn,
110+
Walkie_Talkie,
111+
Smiley_Face,
112+
Golden_Ticket,
71113
Swashbuckler,
72-
Credit_Card,
73-
Superposition,
74-
Raised_Fist,
114+
Hanging_Chad,
115+
Shoot_the_Moon,
75116
J_C_END,
76117
77118
J_U_BEGIN,
119+
Joker_Stencil,
78120
Four_Fingers,
79-
Banner,
121+
Mime,
122+
Ceremonial_Dagger,
123+
Marble_Joker,
124+
Loyalty_Card,
125+
Dusk,
80126
Fibonacci,
127+
Steel_Joker,
81128
Hack,
129+
Pareidolia,
130+
Space_Joker,
131+
Burglar,
132+
Blackboard,
133+
Constellation,
134+
Hiker,
135+
Card_Sharp,
136+
Madness,
137+
Vampire,
82138
Shortcut,
83139
Hologram,
84140
Vagabond,
85-
Ramen,
141+
Cloud_9,
142+
Rocket,
143+
Midas_Mask,
144+
Luchador,
145+
Gift_Card,
146+
Turtle_Bean,
147+
Erosion,
86148
Reserved_Parking,
149+
To_the_Moon,
150+
Stone_Joker,
151+
Lucky_Cat,
87152
Bull,
88-
Throwback,
89-
Flower_Pot,
90-
Trading_Card,
91153
Diet_Cola,
154+
Trading_Card,
155+
Flash_Card,
92156
Spare_Trousers,
157+
Ramen,
158+
Seltzer,
159+
Castle,
160+
Mr_Bones,
161+
Acrobat,
162+
Sock_and_Buskin,
163+
Troubadour,
164+
Certificate,
165+
Smeared_Joker,
166+
Throwback,
167+
Rough_Gem,
168+
Bloodstone,
169+
Arrowhead,
170+
Onyx_Agate,
171+
Glass_Joker,
172+
Showman,
173+
Flower_Pot,
174+
Merry_Andy,
175+
Oops_All_6s,
176+
The_Idol,
177+
Seeing_Double,
178+
Matador,
179+
Stuntman,
180+
Satellite,
181+
Cartomancer,
182+
Astronomer,
183+
Burnt_Joker,
184+
Bootstraps,
93185
J_U_END,
94186
95187
J_R_BEGIN,
188+
DNA,
189+
Sixth_Sense,
96190
Seance,
191+
Baron,
192+
Obelisk,
97193
Baseball_Card,
194+
Ancient_Joker,
195+
Campfire,
196+
Blueprint,
197+
Wee_Joker,
98198
Hit_the_Road,
199+
The_Duo,
99200
The_Trio,
201+
The_Family,
202+
The_Order,
203+
The_Tribe,
100204
Invisible_Joker,
101205
Brainstorm,
102-
Obelisk,
206+
Drivers_License,
103207
J_R_END,
104208
209+
J_L_BEGIN,
210+
Canio,
211+
Triboulet,
212+
Yorick,
213+
Chicot,
214+
Perkeo,
215+
J_L_END,
216+
105217
J_END,
106218
107219
// Vouchers
108220
V_BEGIN,
109221
Overstock,
222+
Overstock_Plus,
223+
Clearance_Sale,
224+
Liquidation,
110225
Hone,
226+
Glow_Up,
227+
Reroll_Surplus,
228+
Reroll_Glut,
111229
Crystal_Ball,
230+
Omen_Globe,
231+
Telescope,
232+
Observatory,
112233
Grabber,
234+
Nacho_Tong,
235+
Wasteful,
236+
Recyclomancy,
113237
Tarot_Merchant,
238+
Tarot_Tycoon,
114239
Planet_Merchant,
240+
Planet_Tycoon,
115241
Seed_Money,
242+
Money_Tree,
243+
Blank,
244+
Antimatter,
245+
Magic_Trick,
246+
Illusion,
247+
Hieroglyph,
248+
Petroglyph,
249+
Directors_Cut,
250+
Retcon,
116251
Paint_Brush,
252+
Palette,
117253
V_END,
118254
119255
// Tarots
@@ -192,6 +328,8 @@ def format_enum_item(enum_item):
192328
Trance,
193329
Medium,
194330
Cryptid,
331+
The_Soul,
332+
Black_Hole,
195333
S_END,
196334
197335
// Enhancements
@@ -280,12 +418,29 @@ def format_enum_item(enum_item):
280418
The_Ox,
281419
The_House,
282420
The_Wall,
421+
The_Wheel,
422+
The_Arm,
283423
The_Club,
284424
The_Fish,
425+
The_Psychic,
426+
The_Goad,
427+
The_Water,
428+
The_Window,
285429
The_Manacle,
430+
The_Eye,
286431
The_Mouth,
432+
The_Plant,
433+
The_Serpent,
434+
The_Pillar,
435+
The_Needle,
436+
The_Head,
287437
The_Tooth,
438+
The_Flint,
288439
The_Mark,
440+
Amber_Acorn,
441+
Verdant_Leaf,
442+
Violet_Vessel,
443+
Crimson_Heart,
289444
Cerulean_Bell,
290445
B_END,
291446
@@ -370,7 +525,51 @@ def format_enum_item(enum_item):
370525
S_T,
371526
C_END,
372527
373-
ITEMS_END,
528+
// Decks
529+
D_BEGIN,
530+
Red_Deck,
531+
Blue_Deck,
532+
Yellow_Deck,
533+
Green_Deck,
534+
Black_Deck,
535+
Magic_Deck,
536+
Nebula_Deck,
537+
Ghost_Deck,
538+
Abandoned_Deck,
539+
Checkered_Deck,
540+
Zodiac_Deck,
541+
Painted_Deck,
542+
Anaglyph_Deck,
543+
Plasma_Deck,
544+
Erratic_Deck,
545+
Challenge_Deck,
546+
D_END,
547+
548+
// Challenges
549+
CHAL_BEGIN,
550+
The_Omelette,
551+
_15_Minute_City,
552+
Rich_get_Richer,
553+
On_a_Knifes_Edge,
554+
X_ray_Vision,
555+
Mad_World,
556+
Luxury_Tax,
557+
Non_Perishable,
558+
Medusa,
559+
Double_or_Nothing,
560+
Typecast,
561+
Inflation,
562+
Bram_Poker,
563+
Fragile,
564+
Monolith,
565+
Blast_Off,
566+
Five_Card_Draw,
567+
Golden_Needle,
568+
Cruelty,
569+
Jokerless,
570+
CHAL_END,
571+
572+
ITEMS_END
374573
} item;
375574
"""
376575

immolate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
int main(int argc, char **argv) {
33

44
// Print version
5-
printf_s("Immolate Beta v1.0.0i.1\n");
5+
printf_s("Immolate Beta v1.0.0i.2\n");
66

77
// Handle CLI arguments
88
unsigned int platformID = 0;

lib/cache.cl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ typedef enum RandomType {
33
R_Joker_Common,
44
R_Joker_Uncommon,
55
R_Joker_Rare,
6+
R_Joker_Legendary,
67
R_Joker_Rarity,
78
R_Joker_Edition,
89
R_Misprint,
@@ -27,6 +28,7 @@ typedef enum RandomType {
2728
R_Gros_Michel,
2829
R_Voucher,
2930
R_Voucher_Tag,
31+
R_Soul,
3032
R_END
3133
} rtype;
3234

@@ -48,6 +50,7 @@ typedef enum RNGSource {
4850
S_Rare_Tag,
4951
S_Uncommon_Tag,
5052
S_Blue_Seal,
53+
S_Soul,
5154
S_Null,
5255
SOURCE_END
5356
} rsrc;
@@ -65,6 +68,7 @@ text type_str(int x) {
6568
case R_Joker_Common: return init_text("Joker1", 6);
6669
case R_Joker_Uncommon: return init_text("Joker2", 6);
6770
case R_Joker_Rare: return init_text("Joker3", 6);
71+
case R_Joker_Legendary: return init_text("Joker4", 6);
6872
case R_Joker_Rarity: return init_text("rarity", 6);
6973
case R_Joker_Edition: return init_text("edi", 3);
7074
case R_Misprint: return init_text("misprint", 8);
@@ -89,6 +93,7 @@ text type_str(int x) {
8993
case R_Gros_Michel: return init_text("gros_michel", 11);
9094
case R_Voucher: return init_text("Voucher", 7);
9195
case R_Voucher_Tag: return init_text("Voucher_fromtag", 15);
96+
case R_Soul: return init_text("soul_", 5);
9297
default: return init_text("", 0);
9398
}
9499
}
@@ -111,6 +116,7 @@ text source_str(int x) {
111116
case S_Rare_Tag: return init_text("rta", 3);
112117
case S_Uncommon_Tag: return init_text("uta", 3);
113118
case S_Blue_Seal: return init_text("blusl", 5);
119+
case S_Soul: return init_text("sou", 3);
114120
default: return init_text("", 0);
115121
}
116122
}

0 commit comments

Comments
 (0)