Announcement

Collapse
No announcement yet.

Help with Unit.txt

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

  • #16
    Is there an empire-wide food variable? I thought it was city based. If so, where would you deduct the food from?
    Concrete, Abstract, or Squoingy?
    "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis

    Comment


    • #17
      Originally posted by Immortal Wombat
      Is there an empire-wide food variable? I thought it was city based. If so, where would you deduct the food from?
      There is no such variable. That's why I said it would be a big job - you'd have to comprehensively rework the way food is handled.

      Comment


      • #18
        Would it be coprehensive to have the system look for the city with the highest excess food first and subrtract from it until it was no longer then subtract from the next highest one.

        Basically a function that checks for the city with highest bonus, subtracts, checks again, subtracts, etc until either all are supplied or there is no bonus food left...
        Formerly known as "E" on Apolyton

        See me at Civfanatics.com

        Comment


        • #19
          Originally posted by E
          Would it be coprehensive to have the system look for the city with the highest excess food first and subrtract from it until it was no longer then subtract from the next highest one.

          Basically a function that checks for the city with highest bonus, subtracts, checks again, subtracts, etc until either all are supplied or there is no bonus food left...
          This system reminds me of Civ2, a city based instead of a empire wide based system, however maybe that could achieved over the food coefficent from the government stuff, or somewhere a function that calls us how many food must be deducted from each city.

          Something like:

          Needed food by units / number of cities and then substract it from all cities.

          -Martin
          Civ2 military advisor: "No complaints, Sir!"

          Comment


          • #20
            i think I like that idea for food better Martin. I think this highlights a bigger issue with food though, that there is no distribution system that models a real world situation. Like egypt was rome's bread basket and Rome grew based on food imports, likewise with the midwest. I guess a future issue, probably in governor.cpp, would be able to shift food (maybe also with the trade route system)

            As for gold, its managed empire-wide so it shouldnt be as hard to implement right?


            I think I hould open this up in a new thread, in the source code...
            Formerly known as "E" on Apolyton

            See me at Civfanatics.com

            Comment

            Working...
            X