Follow-up Comment #5, patch #3976 (project freeciv): > Isn't current model (that has the problem of being somewhat overlapping) about just what you propose. Yes. It is a generalization of it. Only some extras have an effect. There is an Irrig_Possible but no Maglev_Possible. What I suggest is moving the build action (and its requirements) from the extras to actions.
A simplified draft that ignores grouping etc: [action_road_basic] result_build_extra = "Road" reqs = { "type", "name", "range", "present" "UnitFlag", "Settlers", "Local", "TRUE" "TerrainClass", "Land", "Local", "TRUE" "Extra", "River", "Local", "FALSE" } [action_road_bridge] result_build_extra = "Road" reqs = { "type", "name", "range", "present" "UnitFlag", "Settlers", "Local", "TRUE" "TerrainClass", "Land", "Local", "TRUE" "Tech", "Bridge building", "Player", TRUE } [action_irrig_from_river] result_build_extra = "Irrigation" reqs = { "type", "name", "range" "UnitFlag", "Settlers", "Local" "Extra", "River", "CAdjacent" } [action_irrig_from_irrig] result_build_extra = "Irrigation" reqs = { "type", "name", "range" "UnitFlag", "Settlers", "Local" "Extra", "Irrigation", "CAdjacent" } _______________________________________________________ Reply to this item at: <http://gna.org/patch/?3976> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev