Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Add function for fixing tile occupancy

Aberta
#5,995 2 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 3 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
32/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
cpp
Domínio
game-dev

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
C++
Estrelas
2.1k
Forks
509
Merge médio
2d 19h
PRs com merge (30d)
25

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de DFHack/dfhack

Todas as issues de DFHack/dfhack

Issues semelhantes

Mais issues de C++

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.