Incidencia #44200

Even on survivable tile, Helicopters don't heal

Abrir Fecha: 2022-03-27 03:36 Última actualización: 2022-04-02 06:38

Informador:
Propietario:
(Ninguno)
Tipo:
Estado:
Open
Componente:
(Ninguno)
Hito:
(Ninguno)
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Ninguno
Fichero:
Ninguno

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
Comentario

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
Comentario

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. » Entrar