SiegeEngineers / aoe2techtree

Age of Empires II Tech Tree
https://aoe2techtree.net/
MIT License
225 stars 59 forks source link

Stone Gate has 6/6 armor, but listed as 0/0 in the tech tree. #137

Open michael-byrd opened 10 months ago

michael-byrd commented 10 months ago

The stone gate in the tech tree shows 0 melee and 0 pierce armor, but it should be 6 each.

The amount under the Armours list has an amount of 0 for Class 3 and Class 4, but further below it has the correct values under "MeleeArmor" and "PierceArmor."

"487": {
                "AccuracyPercent": 100,
                "Armours": [
                    {
                        "Amount": 0,
                        "Class": 21
                    },
                    {
                        "Amount": 20,
                        "Class": 11
                    },
                    {
                        "Amount": 0,
                        "Class": 4
                    },
                    {
                        "Amount": 0,
                        "Class": 3
                    },
                    {
                        "Amount": 0,
                        "Class": 13
                    },
                    {
                        "Amount": 0,
                        "Class": 22
                    },
                    {
                        "Amount": 0,
                        "Class": 31
                    }
                ],
                "Attack": 0,
                "Attacks": [],
                "Cost": {
                    "Stone": 30
                },
                "GarrisonCapacity": 0,
                "HP": 1650,
                "ID": 487,
                "LanguageHelpId": 26185,
                "LanguageNameId": 5185,
                "LineOfSight": 6,
                "MeleeArmor": 6,
                "MinRange": 0,
                "PierceArmor": 6,
                "Range": 0,
                "ReloadTime": 2.5,
                "TrainTime": 70,
                "internal_name": "GTAX2"
            }
HSZemi commented 9 months ago

The MeleeArmor and PierceArmor values are the displayed values, but the ones in Armours are actually used for calculations. I am actually not sure why some of the Gate units have 6/6 there, and some 0/0

denniske commented 8 months ago

For the palisade gate in the game 2/2 is displayed but in the data both Armours and MeleeArmor and PierceArmor are 0.

https://ageofempires.fandom.com/wiki/PalisadeGate(Age_of_Empires_II)

image
"792": {
    "AccuracyPercent": 100,
    "Armours": [
        {
            "Amount": 0,
            "Class": 21
        },
        {
            "Amount": 0,
            "Class": 11
        },
        {
            "Amount": 0,
            "Class": 4
        },
        {
            "Amount": 0,
            "Class": 3
        },
        {
            "Amount": 0,
            "Class": 22
        },
        {
            "Amount": 0,
            "Class": 31
        }
    ],
    "Attack": 0,
    "Attacks": [],
    "Cost": {
        "Wood": 30
    },
    "GarrisonCapacity": 0,
    "HP": 240,
    "ID": 792,
    "LanguageHelpId": 26186,
    "LanguageNameId": 5186,
    "LineOfSight": 6,
    "MeleeArmor": 0,
    "MinRange": 0,
    "PierceArmor": 0,
    "Range": 0,
    "ReloadTime": 0,
    "TrainTime": 30,
    "internal_name": "PGTAX"
},