Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Add function for fixing tile occupancy

Abierto
#5,995 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
32/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp
Área
game-dev

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C++
Estrellas
2.1k
Forks
509
Merge medio
2 d 19 h
PR fusionados (30 d)
25

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DFHack/dfhack

Todos los issues de DFHack/dfhack

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.