@shipload/sdk 1.0.0-next.47 → 1.0.0-next.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/shipload.d.ts +29 -3
- package/lib/shipload.js +226 -194
- package/lib/shipload.js.map +1 -1
- package/lib/shipload.m.js +226 -195
- package/lib/shipload.m.js.map +1 -1
- package/lib/testing.d.ts +9 -0
- package/lib/testing.js +43 -13
- package/lib/testing.js.map +1 -1
- package/lib/testing.m.js +43 -13
- package/lib/testing.m.js.map +1 -1
- package/package.json +1 -1
- package/src/contracts/server.ts +28 -1
- package/src/data/items.json +11 -11
- package/src/data/kind-registry.json +1 -1
- package/src/data/metadata.ts +1 -1
- package/src/data/recipes-runtime.ts +1 -0
- package/src/data/recipes.json +154 -180
- package/src/derivation/crafting.ts +1 -1
- package/src/derivation/index.ts +1 -0
- package/src/derivation/upgrades.ts +14 -0
- package/src/index-module.ts +2 -0
- package/src/managers/actions.ts +19 -0
- package/src/nft/description.ts +1 -1
- package/src/types.ts +3 -0
package/src/data/recipes.json
CHANGED
|
@@ -1029,12 +1029,8 @@
|
|
|
1029
1029
|
},
|
|
1030
1030
|
{
|
|
1031
1031
|
"outputItemId": 20001,
|
|
1032
|
-
"outputMass":
|
|
1032
|
+
"outputMass": 4800,
|
|
1033
1033
|
"inputs": [
|
|
1034
|
-
{
|
|
1035
|
-
"itemId": 10001,
|
|
1036
|
-
"quantity": 1
|
|
1037
|
-
},
|
|
1038
1034
|
{
|
|
1039
1035
|
"itemId": 102,
|
|
1040
1036
|
"quantity": 12
|
|
@@ -1046,10 +1042,6 @@
|
|
|
1046
1042
|
{
|
|
1047
1043
|
"inputIndex": 0,
|
|
1048
1044
|
"statIndex": 0
|
|
1049
|
-
},
|
|
1050
|
-
{
|
|
1051
|
-
"inputIndex": 1,
|
|
1052
|
-
"statIndex": 0
|
|
1053
1045
|
}
|
|
1054
1046
|
]
|
|
1055
1047
|
},
|
|
@@ -1057,10 +1049,6 @@
|
|
|
1057
1049
|
"sources": [
|
|
1058
1050
|
{
|
|
1059
1051
|
"inputIndex": 0,
|
|
1060
|
-
"statIndex": 1
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
"inputIndex": 1,
|
|
1064
1052
|
"statIndex": 2
|
|
1065
1053
|
}
|
|
1066
1054
|
]
|
|
@@ -1069,10 +1057,6 @@
|
|
|
1069
1057
|
"sources": [
|
|
1070
1058
|
{
|
|
1071
1059
|
"inputIndex": 0,
|
|
1072
|
-
"statIndex": 2
|
|
1073
|
-
},
|
|
1074
|
-
{
|
|
1075
|
-
"inputIndex": 1,
|
|
1076
1060
|
"statIndex": 1
|
|
1077
1061
|
}
|
|
1078
1062
|
]
|
|
@@ -1082,12 +1066,8 @@
|
|
|
1082
1066
|
},
|
|
1083
1067
|
{
|
|
1084
1068
|
"outputItemId": 20002,
|
|
1085
|
-
"outputMass":
|
|
1069
|
+
"outputMass": 4800,
|
|
1086
1070
|
"inputs": [
|
|
1087
|
-
{
|
|
1088
|
-
"itemId": 10002,
|
|
1089
|
-
"quantity": 1
|
|
1090
|
-
},
|
|
1091
1071
|
{
|
|
1092
1072
|
"itemId": 402,
|
|
1093
1073
|
"quantity": 6
|
|
@@ -1102,10 +1082,6 @@
|
|
|
1102
1082
|
"sources": [
|
|
1103
1083
|
{
|
|
1104
1084
|
"inputIndex": 0,
|
|
1105
|
-
"statIndex": 0
|
|
1106
|
-
},
|
|
1107
|
-
{
|
|
1108
|
-
"inputIndex": 1,
|
|
1109
1085
|
"statIndex": 1
|
|
1110
1086
|
}
|
|
1111
1087
|
]
|
|
@@ -1114,10 +1090,6 @@
|
|
|
1114
1090
|
"sources": [
|
|
1115
1091
|
{
|
|
1116
1092
|
"inputIndex": 0,
|
|
1117
|
-
"statIndex": 1
|
|
1118
|
-
},
|
|
1119
|
-
{
|
|
1120
|
-
"inputIndex": 1,
|
|
1121
1093
|
"statIndex": 0
|
|
1122
1094
|
}
|
|
1123
1095
|
]
|
|
@@ -1127,21 +1099,13 @@
|
|
|
1127
1099
|
{
|
|
1128
1100
|
"inputIndex": 0,
|
|
1129
1101
|
"statIndex": 2
|
|
1130
|
-
},
|
|
1131
|
-
{
|
|
1132
|
-
"inputIndex": 1,
|
|
1133
|
-
"statIndex": 2
|
|
1134
1102
|
}
|
|
1135
1103
|
]
|
|
1136
1104
|
},
|
|
1137
1105
|
{
|
|
1138
1106
|
"sources": [
|
|
1139
1107
|
{
|
|
1140
|
-
"inputIndex":
|
|
1141
|
-
"statIndex": 3
|
|
1142
|
-
},
|
|
1143
|
-
{
|
|
1144
|
-
"inputIndex": 2,
|
|
1108
|
+
"inputIndex": 1,
|
|
1145
1109
|
"statIndex": 2
|
|
1146
1110
|
}
|
|
1147
1111
|
]
|
|
@@ -1151,12 +1115,8 @@
|
|
|
1151
1115
|
},
|
|
1152
1116
|
{
|
|
1153
1117
|
"outputItemId": 20003,
|
|
1154
|
-
"outputMass":
|
|
1118
|
+
"outputMass": 4800,
|
|
1155
1119
|
"inputs": [
|
|
1156
|
-
{
|
|
1157
|
-
"itemId": 10003,
|
|
1158
|
-
"quantity": 1
|
|
1159
|
-
},
|
|
1160
1120
|
{
|
|
1161
1121
|
"itemId": 302,
|
|
1162
1122
|
"quantity": 12
|
|
@@ -1168,10 +1128,6 @@
|
|
|
1168
1128
|
{
|
|
1169
1129
|
"inputIndex": 0,
|
|
1170
1130
|
"statIndex": 0
|
|
1171
|
-
},
|
|
1172
|
-
{
|
|
1173
|
-
"inputIndex": 1,
|
|
1174
|
-
"statIndex": 0
|
|
1175
1131
|
}
|
|
1176
1132
|
]
|
|
1177
1133
|
},
|
|
@@ -1179,10 +1135,6 @@
|
|
|
1179
1135
|
"sources": [
|
|
1180
1136
|
{
|
|
1181
1137
|
"inputIndex": 0,
|
|
1182
|
-
"statIndex": 1
|
|
1183
|
-
},
|
|
1184
|
-
{
|
|
1185
|
-
"inputIndex": 1,
|
|
1186
1138
|
"statIndex": 2
|
|
1187
1139
|
}
|
|
1188
1140
|
]
|
|
@@ -1191,10 +1143,6 @@
|
|
|
1191
1143
|
"sources": [
|
|
1192
1144
|
{
|
|
1193
1145
|
"inputIndex": 0,
|
|
1194
|
-
"statIndex": 2
|
|
1195
|
-
},
|
|
1196
|
-
{
|
|
1197
|
-
"inputIndex": 1,
|
|
1198
1146
|
"statIndex": 1
|
|
1199
1147
|
}
|
|
1200
1148
|
]
|
|
@@ -1204,12 +1152,8 @@
|
|
|
1204
1152
|
},
|
|
1205
1153
|
{
|
|
1206
1154
|
"outputItemId": 20004,
|
|
1207
|
-
"outputMass":
|
|
1155
|
+
"outputMass": 4800,
|
|
1208
1156
|
"inputs": [
|
|
1209
|
-
{
|
|
1210
|
-
"itemId": 10004,
|
|
1211
|
-
"quantity": 1
|
|
1212
|
-
},
|
|
1213
1157
|
{
|
|
1214
1158
|
"itemId": 202,
|
|
1215
1159
|
"quantity": 6
|
|
@@ -1224,10 +1168,6 @@
|
|
|
1224
1168
|
"sources": [
|
|
1225
1169
|
{
|
|
1226
1170
|
"inputIndex": 0,
|
|
1227
|
-
"statIndex": 0
|
|
1228
|
-
},
|
|
1229
|
-
{
|
|
1230
|
-
"inputIndex": 1,
|
|
1231
1171
|
"statIndex": 1
|
|
1232
1172
|
}
|
|
1233
1173
|
]
|
|
@@ -1236,10 +1176,6 @@
|
|
|
1236
1176
|
"sources": [
|
|
1237
1177
|
{
|
|
1238
1178
|
"inputIndex": 0,
|
|
1239
|
-
"statIndex": 1
|
|
1240
|
-
},
|
|
1241
|
-
{
|
|
1242
|
-
"inputIndex": 1,
|
|
1243
1179
|
"statIndex": 2
|
|
1244
1180
|
}
|
|
1245
1181
|
]
|
|
@@ -1248,10 +1184,6 @@
|
|
|
1248
1184
|
"sources": [
|
|
1249
1185
|
{
|
|
1250
1186
|
"inputIndex": 0,
|
|
1251
|
-
"statIndex": 2
|
|
1252
|
-
},
|
|
1253
|
-
{
|
|
1254
|
-
"inputIndex": 1,
|
|
1255
1187
|
"statIndex": 0
|
|
1256
1188
|
}
|
|
1257
1189
|
]
|
|
@@ -1261,12 +1193,8 @@
|
|
|
1261
1193
|
},
|
|
1262
1194
|
{
|
|
1263
1195
|
"outputItemId": 20005,
|
|
1264
|
-
"outputMass":
|
|
1196
|
+
"outputMass": 4800,
|
|
1265
1197
|
"inputs": [
|
|
1266
|
-
{
|
|
1267
|
-
"itemId": 10005,
|
|
1268
|
-
"quantity": 1
|
|
1269
|
-
},
|
|
1270
1198
|
{
|
|
1271
1199
|
"itemId": 102,
|
|
1272
1200
|
"quantity": 6
|
|
@@ -1282,10 +1210,6 @@
|
|
|
1282
1210
|
{
|
|
1283
1211
|
"inputIndex": 0,
|
|
1284
1212
|
"statIndex": 0
|
|
1285
|
-
},
|
|
1286
|
-
{
|
|
1287
|
-
"inputIndex": 1,
|
|
1288
|
-
"statIndex": 0
|
|
1289
1213
|
}
|
|
1290
1214
|
]
|
|
1291
1215
|
},
|
|
@@ -1294,10 +1218,6 @@
|
|
|
1294
1218
|
{
|
|
1295
1219
|
"inputIndex": 0,
|
|
1296
1220
|
"statIndex": 1
|
|
1297
|
-
},
|
|
1298
|
-
{
|
|
1299
|
-
"inputIndex": 1,
|
|
1300
|
-
"statIndex": 1
|
|
1301
1221
|
}
|
|
1302
1222
|
]
|
|
1303
1223
|
},
|
|
@@ -1306,10 +1226,6 @@
|
|
|
1306
1226
|
{
|
|
1307
1227
|
"inputIndex": 0,
|
|
1308
1228
|
"statIndex": 2
|
|
1309
|
-
},
|
|
1310
|
-
{
|
|
1311
|
-
"inputIndex": 1,
|
|
1312
|
-
"statIndex": 2
|
|
1313
1229
|
}
|
|
1314
1230
|
]
|
|
1315
1231
|
}
|
|
@@ -1318,12 +1234,8 @@
|
|
|
1318
1234
|
},
|
|
1319
1235
|
{
|
|
1320
1236
|
"outputItemId": 20006,
|
|
1321
|
-
"outputMass":
|
|
1237
|
+
"outputMass": 4800,
|
|
1322
1238
|
"inputs": [
|
|
1323
|
-
{
|
|
1324
|
-
"itemId": 10006,
|
|
1325
|
-
"quantity": 1
|
|
1326
|
-
},
|
|
1327
1239
|
{
|
|
1328
1240
|
"itemId": 202,
|
|
1329
1241
|
"quantity": 12
|
|
@@ -1335,10 +1247,6 @@
|
|
|
1335
1247
|
{
|
|
1336
1248
|
"inputIndex": 0,
|
|
1337
1249
|
"statIndex": 0
|
|
1338
|
-
},
|
|
1339
|
-
{
|
|
1340
|
-
"inputIndex": 1,
|
|
1341
|
-
"statIndex": 0
|
|
1342
1250
|
}
|
|
1343
1251
|
]
|
|
1344
1252
|
},
|
|
@@ -1346,10 +1254,6 @@
|
|
|
1346
1254
|
"sources": [
|
|
1347
1255
|
{
|
|
1348
1256
|
"inputIndex": 0,
|
|
1349
|
-
"statIndex": 1
|
|
1350
|
-
},
|
|
1351
|
-
{
|
|
1352
|
-
"inputIndex": 1,
|
|
1353
1257
|
"statIndex": 2
|
|
1354
1258
|
}
|
|
1355
1259
|
]
|
|
@@ -1358,10 +1262,6 @@
|
|
|
1358
1262
|
"sources": [
|
|
1359
1263
|
{
|
|
1360
1264
|
"inputIndex": 0,
|
|
1361
|
-
"statIndex": 2
|
|
1362
|
-
},
|
|
1363
|
-
{
|
|
1364
|
-
"inputIndex": 1,
|
|
1365
1265
|
"statIndex": 1
|
|
1366
1266
|
}
|
|
1367
1267
|
]
|
|
@@ -1371,12 +1271,8 @@
|
|
|
1371
1271
|
},
|
|
1372
1272
|
{
|
|
1373
1273
|
"outputItemId": 20007,
|
|
1374
|
-
"outputMass":
|
|
1274
|
+
"outputMass": 4800,
|
|
1375
1275
|
"inputs": [
|
|
1376
|
-
{
|
|
1377
|
-
"itemId": 10007,
|
|
1378
|
-
"quantity": 1
|
|
1379
|
-
},
|
|
1380
1276
|
{
|
|
1381
1277
|
"itemId": 502,
|
|
1382
1278
|
"quantity": 12
|
|
@@ -1388,10 +1284,6 @@
|
|
|
1388
1284
|
{
|
|
1389
1285
|
"inputIndex": 0,
|
|
1390
1286
|
"statIndex": 0
|
|
1391
|
-
},
|
|
1392
|
-
{
|
|
1393
|
-
"inputIndex": 1,
|
|
1394
|
-
"statIndex": 0
|
|
1395
1287
|
}
|
|
1396
1288
|
]
|
|
1397
1289
|
},
|
|
@@ -1400,10 +1292,6 @@
|
|
|
1400
1292
|
{
|
|
1401
1293
|
"inputIndex": 0,
|
|
1402
1294
|
"statIndex": 1
|
|
1403
|
-
},
|
|
1404
|
-
{
|
|
1405
|
-
"inputIndex": 1,
|
|
1406
|
-
"statIndex": 1
|
|
1407
1295
|
}
|
|
1408
1296
|
]
|
|
1409
1297
|
},
|
|
@@ -1412,10 +1300,6 @@
|
|
|
1412
1300
|
{
|
|
1413
1301
|
"inputIndex": 0,
|
|
1414
1302
|
"statIndex": 2
|
|
1415
|
-
},
|
|
1416
|
-
{
|
|
1417
|
-
"inputIndex": 1,
|
|
1418
|
-
"statIndex": 2
|
|
1419
1303
|
}
|
|
1420
1304
|
]
|
|
1421
1305
|
}
|
|
@@ -1424,12 +1308,8 @@
|
|
|
1424
1308
|
},
|
|
1425
1309
|
{
|
|
1426
1310
|
"outputItemId": 20008,
|
|
1427
|
-
"outputMass":
|
|
1311
|
+
"outputMass": 4800,
|
|
1428
1312
|
"inputs": [
|
|
1429
|
-
{
|
|
1430
|
-
"itemId": 10008,
|
|
1431
|
-
"quantity": 1
|
|
1432
|
-
},
|
|
1433
1313
|
{
|
|
1434
1314
|
"itemId": 402,
|
|
1435
1315
|
"quantity": 12
|
|
@@ -1440,10 +1320,6 @@
|
|
|
1440
1320
|
"sources": [
|
|
1441
1321
|
{
|
|
1442
1322
|
"inputIndex": 0,
|
|
1443
|
-
"statIndex": 0
|
|
1444
|
-
},
|
|
1445
|
-
{
|
|
1446
|
-
"inputIndex": 1,
|
|
1447
1323
|
"statIndex": 1
|
|
1448
1324
|
}
|
|
1449
1325
|
]
|
|
@@ -1452,10 +1328,6 @@
|
|
|
1452
1328
|
"sources": [
|
|
1453
1329
|
{
|
|
1454
1330
|
"inputIndex": 0,
|
|
1455
|
-
"statIndex": 1
|
|
1456
|
-
},
|
|
1457
|
-
{
|
|
1458
|
-
"inputIndex": 1,
|
|
1459
1331
|
"statIndex": 2
|
|
1460
1332
|
}
|
|
1461
1333
|
]
|
|
@@ -1465,12 +1337,8 @@
|
|
|
1465
1337
|
},
|
|
1466
1338
|
{
|
|
1467
1339
|
"outputItemId": 20009,
|
|
1468
|
-
"outputMass":
|
|
1340
|
+
"outputMass": 4800,
|
|
1469
1341
|
"inputs": [
|
|
1470
|
-
{
|
|
1471
|
-
"itemId": 10009,
|
|
1472
|
-
"quantity": 1
|
|
1473
|
-
},
|
|
1474
1342
|
{
|
|
1475
1343
|
"itemId": 302,
|
|
1476
1344
|
"quantity": 6
|
|
@@ -1485,10 +1353,6 @@
|
|
|
1485
1353
|
"sources": [
|
|
1486
1354
|
{
|
|
1487
1355
|
"inputIndex": 0,
|
|
1488
|
-
"statIndex": 0
|
|
1489
|
-
},
|
|
1490
|
-
{
|
|
1491
|
-
"inputIndex": 1,
|
|
1492
1356
|
"statIndex": 1
|
|
1493
1357
|
}
|
|
1494
1358
|
]
|
|
@@ -1497,10 +1361,6 @@
|
|
|
1497
1361
|
"sources": [
|
|
1498
1362
|
{
|
|
1499
1363
|
"inputIndex": 0,
|
|
1500
|
-
"statIndex": 1
|
|
1501
|
-
},
|
|
1502
|
-
{
|
|
1503
|
-
"inputIndex": 1,
|
|
1504
1364
|
"statIndex": 2
|
|
1505
1365
|
}
|
|
1506
1366
|
]
|
|
@@ -1508,11 +1368,7 @@
|
|
|
1508
1368
|
{
|
|
1509
1369
|
"sources": [
|
|
1510
1370
|
{
|
|
1511
|
-
"inputIndex":
|
|
1512
|
-
"statIndex": 2
|
|
1513
|
-
},
|
|
1514
|
-
{
|
|
1515
|
-
"inputIndex": 2,
|
|
1371
|
+
"inputIndex": 1,
|
|
1516
1372
|
"statIndex": 2
|
|
1517
1373
|
}
|
|
1518
1374
|
]
|
|
@@ -1520,11 +1376,7 @@
|
|
|
1520
1376
|
{
|
|
1521
1377
|
"sources": [
|
|
1522
1378
|
{
|
|
1523
|
-
"inputIndex":
|
|
1524
|
-
"statIndex": 3
|
|
1525
|
-
},
|
|
1526
|
-
{
|
|
1527
|
-
"inputIndex": 2,
|
|
1379
|
+
"inputIndex": 1,
|
|
1528
1380
|
"statIndex": 0
|
|
1529
1381
|
}
|
|
1530
1382
|
]
|
|
@@ -1534,12 +1386,8 @@
|
|
|
1534
1386
|
},
|
|
1535
1387
|
{
|
|
1536
1388
|
"outputItemId": 20010,
|
|
1537
|
-
"outputMass":
|
|
1389
|
+
"outputMass": 4800,
|
|
1538
1390
|
"inputs": [
|
|
1539
|
-
{
|
|
1540
|
-
"itemId": 10010,
|
|
1541
|
-
"quantity": 1
|
|
1542
|
-
},
|
|
1543
1391
|
{
|
|
1544
1392
|
"itemId": 502,
|
|
1545
1393
|
"quantity": 6
|
|
@@ -1554,22 +1402,55 @@
|
|
|
1554
1402
|
"sources": [
|
|
1555
1403
|
{
|
|
1556
1404
|
"inputIndex": 0,
|
|
1557
|
-
"statIndex": 0
|
|
1558
|
-
},
|
|
1559
|
-
{
|
|
1560
|
-
"inputIndex": 1,
|
|
1561
1405
|
"statIndex": 2
|
|
1562
1406
|
}
|
|
1563
1407
|
]
|
|
1564
1408
|
},
|
|
1409
|
+
{
|
|
1410
|
+
"sources": [
|
|
1411
|
+
{
|
|
1412
|
+
"inputIndex": 0,
|
|
1413
|
+
"statIndex": 0
|
|
1414
|
+
}
|
|
1415
|
+
]
|
|
1416
|
+
},
|
|
1565
1417
|
{
|
|
1566
1418
|
"sources": [
|
|
1567
1419
|
{
|
|
1568
1420
|
"inputIndex": 0,
|
|
1569
1421
|
"statIndex": 1
|
|
1422
|
+
}
|
|
1423
|
+
]
|
|
1424
|
+
}
|
|
1425
|
+
],
|
|
1426
|
+
"blendWeights": []
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"outputItemId": 20102,
|
|
1430
|
+
"outputMass": 1536000,
|
|
1431
|
+
"inputs": [
|
|
1432
|
+
{
|
|
1433
|
+
"itemId": 20005,
|
|
1434
|
+
"quantity": 300
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
"itemId": 20002,
|
|
1438
|
+
"quantity": 300
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
"itemId": 10102,
|
|
1442
|
+
"quantity": 1
|
|
1443
|
+
}
|
|
1444
|
+
],
|
|
1445
|
+
"statSlots": [
|
|
1446
|
+
{
|
|
1447
|
+
"sources": [
|
|
1448
|
+
{
|
|
1449
|
+
"inputIndex": 0,
|
|
1450
|
+
"statIndex": 0
|
|
1570
1451
|
},
|
|
1571
1452
|
{
|
|
1572
|
-
"inputIndex":
|
|
1453
|
+
"inputIndex": 2,
|
|
1573
1454
|
"statIndex": 0
|
|
1574
1455
|
}
|
|
1575
1456
|
]
|
|
@@ -1578,13 +1459,25 @@
|
|
|
1578
1459
|
"sources": [
|
|
1579
1460
|
{
|
|
1580
1461
|
"inputIndex": 0,
|
|
1581
|
-
"statIndex":
|
|
1462
|
+
"statIndex": 1
|
|
1582
1463
|
},
|
|
1583
1464
|
{
|
|
1584
|
-
"inputIndex":
|
|
1465
|
+
"inputIndex": 2,
|
|
1585
1466
|
"statIndex": 1
|
|
1586
1467
|
}
|
|
1587
1468
|
]
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
"sources": [
|
|
1472
|
+
{
|
|
1473
|
+
"inputIndex": 1,
|
|
1474
|
+
"statIndex": 3
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
"inputIndex": 2,
|
|
1478
|
+
"statIndex": 2
|
|
1479
|
+
}
|
|
1480
|
+
]
|
|
1588
1481
|
}
|
|
1589
1482
|
],
|
|
1590
1483
|
"blendWeights": []
|
|
@@ -1600,6 +1493,10 @@
|
|
|
1600
1493
|
{
|
|
1601
1494
|
"itemId": 20010,
|
|
1602
1495
|
"quantity": 300
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
"itemId": 10106,
|
|
1499
|
+
"quantity": 1
|
|
1603
1500
|
}
|
|
1604
1501
|
],
|
|
1605
1502
|
"statSlots": [
|
|
@@ -1610,8 +1507,8 @@
|
|
|
1610
1507
|
"statIndex": 0
|
|
1611
1508
|
},
|
|
1612
1509
|
{
|
|
1613
|
-
"inputIndex":
|
|
1614
|
-
"statIndex":
|
|
1510
|
+
"inputIndex": 2,
|
|
1511
|
+
"statIndex": 0
|
|
1615
1512
|
}
|
|
1616
1513
|
]
|
|
1617
1514
|
},
|
|
@@ -1620,22 +1517,97 @@
|
|
|
1620
1517
|
{
|
|
1621
1518
|
"inputIndex": 1,
|
|
1622
1519
|
"statIndex": 1
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
"inputIndex": 2,
|
|
1523
|
+
"statIndex": 1
|
|
1524
|
+
}
|
|
1525
|
+
]
|
|
1526
|
+
},
|
|
1527
|
+
{
|
|
1528
|
+
"sources": [
|
|
1529
|
+
{
|
|
1530
|
+
"inputIndex": 0,
|
|
1531
|
+
"statIndex": 2
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
"inputIndex": 2,
|
|
1535
|
+
"statIndex": 2
|
|
1623
1536
|
}
|
|
1624
1537
|
]
|
|
1538
|
+
}
|
|
1539
|
+
],
|
|
1540
|
+
"blendWeights": []
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
"outputItemId": 20200,
|
|
1544
|
+
"outputMass": 3100000,
|
|
1545
|
+
"inputs": [
|
|
1546
|
+
{
|
|
1547
|
+
"itemId": 20001,
|
|
1548
|
+
"quantity": 600
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
"itemId": 20008,
|
|
1552
|
+
"quantity": 600
|
|
1625
1553
|
},
|
|
1554
|
+
{
|
|
1555
|
+
"itemId": 10200,
|
|
1556
|
+
"quantity": 1
|
|
1557
|
+
}
|
|
1558
|
+
],
|
|
1559
|
+
"statSlots": [
|
|
1626
1560
|
{
|
|
1627
1561
|
"sources": [
|
|
1628
1562
|
{
|
|
1629
1563
|
"inputIndex": 0,
|
|
1564
|
+
"statIndex": 0
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
"inputIndex": 2,
|
|
1568
|
+
"statIndex": 0
|
|
1569
|
+
}
|
|
1570
|
+
]
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
"sources": [
|
|
1574
|
+
{
|
|
1575
|
+
"inputIndex": 0,
|
|
1576
|
+
"statIndex": 1
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
"inputIndex": 2,
|
|
1580
|
+
"statIndex": 1
|
|
1581
|
+
}
|
|
1582
|
+
]
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
"sources": [
|
|
1586
|
+
{
|
|
1587
|
+
"inputIndex": 1,
|
|
1588
|
+
"statIndex": 0
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
"inputIndex": 2,
|
|
1630
1592
|
"statIndex": 2
|
|
1631
1593
|
}
|
|
1632
1594
|
]
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
"sources": [
|
|
1598
|
+
{
|
|
1599
|
+
"inputIndex": 1,
|
|
1600
|
+
"statIndex": 1
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
"inputIndex": 2,
|
|
1604
|
+
"statIndex": 3
|
|
1605
|
+
}
|
|
1606
|
+
]
|
|
1633
1607
|
}
|
|
1634
1608
|
],
|
|
1635
|
-
"blendWeights": [
|
|
1636
|
-
|
|
1637
|
-
1
|
|
1638
|
-
]
|
|
1609
|
+
"blendWeights": [],
|
|
1610
|
+
"sourceSubclass": 10200
|
|
1639
1611
|
},
|
|
1640
1612
|
{
|
|
1641
1613
|
"outputItemId": 20210,
|
|
@@ -1698,7 +1670,8 @@
|
|
|
1698
1670
|
"sources": []
|
|
1699
1671
|
}
|
|
1700
1672
|
],
|
|
1701
|
-
"blendWeights": []
|
|
1673
|
+
"blendWeights": [],
|
|
1674
|
+
"sourceSubclass": 10201
|
|
1702
1675
|
},
|
|
1703
1676
|
{
|
|
1704
1677
|
"outputItemId": 20211,
|
|
@@ -1761,6 +1734,7 @@
|
|
|
1761
1734
|
"sources": []
|
|
1762
1735
|
}
|
|
1763
1736
|
],
|
|
1764
|
-
"blendWeights": []
|
|
1737
|
+
"blendWeights": [],
|
|
1738
|
+
"sourceSubclass": 10201
|
|
1765
1739
|
}
|
|
1766
1740
|
]
|
|
@@ -297,7 +297,7 @@ export function computeCraftedOutputStats(
|
|
|
297
297
|
out.push(0)
|
|
298
298
|
continue
|
|
299
299
|
}
|
|
300
|
-
if (slot.sources.length === 1
|
|
300
|
+
if (slot.sources.length === 1) {
|
|
301
301
|
const src = slot.sources[0]
|
|
302
302
|
const key = keyForRecipeInputStat(recipe, src.inputIndex, src.statIndex)
|
|
303
303
|
const input = recipe.inputs[src.inputIndex]
|
package/src/derivation/index.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import recipes from '../data/recipes.json'
|
|
2
|
+
import type {Recipe} from '../data/recipes-runtime'
|
|
3
|
+
|
|
4
|
+
const bySource = new Map<number, Recipe[]>()
|
|
5
|
+
for (const r of recipes as Recipe[]) {
|
|
6
|
+
if (r.sourceSubclass === undefined) continue
|
|
7
|
+
const list = bySource.get(r.sourceSubclass) ?? []
|
|
8
|
+
list.push(r)
|
|
9
|
+
bySource.set(r.sourceSubclass, list)
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function eligibleUpgrades(entityItemId: number): Recipe[] {
|
|
13
|
+
return bySource.get(entityItemId) ?? []
|
|
14
|
+
}
|
package/src/index-module.ts
CHANGED
|
@@ -150,6 +150,8 @@ export type {ReserveTier, TierRange} from './derivation'
|
|
|
150
150
|
export {getEffectiveReserve} from './derivation'
|
|
151
151
|
export type {EffectiveReserveInput} from './derivation'
|
|
152
152
|
|
|
153
|
+
export {eligibleUpgrades} from './derivation'
|
|
154
|
+
|
|
153
155
|
export {getStatDefinitions, getStatName, resolveStats} from './derivation'
|
|
154
156
|
export type {StatDefinition, NamedStats} from './derivation'
|
|
155
157
|
|