Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2005:
[Freeciv-Dev] (PR#14226) Allow_Activity effect
Home

[Freeciv-Dev] (PR#14226) Allow_Activity effect

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#14226) Allow_Activity effect
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Sat, 8 Oct 2005 02:21:04 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14226 >

This patch introduces new effect "Allow_Activity". The effect replaces
the logic of TF_BRIDGE, TF_RAILROAD, TF_FORTRESS and TF_AIRBASE tech flags.
(TF_FARMLAND will be next).

This is done by adding new requirement target "ActivityType". 
The effect targets it's requirements on tile, player and unit.
Currently "road", "railroad", "fortress" and "airbase" activities are
supported.

Part of the effects.ruleset file:

[effect_can_build_roads_on_default]
name    = "Allow_Activity"
value   = 1
reqs    =
    { "type", "name", "range"
      "ActivityType", "Road", "Local"
      "UnitFlag", "Settlers", "Local"
    }

[effect_cannot_build_roads_on_rivers]
name    = "Allow_Activity"
value   = -1
reqs    =
    { "type", "name", "range"
      "ActivityType", "Road", "Local"
      "Special", "River", "local"
    }

[effect_bridge_building]
name    = "Allow_Activity"
value   = 1
reqs    =
    { "type", "name", "range"
      "ActivityType", "Road", "Local"
      "UnitFlag", "Settlers", "Local"
      "Tech", "Bridge Building", "Player"
    }

[effect_allow_railroad]
name    = "Allow_Activity"
value   = 1
reqs    =
    { "type", "name", "range"
      "ActivityType", "RailRoad", "Local"
      "UnitFlag", "Settlers", "Local"
      "Tech", "Railroad", "Player"
    }

--
mateusz

Attachment: allow_activity2.diff.gz
Description: GNU Zip compressed data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#14226) Allow_Activity effect, Mateusz Stefek <=