Freeciv21
Develop your civilization from humble roots to a global empire
unit_utils.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void unit_restore_hitpoints (unit *punit)
 add hitpoints to the unit, hp_gain_coord returns the amount to add united nations will speed up the process by 2 hp's / turn, means helicopters will actually not lose hp's every turn if player have that wonder. More...
 

Function Documentation

◆ unit_restore_hitpoints()

void unit_restore_hitpoints ( struct unit punit)

add hitpoints to the unit, hp_gain_coord returns the amount to add united nations will speed up the process by 2 hp's / turn, means helicopters will actually not lose hp's every turn if player have that wonder.

Units which have moved don't gain hp, except the United Nations and helicopter effects still occur.

If 'game.info.killunhomed' is greater than 0, unhomed units lose 'game.info.killunhomed' hitpoints each turn, killing the unit at the end.

Definition at line 45 of file unit_utils.cpp.

Referenced by freeciv::path_finder::path_finder_private::maybe_insert_vertex(), and player_restore_units().