Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Add function for fixing tile occupancy

Offen
#5,995 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
32/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
cpp
Bereich
game-dev

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
C++
Sterne
2.1k
Forks
509
Ø Merge
2 T. 19 Std.
Gemergte PRs (30 T.)
25

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus DFHack/dfhack

Alle Issues in DFHack/dfhack

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.