Complete.Org:
Mailing Lists:
Archives:
freeciv-dev:
August 2001: [Freeciv-Dev] [Patch] Watchtower v3 |
[Freeciv-Dev] [Patch] Watchtower v3[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
So, this is the 3rd version of the watchtower-patch. Features: Nothing new really... Up to now, following events regarding watchtowers are handled (there may be more to handle which I didn't see): - A fortress is pillaged (vr reduced) - A town is built upon a fortress (vr reduced) - A unit steps into a fortress (vr enhanced) - A unit steps out of a watchtower (vr reduced) - The necessary invention is made (all units inside fortresses get enhanced vr) - A fortress is built (all units on that tile get enhanced vr) - A unit getting upgraded inside a fortress (mostly not changing) - A unit is created on a fortress, for example barbarians, or a unit is being bribed (vr enhanced) *New* - A unit gets killed inside a fortress or is disbanded (handled with the same function remove_unit_sight_points()) (vr reduced) - A sentried unit inside a fortress get awaked, if an enemy unit moves into his visionrange. - Patrol is canceled, when a unit is in a fortress on a patrol and sees an enemy unit. - Exploring units inside fortresses are also taken into account I made the values watchtower_vision and watchtower_extra_vision global (inside the game struct) and made them changeable by wtowervision (def:2 min:1 max:3) and wtowerevision (def:0 min:0 max:2). I also made the descriptions, I don't know if it's understandable for only-players. Of course I made these values load- and saveable (is there such a word?). I hope I did this correctly, it works here w/o problems, so I hope for the best. :-) Again, I attached a(nother) savegame, playername is swk, move on a bit in time and have a look. You can also change the values inside the savegame with an editor and see the effects. Bert
fortress_watchtower_3.diff
civgame1876m.sav.gz
|