Announcement

Collapse
No announcement yet.

DESIGN: Unit Values

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

  • New (renamed in some cases) unit bonuses and flags:

    // Types
    Bit IsMelee

    // Unit Defense Bonuses
    Bit(Float) DefendAirBonus
    Bit(Float) DefendCityBonus
    Bit(Float) DefendSubmarineBonus
    Bit(Float) DefendFootBonus
    Bit(Float) DefendMeleeBonus
    Bit(Float) DefendSiegeBonus
    Bit(Float) DefendWheeledBonus
    Bit(Float) DefendMechanizedBonus
    Bit(Float) DefendHelicopterBonus
    Bit(Float) DefendSpecialForcesBonus
    Bit(Float) DefendCivilianBonus
    Bit(Float) DefendGuerrillaBonus
    Bit(Float) DefendMountedBonus
    Bit(Float) DefendWoodenShipBonus
    Bit NoDefenseBonuses

    // Unit Attack Bonuses
    Bit(Float) AttackAirBonus
    Bit(Float) AttackCityBonus
    Bit(Float) AttackSubmarineBonus
    Bit(Float) AttackFootBonus
    Bit(Float) AttackMeleeBonus
    Bit(Float) AttackSiegeBonus
    Bit(Float) AttackWheeledBonus
    Bit(Float) AttackMechanizedBonus
    Bit(Float) AttackHelicopterBonus
    Bit(Float) AttackSpecialForcesBonus
    Bit(Float) AttackCivilianBonus
    Bit(Float) AttackGuerrillaBonus
    Bit(Float) AttackMountedBonus
    Bit(Float) AttackWoodenShipBonusNew
    (The "new" is because the old "AttackWoodenShipBonus" is a bit only and I didn't want to remove the old one for legacy purposes)

    // Unit Ranged Bonuses
    Note: These occur with any ranged attack, whether the army is defending or attacking, or the ranged unit is bombarding a particular type of unit.
    Bit(Float) RangedAirBonus
    Bit(Float) RangedCityBonus
    Bit(Float) RangedSubmarineBonus
    Bit(Float) RangedFootBonus
    Bit(Float) RangedMeleeBonus
    Bit(Float) RangedSiegeBonus
    Bit(Float) RangedWheeledBonus
    Bit(Float) RangedMechanizedBonus
    Bit(Float) RangedHelicopterBonus
    Bit(Float) RangedSpecialForcesBonus
    Bit(Float) RangedCivilianBonus
    Bit(Float) RangedGuerrillaBonus
    Bit(Float) RangedMountedBonus
    Bit(Float) RangedWoodenShipBonus

    I'll eventually get around to adding these to the DB reference, if Bert doesn't beat me to it
    Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
    CtP2 AE Wiki & Modding Reference
    One way to compile the CtP2 Source Code.

    Comment


    • nice maq. one of my goals was to have option where the veteran prootion system would actually unlock these bonuses. but that was beyond me on how to tie it to a unit.
      Formerly known as "E" on Apolyton

      See me at Civfanatics.com

      Comment


      • Originally posted by Ekmek View Post
        nice maq. one of my goals was to have option where the veteran prootion system would actually unlock these bonuses. but that was beyond me on how to tie it to a unit.
        I've seen the promotion DB you added and it had crossed my mind to implement promotions somehow. An important part of it will be relaying the information to the player. How do they promote, how do they see current promotions of a unit, things like that. I also want the option to upgrade to different units, that is a problem to be solved with the current interface.
        Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
        CtP2 AE Wiki & Modding Reference
        One way to compile the CtP2 Source Code.

        Comment


        • ugh promotions.
          "

          Comment


          • Sorry if I diddn't read everything and follow this to the letter (in my defense there's a lot of reading in this thread).

            There was an earlier discussion regarding the Machine Gunner. Shouldn't he be ranged and flanking? They're not exactly the in-your-face type fighters, instead relying on holding defensive points behind the main lines unleashing their fury.

            If anyone has actually held a machine gun you would see my point that they're not exactly light.

            I do not feel that they should flat out replace infantry - instead add a new defensive unit to compliment the machine gunner. Something a long the lines of a grunt lol.

            Comment


            • Originally posted by EPW View Post
              ugh promotions.
              Your argument has convinced me

              There was an earlier discussion regarding the Machine Gunner. Shouldn't he be ranged and flanking?
              A machine gunner ranged and flanking?
              Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
              CtP2 AE Wiki & Modding Reference
              One way to compile the CtP2 Source Code.

              Comment


              • Originally posted by Maquiladora View Post
                New (renamed in some cases) unit bonuses and flags:

                // Types
                Bit IsMelee

                // Unit Defense Bonuses
                Bit(Float) DefendAirBonus
                Bit(Float) DefendCityBonus
                Bit(Float) DefendSubmarineBonus
                Bit(Float) DefendFootBonus
                Bit(Float) DefendMeleeBonus
                Bit(Float) DefendSiegeBonus
                Bit(Float) DefendWheeledBonus
                Bit(Float) DefendMechanizedBonus
                Bit(Float) DefendHelicopterBonus
                Bit(Float) DefendSpecialForcesBonus
                Bit(Float) DefendCivilianBonus
                Bit(Float) DefendGuerrillaBonus
                Bit(Float) DefendMountedBonus
                Bit(Float) DefendWoodenShipBonus
                Bit NoDefenseBonuses

                // Unit Attack Bonuses
                Bit(Float) AttackAirBonus
                Bit(Float) AttackCityBonus
                Bit(Float) AttackSubmarineBonus
                Bit(Float) AttackFootBonus
                Bit(Float) AttackMeleeBonus
                Bit(Float) AttackSiegeBonus
                Bit(Float) AttackWheeledBonus
                Bit(Float) AttackMechanizedBonus
                Bit(Float) AttackHelicopterBonus
                Bit(Float) AttackSpecialForcesBonus
                Bit(Float) AttackCivilianBonus
                Bit(Float) AttackGuerrillaBonus
                Bit(Float) AttackMountedBonus
                Bit(Float) AttackWoodenShipBonusNew
                (The "new" is because the old "AttackWoodenShipBonus" is a bit only and I didn't want to remove the old one for legacy purposes)

                // Unit Ranged Bonuses
                Note: These occur with any ranged attack, whether the army is defending or attacking, or the ranged unit is bombarding a particular type of unit.
                Bit(Float) RangedAirBonus
                Bit(Float) RangedCityBonus
                Bit(Float) RangedSubmarineBonus
                Bit(Float) RangedFootBonus
                Bit(Float) RangedMeleeBonus
                Bit(Float) RangedSiegeBonus
                Bit(Float) RangedWheeledBonus
                Bit(Float) RangedMechanizedBonus
                Bit(Float) RangedHelicopterBonus
                Bit(Float) RangedSpecialForcesBonus
                Bit(Float) RangedCivilianBonus
                Bit(Float) RangedGuerrillaBonus
                Bit(Float) RangedMountedBonus
                Bit(Float) RangedWoodenShipBonus

                I'll eventually get around to adding these to the DB reference, if Bert doesn't beat me to it
                How about sticking these in a Bonus struct?
                "

                Comment


                • Originally posted by EPW View Post
                  How about sticking these in a Bonus struct?
                  I thought about creating one for bonuses against other specific units.
                  Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
                  CtP2 AE Wiki & Modding Reference
                  One way to compile the CtP2 Source Code.

                  Comment


                  • I want structs for everything.
                    "

                    Comment


                    • Go ahead and do it then
                      Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
                      CtP2 AE Wiki & Modding Reference
                      One way to compile the CtP2 Source Code.

                      Comment

                      Working...
                      X