sc2ai 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/stableid.json +424 -2562
- data/data/versions.json +8 -0
- data/lib/docker_build/Dockerfile.ruby +1 -1
- data/lib/sc2ai/api/ability_id.rb +12 -314
- data/lib/sc2ai/api/buff_id.rb +9 -16
- data/lib/sc2ai/api/data.rb +1 -1
- data/lib/sc2ai/api/tech_tree.rb +35 -0
- data/lib/sc2ai/api/tech_tree_data.rb +14 -9
- data/lib/sc2ai/api/unit_type_id.rb +6 -58
- data/lib/sc2ai/api/upgrade_id.rb +9 -9
- data/lib/sc2ai/connection/requests.rb +10 -7
- data/lib/sc2ai/data.rb +101 -0
- data/lib/sc2ai/local_play/match.rb +1 -3
- data/lib/sc2ai/player/actions.rb +8 -4
- data/lib/sc2ai/player/debug.rb +2 -3
- data/lib/sc2ai/player/game_state.rb +28 -0
- data/lib/sc2ai/player/geometry.rb +44 -39
- data/lib/sc2ai/player/previous_state.rb +1 -0
- data/lib/sc2ai/player/units.rb +25 -3
- data/lib/sc2ai/player.rb +3 -3
- data/lib/sc2ai/protocol/_meta_documentation.rb +18 -0
- data/lib/sc2ai/protocol/extensions/point_2_d.rb +1 -1
- data/lib/sc2ai/protocol/extensions/point_distance.rb +11 -0
- data/lib/sc2ai/protocol/extensions/position.rb +8 -10
- data/lib/sc2ai/protocol/extensions/unit.rb +29 -3
- data/lib/sc2ai/protocol/extensions/unit_type.rb +9 -0
- data/lib/sc2ai/unit_group/action_ext.rb +3 -3
- data/lib/sc2ai/unit_group/filter_ext.rb +22 -7
- data/lib/sc2ai/version.rb +1 -1
- data/lib/templates/new/run_example_match.rb.tt +1 -1
- data/sig/sc2ai.rbs +383 -509
- metadata +20 -17
data/data/versions.json
CHANGED
@@ -550,5 +550,13 @@
|
|
550
550
|
"label": "5.0.12",
|
551
551
|
"replay-hash": "BE64E420B329BD2A7D10EEBC0039D6E5",
|
552
552
|
"version": 89720
|
553
|
+
},
|
554
|
+
{
|
555
|
+
"base-version": 92028,
|
556
|
+
"data-hash": "2B7746A6706F919775EF1BADFC95EA1C",
|
557
|
+
"fixed-hash": "163B1CDF46F09B621F6312CD6901228E",
|
558
|
+
"label": "5.0.13",
|
559
|
+
"replay-hash": "BE64E420B329BD2A7D10EEBC0039D6E5",
|
560
|
+
"version": 92028
|
553
561
|
}
|
554
562
|
]
|
data/lib/sc2ai/api/ability_id.rb
CHANGED
@@ -1245,7 +1245,6 @@ module Api
|
|
1245
1245
|
NEXUSSHIELDRECHARGEONPYLON_NEXUSSHIELDRECHARGEONPYLON = 3761
|
1246
1246
|
INFESTORENSNARE_INFESTORENSNARE = 3763
|
1247
1247
|
EFFECT_RESTORE = 3765
|
1248
|
-
SHIELDBATTERYRECHARGECHANNELED_STOP = 3766
|
1249
1248
|
NEXUSSHIELDOVERCHARGE_NEXUSSHIELDOVERCHARGE = 3767
|
1250
1249
|
NEXUSSHIELDOVERCHARGEOFF_NEXUSSHIELDOVERCHARGEOFF = 3769
|
1251
1250
|
ATTACK_BATTLECRUISER = 3771
|
@@ -1267,7 +1266,7 @@ module Api
|
|
1267
1266
|
HOLDPOSITION = 3793
|
1268
1267
|
MOVE = 3794
|
1269
1268
|
PATROL = 3795
|
1270
|
-
LOADOUTSPRAY_LOADOUTSPRAY1 =
|
1269
|
+
LOADOUTSPRAY_LOADOUTSPRAY1 = 3797
|
1271
1270
|
LOADOUTSPRAY_LOADOUTSPRAY2 = 3798
|
1272
1271
|
LOADOUTSPRAY_LOADOUTSPRAY3 = 3799
|
1273
1272
|
LOADOUTSPRAY_LOADOUTSPRAY4 = 3800
|
@@ -1281,323 +1280,20 @@ module Api
|
|
1281
1280
|
LOADOUTSPRAY_LOADOUTSPRAY12 = 3808
|
1282
1281
|
LOADOUTSPRAY_LOADOUTSPRAY13 = 3809
|
1283
1282
|
LOADOUTSPRAY_LOADOUTSPRAY14 = 3810
|
1284
|
-
|
1285
|
-
|
1286
|
-
DUMMYABIL2_DUMMYABIL2 = 3813
|
1287
|
-
DUMMYABIL3_DUMMYABIL3 = 3814
|
1288
|
-
DUMMYABIL4_DUMMYABIL4 = 3815
|
1289
|
-
DUMMYABIL5_DUMMYABIL5 = 3816
|
1290
|
-
DUMMYABIL6_DUMMYABIL6 = 3817
|
1291
|
-
DUMMYABIL7_DUMMYABIL7 = 3818
|
1292
|
-
DUMMYABIL8_DUMMYABIL8 = 3819
|
1293
|
-
DUMMYABIL9_DUMMYABIL9 = 3820
|
1294
|
-
DUMMYABIL10_DUMMYABIL10 = 3821
|
1295
|
-
DUMMYABIL11_DUMMYABIL11 = 3822
|
1296
|
-
DUMMYABIL12_DUMMYABIL12 = 3823
|
1297
|
-
DUMMYABIL13_DUMMYABIL13 = 3824
|
1298
|
-
DUMMYABIL14_DUMMYABIL14 = 3825
|
1299
|
-
DUMMYABIL15_DUMMYABIL15 = 3826
|
1300
|
-
DUMMYABIL16_DUMMYABIL16 = 3827
|
1301
|
-
DUMMYABIL17_DUMMYABIL17 = 3828
|
1302
|
-
DUMMYABIL18_DUMMYABIL18 = 3829
|
1303
|
-
DUMMYABIL19_DUMMYABIL19 = 3830
|
1304
|
-
DUMMYABIL20_DUMMYABIL20 = 3831
|
1305
|
-
DUMMYABIL21_DUMMYABIL21 = 3832
|
1306
|
-
DUMMYABIL22_DUMMYABIL22 = 3833
|
1307
|
-
DUMMYABIL23_DUMMYABIL23 = 3834
|
1308
|
-
DUMMYABIL24_DUMMYABIL24 = 3835
|
1309
|
-
DUMMYABIL25_DUMMYABIL25 = 3836
|
1310
|
-
DUMMYABIL26_DUMMYABIL26 = 3837
|
1311
|
-
DUMMYABIL27_DUMMYABIL27 = 3838
|
1312
|
-
DUMMYABIL28_DUMMYABIL28 = 3839
|
1313
|
-
DUMMYABIL29_DUMMYABIL29 = 3840
|
1314
|
-
DUMMYABIL30_DUMMYABIL30 = 3841
|
1315
|
-
DUMMYABIL31_DUMMYABIL31 = 3842
|
1316
|
-
DUMMYABIL32_DUMMYABIL32 = 3843
|
1317
|
-
DUMMYABIL33_DUMMYABIL33 = 3844
|
1318
|
-
DUMMYABIL34_DUMMYABIL34 = 3845
|
1319
|
-
DUMMYABIL35_DUMMYABIL35 = 3846
|
1320
|
-
DUMMYABIL36_DUMMYABIL36 = 3847
|
1321
|
-
DUMMYABIL37_DUMMYABIL37 = 3848
|
1322
|
-
DUMMYABIL38_DUMMYABIL38 = 3849
|
1323
|
-
DUMMYABIL39_DUMMYABIL39 = 3850
|
1324
|
-
DUMMYABIL40_DUMMYABIL40 = 3851
|
1325
|
-
DUMMYABIL41_DUMMYABIL41 = 3852
|
1326
|
-
DUMMYABIL42_DUMMYABIL42 = 3853
|
1327
|
-
DUMMYABIL43_DUMMYABIL43 = 3854
|
1328
|
-
DUMMYABIL44_DUMMYABIL44 = 3855
|
1329
|
-
DUMMYABIL45_DUMMYABIL45 = 3856
|
1330
|
-
DUMMYABIL46_DUMMYABIL46 = 3857
|
1331
|
-
DUMMYABIL47_DUMMYABIL47 = 3858
|
1332
|
-
DUMMYABIL48_DUMMYABIL48 = 3859
|
1333
|
-
DUMMYABIL49_DUMMYABIL49 = 3860
|
1334
|
-
DUMMYABIL50_DUMMYABIL50 = 3861
|
1335
|
-
DUMMYABIL51_DUMMYABIL51 = 3862
|
1336
|
-
DUMMYABIL52_DUMMYABIL52 = 3863
|
1337
|
-
DUMMYABIL53_DUMMYABIL53 = 3864
|
1338
|
-
DUMMYABIL54_DUMMYABIL54 = 3865
|
1339
|
-
DUMMYABIL55_DUMMYABIL55 = 3866
|
1340
|
-
DUMMYABIL56_DUMMYABIL56 = 3867
|
1341
|
-
DUMMYABIL57_DUMMYABIL57 = 3868
|
1342
|
-
DUMMYABIL58_DUMMYABIL58 = 3869
|
1343
|
-
DUMMYABIL59_DUMMYABIL59 = 3870
|
1344
|
-
DUMMYABIL60_DUMMYABIL60 = 3871
|
1345
|
-
DUMMYABIL61_DUMMYABIL61 = 3872
|
1346
|
-
DUMMYABIL62_DUMMYABIL62 = 3873
|
1347
|
-
DUMMYABIL63_DUMMYABIL63 = 3874
|
1348
|
-
DUMMYABIL64_DUMMYABIL64 = 3875
|
1349
|
-
DUMMYABIL65_DUMMYABIL65 = 3876
|
1350
|
-
DUMMYABIL66_DUMMYABIL66 = 3877
|
1351
|
-
DUMMYABIL67_DUMMYABIL67 = 3878
|
1352
|
-
DUMMYABIL68_DUMMYABIL68 = 3879
|
1353
|
-
DUMMYABIL69_DUMMYABIL69 = 3880
|
1354
|
-
DUMMYABIL70_DUMMYABIL70 = 3881
|
1355
|
-
DUMMYABIL71_DUMMYABIL71 = 3882
|
1356
|
-
DUMMYABIL72_DUMMYABIL72 = 3883
|
1357
|
-
DUMMYABIL73_DUMMYABIL73 = 3884
|
1358
|
-
DUMMYABIL74_DUMMYABIL74 = 3885
|
1359
|
-
DUMMYABIL75_DUMMYABIL75 = 3886
|
1360
|
-
DUMMYABIL76_DUMMYABIL76 = 3887
|
1361
|
-
DUMMYABIL77_DUMMYABIL77 = 3888
|
1362
|
-
DUMMYABIL78_DUMMYABIL78 = 3889
|
1363
|
-
DUMMYABIL79_DUMMYABIL79 = 3890
|
1364
|
-
DUMMYABIL80_DUMMYABIL80 = 3891
|
1365
|
-
DUMMYABIL81_DUMMYABIL81 = 3892
|
1366
|
-
DUMMYABIL82_DUMMYABIL82 = 3893
|
1367
|
-
DUMMYABIL83_DUMMYABIL83 = 3894
|
1368
|
-
DUMMYABIL84_DUMMYABIL84 = 3895
|
1369
|
-
DUMMYABIL85_DUMMYABIL85 = 3896
|
1370
|
-
DUMMYABIL86_DUMMYABIL86 = 3897
|
1371
|
-
DUMMYABIL87_DUMMYABIL87 = 3898
|
1372
|
-
DUMMYABIL88_DUMMYABIL88 = 3899
|
1373
|
-
DUMMYABIL89_DUMMYABIL89 = 3900
|
1374
|
-
DUMMYABIL90_DUMMYABIL90 = 3901
|
1375
|
-
DUMMYABIL91_DUMMYABIL91 = 3902
|
1376
|
-
DUMMYABIL92_DUMMYABIL92 = 3903
|
1377
|
-
DUMMYABIL93_DUMMYABIL93 = 3904
|
1378
|
-
DUMMYABIL94_DUMMYABIL94 = 3905
|
1379
|
-
DUMMYABIL95_DUMMYABIL95 = 3906
|
1380
|
-
DUMMYABIL96_DUMMYABIL96 = 3907
|
1381
|
-
DUMMYABIL97_DUMMYABIL97 = 3908
|
1382
|
-
DUMMYABIL98_DUMMYABIL98 = 3909
|
1383
|
-
DUMMYABIL99_DUMMYABIL99 = 3910
|
1384
|
-
DUMMYABIL100_DUMMYABIL100 = 3911
|
1385
|
-
DUMMYABIL101_DUMMYABIL101 = 3912
|
1386
|
-
DUMMYABIL102_DUMMYABIL102 = 3913
|
1387
|
-
DUMMYABIL103_DUMMYABIL103 = 3914
|
1388
|
-
DUMMYABIL104_DUMMYABIL104 = 3915
|
1389
|
-
DUMMYABIL105_DUMMYABIL105 = 3916
|
1390
|
-
DUMMYABIL106_DUMMYABIL106 = 3917
|
1391
|
-
DUMMYABIL107_DUMMYABIL107 = 3918
|
1392
|
-
DUMMYABIL108_DUMMYABIL108 = 3919
|
1393
|
-
DUMMYABIL109_DUMMYABIL109 = 3920
|
1394
|
-
DUMMYABIL110_DUMMYABIL110 = 3921
|
1395
|
-
DUMMYABIL111_DUMMYABIL111 = 3922
|
1396
|
-
DUMMYABIL112_DUMMYABIL112 = 3923
|
1397
|
-
DUMMYABIL113_DUMMYABIL113 = 3924
|
1398
|
-
DUMMYABIL114_DUMMYABIL114 = 3925
|
1399
|
-
DUMMYABIL115_DUMMYABIL115 = 3926
|
1400
|
-
DUMMYABIL116_DUMMYABIL116 = 3927
|
1401
|
-
DUMMYABIL117_DUMMYABIL117 = 3928
|
1402
|
-
DUMMYABIL118_DUMMYABIL118 = 3929
|
1403
|
-
DUMMYABIL119_DUMMYABIL119 = 3930
|
1404
|
-
DUMMYABIL120_DUMMYABIL120 = 3931
|
1405
|
-
DUMMYABIL121_DUMMYABIL121 = 3932
|
1406
|
-
DUMMYABIL122_DUMMYABIL122 = 3933
|
1407
|
-
DUMMYABIL123_DUMMYABIL123 = 3934
|
1408
|
-
DUMMYABIL124_DUMMYABIL124 = 3935
|
1409
|
-
DUMMYABIL125_DUMMYABIL125 = 3936
|
1410
|
-
DUMMYABIL126_DUMMYABIL126 = 3937
|
1411
|
-
DUMMYABIL127_DUMMYABIL127 = 3938
|
1412
|
-
DUMMYABIL128_DUMMYABIL128 = 3939
|
1413
|
-
DUMMYABIL129_DUMMYABIL129 = 3940
|
1414
|
-
DUMMYABIL130_DUMMYABIL130 = 3941
|
1415
|
-
DUMMYABIL131_DUMMYABIL131 = 3942
|
1416
|
-
DUMMYABIL132_DUMMYABIL132 = 3943
|
1417
|
-
DUMMYABIL133_DUMMYABIL133 = 3944
|
1418
|
-
DUMMYABIL134_DUMMYABIL134 = 3945
|
1419
|
-
DUMMYABIL135_DUMMYABIL135 = 3946
|
1420
|
-
DUMMYABIL136_DUMMYABIL136 = 3947
|
1421
|
-
DUMMYABIL137_DUMMYABIL137 = 3948
|
1422
|
-
DUMMYABIL138_DUMMYABIL138 = 3949
|
1423
|
-
DUMMYABIL139_DUMMYABIL139 = 3950
|
1424
|
-
DUMMYABIL140_DUMMYABIL140 = 3951
|
1425
|
-
DUMMYABIL141_DUMMYABIL141 = 3952
|
1426
|
-
DUMMYABIL142_DUMMYABIL142 = 3953
|
1427
|
-
DUMMYABIL143_DUMMYABIL143 = 3954
|
1428
|
-
DUMMYABIL144_DUMMYABIL144 = 3955
|
1429
|
-
DUMMYABIL145_DUMMYABIL145 = 3956
|
1430
|
-
DUMMYABIL146_DUMMYABIL146 = 3957
|
1431
|
-
DUMMYABIL147_DUMMYABIL147 = 3958
|
1432
|
-
DUMMYABIL148_DUMMYABIL148 = 3959
|
1433
|
-
DUMMYABIL149_DUMMYABIL149 = 3960
|
1434
|
-
DUMMYABIL150_DUMMYABIL150 = 3961
|
1435
|
-
DUMMYABIL151_DUMMYABIL151 = 3962
|
1436
|
-
DUMMYABIL152_DUMMYABIL152 = 3963
|
1437
|
-
DUMMYABIL153_DUMMYABIL153 = 3964
|
1438
|
-
DUMMYABIL154_DUMMYABIL154 = 3965
|
1439
|
-
DUMMYABIL155_DUMMYABIL155 = 3966
|
1440
|
-
DUMMYABIL156_DUMMYABIL156 = 3967
|
1441
|
-
DUMMYABIL157_DUMMYABIL157 = 3968
|
1442
|
-
DUMMYABIL158_DUMMYABIL158 = 3969
|
1443
|
-
DUMMYABIL159_DUMMYABIL159 = 3970
|
1444
|
-
DUMMYABIL160_DUMMYABIL160 = 3971
|
1445
|
-
DUMMYABIL161_DUMMYABIL161 = 3972
|
1446
|
-
DUMMYABIL162_DUMMYABIL162 = 3973
|
1447
|
-
DUMMYABIL163_DUMMYABIL163 = 3974
|
1448
|
-
DUMMYABIL164_DUMMYABIL164 = 3975
|
1449
|
-
DUMMYABIL165_DUMMYABIL165 = 3976
|
1450
|
-
DUMMYABIL166_DUMMYABIL166 = 3977
|
1451
|
-
DUMMYABIL167_DUMMYABIL167 = 3978
|
1452
|
-
DUMMYABIL168_DUMMYABIL168 = 3979
|
1453
|
-
DUMMYABIL169_DUMMYABIL169 = 3980
|
1454
|
-
DUMMYABIL170_DUMMYABIL170 = 3981
|
1455
|
-
DUMMYABIL171_DUMMYABIL171 = 3982
|
1456
|
-
DUMMYABIL172_DUMMYABIL172 = 3983
|
1457
|
-
DUMMYABIL173_DUMMYABIL173 = 3984
|
1458
|
-
DUMMYABIL174_DUMMYABIL174 = 3985
|
1459
|
-
DUMMYABIL175_DUMMYABIL175 = 3986
|
1460
|
-
DUMMYABIL176_DUMMYABIL176 = 3987
|
1461
|
-
DUMMYABIL177_DUMMYABIL177 = 3988
|
1462
|
-
DUMMYABIL178_DUMMYABIL178 = 3989
|
1463
|
-
DUMMYABIL179_DUMMYABIL179 = 3990
|
1464
|
-
DUMMYABIL180_DUMMYABIL180 = 3991
|
1465
|
-
DUMMYABIL181_DUMMYABIL181 = 3992
|
1466
|
-
DUMMYABIL182_DUMMYABIL182 = 3993
|
1467
|
-
DUMMYABIL183_DUMMYABIL183 = 3994
|
1468
|
-
DUMMYABIL184_DUMMYABIL184 = 3995
|
1469
|
-
DUMMYABIL185_DUMMYABIL185 = 3996
|
1470
|
-
DUMMYABIL186_DUMMYABIL186 = 3997
|
1471
|
-
DUMMYABIL187_DUMMYABIL187 = 3998
|
1472
|
-
DUMMYABIL188_DUMMYABIL188 = 3999
|
1473
|
-
DUMMYABIL189_DUMMYABIL189 = 4000
|
1474
|
-
DUMMYABIL190_DUMMYABIL190 = 4001
|
1475
|
-
DUMMYABIL191_DUMMYABIL191 = 4002
|
1476
|
-
DUMMYABIL192_DUMMYABIL192 = 4003
|
1477
|
-
DUMMYABIL193_DUMMYABIL193 = 4004
|
1478
|
-
DUMMYABIL194_DUMMYABIL194 = 4005
|
1479
|
-
DUMMYABIL195_DUMMYABIL195 = 4006
|
1480
|
-
DUMMYABIL196_DUMMYABIL196 = 4007
|
1481
|
-
DUMMYABIL197_DUMMYABIL197 = 4008
|
1482
|
-
DUMMYABIL198_DUMMYABIL198 = 4009
|
1483
|
-
DUMMYABIL199_DUMMYABIL199 = 4010
|
1484
|
-
DUMMYABIL200_DUMMYABIL200 = 4011
|
1485
|
-
DUMMYABIL201_DUMMYABIL201 = 4012
|
1486
|
-
DUMMYABIL202_DUMMYABIL202 = 4013
|
1487
|
-
DUMMYABIL203_DUMMYABIL203 = 4014
|
1488
|
-
DUMMYABIL204_DUMMYABIL204 = 4015
|
1489
|
-
DUMMYABIL205_DUMMYABIL205 = 4016
|
1490
|
-
DUMMYABIL206_DUMMYABIL206 = 4017
|
1491
|
-
DUMMYABIL207_DUMMYABIL207 = 4018
|
1492
|
-
DUMMYABIL208_DUMMYABIL208 = 4019
|
1493
|
-
DUMMYABIL209_DUMMYABIL209 = 4020
|
1494
|
-
DUMMYABIL210_DUMMYABIL210 = 4021
|
1495
|
-
DUMMYABIL211_DUMMYABIL211 = 4022
|
1496
|
-
DUMMYABIL212_DUMMYABIL212 = 4023
|
1497
|
-
DUMMYABIL213_DUMMYABIL213 = 4024
|
1498
|
-
DUMMYABIL214_DUMMYABIL214 = 4025
|
1499
|
-
DUMMYABIL215_DUMMYABIL215 = 4026
|
1500
|
-
DUMMYABIL216_DUMMYABIL216 = 4027
|
1501
|
-
DUMMYABIL217_DUMMYABIL217 = 4028
|
1502
|
-
DUMMYABIL218_DUMMYABIL218 = 4029
|
1503
|
-
DUMMYABIL219_DUMMYABIL219 = 4030
|
1504
|
-
DUMMYABIL220_DUMMYABIL220 = 4031
|
1505
|
-
DUMMYABIL221_DUMMYABIL221 = 4032
|
1506
|
-
DUMMYABIL222_DUMMYABIL222 = 4033
|
1507
|
-
DUMMYABIL223_DUMMYABIL223 = 4034
|
1508
|
-
DUMMYABIL224_DUMMYABIL224 = 4035
|
1509
|
-
DUMMYABIL225_DUMMYABIL225 = 4036
|
1510
|
-
DUMMYABIL226_DUMMYABIL226 = 4037
|
1511
|
-
DUMMYABIL227_DUMMYABIL227 = 4038
|
1512
|
-
DUMMYABIL228_DUMMYABIL228 = 4039
|
1513
|
-
DUMMYABIL229_DUMMYABIL229 = 4040
|
1514
|
-
DUMMYABIL230_DUMMYABIL230 = 4041
|
1515
|
-
DUMMYABIL231_DUMMYABIL231 = 4042
|
1516
|
-
DUMMYABIL232_DUMMYABIL232 = 4043
|
1517
|
-
DUMMYABIL233_DUMMYABIL233 = 4044
|
1518
|
-
DUMMYABIL234_DUMMYABIL234 = 4045
|
1519
|
-
DUMMYABIL235_DUMMYABIL235 = 4046
|
1520
|
-
DUMMYABIL236_DUMMYABIL236 = 4047
|
1521
|
-
DUMMYABIL237_DUMMYABIL237 = 4048
|
1522
|
-
DUMMYABIL238_DUMMYABIL238 = 4049
|
1523
|
-
DUMMYABIL239_DUMMYABIL239 = 4050
|
1524
|
-
DUMMYABIL240_DUMMYABIL240 = 4051
|
1525
|
-
DUMMYABIL241_DUMMYABIL241 = 4052
|
1526
|
-
DUMMYABIL242_DUMMYABIL242 = 4053
|
1527
|
-
DUMMYABIL243_DUMMYABIL243 = 4054
|
1528
|
-
DUMMYABIL244_DUMMYABIL244 = 4055
|
1529
|
-
DUMMYABIL245_DUMMYABIL245 = 4056
|
1530
|
-
DUMMYABIL246_DUMMYABIL246 = 4057
|
1531
|
-
DUMMYABIL247_DUMMYABIL247 = 4058
|
1532
|
-
DUMMYABIL248_DUMMYABIL248 = 4059
|
1533
|
-
DUMMYABIL249_DUMMYABIL249 = 4060
|
1534
|
-
DUMMYABIL250_DUMMYABIL250 = 4061
|
1535
|
-
DUMMYABIL251_DUMMYABIL251 = 4062
|
1536
|
-
DUMMYABIL252_DUMMYABIL252 = 4063
|
1537
|
-
DUMMYABIL253_DUMMYABIL253 = 4064
|
1538
|
-
DUMMYABIL254_DUMMYABIL254 = 4065
|
1539
|
-
DUMMYABIL255_DUMMYABIL255 = 4066
|
1540
|
-
DUMMYABIL256_DUMMYABIL256 = 4067
|
1541
|
-
DUMMYABIL257_DUMMYABIL257 = 4068
|
1542
|
-
DUMMYABIL258_DUMMYABIL258 = 4069
|
1543
|
-
DUMMYABIL259_DUMMYABIL259 = 4070
|
1544
|
-
DUMMYABIL260_DUMMYABIL260 = 4071
|
1545
|
-
DUMMYABIL261_DUMMYABIL261 = 4072
|
1546
|
-
DUMMYABIL262_DUMMYABIL262 = 4073
|
1547
|
-
DUMMYABIL263_DUMMYABIL263 = 4074
|
1548
|
-
DUMMYABIL264_DUMMYABIL264 = 4075
|
1549
|
-
DUMMYABIL265_DUMMYABIL265 = 4076
|
1550
|
-
DUMMYABIL266_DUMMYABIL266 = 4077
|
1551
|
-
DUMMYABIL267_DUMMYABIL267 = 4078
|
1552
|
-
DUMMYABIL268_DUMMYABIL268 = 4079
|
1553
|
-
DUMMYABIL269_DUMMYABIL269 = 4080
|
1554
|
-
DUMMYABIL270_DUMMYABIL270 = 4081
|
1555
|
-
DUMMYABIL271_DUMMYABIL271 = 4082
|
1556
|
-
DUMMYABIL272_DUMMYABIL272 = 4083
|
1557
|
-
DUMMYABIL273_DUMMYABIL273 = 4084
|
1558
|
-
DUMMYABIL274_DUMMYABIL274 = 4085
|
1559
|
-
DUMMYABIL275_DUMMYABIL275 = 4086
|
1560
|
-
DUMMYABIL276_DUMMYABIL276 = 4087
|
1561
|
-
DUMMYABIL277_DUMMYABIL277 = 4088
|
1562
|
-
DUMMYABIL278_DUMMYABIL278 = 4089
|
1563
|
-
DUMMYABIL279_DUMMYABIL279 = 4090
|
1564
|
-
DUMMYABIL280_DUMMYABIL280 = 4091
|
1565
|
-
DUMMYABIL281_DUMMYABIL281 = 4092
|
1566
|
-
DUMMYABIL282_DUMMYABIL282 = 4093
|
1567
|
-
DUMMYABIL283_DUMMYABIL283 = 4094
|
1568
|
-
DUMMYABIL284_DUMMYABIL284 = 4095
|
1569
|
-
DUMMYABIL285_DUMMYABIL285 = 4096
|
1570
|
-
DUMMYABIL286_DUMMYABIL286 = 4097
|
1571
|
-
DUMMYABIL287_DUMMYABIL287 = 4098
|
1572
|
-
DUMMYABIL288_DUMMYABIL288 = 4099
|
1573
|
-
DUMMYABIL289_DUMMYABIL289 = 4100
|
1574
|
-
DUMMYABIL290_DUMMYABIL290 = 4101
|
1575
|
-
DUMMYABIL291_DUMMYABIL291 = 4102
|
1576
|
-
DUMMYABIL292_DUMMYABIL292 = 4103
|
1577
|
-
DUMMYABIL293_DUMMYABIL293 = 4104
|
1578
|
-
DUMMYABIL294_DUMMYABIL294 = 4105
|
1579
|
-
DUMMYABIL295_DUMMYABIL295 = 4106
|
1283
|
+
MORPHTOCOLLAPSIBLEROCKTOWERDEBRISRAMPLEFTGREEN_CANCEL = 3967
|
1284
|
+
MORPHTOCOLLAPSIBLEROCKTOWERDEBRISRAMPRIGHTGREEN_CANCEL = 3970
|
1580
1285
|
BATTERYOVERCHARGE_BATTERYOVERCHARGE = 4107
|
1581
|
-
DUMMYABIL296_DUMMYABIL296 = 4108
|
1582
1286
|
AMORPHOUSARMORCLOUD_AMORPHOUSARMORCLOUD = 4109
|
1583
|
-
DUMMYABIL297_DUMMYABIL297 = 4110
|
1584
1287
|
SHIELDBATTERYRECHARGEEX5_SHIELDBATTERYRECHARGE = 4111
|
1585
1288
|
SHIELDBATTERYRECHARGEEX5_STOP = 4112
|
1586
|
-
|
1587
|
-
|
1588
|
-
|
1589
|
-
DUMMYABIL301_DUMMYABIL301 = 4116
|
1590
|
-
DUMMYABIL302_DUMMYABIL302 = 4117
|
1591
|
-
MORPHTOBANELING_BANELING = 4118
|
1592
|
-
MORPHTOBANELING_CANCEL = 4119
|
1593
|
-
MORPHTOCOLLAPSIBLEROCKTOWERDEBRISRAMPLEFTGREEN_CANCEL = 4290
|
1594
|
-
MORPHTOCOLLAPSIBLEROCKTOWERDEBRISRAMPRIGHTGREEN_CANCEL = 4293
|
1595
|
-
MOTHERSHIPCLOAK_ORACLECLOAKFIELD = 4439
|
1289
|
+
MORPHTOBANELING_BANELING = 4119
|
1290
|
+
MORPHTOBANELING_CANCEL = 4120
|
1291
|
+
MOTHERSHIPCLOAK_ORACLECLOAKFIELD = 4122
|
1596
1292
|
|
1597
1293
|
# Returns an array of all constants
|
1598
1294
|
# @return [Array<Integer>]
|
1599
1295
|
def self.ids
|
1600
|
-
@ids ||= [0, 1, 2, 4, 5, 6, 7, 10, 11, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 30, 32, 34, 35, 36, 38, 40, 42, 44, 45, 46, 47, 48, 49, 74, 76, 78, 80, 110, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 167, 169, 171, 173, 174, 175, 177, 178, 179, 181, 183, 185, 187, 189, 191, 193, 195, 199, 203, 207, 211, 212, 216, 217, 218, 245, 247, 249, 250, 251, 253, 255, 257, 258, 259, 261, 263, 265, 293, 295, 296, 298, 299, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 318, 319, 320, 321, 322, 323, 324, 326, 327, 328, 329, 331, 333, 348, 349, 379, 380, 382, 383, 384, 386, 388, 390, 392, 393, 394, 396, 397, 399, 401, 403, 405, 407, 408, 410, 413, 415, 416, 417, 419, 421, 422, 451, 452, 454, 455, 484, 485, 487, 488, 517, 518, 520, 522, 524, 554, 556, 558, 560, 561, 562, 563, 591, 594, 595, 596, 597, 614, 620, 621, 622, 623, 624, 626, 650, 651, 652, 653, 654, 655, 656, 657, 658, 683, 710, 730, 731, 732, 761, 763, 764, 765, 766, 767, 768, 769, 770, 790, 792, 793, 796, 797, 799, 800, 802, 803, 804, 805, 806, 807, 820, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 880, 881, 882, 883, 884, 885, 886, 887, 889, 890, 891, 892, 893, 894, 895, 910, 911, 912, 913, 914, 916, 917, 919, 920, 921, 922, 946, 948, 950, 954, 955, 976, 977, 978, 979, 994, 1006, 1036, 1038, 1039, 1040, 1041, 1042, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1093, 1094, 1097, 1099, 1126, 1152, 1153, 1154, 1155, 1156, 1157, 1158, 1159, 1160, 1161, 1162, 1163, 1165, 1166, 1167, 1182, 1183, 1184, 1186, 1187, 1188, 1189, 1190, 1191, 1192, 1193, 1194, 1195, 1216, 1217, 1218, 1219, 1220, 1221, 1223, 1224, 1225, 1252, 1253, 1282, 1283, 1286, 1312, 1313, 1314, 1315, 1316, 1317, 1342, 1343, 1344, 1345, 1346, 1348, 1351, 1352, 1353, 1354, 1356, 1372, 1373, 1374, 1375, 1376, 1378, 1379, 1380, 1382, 1383, 1384, 1386, 1387, 1388, 1390, 1391, 1392, 1394, 1396, 1398, 1400, 1402, 1404, 1406, 1408, 1409, 1411, 1412, 1413, 1414, 1416, 1417, 1418, 1419, 1433, 1434, 1435, 1437, 1438, 1440, 1442, 1444, 1445, 1446, 1448, 1449, 1450, 1451, 1455, 1456, 1457, 1482, 1512, 1514, 1516, 1517, 1518, 1519, 1520, 1521, 1522, 1524, 1526, 1527, 1528, 1529, 1530, 1531, 1532, 1533, 1534, 1535, 1562, 1563, 1564, 1565, 1566, 1567, 1568, 1571, 1592, 1593, 1594, 1595, 1596, 1597, 1622, 1623, 1624, 1626, 1628, 1630, 1632, 1662, 1664, 1668, 1670, 1672, 1676, 1678, 1680, 1682, 1683, 1684, 1685, 1686, 1691, 1692, 1693, 1694, 1724, 1725, 1726, 1727, 1728, 1729, 1730, 1731, 1732, 1733, 1763, 1764, 1766, 1767, 1768, 1769, 1798, 1819, 1821, 1823, 1825, 1829, 1831, 1832, 1833, 1834, 1835, 1837, 1839, 1842, 1844, 1846, 1847, 1848, 1849, 1850, 1851, 1853, 1883, 1885, 1887, 1889, 1891, 1893, 1895, 1897, 1899, 1901, 1903, 1905, 1907, 1909, 1911, 1913, 1915, 1917, 1919, 1921, 1926, 1928, 1930, 1932, 1934, 1936, 1938, 1940, 1942, 1944, 1974, 1976, 1978, 1980, 1982, 1987, 1988, 1990, 1992, 1994, 1997, 1998, 2000, 2006, 2014, 2015, 2016, 2018, 2048, 2049, 2050, 2051, 2052, 2057, 2058, 2059, 2060, 2063, 2065, 2066, 2067, 2069, 2071, 2073, 2075, 2076, 2077, 2078, 2080, 2081, 2082, 2083, 2085, 2087, 2089, 2091, 2093, 2095, 2096, 2097, 2099, 2101, 2102, 2103, 2104, 2105, 2106, 2107, 2108, 2109, 2110, 2112, 2113, 2114, 2116, 2118, 2120, 2122, 2124, 2126, 2128, 2130, 2132, 2134, 2136, 2138, 2140, 2142, 2144, 2146, 2148, 2149, 2150, 2151, 2153, 2155, 2156, 2158, 2160, 2162, 2164, 2166, 2168, 2170, 2172, 2174, 2176, 2178, 2180, 2182, 2184, 2186, 2188, 2190, 2192, 2194, 2196, 2198, 2200, 2202, 2204, 2206, 2208, 2210, 2212, 2214, 2216, 2218, 2220, 2222, 2224, 2226, 2228, 2230, 2232, 2234, 2236, 2238, 2240, 2242, 2244, 2246, 2248, 2250, 2252, 2254, 2256, 2258, 2260, 2294, 2295, 2296, 2297, 2298, 2299, 2324, 2326, 2328, 2330, 2331, 2332, 2333, 2334, 2336, 2338, 2340, 2341, 2342, 2344, 2346, 2348, 2350, 2352, 2354, 2356, 2357, 2358, 2360, 2362, 2363, 2364, 2365, 2366, 2368, 2370, 2371, 2375, 2376, 2377, 2379, 2381, 2383, 2385, 2387, 2389, 2391, 2393, 2397, 2399, 2401, 2403, 2405, 2407, 2409, 2411, 2413, 2415, 2417, 2419, 2421, 2423, 2425, 2427, 2429, 2431, 2433, 2435, 2437, 2439, 2441, 2443, 2445, 2447, 2449, 2451, 2453, 2455, 2457, 2459, 2461, 2463, 2465, 2467, 2469, 2471, 2473, 2475, 2477, 2479, 2480, 2481, 2482, 2483, 2485, 2487, 2489, 2490, 2491, 2493, 2495, 2497, 2499, 2501, 2503, 2505, 2535, 2536, 2538, 2539, 2540, 2542, 2544, 2546, 2548, 2550, 2552, 2554, 2556, 2558, 2560, 2562, 2563, 2564, 2566, 2568, 2570, 2572, 2574, 2576, 2578, 2580, 2582, 2584, 2586, 2588, 2590, 2592, 2594, 2596, 2598, 2601, 2602, 2604, 2606, 2608, 2610, 2612, 2614, 2616, 2618, 2620, 2622, 2624, 2626, 2628, 2630, 2632, 2634, 2636, 2638, 2640, 2642, 2644, 2646, 2648, 2650, 2652, 2654, 2656, 2658, 2660, 2662, 2664, 2666, 2668, 2670, 2672, 2674, 2676, 2678, 2680, 2682, 2684, 2686, 2688, 2690, 2692, 2694, 2696, 2698, 2699, 2700, 2704, 2706, 2708, 2709, 2714, 2715, 2716, 2718, 2720, 2750, 2752, 2753, 2754, 2755, 2756, 2758, 2760, 2762, 2764, 2766, 2767, 2773, 2775, 2777, 2779, 2781, 2785, 2789, 2791, 2793, 2797, 2799, 2801, 2803, 2805, 2807, 2809, 2811, 2813, 2819, 2821, 2823, 2825, 2827, 2829, 2831, 2833, 2836, 2837, 2838, 2839, 2840, 2842, 2844, 2846, 2848, 2849, 2850, 2852, 2872, 2874, 2876, 2878, 2880, 2882, 2884, 2886, 2888, 2890, 2891, 2892, 2893, 2894, 2899, 2901, 2903, 2905, 2907, 2909, 2911, 2913, 2915, 2919, 2921, 2923, 2925, 2927, 2929, 2930, 2934, 2936, 2938, 2940, 2942, 2944, 2947, 2949, 2952, 2953, 2954, 2956, 2957, 2961, 2963, 2965, 2967, 2989, 2991, 2994, 2999, 3001, 3005, 3007, 3009, 3011, 3013, 3015, 3016, 3017, 3018, 3019, 3020, 3021, 3022, 3045, 3075, 3077, 3079, 3081, 3083, 3086, 3116, 3117, 3118, 3119, 3121, 3122, 3126, 3128, 3131, 3133, 3134, 3135, 3137, 3139, 3141, 3143, 3163, 3164, 3165, 3166, 3167, 3168, 3169, 3171, 3173, 3174, 3178, 3180, 3182, 3188, 3190, 3192, 3194, 3195, 3196, 3198, 3199, 3200, 3201, 3202, 3203, 3204, 3205, 3206, 3207, 3208, 3209, 3210, 3211, 3212, 3213, 3214, 3215, 3216, 3220, 3222, 3224, 3226, 3228, 3229, 3230, 3232, 3234, 3236, 3238, 3240, 3242, 3244, 3245, 3246, 3274, 3275, 3295, 3296, 3297, 3298, 3301, 3304, 3306, 3308, 3310, 3312, 3314, 3316, 3318, 3320, 3321, 3322, 3323, 3324, 3325, 3327, 3346, 3348, 3350, 3352, 3354, 3356, 3358, 3360, 3362, 3364, 3366, 3368, 3370, 3372, 3374, 3375, 3378, 3380, 3382, 3384, 3386, 3387, 3391, 3393, 3395, 3397, 3399, 3401, 3403, 3405, 3423, 3454, 3514, 3515, 3517, 3519, 3521, 3523, 3525, 3527, 3529, 3531, 3533, 3535, 3537, 3539, 3541, 3543, 3545, 3547, 3567, 3569, 3571, 3573, 3575, 3577, 3579, 3581, 3583, 3585, 3587, 3589, 3591, 3593, 3595, 3597, 3599, 3601, 3603, 3605, 3607, 3609, 3611, 3613, 3615, 3617, 3619, 3621, 3623, 3625, 3647, 3649, 3651, 3653, 3655, 3657, 3658, 3659, 3660, 3661, 3662, 3663, 3664, 3665, 3666, 3667, 3668, 3669, 3796, 3671, 3672, 3673, 3674, 3675, 3676, 3677, 3678, 3679, 3680, 3681, 3682, 3683, 3684, 3685, 3686, 3687, 3688, 3689, 3690, 3691, 3692, 3693, 3694, 3695, 3696, 3697, 3698, 3699, 3700, 3701, 3702, 3703, 3704, 3705, 3706, 3707, 3709, 3710, 3739, 3741, 3743, 3745, 3747, 3749, 3751, 3753, 3755, 3757, 3759, 3761, 3763, 3765,
|
1296
|
+
@ids ||= [0, 1, 2, 4, 5, 6, 7, 10, 11, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 30, 32, 34, 35, 36, 38, 40, 42, 44, 45, 46, 47, 48, 49, 74, 76, 78, 80, 110, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 167, 169, 171, 173, 174, 175, 177, 178, 179, 181, 183, 185, 187, 189, 191, 193, 195, 199, 203, 207, 211, 212, 216, 217, 218, 245, 247, 249, 250, 251, 253, 255, 257, 258, 259, 261, 263, 265, 293, 295, 296, 298, 299, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 318, 319, 320, 321, 322, 323, 324, 326, 327, 328, 329, 331, 333, 348, 349, 379, 380, 382, 383, 384, 386, 388, 390, 392, 393, 394, 396, 397, 399, 401, 403, 405, 407, 408, 410, 413, 415, 416, 417, 419, 421, 422, 451, 452, 454, 455, 484, 485, 487, 488, 517, 518, 520, 522, 524, 554, 556, 558, 560, 561, 562, 563, 591, 594, 595, 596, 597, 614, 620, 621, 622, 623, 624, 626, 650, 651, 652, 653, 654, 655, 656, 657, 658, 683, 710, 730, 731, 732, 761, 763, 764, 765, 766, 767, 768, 769, 770, 790, 792, 793, 796, 797, 799, 800, 802, 803, 804, 805, 806, 807, 820, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 880, 881, 882, 883, 884, 885, 886, 887, 889, 890, 891, 892, 893, 894, 895, 910, 911, 912, 913, 914, 916, 917, 919, 920, 921, 922, 946, 948, 950, 954, 955, 976, 977, 978, 979, 994, 1006, 1036, 1038, 1039, 1040, 1041, 1042, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1093, 1094, 1097, 1099, 1126, 1152, 1153, 1154, 1155, 1156, 1157, 1158, 1159, 1160, 1161, 1162, 1163, 1165, 1166, 1167, 1182, 1183, 1184, 1186, 1187, 1188, 1189, 1190, 1191, 1192, 1193, 1194, 1195, 1216, 1217, 1218, 1219, 1220, 1221, 1223, 1224, 1225, 1252, 1253, 1282, 1283, 1286, 1312, 1313, 1314, 1315, 1316, 1317, 1342, 1343, 1344, 1345, 1346, 1348, 1351, 1352, 1353, 1354, 1356, 1372, 1373, 1374, 1375, 1376, 1378, 1379, 1380, 1382, 1383, 1384, 1386, 1387, 1388, 1390, 1391, 1392, 1394, 1396, 1398, 1400, 1402, 1404, 1406, 1408, 1409, 1411, 1412, 1413, 1414, 1416, 1417, 1418, 1419, 1433, 1434, 1435, 1437, 1438, 1440, 1442, 1444, 1445, 1446, 1448, 1449, 1450, 1451, 1455, 1456, 1457, 1482, 1512, 1514, 1516, 1517, 1518, 1519, 1520, 1521, 1522, 1524, 1526, 1527, 1528, 1529, 1530, 1531, 1532, 1533, 1534, 1535, 1562, 1563, 1564, 1565, 1566, 1567, 1568, 1571, 1592, 1593, 1594, 1595, 1596, 1597, 1622, 1623, 1624, 1626, 1628, 1630, 1632, 1662, 1664, 1668, 1670, 1672, 1676, 1678, 1680, 1682, 1683, 1684, 1685, 1686, 1691, 1692, 1693, 1694, 1724, 1725, 1726, 1727, 1728, 1729, 1730, 1731, 1732, 1733, 1763, 1764, 1766, 1767, 1768, 1769, 1798, 1819, 1821, 1823, 1825, 1829, 1831, 1832, 1833, 1834, 1835, 1837, 1839, 1842, 1844, 1846, 1847, 1848, 1849, 1850, 1851, 1853, 1883, 1885, 1887, 1889, 1891, 1893, 1895, 1897, 1899, 1901, 1903, 1905, 1907, 1909, 1911, 1913, 1915, 1917, 1919, 1921, 1926, 1928, 1930, 1932, 1934, 1936, 1938, 1940, 1942, 1944, 1974, 1976, 1978, 1980, 1982, 1987, 1988, 1990, 1992, 1994, 1997, 1998, 2000, 2006, 2014, 2015, 2016, 2018, 2048, 2049, 2050, 2051, 2052, 2057, 2058, 2059, 2060, 2063, 2065, 2066, 2067, 2069, 2071, 2073, 2075, 2076, 2077, 2078, 2080, 2081, 2082, 2083, 2085, 2087, 2089, 2091, 2093, 2095, 2096, 2097, 2099, 2101, 2102, 2103, 2104, 2105, 2106, 2107, 2108, 2109, 2110, 2112, 2113, 2114, 2116, 2118, 2120, 2122, 2124, 2126, 2128, 2130, 2132, 2134, 2136, 2138, 2140, 2142, 2144, 2146, 2148, 2149, 2150, 2151, 2153, 2155, 2156, 2158, 2160, 2162, 2164, 2166, 2168, 2170, 2172, 2174, 2176, 2178, 2180, 2182, 2184, 2186, 2188, 2190, 2192, 2194, 2196, 2198, 2200, 2202, 2204, 2206, 2208, 2210, 2212, 2214, 2216, 2218, 2220, 2222, 2224, 2226, 2228, 2230, 2232, 2234, 2236, 2238, 2240, 2242, 2244, 2246, 2248, 2250, 2252, 2254, 2256, 2258, 2260, 2294, 2295, 2296, 2297, 2298, 2299, 2324, 2326, 2328, 2330, 2331, 2332, 2333, 2334, 2336, 2338, 2340, 2341, 2342, 2344, 2346, 2348, 2350, 2352, 2354, 2356, 2357, 2358, 2360, 2362, 2363, 2364, 2365, 2366, 2368, 2370, 2371, 2375, 2376, 2377, 2379, 2381, 2383, 2385, 2387, 2389, 2391, 2393, 2397, 2399, 2401, 2403, 2405, 2407, 2409, 2411, 2413, 2415, 2417, 2419, 2421, 2423, 2425, 2427, 2429, 2431, 2433, 2435, 2437, 2439, 2441, 2443, 2445, 2447, 2449, 2451, 2453, 2455, 2457, 2459, 2461, 2463, 2465, 2467, 2469, 2471, 2473, 2475, 2477, 2479, 2480, 2481, 2482, 2483, 2485, 2487, 2489, 2490, 2491, 2493, 2495, 2497, 2499, 2501, 2503, 2505, 2535, 2536, 2538, 2539, 2540, 2542, 2544, 2546, 2548, 2550, 2552, 2554, 2556, 2558, 2560, 2562, 2563, 2564, 2566, 2568, 2570, 2572, 2574, 2576, 2578, 2580, 2582, 2584, 2586, 2588, 2590, 2592, 2594, 2596, 2598, 2601, 2602, 2604, 2606, 2608, 2610, 2612, 2614, 2616, 2618, 2620, 2622, 2624, 2626, 2628, 2630, 2632, 2634, 2636, 2638, 2640, 2642, 2644, 2646, 2648, 2650, 2652, 2654, 2656, 2658, 2660, 2662, 2664, 2666, 2668, 2670, 2672, 2674, 2676, 2678, 2680, 2682, 2684, 2686, 2688, 2690, 2692, 2694, 2696, 2698, 2699, 2700, 2704, 2706, 2708, 2709, 2714, 2715, 2716, 2718, 2720, 2750, 2752, 2753, 2754, 2755, 2756, 2758, 2760, 2762, 2764, 2766, 2767, 2773, 2775, 2777, 2779, 2781, 2785, 2789, 2791, 2793, 2797, 2799, 2801, 2803, 2805, 2807, 2809, 2811, 2813, 2819, 2821, 2823, 2825, 2827, 2829, 2831, 2833, 2836, 2837, 2838, 2839, 2840, 2842, 2844, 2846, 2848, 2849, 2850, 2852, 2872, 2874, 2876, 2878, 2880, 2882, 2884, 2886, 2888, 2890, 2891, 2892, 2893, 2894, 2899, 2901, 2903, 2905, 2907, 2909, 2911, 2913, 2915, 2919, 2921, 2923, 2925, 2927, 2929, 2930, 2934, 2936, 2938, 2940, 2942, 2944, 2947, 2949, 2952, 2953, 2954, 2956, 2957, 2961, 2963, 2965, 2967, 2989, 2991, 2994, 2999, 3001, 3005, 3007, 3009, 3011, 3013, 3015, 3016, 3017, 3018, 3019, 3020, 3021, 3022, 3045, 3075, 3077, 3079, 3081, 3083, 3086, 3116, 3117, 3118, 3119, 3121, 3122, 3126, 3128, 3131, 3133, 3134, 3135, 3137, 3139, 3141, 3143, 3163, 3164, 3165, 3166, 3167, 3168, 3169, 3171, 3173, 3174, 3178, 3180, 3182, 3188, 3190, 3192, 3194, 3195, 3196, 3198, 3199, 3200, 3201, 3202, 3203, 3204, 3205, 3206, 3207, 3208, 3209, 3210, 3211, 3212, 3213, 3214, 3215, 3216, 3220, 3222, 3224, 3226, 3228, 3229, 3230, 3232, 3234, 3236, 3238, 3240, 3242, 3244, 3245, 3246, 3274, 3275, 3295, 3296, 3297, 3298, 3301, 3304, 3306, 3308, 3310, 3312, 3314, 3316, 3318, 3320, 3321, 3322, 3323, 3324, 3325, 3327, 3346, 3348, 3350, 3352, 3354, 3356, 3358, 3360, 3362, 3364, 3366, 3368, 3370, 3372, 3374, 3375, 3378, 3380, 3382, 3384, 3386, 3387, 3391, 3393, 3395, 3397, 3399, 3401, 3403, 3405, 3423, 3454, 3514, 3515, 3517, 3519, 3521, 3523, 3525, 3527, 3529, 3531, 3533, 3535, 3537, 3539, 3541, 3543, 3545, 3547, 3567, 3569, 3571, 3573, 3575, 3577, 3579, 3581, 3583, 3585, 3587, 3589, 3591, 3593, 3595, 3597, 3599, 3601, 3603, 3605, 3607, 3609, 3611, 3613, 3615, 3617, 3619, 3621, 3623, 3625, 3647, 3649, 3651, 3653, 3655, 3657, 3658, 3659, 3660, 3661, 3662, 3663, 3664, 3665, 3666, 3667, 3668, 3669, 3796, 3671, 3672, 3673, 3674, 3675, 3676, 3677, 3678, 3679, 3680, 3681, 3682, 3683, 3684, 3685, 3686, 3687, 3688, 3689, 3690, 3691, 3692, 3693, 3694, 3695, 3696, 3697, 3698, 3699, 3700, 3701, 3702, 3703, 3704, 3705, 3706, 3707, 3709, 3710, 3739, 3741, 3743, 3745, 3747, 3749, 3751, 3753, 3755, 3757, 3759, 3761, 3763, 3765, 3767, 3769, 3771, 3772, 3773, 3774, 3776, 3777, 3778, 3779, 3780, 3781, 3783, 3784, 3785, 3786, 3789, 3791, 3793, 3794, 3795, 3797, 3798, 3799, 3800, 3801, 3802, 3803, 3804, 3805, 3806, 3807, 3808, 3809, 3810, 3967, 3970, 4107, 4109, 4111, 4112, 4119, 4120, 4122]
|
1601
1297
|
end
|
1602
1298
|
end
|
1603
1299
|
end
|
@@ -1942,10 +1638,12 @@ module Api
|
|
1942
1638
|
Api::AbilityId::PATROL_BATTLECRUISER => Api::AbilityId::PATROL,
|
1943
1639
|
Api::AbilityId::HOLDPOSITION_BATTLECRUISER => Api::AbilityId::HOLDPOSITION,
|
1944
1640
|
Api::AbilityId::STOP_BATTLECRUISER => Api::AbilityId::STOP,
|
1945
|
-
Api::AbilityId::
|
1946
|
-
|
1641
|
+
Api::AbilityId::MORPHTOCOLLAPSIBLEROCKTOWERDEBRISRAMPLEFTGREEN_CANCEL =>
|
1642
|
+
Api::AbilityId::CANCEL,
|
1643
|
+
Api::AbilityId::MORPHTOCOLLAPSIBLEROCKTOWERDEBRISRAMPRIGHTGREEN_CANCEL =>
|
1644
|
+
Api::AbilityId::CANCEL,
|
1947
1645
|
Api::AbilityId::SHIELDBATTERYRECHARGEEX5_STOP => Api::AbilityId::CANCEL,
|
1948
|
-
Api::AbilityId::
|
1646
|
+
Api::AbilityId::MORPHTOBANELING_CANCEL => Api::AbilityId::CANCEL}
|
1949
1647
|
end
|
1950
1648
|
end
|
1951
1649
|
end
|
data/lib/sc2ai/api/buff_id.rb
CHANGED
@@ -295,22 +295,15 @@ module Api
|
|
295
295
|
ACCELERATIONZONETEMPORALFIELD = 289
|
296
296
|
ACCELERATIONZONEFLYINGTEMPORALFIELD = 290
|
297
297
|
INHIBITORZONEFLYINGTEMPORALFIELD = 291
|
298
|
-
|
298
|
+
LOADOUTSPRAYTRACKER = 292
|
299
299
|
INHIBITORZONETEMPORALFIELD = 293
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
DUMMYBUFF004 = 302
|
309
|
-
DUMMYBUFF005 = 303
|
310
|
-
ONCREEPQUEEN = 304
|
311
|
-
LOADOUTSPRAYTRACKER = 305
|
312
|
-
CLOAKFIELD = 306
|
313
|
-
TAKENDAMAGE = 307
|
314
|
-
RAVENSCRAMBLERMISSILECARRIER = 308
|
300
|
+
CLOAKFIELD = 294
|
301
|
+
RESONATINGGLAIVESPHASESHIFT = 295
|
302
|
+
NEURALPARASITECHILDREN = 296
|
303
|
+
AMORPHOUSARMORCLOUD = 297
|
304
|
+
RAVENSHREDDERMISSILEARMORREDUCTIONUISUBTRUCT = 298
|
305
|
+
TAKENDAMAGE = 299
|
306
|
+
RAVENSCRAMBLERMISSILECARRIER = 300
|
307
|
+
BATTERYOVERCHARGE = 301
|
315
308
|
end
|
316
309
|
end
|
data/lib/sc2ai/api/data.rb
CHANGED
@@ -62,7 +62,7 @@ module Sc2
|
|
62
62
|
|
63
63
|
# Indexes unit data by id
|
64
64
|
# @param units [Array<Api::UnitTypeData>]
|
65
|
-
# @return [Hash<Integer, Api::UnitTypeData] indexed data
|
65
|
+
# @return [Hash<Integer, Api::UnitTypeData>] indexed data
|
66
66
|
def units_from_proto(units)
|
67
67
|
result = {}
|
68
68
|
units.each do |u|
|
data/lib/sc2ai/api/tech_tree.rb
CHANGED
@@ -99,6 +99,41 @@ module Api
|
|
99
99
|
def upgrade_ability_data(source_unit_type_id)
|
100
100
|
upgrade_research_abilities_data[source_unit_type_id]
|
101
101
|
end
|
102
|
+
|
103
|
+
# Returns known abilities fo unit type
|
104
|
+
# @return [Array<Integer>] array of ability_ids
|
105
|
+
def unit_abilities(unit_type_id)
|
106
|
+
unit_abilities_data[unit_type_id]
|
107
|
+
end
|
108
|
+
|
109
|
+
# @private
|
110
|
+
private def standard_abilities = [Api::AbilityId::STOP_STOP,
|
111
|
+
Api::AbilityId::MOVE_MOVE,
|
112
|
+
Api::AbilityId::PATROL_PATROL,
|
113
|
+
Api::AbilityId::HOLDPOSITION_HOLD,
|
114
|
+
Api::AbilityId::ATTACK_ATTACK,
|
115
|
+
Api::AbilityId::HALT_TERRANBUILD,
|
116
|
+
Api::AbilityId::SMART,
|
117
|
+
Api::AbilityId::STOP,
|
118
|
+
Api::AbilityId::MOVE,
|
119
|
+
Api::AbilityId::PATROL,
|
120
|
+
Api::AbilityId::HOLDPOSITION,
|
121
|
+
Api::AbilityId::ATTACK,
|
122
|
+
Api::AbilityId::HALT,
|
123
|
+
Api::AbilityId::CANCEL]
|
124
|
+
|
125
|
+
# @private
|
126
|
+
# Returns special abilities, excluding basic start/stop/attack commands
|
127
|
+
# @return [Array<Integer>] array of ability_ids
|
128
|
+
def unit_special_abilities(unit_type_id)
|
129
|
+
@_unit_special_abilities ||= {}
|
130
|
+
if !@_unit_special_abilities[unit_type_id]
|
131
|
+
@_unit_special_abilities[unit_type_id] = unit_abilities(unit_type_id).reject do |ability_id|
|
132
|
+
standard_abilities.include?(Api::AbilityId.generic_id(ability_id)) || standard_abilities.include?(ability_id)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
@_unit_special_abilities[unit_type_id]
|
136
|
+
end
|
102
137
|
end
|
103
138
|
end
|
104
139
|
end
|
@@ -169,6 +169,10 @@ module Api
|
|
169
169
|
{ability: Api::AbilityId::TRAIN_DISRUPTOR,
|
170
170
|
required_building: Api::UnitTypeId::ROBOTICSBAY,
|
171
171
|
requires_power: true}},
|
172
|
+
Api::UnitTypeId::HIGHTEMPLAR =>
|
173
|
+
{Api::UnitTypeId::ARCHON => {ability: Api::AbilityId::MORPH_ARCHON}},
|
174
|
+
Api::UnitTypeId::DARKTEMPLAR =>
|
175
|
+
{Api::UnitTypeId::ARCHON => {ability: Api::AbilityId::MORPH_ARCHON}},
|
172
176
|
Api::UnitTypeId::PROBE =>
|
173
177
|
{Api::UnitTypeId::NEXUS =>
|
174
178
|
{ability: Api::AbilityId::PROTOSSBUILD_NEXUS,
|
@@ -522,7 +526,7 @@ module Api
|
|
522
526
|
Api::UnitTypeId::FACTORYTECHLAB =>
|
523
527
|
{Api::UpgradeId::HIGHCAPACITYBARRELS =>
|
524
528
|
{ability: Api::AbilityId::RESEARCH_INFERNALPREIGNITER},
|
525
|
-
Api::UpgradeId::
|
529
|
+
Api::UpgradeId::HURRICANETHRUSTERS =>
|
526
530
|
{ability: Api::AbilityId::FACTORYTECHLABRESEARCH_CYCLONERESEARCHHURRICANETHRUSTERS},
|
527
531
|
Api::UpgradeId::DRILLCLAWS =>
|
528
532
|
{ability: Api::AbilityId::RESEARCH_DRILLINGCLAWS,
|
@@ -535,7 +539,7 @@ module Api
|
|
535
539
|
{ability: Api::AbilityId::RESEARCH_BANSHEECLOAKINGFIELD},
|
536
540
|
Api::UpgradeId::BANSHEESPEED =>
|
537
541
|
{ability: Api::AbilityId::RESEARCH_BANSHEEHYPERFLIGHTROTORS},
|
538
|
-
Api::UpgradeId::
|
542
|
+
Api::UpgradeId::INTERFERENCEMATRIX =>
|
539
543
|
{ability: Api::AbilityId::STARPORTTECHLABRESEARCH_RESEARCHRAVENINTERFERENCEMATRIX}},
|
540
544
|
Api::UnitTypeId::FORGE =>
|
541
545
|
{Api::UpgradeId::PROTOSSGROUNDWEAPONSLEVEL1 =>
|
@@ -584,7 +588,7 @@ module Api
|
|
584
588
|
Api::UpgradeId::VOIDRAYSPEEDUPGRADE =>
|
585
589
|
{ability: Api::AbilityId::FLEETBEACONRESEARCH_RESEARCHVOIDRAYSPEEDUPGRADE,
|
586
590
|
requires_power: true},
|
587
|
-
Api::UpgradeId::
|
591
|
+
Api::UpgradeId::TEMPESTGROUNDATTACKUPGRADE =>
|
588
592
|
{ability: Api::AbilityId::FLEETBEACONRESEARCH_TEMPESTRESEARCHGROUNDATTACKUPGRADE,
|
589
593
|
requires_power: true}},
|
590
594
|
Api::UnitTypeId::TWILIGHTCOUNCIL =>
|
@@ -830,6 +834,8 @@ module Api
|
|
830
834
|
Api::UnitTypeId::IMMORTAL => [Api::UnitTypeId::ROBOTICSFACILITY],
|
831
835
|
Api::UnitTypeId::COLOSSUS => [Api::UnitTypeId::ROBOTICSFACILITY],
|
832
836
|
Api::UnitTypeId::DISRUPTOR => [Api::UnitTypeId::ROBOTICSFACILITY],
|
837
|
+
Api::UnitTypeId::ARCHON =>
|
838
|
+
[Api::UnitTypeId::HIGHTEMPLAR, Api::UnitTypeId::DARKTEMPLAR],
|
833
839
|
Api::UnitTypeId::NEXUS => [Api::UnitTypeId::PROBE],
|
834
840
|
Api::UnitTypeId::PYLON => [Api::UnitTypeId::PROBE],
|
835
841
|
Api::UnitTypeId::ASSIMILATOR => [Api::UnitTypeId::PROBE],
|
@@ -934,13 +940,12 @@ module Api
|
|
934
940
|
Api::UpgradeId::SHIELDWALL => Api::UnitTypeId::BARRACKSTECHLAB,
|
935
941
|
Api::UpgradeId::PUNISHERGRENADES => Api::UnitTypeId::BARRACKSTECHLAB,
|
936
942
|
Api::UpgradeId::HIGHCAPACITYBARRELS => Api::UnitTypeId::FACTORYTECHLAB,
|
937
|
-
Api::UpgradeId::
|
938
|
-
Api::UnitTypeId::FACTORYTECHLAB,
|
943
|
+
Api::UpgradeId::HURRICANETHRUSTERS => Api::UnitTypeId::FACTORYTECHLAB,
|
939
944
|
Api::UpgradeId::DRILLCLAWS => Api::UnitTypeId::FACTORYTECHLAB,
|
940
945
|
Api::UpgradeId::SMARTSERVOS => Api::UnitTypeId::FACTORYTECHLAB,
|
941
946
|
Api::UpgradeId::BANSHEECLOAK => Api::UnitTypeId::STARPORTTECHLAB,
|
942
947
|
Api::UpgradeId::BANSHEESPEED => Api::UnitTypeId::STARPORTTECHLAB,
|
943
|
-
Api::UpgradeId::
|
948
|
+
Api::UpgradeId::INTERFERENCEMATRIX => Api::UnitTypeId::STARPORTTECHLAB,
|
944
949
|
Api::UpgradeId::PROTOSSGROUNDWEAPONSLEVEL1 => Api::UnitTypeId::FORGE,
|
945
950
|
Api::UpgradeId::PROTOSSGROUNDARMORSLEVEL1 => Api::UnitTypeId::FORGE,
|
946
951
|
Api::UpgradeId::PROTOSSSHIELDSLEVEL1 => Api::UnitTypeId::FORGE,
|
@@ -952,7 +957,7 @@ module Api
|
|
952
957
|
Api::UpgradeId::PROTOSSSHIELDSLEVEL3 => Api::UnitTypeId::FORGE,
|
953
958
|
Api::UpgradeId::PHOENIXRANGEUPGRADE => Api::UnitTypeId::FLEETBEACON,
|
954
959
|
Api::UpgradeId::VOIDRAYSPEEDUPGRADE => Api::UnitTypeId::FLEETBEACON,
|
955
|
-
Api::UpgradeId::
|
960
|
+
Api::UpgradeId::TEMPESTGROUNDATTACKUPGRADE => Api::UnitTypeId::FLEETBEACON,
|
956
961
|
Api::UpgradeId::CHARGE => Api::UnitTypeId::TWILIGHTCOUNCIL,
|
957
962
|
Api::UpgradeId::BLINKTECH => Api::UnitTypeId::TWILIGHTCOUNCIL,
|
958
963
|
Api::UpgradeId::ADEPTPIERCINGATTACK => Api::UnitTypeId::TWILIGHTCOUNCIL,
|
@@ -1046,7 +1051,7 @@ module Api
|
|
1046
1051
|
Api::AbilityId::ATTACK_ATTACK,
|
1047
1052
|
Api::AbilityId::EFFECT_MASSRECALL_STRATEGICRECALL,
|
1048
1053
|
Api::AbilityId::EFFECT_TIMEWARP,
|
1049
|
-
Api::AbilityId
|
1054
|
+
Api::AbilityId::MOTHERSHIPCLOAK_ORACLECLOAKFIELD,
|
1050
1055
|
Api::AbilityId::SMART],
|
1051
1056
|
Api::UnitTypeId::POINTDEFENSEDRONE => [],
|
1052
1057
|
Api::UnitTypeId::CHANGELING =>
|
@@ -1695,7 +1700,7 @@ module Api
|
|
1695
1700
|
Api::AbilityId::ATTACK_ATTACK,
|
1696
1701
|
Api::AbilityId::SMART,
|
1697
1702
|
Api::AbilityId::BURROWDOWN_ZERGLING,
|
1698
|
-
Api::AbilityId::
|
1703
|
+
Api::AbilityId::MORPHTOBANELING_BANELING],
|
1699
1704
|
Api::UnitTypeId::OVERLORD =>
|
1700
1705
|
[Api::AbilityId::STOP_STOP,
|
1701
1706
|
Api::AbilityId::MOVE_MOVE,
|
@@ -2012,63 +2012,11 @@ module Api
|
|
2012
2012
|
MINERALFIELD450 = 1996
|
2013
2013
|
MINERALFIELDOPAQUE = 1997
|
2014
2014
|
MINERALFIELDOPAQUE900 = 1998
|
2015
|
-
|
2016
|
-
|
2017
|
-
|
2018
|
-
|
2019
|
-
|
2020
|
-
|
2021
|
-
MECHAOVERSEERACGLUESCREENDUMMY_2 = 2005
|
2022
|
-
MECHALURKERACGLUESCREENDUMMY_2 = 2006
|
2023
|
-
MECHABATTLECARRIERLORDACGLUESCREENDUMMY_2 = 2007
|
2024
|
-
MECHASPINECRAWLERACGLUESCREENDUMMY_2 = 2008
|
2025
|
-
MECHASPORECRAWLERACGLUESCREENDUMMY_2 = 2009
|
2026
|
-
TROOPERMENGSKACGLUESCREENDUMMY_2 = 2010
|
2027
|
-
MEDIVACMENGSKACGLUESCREENDUMMY_2 = 2011
|
2028
|
-
BLIMPMENGSKACGLUESCREENDUMMY_2 = 2012
|
2029
|
-
MARAUDERMENGSKACGLUESCREENDUMMY_2 = 2013
|
2030
|
-
GHOSTMENGSKACGLUESCREENDUMMY_2 = 2014
|
2031
|
-
SIEGETANKMENGSKACGLUESCREENDUMMY_2 = 2015
|
2032
|
-
THORMENGSKACGLUESCREENDUMMY_2 = 2016
|
2033
|
-
VIKINGMENGSKACGLUESCREENDUMMY_2 = 2017
|
2034
|
-
BATTLECRUISERMENGSKACGLUESCREENDUMMY_2 = 2018
|
2035
|
-
BUNKERDEPOTMENGSKACGLUESCREENDUMMY_2 = 2019
|
2036
|
-
MISSILETURRETMENGSKACGLUESCREENDUMMY_2 = 2020
|
2037
|
-
ARTILLERYMENGSKACGLUESCREENDUMMY_2 = 2021
|
2038
|
-
LOADOUTSPRAY1_2 = 2022
|
2039
|
-
LOADOUTSPRAY2_2 = 2023
|
2040
|
-
LOADOUTSPRAY3_2 = 2024
|
2041
|
-
LOADOUTSPRAY4_2 = 2025
|
2042
|
-
LOADOUTSPRAY5_2 = 2026
|
2043
|
-
LOADOUTSPRAY6_2 = 2027
|
2044
|
-
LOADOUTSPRAY7_2 = 2028
|
2045
|
-
LOADOUTSPRAY8_2 = 2029
|
2046
|
-
LOADOUTSPRAY9_2 = 2030
|
2047
|
-
LOADOUTSPRAY10_2 = 2031
|
2048
|
-
LOADOUTSPRAY11_2 = 2032
|
2049
|
-
LOADOUTSPRAY12_2 = 2033
|
2050
|
-
LOADOUTSPRAY13_2 = 2034
|
2051
|
-
LOADOUTSPRAY14_2 = 2035
|
2052
|
-
COLLAPSIBLEROCKTOWERDEBRISRAMPLEFTGREEN = 2036
|
2053
|
-
COLLAPSIBLEROCKTOWERDEBRISRAMPRIGHTGREEN = 2037
|
2054
|
-
COLLAPSIBLEROCKTOWERPUSHUNITRAMPLEFTGREEN = 2038
|
2055
|
-
COLLAPSIBLEROCKTOWERPUSHUNITRAMPRIGHTGREEN = 2039
|
2056
|
-
COLLAPSIBLEROCKTOWERRAMPLEFTGREEN = 2040
|
2057
|
-
COLLAPSIBLEROCKTOWERRAMPRIGHTGREEN = 2041
|
2058
|
-
DUMMYUNIT000 = 2042
|
2059
|
-
DUMMYUNIT001 = 2043
|
2060
|
-
DUMMYUNIT002 = 2044
|
2061
|
-
DUMMYUNIT003 = 2045
|
2062
|
-
DUMMYUNIT004 = 2046
|
2063
|
-
DUMMYUNIT005 = 2047
|
2064
|
-
DUMMYUNIT006 = 2048
|
2065
|
-
DUMMYUNIT007 = 2049
|
2066
|
-
DUMMYUNIT008 = 2050
|
2067
|
-
DUMMYUNIT009 = 2051
|
2068
|
-
DUMMYUNIT010 = 2052
|
2069
|
-
DUMMYUNIT011 = 2053
|
2070
|
-
DUMMYUNIT012 = 2054
|
2071
|
-
DUMMYUNIT013 = 2055
|
2072
|
-
DUMMYUNIT014 = 2056
|
2015
|
+
COLLAPSIBLEROCKTOWERDEBRISRAMPLEFTGREEN = 1999
|
2016
|
+
COLLAPSIBLEROCKTOWERDEBRISRAMPRIGHTGREEN = 2000
|
2017
|
+
COLLAPSIBLEROCKTOWERPUSHUNITRAMPLEFTGREEN = 2001
|
2018
|
+
COLLAPSIBLEROCKTOWERPUSHUNITRAMPRIGHTGREEN = 2002
|
2019
|
+
COLLAPSIBLEROCKTOWERRAMPLEFTGREEN = 2003
|
2020
|
+
COLLAPSIBLEROCKTOWERRAMPRIGHTGREEN = 2004
|
2073
2021
|
end
|
2074
2022
|
end
|