diff --git a/horse/global/character.kk b/horse/global/character.kk index 077f16e..7135644 100644 --- a/horse/global/character.kk +++ b/horse/global/character.kk @@ -161,4 +161,4 @@ val global/trio-table = global/create-trio-table() // Base affinity for a trio using the global ruleset. pub fun global/trio-affinity(a: character-id, b: character-id, c: character-id): int - global/trio-table.at(a.index * 53 * 53 + b.index * 53 + c.index).default(0) \ No newline at end of file + global/trio-table.at(a.index * 53 * 53 + b.index * 53 + c.index).default(0) diff --git a/horse/global/race.kk b/horse/global/race.kk index 0f5fcd5..8afd257 100644 --- a/horse/global/race.kk +++ b/horse/global/race.kk @@ -13,7 +13,7 @@ extern create-id-table(): vector 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,]" // 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() var m: rbmap := empty() diff --git a/horse/global/saddle.kk b/horse/global/saddle.kk index 4f7c8a2..ed920ec 100644 --- a/horse/global/saddle.kk +++ b/horse/global/saddle.kk @@ -13,7 +13,7 @@ extern create-id-table(): vector 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,]" // 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. // Alternate versions of saddles have an indication of their ID in their names. diff --git a/horse/global/scenario.kk b/horse/global/scenario.kk index bf009e9..39ada23 100644 --- a/horse/global/scenario.kk +++ b/horse/global/scenario.kk @@ -11,7 +11,7 @@ extern create-id-table(): vector c inline "int32_t arr[] = {1,2,};\nkk_vector_from_cint32array(arr, (kk_ssize_t)2, kk_context())" js inline "[1,2,]" // 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. // If no scenario matches the ID, the result contains the numeric ID. diff --git a/horse/global/skill.kk b/horse/global/skill.kk index 05e5910..984d14e 100644 --- a/horse/global/skill.kk +++ b/horse/global/skill.kk @@ -15,7 +15,7 @@ extern create-id-table(): vector 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,]" // 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() var m: rbmap := empty() diff --git a/horse/global/spark.kk b/horse/global/spark.kk index 33c15de..a31141d 100644 --- a/horse/global/spark.kk +++ b/horse/global/spark.kk @@ -12,7 +12,7 @@ extern create-id-table(): vector c inline "int32_t arr[] = {101,102,103,201,202,203,301,302,303,401,402,403,501,502,503,1101,1102,1103,1201,1202,1203,2101,2102,2103,2201,2202,2203,2301,2302,2303,2401,2402,2403,3101,3102,3103,3201,3202,3203,3301,3302,3303,3401,3402,3403,1000101,1000102,1000103,1000201,1000202,1000203,1000301,1000302,1000303,1000401,1000402,1000403,1000501,1000502,1000503,1000601,1000602,1000603,1000701,1000702,1000703,1000801,1000802,1000803,1000901,1000902,1000903,1001001,1001002,1001003,1001101,1001102,1001103,1001201,1001202,1001203,1001301,1001302,1001303,1001401,1001402,1001403,1001501,1001502,1001503,1001601,1001602,1001603,1001701,1001702,1001703,1001801,1001802,1001803,1001901,1001902,1001903,1002001,1002002,1002003,1002101,1002102,1002103,1002201,1002202,1002203,1002301,1002302,1002303,1002401,1002402,1002403,1002501,1002502,1002503,1002601,1002602,1002603,1002701,1002702,1002703,1002801,1002802,1002803,1002901,1002902,1002903,1003001,1003002,1003003,2000101,2000102,2000103,2000201,2000202,2000203,2000301,2000302,2000303,2000401,2000402,2000403,2000501,2000502,2000503,2000601,2000602,2000603,2000701,2000702,2000703,2000801,2000802,2000803,2000901,2000902,2000903,2001001,2001002,2001003,2001101,2001102,2001103,2001201,2001202,2001203,2001301,2001302,2001303,2001401,2001402,2001403,2001501,2001502,2001503,2001601,2001602,2001603,2001701,2001702,2001703,2001801,2001802,2001803,2001901,2001902,2001903,2002001,2002002,2002003,2002101,2002102,2002103,2002201,2002202,2002203,2002301,2002302,2002303,2002401,2002402,2002403,2002501,2002502,2002503,2002601,2002602,2002603,2002701,2002702,2002703,2002801,2002802,2002803,2002901,2002902,2002903,2003001,2003002,2003003,2003301,2003302,2003303,2003401,2003402,2003403,2003501,2003502,2003503,2003601,2003602,2003603,2003701,2003702,2003703,2003801,2003802,2003803,2004301,2004302,2004303,2004401,2004402,2004403,2004501,2004502,2004503,2004601,2004602,2004603,2004701,2004702,2004703,2004801,2004802,2004803,2004901,2004902,2004903,2005001,2005002,2005003,2005101,2005102,2005103,2005301,2005302,2005303,2005401,2005402,2005403,2005501,2005502,2005503,2005601,2005602,2005603,2005701,2005702,2005703,2005801,2005802,2005803,2005901,2005902,2005903,2006001,2006002,2006003,2006101,2006102,2006103,2006201,2006202,2006203,2006301,2006302,2006303,2006401,2006402,2006403,2006501,2006502,2006503,2006601,2006602,2006603,2006701,2006702,2006703,2006801,2006802,2006803,2006901,2006902,2006903,2007001,2007002,2007003,2007101,2007102,2007103,2007201,2007202,2007203,2007301,2007302,2007303,2007401,2007402,2007403,2007501,2007502,2007503,2007601,2007602,2007603,2007701,2007702,2007703,2007801,2007802,2007803,2007901,2007902,2007903,2008001,2008002,2008003,2008101,2008102,2008103,2008201,2008202,2008203,2008301,2008302,2008303,2008401,2008402,2008403,2008501,2008502,2008503,2008601,2008602,2008603,2008701,2008702,2008703,2008801,2008802,2008803,2008901,2008902,2008903,2009001,2009002,2009003,2009101,2009102,2009103,2009201,2009202,2009203,2009301,2009302,2009303,2009401,2009402,2009403,2009501,2009502,2009503,2009601,2009602,2009603,2009701,2009702,2009703,2009801,2009802,2009803,2009901,2009902,2009903,2010001,2010002,2010003,2010101,2010102,2010103,2010201,2010202,2010203,2010301,2010302,2010303,2010401,2010402,2010403,2010501,2010502,2010503,2010601,2010602,2010603,2010701,2010702,2010703,2010801,2010802,2010803,2010901,2010902,2010903,2011001,2011002,2011003,2011101,2011102,2011103,2011201,2011202,2011203,2011301,2011302,2011303,2011401,2011402,2011403,2011501,2011502,2011503,2011601,2011602,2011603,2011701,2011702,2011703,2011801,2011802,2011803,2011901,2011902,2011903,2012001,2012002,2012003,2012101,2012102,2012103,2012201,2012202,2012203,2012301,2012302,2012303,2012401,2012402,2012403,2012501,2012502,2012503,2012601,2012602,2012603,2012701,2012702,2012703,2012801,2012802,2012803,2012901,2012902,2012903,2013001,2013002,2013003,2013101,2013102,2013103,2013201,2013202,2013203,2013301,2013302,2013303,2013401,2013402,2013403,2013501,2013502,2013503,2013601,2013602,2013603,2013701,2013702,2013703,2013801,2013802,2013803,2013901,2013902,2013903,2014001,2014002,2014003,2014101,2014102,2014103,2014201,2014202,2014203,2014301,2014302,2014303,2014401,2014402,2014403,2014501,2014502,2014503,2014601,2014602,2014603,2014701,2014702,2014703,2014801,2014802,2014803,2014901,2014902,2014903,2015001,2015002,2015003,2015101,2015102,2015103,2015201,2015202,2015203,2015301,2015302,2015303,2015401,2015402,2015403,2015501,2015502,2015503,2015601,2015602,2015603,2015701,2015702,2015703,2015801,2015802,2015803,2015901,2015902,2015903,2016001,2016002,2016003,2016101,2016102,2016103,2016201,2016202,2016203,2016301,2016302,2016303,2016401,2016402,2016403,2016501,2016502,2016503,2016601,2016602,2016603,2016701,2016702,2016703,2016801,2016802,2016803,2016901,2016902,2016903,2017001,2017002,2017003,2019001,2019002,2019003,2020001,2020002,2020003,2020101,2020102,2020103,2020201,2020202,2020203,2020301,2020302,2020303,2020401,2020402,2020403,2100101,2100102,2100103,2100201,2100202,2100203,2100301,2100302,2100303,2100401,2100402,2100403,2100501,2100502,2100503,3000101,3000102,3000103,3000201,3000202,3000203,10010101,10010102,10010103,10010201,10010202,10010203,10020101,10020102,10020103,10030101,10030102,10030103,10030201,10030202,10030203,10040101,10040102,10040103,10040201,10040202,10040203,10050101,10050102,10050103,10060101,10060102,10060103,10060201,10060202,10060203,10070101,10070102,10070103,10080101,10080102,10080103,10090101,10090102,10090103,10100101,10100102,10100103,10110101,10110102,10110103,10110201,10110202,10110203,10120101,10120102,10120103,10130101,10130102,10130103,10130201,10130202,10130203,10140101,10140102,10140103,10140201,10140202,10140203,10150101,10150102,10150103,10150201,10150202,10150203,10160101,10160102,10160103,10170101,10170102,10170103,10170201,10170202,10170203,10180101,10180102,10180103,10180201,10180202,10180203,10190101,10190102,10190103,10200101,10200102,10200103,10210101,10210102,10210103,10220101,10220102,10220103,10230101,10230102,10230103,10230201,10230202,10230203,10240101,10240102,10240103,10240201,10240202,10240203,10250101,10250102,10250103,10260101,10260102,10260103,10260201,10260202,10260203,10270101,10270102,10270103,10280101,10280102,10280103,10300101,10300102,10300103,10300201,10300202,10300203,10320101,10320102,10320103,10350101,10350102,10350103,10370101,10370102,10370103,10370201,10370202,10370203,10380101,10380102,10380103,10390101,10390102,10390103,10400101,10400102,10400103,10400201,10400202,10400203,10410101,10410102,10410103,10450101,10450102,10450103,10450201,10450202,10450203,10460101,10460102,10460103,10480101,10480102,10480103,10500101,10500102,10500103,10520101,10520102,10520103,10520201,10520202,10520203,10560101,10560102,10560103,10560201,10560202,10560203,10580101,10580102,10580103,10590101,10590102,10590103,10600101,10600102,10600103,10610101,10610102,10610103,10690101,10690102,10690103,10710101,10710102,10710103,};\nkk_vector_from_cint32array(arr, (kk_ssize_t)864, kk_context())" js inline "[101,102,103,201,202,203,301,302,303,401,402,403,501,502,503,1101,1102,1103,1201,1202,1203,2101,2102,2103,2201,2202,2203,2301,2302,2303,2401,2402,2403,3101,3102,3103,3201,3202,3203,3301,3302,3303,3401,3402,3403,1000101,1000102,1000103,1000201,1000202,1000203,1000301,1000302,1000303,1000401,1000402,1000403,1000501,1000502,1000503,1000601,1000602,1000603,1000701,1000702,1000703,1000801,1000802,1000803,1000901,1000902,1000903,1001001,1001002,1001003,1001101,1001102,1001103,1001201,1001202,1001203,1001301,1001302,1001303,1001401,1001402,1001403,1001501,1001502,1001503,1001601,1001602,1001603,1001701,1001702,1001703,1001801,1001802,1001803,1001901,1001902,1001903,1002001,1002002,1002003,1002101,1002102,1002103,1002201,1002202,1002203,1002301,1002302,1002303,1002401,1002402,1002403,1002501,1002502,1002503,1002601,1002602,1002603,1002701,1002702,1002703,1002801,1002802,1002803,1002901,1002902,1002903,1003001,1003002,1003003,2000101,2000102,2000103,2000201,2000202,2000203,2000301,2000302,2000303,2000401,2000402,2000403,2000501,2000502,2000503,2000601,2000602,2000603,2000701,2000702,2000703,2000801,2000802,2000803,2000901,2000902,2000903,2001001,2001002,2001003,2001101,2001102,2001103,2001201,2001202,2001203,2001301,2001302,2001303,2001401,2001402,2001403,2001501,2001502,2001503,2001601,2001602,2001603,2001701,2001702,2001703,2001801,2001802,2001803,2001901,2001902,2001903,2002001,2002002,2002003,2002101,2002102,2002103,2002201,2002202,2002203,2002301,2002302,2002303,2002401,2002402,2002403,2002501,2002502,2002503,2002601,2002602,2002603,2002701,2002702,2002703,2002801,2002802,2002803,2002901,2002902,2002903,2003001,2003002,2003003,2003301,2003302,2003303,2003401,2003402,2003403,2003501,2003502,2003503,2003601,2003602,2003603,2003701,2003702,2003703,2003801,2003802,2003803,2004301,2004302,2004303,2004401,2004402,2004403,2004501,2004502,2004503,2004601,2004602,2004603,2004701,2004702,2004703,2004801,2004802,2004803,2004901,2004902,2004903,2005001,2005002,2005003,2005101,2005102,2005103,2005301,2005302,2005303,2005401,2005402,2005403,2005501,2005502,2005503,2005601,2005602,2005603,2005701,2005702,2005703,2005801,2005802,2005803,2005901,2005902,2005903,2006001,2006002,2006003,2006101,2006102,2006103,2006201,2006202,2006203,2006301,2006302,2006303,2006401,2006402,2006403,2006501,2006502,2006503,2006601,2006602,2006603,2006701,2006702,2006703,2006801,2006802,2006803,2006901,2006902,2006903,2007001,2007002,2007003,2007101,2007102,2007103,2007201,2007202,2007203,2007301,2007302,2007303,2007401,2007402,2007403,2007501,2007502,2007503,2007601,2007602,2007603,2007701,2007702,2007703,2007801,2007802,2007803,2007901,2007902,2007903,2008001,2008002,2008003,2008101,2008102,2008103,2008201,2008202,2008203,2008301,2008302,2008303,2008401,2008402,2008403,2008501,2008502,2008503,2008601,2008602,2008603,2008701,2008702,2008703,2008801,2008802,2008803,2008901,2008902,2008903,2009001,2009002,2009003,2009101,2009102,2009103,2009201,2009202,2009203,2009301,2009302,2009303,2009401,2009402,2009403,2009501,2009502,2009503,2009601,2009602,2009603,2009701,2009702,2009703,2009801,2009802,2009803,2009901,2009902,2009903,2010001,2010002,2010003,2010101,2010102,2010103,2010201,2010202,2010203,2010301,2010302,2010303,2010401,2010402,2010403,2010501,2010502,2010503,2010601,2010602,2010603,2010701,2010702,2010703,2010801,2010802,2010803,2010901,2010902,2010903,2011001,2011002,2011003,2011101,2011102,2011103,2011201,2011202,2011203,2011301,2011302,2011303,2011401,2011402,2011403,2011501,2011502,2011503,2011601,2011602,2011603,2011701,2011702,2011703,2011801,2011802,2011803,2011901,2011902,2011903,2012001,2012002,2012003,2012101,2012102,2012103,2012201,2012202,2012203,2012301,2012302,2012303,2012401,2012402,2012403,2012501,2012502,2012503,2012601,2012602,2012603,2012701,2012702,2012703,2012801,2012802,2012803,2012901,2012902,2012903,2013001,2013002,2013003,2013101,2013102,2013103,2013201,2013202,2013203,2013301,2013302,2013303,2013401,2013402,2013403,2013501,2013502,2013503,2013601,2013602,2013603,2013701,2013702,2013703,2013801,2013802,2013803,2013901,2013902,2013903,2014001,2014002,2014003,2014101,2014102,2014103,2014201,2014202,2014203,2014301,2014302,2014303,2014401,2014402,2014403,2014501,2014502,2014503,2014601,2014602,2014603,2014701,2014702,2014703,2014801,2014802,2014803,2014901,2014902,2014903,2015001,2015002,2015003,2015101,2015102,2015103,2015201,2015202,2015203,2015301,2015302,2015303,2015401,2015402,2015403,2015501,2015502,2015503,2015601,2015602,2015603,2015701,2015702,2015703,2015801,2015802,2015803,2015901,2015902,2015903,2016001,2016002,2016003,2016101,2016102,2016103,2016201,2016202,2016203,2016301,2016302,2016303,2016401,2016402,2016403,2016501,2016502,2016503,2016601,2016602,2016603,2016701,2016702,2016703,2016801,2016802,2016803,2016901,2016902,2016903,2017001,2017002,2017003,2019001,2019002,2019003,2020001,2020002,2020003,2020101,2020102,2020103,2020201,2020202,2020203,2020301,2020302,2020303,2020401,2020402,2020403,2100101,2100102,2100103,2100201,2100202,2100203,2100301,2100302,2100303,2100401,2100402,2100403,2100501,2100502,2100503,3000101,3000102,3000103,3000201,3000202,3000203,10010101,10010102,10010103,10010201,10010202,10010203,10020101,10020102,10020103,10030101,10030102,10030103,10030201,10030202,10030203,10040101,10040102,10040103,10040201,10040202,10040203,10050101,10050102,10050103,10060101,10060102,10060103,10060201,10060202,10060203,10070101,10070102,10070103,10080101,10080102,10080103,10090101,10090102,10090103,10100101,10100102,10100103,10110101,10110102,10110103,10110201,10110202,10110203,10120101,10120102,10120103,10130101,10130102,10130103,10130201,10130202,10130203,10140101,10140102,10140103,10140201,10140202,10140203,10150101,10150102,10150103,10150201,10150202,10150203,10160101,10160102,10160103,10170101,10170102,10170103,10170201,10170202,10170203,10180101,10180102,10180103,10180201,10180202,10180203,10190101,10190102,10190103,10200101,10200102,10200103,10210101,10210102,10210103,10220101,10220102,10220103,10230101,10230102,10230103,10230201,10230202,10230203,10240101,10240102,10240103,10240201,10240202,10240203,10250101,10250102,10250103,10260101,10260102,10260103,10260201,10260202,10260203,10270101,10270102,10270103,10280101,10280102,10280103,10300101,10300102,10300103,10300201,10300202,10300203,10320101,10320102,10320103,10350101,10350102,10350103,10370101,10370102,10370103,10370201,10370202,10370203,10380101,10380102,10380103,10390101,10390102,10390103,10400101,10400102,10400103,10400201,10400202,10400203,10410101,10410102,10410103,10450101,10450102,10450103,10450201,10450202,10450203,10460101,10460102,10460103,10480101,10480102,10480103,10500101,10500102,10500103,10520101,10520102,10520103,10520201,10520202,10520203,10560101,10560102,10560103,10560201,10560202,10560203,10580101,10580102,10580103,10590101,10590102,10590103,10600101,10600102,10600103,10610101,10610102,10610103,10690101,10690102,10690103,10710101,10710102,10710103,]" // 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. // The name does not indicate the spark level. diff --git a/horse/global/uma.kk b/horse/global/uma.kk index 97b542a..41c0ea5 100644 --- a/horse/global/uma.kk +++ b/horse/global/uma.kk @@ -13,7 +13,7 @@ extern create-id-table(): vector 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,]" // 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. // The name includes the costume variant, e.g. `[Special Dreamer] Special Week`. diff --git a/horsegen/character.kk.template b/horsegen/character.kk.template index a48eea9..52a7adf 100644 --- a/horsegen/character.kk.template +++ b/horsegen/character.kk.template @@ -91,5 +91,4 @@ val global/trio-table = global/create-trio-table() // Base affinity for a trio using the global ruleset. 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) - -{{- end }} +{{ end }} diff --git a/horsegen/race.kk.template b/horsegen/race.kk.template index b1f8bee..b41957d 100644 --- a/horsegen/race.kk.template +++ b/horsegen/race.kk.template @@ -14,7 +14,7 @@ extern create-id-table(): vector 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 }}]" // 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() var m: rbmap := empty() diff --git a/horsegen/saddle.kk.template b/horsegen/saddle.kk.template index 85d642a..108efee 100644 --- a/horsegen/saddle.kk.template +++ b/horsegen/saddle.kk.template @@ -14,7 +14,7 @@ extern create-id-table(): vector 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 }}]" // 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. // Alternate versions of saddles have an indication of their ID in their names. diff --git a/horsegen/scenario.kk.template b/horsegen/scenario.kk.template index 45ba2a1..fb6cbe5 100644 --- a/horsegen/scenario.kk.template +++ b/horsegen/scenario.kk.template @@ -12,7 +12,7 @@ extern create-id-table(): vector 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 }}]" // 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. // If no scenario matches the ID, the result contains the numeric ID. diff --git a/horsegen/skill.kk.template b/horsegen/skill.kk.template index 22a3849..df83e59 100644 --- a/horsegen/skill.kk.template +++ b/horsegen/skill.kk.template @@ -16,7 +16,7 @@ extern create-id-table(): vector 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 }}]" // 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() var m: rbmap := empty() diff --git a/horsegen/spark.kk.template b/horsegen/spark.kk.template index 51b0ad8..89673a6 100644 --- a/horsegen/spark.kk.template +++ b/horsegen/spark.kk.template @@ -13,7 +13,7 @@ extern create-id-table(): vector 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 }}]" // 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. // The name does not indicate the spark level. diff --git a/horsegen/uma.kk.template b/horsegen/uma.kk.template index e612500..8c07b27 100644 --- a/horsegen/uma.kk.template +++ b/horsegen/uma.kk.template @@ -14,7 +14,7 @@ extern create-id-table(): vector 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 }}]" // 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. // The name includes the costume variant, e.g. `[Special Dreamer] Special Week`.