@@ -29,7 +29,7 @@ item standard_base(instance* inst, int ante) {
2929 return randchoice_common (inst , R_Card , S_Standard , ante , CARDS );
3030}
3131#if V_AT_MOST (0 ,9 ,3 ,14 )
32- item standard_edition (instance * inst ) {
32+ item standard_edition (instance * inst , int ante ) {
3333 double val = random_simple (inst , R_Standard_Edition );
3434 if (val > 0.988 ) return Polychrome ;
3535 if (val > 0.96 ) return Holographic ;
@@ -46,7 +46,7 @@ item standard_edition(instance* inst, int ante) {
4646}
4747#endif
4848#if V_AT_MOST (1 ,0 ,0 ,10 )
49- item standard_seal (instance * inst ) {
49+ item standard_seal (instance * inst , ante ) {
5050 if (random_simple (inst , R_Standard_Has_Seal ) <= 0.8 ) return No_Seal ;
5151 double val = random_simple (inst , R_Standard_Seal );
5252 if (val > 0.75 ) return Red_Seal ;
@@ -68,38 +68,42 @@ card standard_card(instance* inst, int ante) {
6868 card out ;
6969 out .enhancement = standard_enhancement (inst , ante );
7070 out .base = standard_base (inst , ante );
71- #if V_AT_MOST (0 ,9 ,3 ,14 )
72- out .edition = standard_edition (inst );
73- #else
7471 out .edition = standard_edition (inst , ante );
75- #endif
76- #if V_AT_MOST (1 ,0 ,0 ,10 )
77- out .seal = standard_seal (inst );
78- #else
7972 out .seal = standard_seal (inst , ante );
80- #endif
8173 return out ;
8274}
8375
84- #if V_AT_MOST (0 ,9 ,3 ,12 )
85- item next_pack (instance * inst ) {
86- return randweightedchoice (inst , (__private ntype []){N_Type }, (__private int []){R_Shop_Pack }, 1 , PACKS );
87- }
76+ #ifdef DEMO
77+ #if V_AT_MOST (0 ,9 ,3 ,12 )
78+ item next_pack (instance * inst , int ante ) {
79+ return randweightedchoice (inst , (__private ntype []){N_Type }, (__private int []){R_Shop_Pack }, 1 , PACKS );
80+ }
81+ #else
82+ // Becomes ante-based in 0.9.3n
83+ item next_pack (instance * inst , int ante ) {
84+ return randweightedchoice (inst , (__private ntype []){N_Type , N_Ante }, (__private int []){R_Shop_Pack , ante }, 2 , PACKS );
85+ }
86+ #endif
8887#else
89- // Becomes ante-based in 0.9.3n
90- item next_pack (instance * inst , int ante ) {
91- return randweightedchoice (inst , (__private ntype []){N_Type , N_Ante }, (__private int []){R_Shop_Pack , ante }, 2 , PACKS );
92- }
88+ #if V_AT_MOST (1 ,0 ,0 ,2 )
89+ // Not ante-based in first console release (1.0.0b)
90+ item next_pack (instance * inst , int ante ) {
91+ return randweightedchoice (inst , (__private ntype []){N_Type }, (__private int []){R_Shop_Pack }, 1 , PACKS );
92+ }
93+ #else
94+ item next_pack (instance * inst , int ante ) {
95+ return randweightedchoice (inst , (__private ntype []){N_Type , N_Ante }, (__private int []){R_Shop_Pack , ante }, 2 , PACKS );
96+ }
97+ #endif
9398#endif
94-
9599#ifdef DEMO
96- item next_tarot (instance * inst , rsrc src , int ante ) {
100+ item next_tarot (instance * inst , rsrc src , int ante , bool soulable ) {
97101 return randchoice_common (inst , R_Tarot , src , ante , TAROTS );
98102}
99- item next_planet (instance * inst , rsrc src , int ante ) {
103+ item next_planet (instance * inst , rsrc src , int ante , bool soulable ) {
100104 return randchoice_common (inst , R_Planet , src , ante , PLANETS );
101105}
102- item next_spectral (instance * inst , rsrc src , int ante ) {
106+ item next_spectral (instance * inst , rsrc src , int ante , bool soulable ) {
103107 return randchoice_common (inst , R_Spectral , src , ante , SPECTRALS );
104108}
105109#elif V_AT_MOST (1 ,0 ,0 ,10 )
0 commit comments