Tíquete #44200

Even on survivable tile, Helicopters don't heal

: 2022-03-27 03:36 Última Atualização: 2022-04-02 06:38

Relator:
Dono:
(Nenhum)
Tipo:
Estado:
Aberto
Componente:
(Nenhum)
Marcos:
(Nenhum)
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Nenhum
Arquivo:
Nenhum

Details

I don't know if this is as it should be, but it's certainly what I've expected:

hp_gain_coord() has the basic unit healing as:

if (!unit_class_get(punit)->hp_loss_pct) {
hp += (base + 9) / 10;
}

That is; basic unit healing never applies to Helicopters (or other hp_loss_pct units), even when the HP loss is not happening to them at their current location (i.e. when they are in a city, airbase, or carrier).

Is this behavior correct?

Ticket History (3/4 Histories)

2022-03-27 03:36 Updated by: cazfi
  • New Ticket "Even on survivable time, Helicopters don't heal" created
2022-03-27 05:26 Updated by: cazfi
  • Summary Updated
2022-04-02 03:55 Updated by: ihnatus
Comentário

Reply To cazfi

Is this behavior correct?

It just exists... An effect may give regeneration to helicopters in airbases. Surely it's strange but hardly qualifies as a bug. There is a suggestion to rewrite hp_gain_coord totally on effects.

2022-04-02 06:38 Updated by: cazfi
Comentário

Reply To ihnatus

There is a suggestion to rewrite hp_gain_coord totally on effects.

That's what I were implementing when I came across this weirdness. Have ported equivalent functionality in the current versions of those patches.

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login