Announcement

Collapse
No announcement yet.

DESIGN: Building flags available to units?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DESIGN: Building flags available to units?

    I've been doing a lot of research in the code for hungergold and I'm opting to copy how upkeep works for cityimprovements to apply to units for hunger gold.

    But this raises a new, interesting, question. How can we implement flags/traits associated with cityimprovements, units, and tileimprovements to affect each other?

    as an example flags like terrainbonus for TIs apply to units...or just putting upkeep to apply to units and TIs. Or PrerequisiteBuilding IMPROVE_BANK to maake units or TIs require certain buildings. Or the science, commerce bonuses availabble not just to buildings but for units (new wonder units?)


    I mean stuff located in the different text files can apply to other ones. Is this a matter of just linking the files that have the flags, or would it require a cut'n'paste job?


    For the purists I'm recommending this for modding sake
    Formerly known as "E" on Apolyton

    See me at Civfanatics.com
Working...
X