horsegen: generate koka id lists as public
This commit is contained in:
@@ -13,7 +13,7 @@ extern create-id-table(): vector<int>
|
|||||||
c inline "int32_t arr[] = {1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1101,1102,1103,1104,1105,1106,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,3001,3002,3003,3004,3005,3006,3007,3008,3009,3010,3011,3012,3013,3014,3015,3016,3017,3018,3019,3020,3021,3022,3023,3024,3025,3026,3027,3028,3029,3030,3031,3032,3033,3034,3035,3036,3037,3038,3039,3040,3041,3042,3043,3044,3045,3046,3047,3048,3049,3050,3051,3052,3053,3054,3055,3056,3057,3058,3059,3060,3061,3062,3063,3064,3065,3066,3067,3068,3069,3070,4001,4002,4003,4004,4005,4006,4007,4008,4009,4010,4011,4012,4013,4014,4015,4016,4017,4018,4019,4020,4021,4022,4023,4024,4025,4026,4027,4028,4030,4031,4032,4033,4035,4036,4037,4038,4039,4040,4041,4042,4043,4044,4045,4046,4047,4048,4049,4050,4051,4052,4053,4054,4055,4056,4057,4058,4059,4060,4061,4062,4063,4064,4065,4066,4068,4069,4070,4071,4072,4073,4074,4075,4076,4077,4078,4079,4080,4081,4082,4083,4084,4085,4086,4087,4088,4089,4090,4091,4092,4093,4094,4095,4096,4097,4098,4099,4100,4101,4102,4103,4104,4105,4106,4107,4108,4109,4110,4111,4112,4113,4114,4115,4116,4118,4119,4120,4121,4122,4123,4124,4501,4502,4503,4504,4505,4506,4507,4508,4509,4510,4511,4512,4513,4514,4515,4516,4517,4518,4519,4520,4521,4522,4523,4524,4525,4526,};\nkk_vector_from_cint32array(arr, (kk_ssize_t)285, kk_context())"
|
c inline "int32_t arr[] = {1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1101,1102,1103,1104,1105,1106,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,3001,3002,3003,3004,3005,3006,3007,3008,3009,3010,3011,3012,3013,3014,3015,3016,3017,3018,3019,3020,3021,3022,3023,3024,3025,3026,3027,3028,3029,3030,3031,3032,3033,3034,3035,3036,3037,3038,3039,3040,3041,3042,3043,3044,3045,3046,3047,3048,3049,3050,3051,3052,3053,3054,3055,3056,3057,3058,3059,3060,3061,3062,3063,3064,3065,3066,3067,3068,3069,3070,4001,4002,4003,4004,4005,4006,4007,4008,4009,4010,4011,4012,4013,4014,4015,4016,4017,4018,4019,4020,4021,4022,4023,4024,4025,4026,4027,4028,4030,4031,4032,4033,4035,4036,4037,4038,4039,4040,4041,4042,4043,4044,4045,4046,4047,4048,4049,4050,4051,4052,4053,4054,4055,4056,4057,4058,4059,4060,4061,4062,4063,4064,4065,4066,4068,4069,4070,4071,4072,4073,4074,4075,4076,4077,4078,4079,4080,4081,4082,4083,4084,4085,4086,4087,4088,4089,4090,4091,4092,4093,4094,4095,4096,4097,4098,4099,4100,4101,4102,4103,4104,4105,4106,4107,4108,4109,4110,4111,4112,4113,4114,4115,4116,4118,4119,4120,4121,4122,4123,4124,4501,4502,4503,4504,4505,4506,4507,4508,4509,4510,4511,4512,4513,4514,4515,4516,4517,4518,4519,4520,4521,4522,4523,4524,4525,4526,};\nkk_vector_from_cint32array(arr, (kk_ssize_t)285, kk_context())"
|
||||||
js inline "[1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1101,1102,1103,1104,1105,1106,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,3001,3002,3003,3004,3005,3006,3007,3008,3009,3010,3011,3012,3013,3014,3015,3016,3017,3018,3019,3020,3021,3022,3023,3024,3025,3026,3027,3028,3029,3030,3031,3032,3033,3034,3035,3036,3037,3038,3039,3040,3041,3042,3043,3044,3045,3046,3047,3048,3049,3050,3051,3052,3053,3054,3055,3056,3057,3058,3059,3060,3061,3062,3063,3064,3065,3066,3067,3068,3069,3070,4001,4002,4003,4004,4005,4006,4007,4008,4009,4010,4011,4012,4013,4014,4015,4016,4017,4018,4019,4020,4021,4022,4023,4024,4025,4026,4027,4028,4030,4031,4032,4033,4035,4036,4037,4038,4039,4040,4041,4042,4043,4044,4045,4046,4047,4048,4049,4050,4051,4052,4053,4054,4055,4056,4057,4058,4059,4060,4061,4062,4063,4064,4065,4066,4068,4069,4070,4071,4072,4073,4074,4075,4076,4077,4078,4079,4080,4081,4082,4083,4084,4085,4086,4087,4088,4089,4090,4091,4092,4093,4094,4095,4096,4097,4098,4099,4100,4101,4102,4103,4104,4105,4106,4107,4108,4109,4110,4111,4112,4113,4114,4115,4116,4118,4119,4120,4121,4122,4123,4124,4501,4502,4503,4504,4505,4506,4507,4508,4509,4510,4511,4512,4513,4514,4515,4516,4517,4518,4519,4520,4521,4522,4523,4524,4525,4526,]"
|
js inline "[1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1101,1102,1103,1104,1105,1106,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,3001,3002,3003,3004,3005,3006,3007,3008,3009,3010,3011,3012,3013,3014,3015,3016,3017,3018,3019,3020,3021,3022,3023,3024,3025,3026,3027,3028,3029,3030,3031,3032,3033,3034,3035,3036,3037,3038,3039,3040,3041,3042,3043,3044,3045,3046,3047,3048,3049,3050,3051,3052,3053,3054,3055,3056,3057,3058,3059,3060,3061,3062,3063,3064,3065,3066,3067,3068,3069,3070,4001,4002,4003,4004,4005,4006,4007,4008,4009,4010,4011,4012,4013,4014,4015,4016,4017,4018,4019,4020,4021,4022,4023,4024,4025,4026,4027,4028,4030,4031,4032,4033,4035,4036,4037,4038,4039,4040,4041,4042,4043,4044,4045,4046,4047,4048,4049,4050,4051,4052,4053,4054,4055,4056,4057,4058,4059,4060,4061,4062,4063,4064,4065,4066,4068,4069,4070,4071,4072,4073,4074,4075,4076,4077,4078,4079,4080,4081,4082,4083,4084,4085,4086,4087,4088,4089,4090,4091,4092,4093,4094,4095,4096,4097,4098,4099,4100,4101,4102,4103,4104,4105,4106,4107,4108,4109,4110,4111,4112,4113,4114,4115,4116,4118,4119,4120,4121,4122,4123,4124,4501,4502,4503,4504,4505,4506,4507,4508,4509,4510,4511,4512,4513,4514,4515,4516,4517,4518,4519,4520,4521,4522,4523,4524,4525,4526,]"
|
||||||
// Vector of all race IDs in order for easy iterating.
|
// Vector of all race IDs in order for easy iterating.
|
||||||
val all = once(create-id-table)
|
pub val all = once(create-id-table)
|
||||||
|
|
||||||
val name2id = once()
|
val name2id = once()
|
||||||
var m: rbmap<string, int> := empty()
|
var m: rbmap<string, int> := empty()
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ extern create-id-table(): vector<int>
|
|||||||
c inline "int32_t arr[] = {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,146,147,148,149,150,151,152,153,154,155,};\nkk_vector_from_cint32array(arr, (kk_ssize_t)155, kk_context())"
|
c inline "int32_t arr[] = {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,146,147,148,149,150,151,152,153,154,155,};\nkk_vector_from_cint32array(arr, (kk_ssize_t)155, kk_context())"
|
||||||
js inline "[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,146,147,148,149,150,151,152,153,154,155,]"
|
js inline "[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,146,147,148,149,150,151,152,153,154,155,]"
|
||||||
// Vector of all saddle IDs in order for easy iterating.
|
// Vector of all saddle IDs in order for easy iterating.
|
||||||
val all = once(create-id-table)
|
pub val all = once(create-id-table)
|
||||||
|
|
||||||
// Get the name for a saddle.
|
// Get the name for a saddle.
|
||||||
// Alternate versions of saddles have an indication of their ID in their names.
|
// Alternate versions of saddles have an indication of their ID in their names.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ extern create-id-table(): vector<int>
|
|||||||
c inline "int32_t arr[] = {1,2,};\nkk_vector_from_cint32array(arr, (kk_ssize_t)2, kk_context())"
|
c inline "int32_t arr[] = {1,2,};\nkk_vector_from_cint32array(arr, (kk_ssize_t)2, kk_context())"
|
||||||
js inline "[1,2,]"
|
js inline "[1,2,]"
|
||||||
// Vector of all scenario IDs in order for easy iterating.
|
// Vector of all scenario IDs in order for easy iterating.
|
||||||
val all = once(create-id-table)
|
pub val all = once(create-id-table)
|
||||||
|
|
||||||
// Get the name for a scenario.
|
// Get the name for a scenario.
|
||||||
// If no scenario matches the ID, the result contains the numeric ID.
|
// If no scenario matches the ID, the result contains the numeric ID.
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ extern create-id-table(): vector<int>
|
|||||||
c inline "int32_t arr[] = {10071,10081,10091,10111,10141,10181,10241,10271,10321,10351,10411,10451,10521,10561,10601,10611,100011,100021,100031,100041,100051,100061,100071,100081,100091,100101,100111,100121,100131,100141,100151,100161,100171,100181,100191,100201,100211,100221,100231,100241,100251,100261,100271,100281,100301,100321,100351,100371,100381,100391,100401,100411,100451,100461,100481,100501,100521,100561,100581,100591,100601,100611,100691,100711,110011,110031,110041,110061,110111,110131,110141,110151,110171,110181,110231,110241,110261,110301,110371,110401,110451,110521,110561,200011,200012,200013,200021,200022,200023,200031,200032,200033,200041,200042,200043,200051,200052,200053,200061,200062,200063,200064,200071,200072,200073,200081,200082,200083,200091,200092,200093,200101,200102,200103,200111,200112,200113,200121,200122,200123,200131,200132,200133,200141,200142,200143,200151,200152,200153,200161,200162,200163,200171,200172,200173,200174,200181,200182,200183,200191,200192,200193,200194,200201,200202,200203,200211,200212,200221,200222,200231,200232,200233,200241,200242,200251,200252,200253,200261,200262,200263,200271,200272,200281,200282,200283,200291,200292,200301,200302,200311,200321,200331,200332,200333,200341,200342,200343,200351,200352,200353,200361,200362,200371,200372,200381,200382,200391,200401,200411,200421,200431,200432,200433,200441,200442,200451,200452,200461,200462,200471,200472,200481,200482,200491,200492,200501,200502,200511,200512,200521,200531,200532,200541,200542,200551,200552,200561,200562,200571,200572,200581,200582,200591,200592,200601,200602,200611,200612,200621,200622,200631,200632,200641,200642,200651,200652,200662,200671,200672,200681,200682,200691,200692,200701,200702,200711,200712,200721,200722,200731,200732,200741,200742,200751,200752,200761,200762,200771,200772,200781,200791,200801,200811,200821,200831,200841,200851,200861,200871,200881,200891,200901,200911,200921,200931,200941,200951,200952,200953,200961,200962,200971,200972,200981,200982,200991,200992,201001,201002,201011,201012,201021,201022,201031,201032,201041,201042,201051,201052,201061,201062,201071,201072,201081,201082,201091,201092,201101,201102,201103,201111,201112,201121,201122,201131,201132,201141,201142,201151,201152,201161,201162,201171,201172,201181,201182,201191,201192,201201,201202,201211,201212,201221,201222,201231,201232,201241,201242,201251,201252,201261,201262,201272,201281,201282,201291,201292,201302,201311,201312,201321,201322,201331,201332,201341,201342,201351,201352,201361,201362,201371,201372,201381,201382,201391,201392,201401,201402,201411,201412,201421,201422,201431,201432,201441,201442,201451,201452,201461,201462,201471,201472,201481,201482,201491,201492,201501,201502,201511,201512,201521,201522,201531,201532,201541,201542,201551,201552,201561,201562,201571,201581,201591,201592,201601,201611,201612,201621,201631,201641,201651,201661,201671,201672,201681,201682,201691,201692,201701,201702,201801,201902,202002,202011,202012,202021,202022,202031,202032,202041,202042,202051,210011,210012,210021,210022,210031,210032,210041,210042,210051,210052,300011,300021,300031,300041,300051,300061,300071,300081,300091,300101,900011,900021,900031,900041,900051,900061,900071,900081,900091,900101,900111,900121,900131,900141,900151,900161,900171,900181,900191,900201,900211,900221,900231,900241,900251,900261,900271,900281,900301,900321,900351,900371,900381,900391,900401,900411,900451,900461,900481,900501,900521,900561,900581,900591,900601,900611,900691,900711,910011,910031,910041,910061,910111,910131,910141,910151,910171,910181,910231,910241,910261,910301,910371,910401,910451,910521,910561,1000011,};\nkk_vector_from_cint32array(arr, (kk_ssize_t)521, kk_context())"
|
c inline "int32_t arr[] = {10071,10081,10091,10111,10141,10181,10241,10271,10321,10351,10411,10451,10521,10561,10601,10611,100011,100021,100031,100041,100051,100061,100071,100081,100091,100101,100111,100121,100131,100141,100151,100161,100171,100181,100191,100201,100211,100221,100231,100241,100251,100261,100271,100281,100301,100321,100351,100371,100381,100391,100401,100411,100451,100461,100481,100501,100521,100561,100581,100591,100601,100611,100691,100711,110011,110031,110041,110061,110111,110131,110141,110151,110171,110181,110231,110241,110261,110301,110371,110401,110451,110521,110561,200011,200012,200013,200021,200022,200023,200031,200032,200033,200041,200042,200043,200051,200052,200053,200061,200062,200063,200064,200071,200072,200073,200081,200082,200083,200091,200092,200093,200101,200102,200103,200111,200112,200113,200121,200122,200123,200131,200132,200133,200141,200142,200143,200151,200152,200153,200161,200162,200163,200171,200172,200173,200174,200181,200182,200183,200191,200192,200193,200194,200201,200202,200203,200211,200212,200221,200222,200231,200232,200233,200241,200242,200251,200252,200253,200261,200262,200263,200271,200272,200281,200282,200283,200291,200292,200301,200302,200311,200321,200331,200332,200333,200341,200342,200343,200351,200352,200353,200361,200362,200371,200372,200381,200382,200391,200401,200411,200421,200431,200432,200433,200441,200442,200451,200452,200461,200462,200471,200472,200481,200482,200491,200492,200501,200502,200511,200512,200521,200531,200532,200541,200542,200551,200552,200561,200562,200571,200572,200581,200582,200591,200592,200601,200602,200611,200612,200621,200622,200631,200632,200641,200642,200651,200652,200662,200671,200672,200681,200682,200691,200692,200701,200702,200711,200712,200721,200722,200731,200732,200741,200742,200751,200752,200761,200762,200771,200772,200781,200791,200801,200811,200821,200831,200841,200851,200861,200871,200881,200891,200901,200911,200921,200931,200941,200951,200952,200953,200961,200962,200971,200972,200981,200982,200991,200992,201001,201002,201011,201012,201021,201022,201031,201032,201041,201042,201051,201052,201061,201062,201071,201072,201081,201082,201091,201092,201101,201102,201103,201111,201112,201121,201122,201131,201132,201141,201142,201151,201152,201161,201162,201171,201172,201181,201182,201191,201192,201201,201202,201211,201212,201221,201222,201231,201232,201241,201242,201251,201252,201261,201262,201272,201281,201282,201291,201292,201302,201311,201312,201321,201322,201331,201332,201341,201342,201351,201352,201361,201362,201371,201372,201381,201382,201391,201392,201401,201402,201411,201412,201421,201422,201431,201432,201441,201442,201451,201452,201461,201462,201471,201472,201481,201482,201491,201492,201501,201502,201511,201512,201521,201522,201531,201532,201541,201542,201551,201552,201561,201562,201571,201581,201591,201592,201601,201611,201612,201621,201631,201641,201651,201661,201671,201672,201681,201682,201691,201692,201701,201702,201801,201902,202002,202011,202012,202021,202022,202031,202032,202041,202042,202051,210011,210012,210021,210022,210031,210032,210041,210042,210051,210052,300011,300021,300031,300041,300051,300061,300071,300081,300091,300101,900011,900021,900031,900041,900051,900061,900071,900081,900091,900101,900111,900121,900131,900141,900151,900161,900171,900181,900191,900201,900211,900221,900231,900241,900251,900261,900271,900281,900301,900321,900351,900371,900381,900391,900401,900411,900451,900461,900481,900501,900521,900561,900581,900591,900601,900611,900691,900711,910011,910031,910041,910061,910111,910131,910141,910151,910171,910181,910231,910241,910261,910301,910371,910401,910451,910521,910561,1000011,};\nkk_vector_from_cint32array(arr, (kk_ssize_t)521, kk_context())"
|
||||||
js inline "[10071,10081,10091,10111,10141,10181,10241,10271,10321,10351,10411,10451,10521,10561,10601,10611,100011,100021,100031,100041,100051,100061,100071,100081,100091,100101,100111,100121,100131,100141,100151,100161,100171,100181,100191,100201,100211,100221,100231,100241,100251,100261,100271,100281,100301,100321,100351,100371,100381,100391,100401,100411,100451,100461,100481,100501,100521,100561,100581,100591,100601,100611,100691,100711,110011,110031,110041,110061,110111,110131,110141,110151,110171,110181,110231,110241,110261,110301,110371,110401,110451,110521,110561,200011,200012,200013,200021,200022,200023,200031,200032,200033,200041,200042,200043,200051,200052,200053,200061,200062,200063,200064,200071,200072,200073,200081,200082,200083,200091,200092,200093,200101,200102,200103,200111,200112,200113,200121,200122,200123,200131,200132,200133,200141,200142,200143,200151,200152,200153,200161,200162,200163,200171,200172,200173,200174,200181,200182,200183,200191,200192,200193,200194,200201,200202,200203,200211,200212,200221,200222,200231,200232,200233,200241,200242,200251,200252,200253,200261,200262,200263,200271,200272,200281,200282,200283,200291,200292,200301,200302,200311,200321,200331,200332,200333,200341,200342,200343,200351,200352,200353,200361,200362,200371,200372,200381,200382,200391,200401,200411,200421,200431,200432,200433,200441,200442,200451,200452,200461,200462,200471,200472,200481,200482,200491,200492,200501,200502,200511,200512,200521,200531,200532,200541,200542,200551,200552,200561,200562,200571,200572,200581,200582,200591,200592,200601,200602,200611,200612,200621,200622,200631,200632,200641,200642,200651,200652,200662,200671,200672,200681,200682,200691,200692,200701,200702,200711,200712,200721,200722,200731,200732,200741,200742,200751,200752,200761,200762,200771,200772,200781,200791,200801,200811,200821,200831,200841,200851,200861,200871,200881,200891,200901,200911,200921,200931,200941,200951,200952,200953,200961,200962,200971,200972,200981,200982,200991,200992,201001,201002,201011,201012,201021,201022,201031,201032,201041,201042,201051,201052,201061,201062,201071,201072,201081,201082,201091,201092,201101,201102,201103,201111,201112,201121,201122,201131,201132,201141,201142,201151,201152,201161,201162,201171,201172,201181,201182,201191,201192,201201,201202,201211,201212,201221,201222,201231,201232,201241,201242,201251,201252,201261,201262,201272,201281,201282,201291,201292,201302,201311,201312,201321,201322,201331,201332,201341,201342,201351,201352,201361,201362,201371,201372,201381,201382,201391,201392,201401,201402,201411,201412,201421,201422,201431,201432,201441,201442,201451,201452,201461,201462,201471,201472,201481,201482,201491,201492,201501,201502,201511,201512,201521,201522,201531,201532,201541,201542,201551,201552,201561,201562,201571,201581,201591,201592,201601,201611,201612,201621,201631,201641,201651,201661,201671,201672,201681,201682,201691,201692,201701,201702,201801,201902,202002,202011,202012,202021,202022,202031,202032,202041,202042,202051,210011,210012,210021,210022,210031,210032,210041,210042,210051,210052,300011,300021,300031,300041,300051,300061,300071,300081,300091,300101,900011,900021,900031,900041,900051,900061,900071,900081,900091,900101,900111,900121,900131,900141,900151,900161,900171,900181,900191,900201,900211,900221,900231,900241,900251,900261,900271,900281,900301,900321,900351,900371,900381,900391,900401,900411,900451,900461,900481,900501,900521,900561,900581,900591,900601,900611,900691,900711,910011,910031,910041,910061,910111,910131,910141,910151,910171,910181,910231,910241,910261,910301,910371,910401,910451,910521,910561,1000011,]"
|
js inline "[10071,10081,10091,10111,10141,10181,10241,10271,10321,10351,10411,10451,10521,10561,10601,10611,100011,100021,100031,100041,100051,100061,100071,100081,100091,100101,100111,100121,100131,100141,100151,100161,100171,100181,100191,100201,100211,100221,100231,100241,100251,100261,100271,100281,100301,100321,100351,100371,100381,100391,100401,100411,100451,100461,100481,100501,100521,100561,100581,100591,100601,100611,100691,100711,110011,110031,110041,110061,110111,110131,110141,110151,110171,110181,110231,110241,110261,110301,110371,110401,110451,110521,110561,200011,200012,200013,200021,200022,200023,200031,200032,200033,200041,200042,200043,200051,200052,200053,200061,200062,200063,200064,200071,200072,200073,200081,200082,200083,200091,200092,200093,200101,200102,200103,200111,200112,200113,200121,200122,200123,200131,200132,200133,200141,200142,200143,200151,200152,200153,200161,200162,200163,200171,200172,200173,200174,200181,200182,200183,200191,200192,200193,200194,200201,200202,200203,200211,200212,200221,200222,200231,200232,200233,200241,200242,200251,200252,200253,200261,200262,200263,200271,200272,200281,200282,200283,200291,200292,200301,200302,200311,200321,200331,200332,200333,200341,200342,200343,200351,200352,200353,200361,200362,200371,200372,200381,200382,200391,200401,200411,200421,200431,200432,200433,200441,200442,200451,200452,200461,200462,200471,200472,200481,200482,200491,200492,200501,200502,200511,200512,200521,200531,200532,200541,200542,200551,200552,200561,200562,200571,200572,200581,200582,200591,200592,200601,200602,200611,200612,200621,200622,200631,200632,200641,200642,200651,200652,200662,200671,200672,200681,200682,200691,200692,200701,200702,200711,200712,200721,200722,200731,200732,200741,200742,200751,200752,200761,200762,200771,200772,200781,200791,200801,200811,200821,200831,200841,200851,200861,200871,200881,200891,200901,200911,200921,200931,200941,200951,200952,200953,200961,200962,200971,200972,200981,200982,200991,200992,201001,201002,201011,201012,201021,201022,201031,201032,201041,201042,201051,201052,201061,201062,201071,201072,201081,201082,201091,201092,201101,201102,201103,201111,201112,201121,201122,201131,201132,201141,201142,201151,201152,201161,201162,201171,201172,201181,201182,201191,201192,201201,201202,201211,201212,201221,201222,201231,201232,201241,201242,201251,201252,201261,201262,201272,201281,201282,201291,201292,201302,201311,201312,201321,201322,201331,201332,201341,201342,201351,201352,201361,201362,201371,201372,201381,201382,201391,201392,201401,201402,201411,201412,201421,201422,201431,201432,201441,201442,201451,201452,201461,201462,201471,201472,201481,201482,201491,201492,201501,201502,201511,201512,201521,201522,201531,201532,201541,201542,201551,201552,201561,201562,201571,201581,201591,201592,201601,201611,201612,201621,201631,201641,201651,201661,201671,201672,201681,201682,201691,201692,201701,201702,201801,201902,202002,202011,202012,202021,202022,202031,202032,202041,202042,202051,210011,210012,210021,210022,210031,210032,210041,210042,210051,210052,300011,300021,300031,300041,300051,300061,300071,300081,300091,300101,900011,900021,900031,900041,900051,900061,900071,900081,900091,900101,900111,900121,900131,900141,900151,900161,900171,900181,900191,900201,900211,900221,900231,900241,900251,900261,900271,900281,900301,900321,900351,900371,900381,900391,900401,900411,900451,900461,900481,900501,900521,900561,900581,900591,900601,900611,900691,900711,910011,910031,910041,910061,910111,910131,910141,910151,910171,910181,910231,910241,910261,910301,910371,910401,910451,910521,910561,1000011,]"
|
||||||
// Vector of all skill ID values in order for easy iterating.
|
// Vector of all skill ID values in order for easy iterating.
|
||||||
val all = once(create-id-table)
|
pub val all = once(create-id-table)
|
||||||
|
|
||||||
val name2id = once()
|
val name2id = once()
|
||||||
var m: rbmap<string, int> := empty()
|
var m: rbmap<string, int> := empty()
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -13,7 +13,7 @@ extern create-id-table(): vector<int>
|
|||||||
c inline "int32_t arr[] = {100101,100102,100201,100301,100302,100401,100402,100501,100601,100602,100701,100801,100901,101001,101101,101102,101201,101301,101302,101401,101402,101501,101502,101601,101701,101702,101801,101802,101901,102001,102101,102201,102301,102302,102401,102402,102501,102601,102602,102701,102801,103001,103002,103201,103501,103701,103702,103801,103901,104001,104002,104101,104501,104502,104601,104801,105001,105201,105202,105601,105602,105801,105901,106001,106101,106901,107101,};\nkk_vector_from_cint32array(arr, (kk_ssize_t)67, kk_context())"
|
c inline "int32_t arr[] = {100101,100102,100201,100301,100302,100401,100402,100501,100601,100602,100701,100801,100901,101001,101101,101102,101201,101301,101302,101401,101402,101501,101502,101601,101701,101702,101801,101802,101901,102001,102101,102201,102301,102302,102401,102402,102501,102601,102602,102701,102801,103001,103002,103201,103501,103701,103702,103801,103901,104001,104002,104101,104501,104502,104601,104801,105001,105201,105202,105601,105602,105801,105901,106001,106101,106901,107101,};\nkk_vector_from_cint32array(arr, (kk_ssize_t)67, kk_context())"
|
||||||
js inline "[100101,100102,100201,100301,100302,100401,100402,100501,100601,100602,100701,100801,100901,101001,101101,101102,101201,101301,101302,101401,101402,101501,101502,101601,101701,101702,101801,101802,101901,102001,102101,102201,102301,102302,102401,102402,102501,102601,102602,102701,102801,103001,103002,103201,103501,103701,103702,103801,103901,104001,104002,104101,104501,104502,104601,104801,105001,105201,105202,105601,105602,105801,105901,106001,106101,106901,107101,]"
|
js inline "[100101,100102,100201,100301,100302,100401,100402,100501,100601,100602,100701,100801,100901,101001,101101,101102,101201,101301,101302,101401,101402,101501,101502,101601,101701,101702,101801,101802,101901,102001,102101,102201,102301,102302,102401,102402,102501,102601,102602,102701,102801,103001,103002,103201,103501,103701,103702,103801,103901,104001,104002,104101,104501,104502,104601,104801,105001,105201,105202,105601,105602,105801,105901,106001,106101,106901,107101,]"
|
||||||
// Vector of all Uma IDs in order for easy iterating.
|
// Vector of all Uma IDs in order for easy iterating.
|
||||||
val vall = once(create-id-table)
|
pub val all = once(create-id-table)
|
||||||
|
|
||||||
// Get the name for an Uma.
|
// Get the name for an Uma.
|
||||||
// The name includes the costume variant, e.g. `[Special Dreamer] Special Week`.
|
// The name includes the costume variant, e.g. `[Special Dreamer] Special Week`.
|
||||||
|
|||||||
@@ -91,5 +91,4 @@ val global/trio-table = global/create-trio-table()
|
|||||||
// Base affinity for a trio using the global ruleset.
|
// Base affinity for a trio using the global ruleset.
|
||||||
pub fun global/trio-affinity(a: character-id, b: character-id, c: character-id): int
|
pub fun global/trio-affinity(a: character-id, b: character-id, c: character-id): int
|
||||||
global/trio-table.at(a.index * {{ $.CharaCount }} * {{ $.CharaCount }} + b.index * {{ $.CharaCount }} + c.index).default(0)
|
global/trio-table.at(a.index * {{ $.CharaCount }} * {{ $.CharaCount }} + b.index * {{ $.CharaCount }} + c.index).default(0)
|
||||||
|
{{ end }}
|
||||||
{{- end }}
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ extern create-id-table(): vector<int>
|
|||||||
c inline "int32_t arr[] = { {{- range $r := $.Races }}{{ $r.ID }},{{ end -}} };\nkk_vector_from_cint32array(arr, (kk_ssize_t){{ $.RaceCount }}, kk_context())"
|
c inline "int32_t arr[] = { {{- range $r := $.Races }}{{ $r.ID }},{{ end -}} };\nkk_vector_from_cint32array(arr, (kk_ssize_t){{ $.RaceCount }}, kk_context())"
|
||||||
js inline "[{{ range $r := $.Races }}{{ $r.ID }},{{ end }}]"
|
js inline "[{{ range $r := $.Races }}{{ $r.ID }},{{ end }}]"
|
||||||
// Vector of all race IDs in order for easy iterating.
|
// Vector of all race IDs in order for easy iterating.
|
||||||
val all = once(create-id-table)
|
pub val all = once(create-id-table)
|
||||||
|
|
||||||
val name2id = once()
|
val name2id = once()
|
||||||
var m: rbmap<string, int> := empty()
|
var m: rbmap<string, int> := empty()
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ extern create-id-table(): vector<int>
|
|||||||
c inline "int32_t arr[] = { {{- range $s := $.Saddles }}{{ $s.ID }},{{ end -}} };\nkk_vector_from_cint32array(arr, (kk_ssize_t){{ $.SaddleCount }}, kk_context())"
|
c inline "int32_t arr[] = { {{- range $s := $.Saddles }}{{ $s.ID }},{{ end -}} };\nkk_vector_from_cint32array(arr, (kk_ssize_t){{ $.SaddleCount }}, kk_context())"
|
||||||
js inline "[{{ range $s := $.Saddles }}{{ $s.ID }},{{ end }}]"
|
js inline "[{{ range $s := $.Saddles }}{{ $s.ID }},{{ end }}]"
|
||||||
// Vector of all saddle IDs in order for easy iterating.
|
// Vector of all saddle IDs in order for easy iterating.
|
||||||
val all = once(create-id-table)
|
pub val all = once(create-id-table)
|
||||||
|
|
||||||
// Get the name for a saddle.
|
// Get the name for a saddle.
|
||||||
// Alternate versions of saddles have an indication of their ID in their names.
|
// Alternate versions of saddles have an indication of their ID in their names.
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ extern create-id-table(): vector<int>
|
|||||||
c inline "int32_t arr[] = { {{- range $s := $.Scenarios }}{{ $s.ID }},{{ end -}} };\nkk_vector_from_cint32array(arr, (kk_ssize_t){{ $.ScenarioCount }}, kk_context())"
|
c inline "int32_t arr[] = { {{- range $s := $.Scenarios }}{{ $s.ID }},{{ end -}} };\nkk_vector_from_cint32array(arr, (kk_ssize_t){{ $.ScenarioCount }}, kk_context())"
|
||||||
js inline "[{{ range $s := $.Scenarios }}{{ $s.ID }},{{ end }}]"
|
js inline "[{{ range $s := $.Scenarios }}{{ $s.ID }},{{ end }}]"
|
||||||
// Vector of all scenario IDs in order for easy iterating.
|
// Vector of all scenario IDs in order for easy iterating.
|
||||||
val all = once(create-id-table)
|
pub val all = once(create-id-table)
|
||||||
|
|
||||||
// Get the name for a scenario.
|
// Get the name for a scenario.
|
||||||
// If no scenario matches the ID, the result contains the numeric ID.
|
// If no scenario matches the ID, the result contains the numeric ID.
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ extern create-id-table(): vector<int>
|
|||||||
c inline "int32_t arr[] = { {{- range $s := $.Skills }}{{ $s.ID }},{{ end -}} };\nkk_vector_from_cint32array(arr, (kk_ssize_t){{ $.SkillCount }}, kk_context())"
|
c inline "int32_t arr[] = { {{- range $s := $.Skills }}{{ $s.ID }},{{ end -}} };\nkk_vector_from_cint32array(arr, (kk_ssize_t){{ $.SkillCount }}, kk_context())"
|
||||||
js inline "[{{ range $s := $.Skills }}{{ $s.ID }},{{ end }}]"
|
js inline "[{{ range $s := $.Skills }}{{ $s.ID }},{{ end }}]"
|
||||||
// Vector of all skill ID values in order for easy iterating.
|
// Vector of all skill ID values in order for easy iterating.
|
||||||
val all = once(create-id-table)
|
pub val all = once(create-id-table)
|
||||||
|
|
||||||
val name2id = once()
|
val name2id = once()
|
||||||
var m: rbmap<string, int> := empty()
|
var m: rbmap<string, int> := empty()
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ extern create-id-table(): vector<int>
|
|||||||
c inline "int32_t arr[] = { {{- range $s := $.Sparks }}{{ $s.ID }},{{ end -}} };\nkk_vector_from_cint32array(arr, (kk_ssize_t){{ $.SparkCount }}, kk_context())"
|
c inline "int32_t arr[] = { {{- range $s := $.Sparks }}{{ $s.ID }},{{ end -}} };\nkk_vector_from_cint32array(arr, (kk_ssize_t){{ $.SparkCount }}, kk_context())"
|
||||||
js inline "[{{ range $s := $.Sparks }}{{ $s.ID }},{{ end }}]"
|
js inline "[{{ range $s := $.Sparks }}{{ $s.ID }},{{ end }}]"
|
||||||
// Vector of all spark IDs in order for easy iterating.
|
// Vector of all spark IDs in order for easy iterating.
|
||||||
val all = once(create-id-table)
|
pub val all = once(create-id-table)
|
||||||
|
|
||||||
// Get the name for a spark.
|
// Get the name for a spark.
|
||||||
// The name does not indicate the spark level.
|
// The name does not indicate the spark level.
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ extern create-id-table(): vector<int>
|
|||||||
c inline "int32_t arr[] = { {{- range $uma := $.Umas }}{{ $uma.ID }},{{ end -}} };\nkk_vector_from_cint32array(arr, (kk_ssize_t){{ $.UmaCount }}, kk_context())"
|
c inline "int32_t arr[] = { {{- range $uma := $.Umas }}{{ $uma.ID }},{{ end -}} };\nkk_vector_from_cint32array(arr, (kk_ssize_t){{ $.UmaCount }}, kk_context())"
|
||||||
js inline "[{{ range $uma := $.Umas }}{{ $uma.ID }},{{ end }}]"
|
js inline "[{{ range $uma := $.Umas }}{{ $uma.ID }},{{ end }}]"
|
||||||
// Vector of all Uma IDs in order for easy iterating.
|
// Vector of all Uma IDs in order for easy iterating.
|
||||||
val vall = once(create-id-table)
|
pub val all = once(create-id-table)
|
||||||
|
|
||||||
// Get the name for an Uma.
|
// Get the name for an Uma.
|
||||||
// The name includes the costume variant, e.g. `[Special Dreamer] Special Week`.
|
// The name includes the costume variant, e.g. `[Special Dreamer] Special Week`.
|
||||||
|
|||||||
Reference in New Issue
Block a user