feat(creatures): refine pig movement physics

Add movement constants for pigs and switch deceleration to per-axis friction so creatures stop naturally. Extend wander boost duration for smoother behavior.
This commit is contained in:
2026-08-02 16:36:56 +08:00
parent 9bb1882d92
commit 5980400e2e
6 changed files with 35 additions and 30 deletions

View File

@@ -32,7 +32,8 @@ void WanderAISystem::do_ai(BaseServerCreature& creature,
creature.direction.value = r.random_direction_horizontal();
}
if (r.random_bool(MOVE_PROBABILITY)) {
move_boost.duration = r.random_int(5, 8);
move_boost.duration = r.random_int(20, 40);
move_boost.count = 0;
}
}