[Freeciv-Dev] Tech cost patch v4
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Wed, Nov 28, 2001 at 04:13:48PM +0100, Petr Baudis wrote:
> > > Shouldn't you also modify ai/advmilitary.c ? >:)
> > I hope not, I haven't got faintest idea what happens there. Someone
> > more familiar with ai should probably check if modifications are
> > needed.
> Use grep. Your GREAT friend! It tells me:
> freeciv/ai/advmilitary.c: techcost = techdist * (techdist +
> pplayer->research.researchpoints) *
> freeciv/ai/advmilitary.c: l = k * (k + pplayer->research.researchpoints)
> * game.researchcost;
> So run your favourite editor, hunt these lines and modify them :-).
My version didn't have line with techcost, only two lines with l = k...
Fixed them to use new goal_tech_cost function which I added to
common/tech.c. aitech.c seems to use research_time so it should work.
Hopefully ai will now be ok.
I also added gtk-client to show costs for goals.
--
// Juha Litola
tech_cost_style4.diff
Description: Text document
pgpA2BKDhdMAa.pgp
Description: PGP signature
- [Freeciv-Dev] Tech cost patch, Juha Litola, 2001/11/28
- [Freeciv-Dev] Re: Tech cost patch, Juha Litola, 2001/11/28
- [Freeciv-Dev] Re: Tech cost patch, Juha Litola, 2001/11/28
- [Freeciv-Dev] Re: Tech cost patch, Raimar Falke, 2001/11/28
- [Freeciv-Dev] Re: Tech cost patch, Petr Baudis, 2001/11/28
- [Freeciv-Dev] Tech cost patch v3, Juha Litola, 2001/11/28
- [Freeciv-Dev] Re: Tech cost patch v3, Petr Baudis, 2001/11/28
- [Freeciv-Dev] Tech cost patch v4,
Juha Litola <=
- [Freeciv-Dev] Re: Tech cost patch v4, Paul Zastoupil, 2001/11/28
- [Freeciv-Dev] Re: Tech cost patch v4, Juha Litola, 2001/11/28
- [Freeciv-Dev] Re: Tech cost patch v3, Raimar Falke, 2001/11/28
- [Freeciv-Dev] Why not C++ style comments?, Raahul Kumar, 2001/11/29
- [Freeciv-Dev] Re: Why not C++ style comments?, Raimar Falke, 2001/11/29
- [Freeciv-Dev] C/C++ Compilers used with Freeciv, Raahul Kumar, 2001/11/29
- [Freeciv-Dev] Re: Why not C++ style comments?, Reinier Post, 2001/11/29
- [Freeciv-Dev] Re: Why not C++ style comments?, Reinier Post, 2001/11/29
- [Freeciv-Dev] Re: Why not C++ style comments?, Jules Bean, 2001/11/29
- [Freeciv-Dev] Say Yes to C++ style comments, Raahul Kumar, 2001/11/30
|
|