feat(gameplay): add pig wander AI and refine speed physics

This commit is contained in:
2026-08-02 13:51:01 +08:00
parent 2e4a32fed7
commit 18e308bd03
2 changed files with 18 additions and 5 deletions

View File

@@ -20,9 +20,9 @@ void ServerEntityManager::init() {
m_factories.try_emplace("cubed:pig", [this]() {
BaseServerCreature c;
c.hitbox = HitboxManager::instance().get_hitbox_id("cubed:pig");
return create_entity_in_factory(Entity{m_next},
EntityInfo{"cubed:pig", ""},
std::move(c), PigTag{});
return create_entity_in_factory(
Entity{m_next}, EntityInfo{"cubed:pig", ""}, std::move(c), PigTag{},
AIBase{}, WanderAITag{}, MoveBoost{});
});
}
void ServerEntityManager::update() {