[Freeciv-Dev] Re: Multiple veteran level system patch
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sat, Apr 19, 2003 at 10:20:48AM +0000, Per I. Mathisen wrote:
> On Sat, 19 Apr 2003, James wrote:
> > I've had some suggestions on having the city improvements that give
> > better diplomats configurable, what are your thoughts on this? Personally
> > I'd rather not because I think that it would be quite complicated.
> I'm afraid there will have to be, once generalized effects are
> implemented. Until then, just add the necessary abilities to
> data/default/buildings.ruleset and associated files.
Yes; I wouldn't bother writing the code, since this is already done far
more generally by impr-gen (and perhaps by generalised effects too).
> There is already effects along the line of:
> effect =
> { "type", "range", "aff_unit"
> "Unit_Veteran", "City", "Air"
>
> How easy it would be to extend this to specific named unit, Mike will have
> to answer.
Or I could, since I wrote the code. ;) With the current code, unit
classes are configurable in the ruleset. So you can put your units in
the "Foo" class, and then define Unit_Veteran effects that specify "Foo"
in their aff_unit field. It would be trivial to extend the code to
specific units, but I feel this wouldn't be as clean a solution; if you
want to have it affect just one type of unit, just have that one unit in
the class.
Ben
--
ben@xxxxxxxxxxxxxxxxxxxxxx http://bellatrix.pcl.ox.ac.uk/~ben/
"You know my methods, Watson."
- 'The Crooked Man', Sir Arthur Conan Doyle
- [Freeciv-Dev] Re: Multiple veteran level system patch, (continued)
- [Freeciv-Dev] Re: Multiple veteran level system patch, James, 2003/04/13
- [Freeciv-Dev] Re: Multiple veteran level system patch, James, 2003/04/13
- [Freeciv-Dev] Re: Multiple veteran level system patch, Per I. Mathisen, 2003/04/18
- [Freeciv-Dev] Re: Multiple veteran level system patch, James, 2003/04/19
- [Freeciv-Dev] Re: Multiple veteran level system patch, Per I. Mathisen, 2003/04/19
- [Freeciv-Dev] Re: Multiple veteran level system patch, Arnstein Lindgard, 2003/04/19
- [Freeciv-Dev] Re: Multiple veteran level system patch, Gregory Berkolaiko, 2003/04/19
- [Freeciv-Dev] Re: Multiple veteran level system patch, Mike Kaufman, 2003/04/19
- [Freeciv-Dev] Re: Multiple veteran level system patch, Arnstein Lindgard, 2003/04/20
- [Freeciv-Dev] Re: Multiple veteran level system patch, Per I. Mathisen, 2003/04/20
- [Freeciv-Dev] Re: Multiple veteran level system patch,
Ben Webb <=
- [Freeciv-Dev] Re: Multiple veteran level system patch, Jason Dorje Short, 2003/04/13
- [Freeciv-Dev] Re: Multiple veteran level system patch, Greg Wooledge, 2003/04/14
|
|