From 680a1a797c8da01dc9f01c12a6e7ccfaa249709d Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Fri, 23 Feb 2024 09:25:04 -0800 Subject: [PATCH] define some flags in 6x0A --- src/CommandFormats.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CommandFormats.hh b/src/CommandFormats.hh index 10752532..3b21efa5 100644 --- a/src/CommandFormats.hh +++ b/src/CommandFormats.hh @@ -3897,6 +3897,9 @@ struct G_EnemyHitByPlayer_6x0A { G_EnemyIDHeader header; le_uint16_t enemy_index = 0; // [0, 0xB50) le_uint16_t total_damage = 0; + // Flags: + // 00000400 - should play hit animation + // 00000800 - should die typename std::conditional::type flags = 0; } __packed__; @@ -4686,7 +4689,7 @@ struct G_SyncGameStateHeader_6x6B_6x6C_6x6D_6x6E { struct G_SyncEnemyState_6x6B_Entry_Decompressed { le_uint32_t flags = 0; le_uint16_t last_attacker = 0; - le_uint16_t remaining_hp = 0; + le_uint16_t total_damage = 0; uint8_t red_buff_type = 0; uint8_t red_buff_level = 0; uint8_t blue_buff_type = 0;