Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add function for fixing tile occupancy

Đang mở
#5,995 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
32/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
game-dev

Hướng nghiên cứu

Start from Units::teleport, which the issue says already contains the occupancy logic, and from the reproduction steps: ghostly then resurrect-adv, and launch while mounted. Work out how occupancy is stored on tiles and when it is cleared. The issue leaves the function's name and signature open, so agree on those with maintainers first. Done means a callable recalculation that clears the stuck occupancy in the reproduced cases.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I noticed that reviving ghosts (e.g., by using ghostly then resurrect-adv) leaves unit occupancy stuck in the tile. Using launch while mounted removes occupancy from the tile, allowing the tile to be traversed without going prone or swapping places with your horse. There's also a DF bug involving adventurers and minecarts.

Given these issues, we should have a function to recalculate the occupancy of a tile. I think the logic already exists in Units::teleport? A tool to iterate the entire map can be written to identify and clean up occupancy issues.

Ngôn ngữ chính
C++
Star
2.1k
Fork
509
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DFHack/dfhack

Tất cả issue của DFHack/dfhack

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.