Ticket #44200

Even on survivable tile, Helicopters don't heal

Open Date: 2022-03-27 03:36 Last Update: 2022-04-02 06:38

Reporter:
Owner:
(None)
Type:
Status:
Open
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

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
Comment

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
Comment

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

Edit

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