Freeciv-3.2: /fast/freeciv/nightly/S3_2/server/advisors/advtools.c File Reference

Freeciv-3.2

Loading...
Searching...
No Matches
Functions
advtools.c File Reference
`#include <math.h>`
`#include "advtools.h"`

Go to the source code of this file.

## Functions

adv_want | amortize (adv_want benefit, int delay)

## Function Documentation

## ◆ amortize()

adv_want amortize | ( | adv_want | benefit,
|  | int | delay
| ) |  |

Amortize means gradually paying off a cost or debt over time. In freeciv terms this means we calculate how much less worth something is to us depending on how long it will take to complete.

This is based on a global interest rate as defined by the MORT value.

Definition at line 29 of file advtools.c.

Referenced by adv_best_government(), consider_settler_action(), dai_gov_value(), dai_hunter_guess_best(), dai_hunter_missile_want(), dai_war_desire(), military_amortize(), settler_evaluate_improvements(), and settler_map_iterate().