Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2002:
[Freeciv-Dev] Re: Patch for units recovering hit points
Home

[Freeciv-Dev] Re: Patch for units recovering hit points

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Jordi Negrevernis i Font" <jorneg@xxxxxxxxxxx>, <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Patch for units recovering hit points
From: "Baumans" <baumans@xxxxxxxxxxxxx>
Date: Thu, 25 Jul 2002 17:09:03 -0400

    This a pretty good idea.  The patch itself is pretty odd; to me, at
least, it seems like it takes out and puts back in identical lines. I've
attached a version of the patch that doesn't have that problem.  I've also
renamed AI_RECOVER_HIT_POINTS to AIUNIT_RECOVER_HIT_POINTS for uniformity,
removed ct and flag from your new function (ct is useless unless there is an
infinite number of huts next to each other, flag just isn't very useful),
and made it so that if a unit's role had been AIUNIT_RECOVER_HIT_POINTS and
it wasn't fully healed, the role stayed the same, which removed the problem
with going to a city without barracks and not healing all the way(I think,
I'm not sure).

    An idea: if a unit wants to heal, but it can't find a city that's close
enough, fotify it.  Also, if a unit's in a city, it only goes after huts.
You might want to change that to also attack enemies that it really wants to
fight (> 70000?).

-John Bauman
----- Original Message -----
From: "Jordi Negrevernis i Font" <jorneg@xxxxxxxxxxx>
To: <freeciv-dev@xxxxxxxxxxx>
Sent: Tuesday, July 23, 2002 12:03 PM
Subject: [Freeciv-Dev] Patch for units recovering hit points


>
>     This patch makes ground units go to a nearby city - preferably with
> barracks - and sealing units  go to
> a city - preferably with port facility - to recover hit points.
>
>     If the city doesn't have barracks or port facility, the unit does
> not recover all the hitpoints!!!! -  any ideas?
>
>     Note: first patch so don't be cruel!
>
>

Attachment: recover_hp.diff
Description: Binary data


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