Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2000:
[Freeciv-Dev] Re: TODO
Home

[Freeciv-Dev] Re: TODO

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: TODO
From: Thue <thue@xxxxxxx>
Date: Sun, 24 Sep 2000 23:57:17 +0200
Reply-to: thue@xxxxxxx

> double chance(int as, int ahp, int afp, int ds, int dhp, int dfp)
> {
>   /* number of rounds a unit can fight without dying */
>   int att_N_lose = ahp/dfp + ahp%dfp;
>   int def_N_lose = dhp/afp + dhp%afp;

Yes, I know, I have to check for the case that either as or ds = 0...

-Thue



[Prev in Thread] Current Thread [Next in Thread]