dredless 1.2.1 → 1.2.2
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.
|
@@ -4650,7 +4650,13 @@
|
|
|
4650
4650
|
[2, { name: "numeric_pair", ...TWO_FIELD_SPEC }],
|
|
4651
4651
|
[3, { name: "gate_width", fields: numericFields({ 1: 20, 2: 24, 4: 28, 8: 32, 16: 36, 32: 40 }) }],
|
|
4652
4652
|
[4, { name: "motion_aux", packedBits: [{ bit: 8, offset: 33 }], fields: numericFields({ 1: 20, 2: 24, 4: 28 }) }],
|
|
4653
|
-
[5, {
|
|
4653
|
+
[5, {
|
|
4654
|
+
name: "entity_health",
|
|
4655
|
+
// The official table starts both bar dimensions at 10 (one world unit).
|
|
4656
|
+
// Field values on the wire are deltas relative to these defaults.
|
|
4657
|
+
defaults: { q28: 10, q32: 10 },
|
|
4658
|
+
fields: numericFields({ 1: 20, 2: 24, 4: 28, 8: 32 })
|
|
4659
|
+
}],
|
|
4654
4660
|
[6, { name: "item_holder", ...TWO_FIELD_SPEC }],
|
|
4655
4661
|
[7, {
|
|
4656
4662
|
name: "entity_type",
|
|
@@ -4798,6 +4804,12 @@
|
|
|
4798
4804
|
}],
|
|
4799
4805
|
[26, { name: "numeric_single", fields: numericFields({ 1: 20 }) }],
|
|
4800
4806
|
[31, { name: "numeric_single", fields: numericFields({ 1: 20 }) }],
|
|
4807
|
+
[32, {
|
|
4808
|
+
// Wire 95 has values; treating it as a marker swallows following removals.
|
|
4809
|
+
name: "numeric_triplet",
|
|
4810
|
+
defaults: { q28: 10 },
|
|
4811
|
+
fields: numericFields({ 1: 20, 2: 24, 4: 28 })
|
|
4812
|
+
}],
|
|
4801
4813
|
[37, { name: "loose_item_marker", packedBits: [{ bit: 2, offset: 29 }], fields: numericFields({ 1: 20, 4: 24 }) }],
|
|
4802
4814
|
[38, { name: "flag_state", packedBits: [{ bit: 1, offset: 21 }], fields: [] }],
|
|
4803
4815
|
[39, { name: "comms_transmit", ...TWO_FIELD_SPEC }],
|
|
@@ -4824,6 +4836,8 @@
|
|
|
4824
4836
|
}],
|
|
4825
4837
|
[54, {
|
|
4826
4838
|
name: "starter_cannon",
|
|
4839
|
+
// Wire deltas start with both barrels fully extended and capacity 16.
|
|
4840
|
+
defaults: { q36: 50, q44: 16, q48: 50 },
|
|
4827
4841
|
fields: numericFields({ 1: 20, 2: 32, 4: 24, 8: 28, 16: 44, 32: 36, 64: 48, 128: 52, 256: 40, 512: 56, 1024: 60 })
|
|
4828
4842
|
}],
|
|
4829
4843
|
[55, {
|
|
@@ -5005,7 +5019,7 @@
|
|
|
5005
5019
|
[168, 78],
|
|
5006
5020
|
[169, 77]
|
|
5007
5021
|
]);
|
|
5008
|
-
var MASK_ONLY_TABLES = /* @__PURE__ */ new Set([13, 22, 23, 27, 28, 30,
|
|
5022
|
+
var MASK_ONLY_TABLES = /* @__PURE__ */ new Set([13, 22, 23, 27, 28, 30, 36, 40, 46, 48, 52, 58, 64, 65, 66, 68, 73, 74]);
|
|
5009
5023
|
var ENTITY_FOOTPRINTS = /* @__PURE__ */ new Map([
|
|
5010
5024
|
[240, { width: 2, height: 2 }],
|
|
5011
5025
|
[247, { width: 2, height: 2 }],
|
|
@@ -5491,40 +5505,40 @@
|
|
|
5491
5505
|
return "bot";
|
|
5492
5506
|
}
|
|
5493
5507
|
function isCowardBossState({ health }) {
|
|
5494
|
-
return health?.state?.q28 ===
|
|
5508
|
+
return health?.state?.q28 === 80 && health?.state?.q32 === 88;
|
|
5495
5509
|
}
|
|
5496
5510
|
function isOrangeFoolBotState({ combatRecord }) {
|
|
5497
5511
|
return combatRecord?.q20 === -427551232 && combatRecord?.q24 === 1 && combatRecord?.q72 === 3;
|
|
5498
5512
|
}
|
|
5499
5513
|
function isZombieBossBotState({ health, table2Record, combatRecord }) {
|
|
5500
|
-
return combatRecord?.q20 === -430233088 && health?.state?.q28 ===
|
|
5514
|
+
return combatRecord?.q20 === -430233088 && health?.state?.q28 === 40 && health?.state?.q32 === 176 && table2Record?.q20 === 320 && table2Record?.q24 === -900;
|
|
5501
5515
|
}
|
|
5502
5516
|
function isRedSentryBotState({ health, table2Record, combatRecord }) {
|
|
5503
|
-
return combatRecord?.q20 === 508251904 && combatRecord?.q72 === 2 || health?.state?.q28 ===
|
|
5517
|
+
return combatRecord?.q20 === 508251904 && combatRecord?.q72 === 2 || health?.state?.q28 === 80 && health?.state?.q32 === 176 && table2Record?.q20 === 320 && table2Record?.q24 === -900;
|
|
5504
5518
|
}
|
|
5505
5519
|
function isBlueRusherBotState({ health, table2Record, combatRecord }) {
|
|
5506
|
-
return combatRecord?.q20 === 1113052928 && combatRecord?.q72 === 2 || health?.state?.q28 ===
|
|
5520
|
+
return combatRecord?.q20 === 1113052928 && combatRecord?.q72 === 2 || health?.state?.q28 === 40 && health?.state?.q32 === 44 && table2Record?.q20 === 80 && table2Record?.q24 === -900;
|
|
5507
5521
|
}
|
|
5508
5522
|
function isRedSniperBotState({ health, table2Record }) {
|
|
5509
|
-
return health?.state?.q28 ===
|
|
5523
|
+
return health?.state?.q28 === 45 && health?.state?.q32 === 99 && table2Record?.q20 === 180 && table2Record?.q24 === -900;
|
|
5510
5524
|
}
|
|
5511
5525
|
function isYellowHunterBotState({ health, table2Record, combatRecord }) {
|
|
5512
|
-
return combatRecord?.q20 === -775665152 && combatRecord?.q72 === 4 && combatRecord?.q44 === -944515328 || health?.state?.q28 ===
|
|
5526
|
+
return combatRecord?.q20 === -775665152 && combatRecord?.q72 === 4 && combatRecord?.q44 === -944515328 || health?.state?.q28 === 40 && health?.state?.q32 === 66 && table2Record?.q20 === 120 && table2Record?.q24 === -900;
|
|
5513
5527
|
}
|
|
5514
5528
|
function isAquaShielderBotState({ health, table2Record, combatRecord }) {
|
|
5515
|
-
return combatRecord?.q20 === 13697024 && combatRecord?.q24 === 1 || health?.state?.q28 ===
|
|
5529
|
+
return combatRecord?.q20 === 13697024 && combatRecord?.q24 === 1 || health?.state?.q28 === 60 && health?.state?.q32 === 132 && table2Record?.q20 === 240 && table2Record?.q24 === -900;
|
|
5516
5530
|
}
|
|
5517
5531
|
function isLazerEnthusiastBotState({ health, table2Record, table10Record, beamRecord }) {
|
|
5518
|
-
return health?.state?.q28 ===
|
|
5532
|
+
return health?.state?.q28 === 150 && health?.state?.q32 === 165 && table2Record?.q20 === 300 && table2Record?.q24 === -900 && Boolean(table10Record) && Boolean(beamRecord);
|
|
5519
5533
|
}
|
|
5520
5534
|
function isYellowMineGuardBotState({ health, smallRecord, combatRecord, table2Record }) {
|
|
5521
|
-
return health?.state?.q28 ===
|
|
5535
|
+
return health?.state?.q28 === 40 && health?.state?.q32 === 43 && smallRecord?.q20 === 78 && smallRecord?.q24 === 78 && combatRecord?.q24 === -995542016 && !table2Record;
|
|
5522
5536
|
}
|
|
5523
5537
|
function isShieldHelperBotState({ health, table2Record }) {
|
|
5524
|
-
return health?.state?.q28 ===
|
|
5538
|
+
return health?.state?.q28 === 40 && health?.state?.q32 === 43 && health?.maxHp === 1e3 && !table2Record;
|
|
5525
5539
|
}
|
|
5526
5540
|
function isShieldMasterBotState({ health, table2Record }) {
|
|
5527
|
-
return health?.state?.q28 ===
|
|
5541
|
+
return health?.state?.q28 === 200 && health?.state?.q32 === 220 && health?.maxHp === 15e3 && Boolean(table2Record);
|
|
5528
5542
|
}
|
|
5529
5543
|
function botIdentifierFromState({ combatRecord, motionRecord, smallRecord }) {
|
|
5530
5544
|
if (combatRecord) return `t18:${combatRecord.q20 ?? "-"}:${combatRecord.q24 ?? "-"}:${combatRecord.q72 ?? "-"}`;
|