data file parsing - Armor Type Damage Tables

i was browsing through the LUA files and found something I think might be particularly useful to know. here it is, exactly as it appears in the data files.  there appears to be 2 definitions, one of which is currently active (the one appearing first), and the second of which appears to be disabled (its commented out). draw your own conclusions.

 

--------------

 

#****************************************************************************

#**

#**  File     :  /lua/common/ArmorTypes.lua

#**  Copyright © 2008 Gas Powered Games, Inc.  All rights reserved.

#****************************************************************************

#

# Armor Type Definitions

#

ArmorTypes = {

    Unarmored = {

        Normal = 1.0,

        Hero = 1.0,

        SpellFire = 1.0,

        Spell = 1.0,

        Light = 1.0,

        Arrow = 1.0,

        Artillery = 1.0,

    },

    Normal = {

        Normal = 1.0,

        Hero = 1.0,

        SpellFire = 1.0,

        Spell = 1.0,

        Light = 1.0,

        Arrow = 1.0,

        Artillery = 1.0,

    },

    Heavy = {

        Normal = 1.0,

        Hero = 1.0,

        SpellFire = 1.0,

        Spell = 1.0,

        Light = 1.0,

        Arrow = 1.0,

        Artillery = 1.0,

    },

    Structure = {

        Normal = 1.0,

        Hero = 1.0,

        SpellFire = 1.0,

        Spell = 1.0,

        Light = 1.0,

        Arrow = 1.0,

        Artillery = 2.0,

    },

    Demigod = {

        Normal = 1.0,

        Hero = 1.0,

        SpellFire = 1.0,

        Spell = 1.0,

        Light = 1.0,

        Arrow = 1.0,

        Artillery = 1.0,

    },

}

#ArmorTypes = {

#    Unarmored = {

#        Normal = 1.0,

#        Hero = 1.0,

#        SpellFire = 1.0,

#        Spell = 1.0,

#        Light = 1.0,

#        Arrow = 1.25,

#        Artillery = 1.0,

#    },

#    Normal = {

#        Normal = 1.25,

#        Hero = 1.0,

#        SpellFire = 1.0,

#        Spell = 1.0,

#        Light = 1.0,

#        Arrow = 1.0,

#        Artillery = 1.0,

#    },

#    Heavy = {

#        Normal = 1.0,

#        Hero = 1.0,

#        SpellFire = 1.0,

#        Spell = 1.0,

#        Light = 2.0,

#        Arrow = 0.5,

#        Artillery = 2.0,

#    },

#    Structure = {

#        Normal = 0.75,

#        Hero = 1.0,

#        SpellFire = 1.5,

#        Spell = 1.5,

#        Light = 1.0,

#        Arrow = 1.0,

#        Artillery = 2.0,

#    },

#    Demigod = {

#        Normal = 1.0,

#        Hero = 1.0,

#        SpellFire = 1.0,

#        Spell = 1.0,

#        Light = 1.0,

#        Arrow = 0.5,

#        Artillery = 1.0,

#    },

#}

 

1,248 views 2 replies
Reply #1 Top

So spells do more damage to buildings then via normal attacks. HMMMMM

Reply #2 Top

at the moment i don't think they do. notice that in the first definition, the one that's not commented out, the Structure category has a SpellFire = 1.0 value. it seems that only Artillery does extra damage to buildings in the first definition.

 

what this looks like to me is that GPG had been expirimenting with a much more detailed and differentiated armor type system but they disabled it for the release build in favor of a much more straight forward one. 

 

in the active definition almost everything is set to 1.0. the only thing that's not is that Structures take double damage from Artillery. i think that Trebuchets and Catapultasaurii count as Artillery, not sure about other stuff.