fix minor issue - AS scoring system

This commit is contained in:
HuLiNap 2025-07-02 09:23:34 +07:00
parent 75e7ab13ac
commit e81a8de348
3 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ Copy and paste launcher.exe and hkprg.dll from launcher folder inside hysilens-s
Windows:
```
git clone https://git.xeondev.com/HonkaiSlopRail/hysilens-sr
cd jingliu-sr
cd hysilens-sr
zig build run-dispatch
zig build run-gameserver
```

View file

@ -252,7 +252,7 @@ fn addBattleTargets(allocator: Allocator, battle: *protocol.SceneBattleInfo) !vo
try battle.battle_target_info.append(.{ .key = 5, .value = pfTargetTail });
},
// AS
420100...420300 => {
420100...420900 => {
try battle.battle_target_info.append(.{ .key = 1, .value = asTargetHead });
},
else => {},

View file

@ -26,7 +26,7 @@ pub fn onSceneEntityMove(session: *Session, packet: *const Packet, allocator: Al
const req = try packet.getProto(protocol.SceneEntityMoveCsReq, allocator);
for (req.entity_motion_list.items) |entity_motion| {
if (entity_motion.motion) |motion| {
//if (entity_motion.entity_id > 99999 and entity_motion.entity_id < 1000000 or entity_motion.entity_id == 0)
if (entity_motion.entity_id > 99999 and entity_motion.entity_id < 1000000 or entity_motion.entity_id == 0)
log.debug("[POSITION] entity_id: {}, motion: {}", .{ entity_motion.entity_id, motion });
}
}