Changes between Version 2 and Version 3 of Unit_Summary_Table_Generator


Ignore:
Timestamp:
2011-09-06 18:08:22 (21 months ago)
Author:
quantumstate
Comment:

Switched all units from advanced to basic statistics

Legend:

Unmodified
Added
Removed
Modified
  • Unit_Summary_Table_Generator

    v2 v3  
    8686f = open('unit_summary_table', 'w') 
    8787 
    88 f.write("= Unit Summary Table =\n\nA more detailed description of the units is avail on the [wiki:Manual_Units units page].\n\nThe following abbreviations are used in this page\n\n  F = [wiki:Manual_Terminology#Food food], W = [wiki:Manual_Terminology#Wood wood], M = [wiki:Manual_Terminology#Metal metal], S = stone, H = Hack, P = Pierce, C = Crush\n\n") 
     88f.write("= Unit Summary Table =\n\nA more detailed description of the units is avail on the [wiki:Manual_Units units page].\n\nThe following abbreviations are used in this page\n\n  F = [wiki:Manual_Terminology#Food food], W = [wiki:Manual_Terminology#Wood wood], M = [wiki:Manual_Terminology#Metal metal], S = stone, H = Hack, P = Pierce, C = Crush\n\nThe data is based on the basic form for all units that can be promoted.\n\n") 
    8989 
    9090f.write("== Hellene Units ==\n") 
     
    9292 
    9393f.write(printUnit("units/hele_support_female_citizen.xml", basePath).encode("utf-8")+"\n") 
    94 f.write(printUnit("units/hele_infantry_spearman_a.xml", basePath).encode("utf-8")+"\n") 
    95 f.write(printUnit("units/hele_infantry_javelinist_a.xml", basePath).encode("utf-8")+"\n") 
    96 f.write(printUnit("units/hele_infantry_archer_a.xml", basePath).encode("utf-8")+"\n") 
    97 f.write(printUnit("units/hele_cavalry_swordsman_a.xml", basePath).encode("utf-8")+"\n") 
    98 f.write(printUnit("units/hele_cavalry_javelinist_a.xml", basePath).encode("utf-8")+"\n") 
     94f.write(printUnit("units/hele_infantry_spearman_b.xml", basePath).encode("utf-8")+"\n") 
     95f.write(printUnit("units/hele_infantry_javelinist_b.xml", basePath).encode("utf-8")+"\n") 
     96f.write(printUnit("units/hele_infantry_archer_b.xml", basePath).encode("utf-8")+"\n") 
     97f.write(printUnit("units/hele_cavalry_swordsman_b.xml", basePath).encode("utf-8")+"\n") 
     98f.write(printUnit("units/hele_cavalry_javelinist_b.xml", basePath).encode("utf-8")+"\n") 
    9999f.write(printUnit("units/hele_champion_infantry_mace.xml", basePath).encode("utf-8")+"\n") 
    100100f.write(printUnit("units/hele_champion_infantry_polis.xml", basePath).encode("utf-8")+"\n") 
     
    113113 
    114114f.write(printUnit("units/cart_support_female_citizen.xml", basePath).encode("utf-8")+"\n") 
    115 f.write(printUnit("units/cart_infantry_spearman_a.xml", basePath).encode("utf-8")+"\n") 
    116 f.write(printUnit("units/cart_infantry_swordsman_a.xml", basePath).encode("utf-8")+"\n") 
    117 f.write(printUnit("units/cart_infantry_javelinist_a.xml", basePath).encode("utf-8")+"\n") 
    118 f.write(printUnit("units/cart_infantry_archer_a.xml", basePath).encode("utf-8")+"\n") 
    119 f.write(printUnit("units/cart_infantry_slinger_a.xml", basePath).encode("utf-8")+"\n") 
    120 f.write(printUnit("units/cart_cavalry_swordsman_a.xml", basePath).encode("utf-8")+"\n") 
    121 f.write(printUnit("units/cart_cavalry_spearman_a.xml", basePath).encode("utf-8")+"\n") 
    122 f.write(printUnit("units/cart_cavalry_javelinist_a.xml", basePath).encode("utf-8")+"\n") 
     115f.write(printUnit("units/cart_infantry_spearman_b.xml", basePath).encode("utf-8")+"\n") 
     116f.write(printUnit("units/cart_infantry_swordsman_b.xml", basePath).encode("utf-8")+"\n") 
     117f.write(printUnit("units/cart_infantry_javelinist_b.xml", basePath).encode("utf-8")+"\n") 
     118f.write(printUnit("units/cart_infantry_archer_b.xml", basePath).encode("utf-8")+"\n") 
     119f.write(printUnit("units/cart_infantry_slinger_b.xml", basePath).encode("utf-8")+"\n") 
     120f.write(printUnit("units/cart_cavalry_swordsman_b.xml", basePath).encode("utf-8")+"\n") 
     121f.write(printUnit("units/cart_cavalry_spearman_b.xml", basePath).encode("utf-8")+"\n") 
     122f.write(printUnit("units/cart_cavalry_javelinist_b.xml", basePath).encode("utf-8")+"\n") 
    123123f.write(printUnit("units/cart_champion_infantry.xml", basePath).encode("utf-8")+"\n") 
    124124f.write(printUnit("units/cart_champion_cavalry.xml", basePath).encode("utf-8")+"\n") 
     
    133133 
    134134f.write(printUnit("units/celt_support_female_citizen.xml", basePath).encode("utf-8")+"\n") 
    135 f.write(printUnit("units/celt_infantry_spearman_a.xml", basePath).encode("utf-8")+"\n") 
    136 f.write(printUnit("units/celt_infantry_javelinist_a.xml", basePath).encode("utf-8")+"\n") 
    137 f.write(printUnit("units/celt_cavalry_swordsman_a.xml", basePath).encode("utf-8")+"\n") 
    138 f.write(printUnit("units/celt_cavalry_spearman_a.xml", basePath).encode("utf-8")+"\n") 
    139 f.write(printUnit("units/celt_cavalry_javelinist_a.xml", basePath).encode("utf-8")+"\n") 
     135f.write(printUnit("units/celt_infantry_spearman_b.xml", basePath).encode("utf-8")+"\n") 
     136f.write(printUnit("units/celt_infantry_javelinist_b.xml", basePath).encode("utf-8")+"\n") 
     137f.write(printUnit("units/celt_cavalry_swordsman_b.xml", basePath).encode("utf-8")+"\n") 
     138f.write(printUnit("units/celt_cavalry_spearman_b.xml", basePath).encode("utf-8")+"\n") 
     139f.write(printUnit("units/celt_cavalry_javelinist_b.xml", basePath).encode("utf-8")+"\n") 
    140140f.write(printUnit("units/celt_champion_infantry_brit.xml", basePath).encode("utf-8")+"\n") 
    141141f.write(printUnit("units/celt_champion_infantry_gaul.xml", basePath).encode("utf-8")+"\n") 
     
    152152 
    153153f.write(printUnit("units/iber_support_female_citizen.xml", basePath).encode("utf-8")+"\n") 
    154 f.write(printUnit("units/iber_infantry_spearman_a.xml", basePath).encode("utf-8")+"\n") 
    155 f.write(printUnit("units/iber_infantry_swordsman_a.xml", basePath).encode("utf-8")+"\n") 
    156 f.write(printUnit("units/iber_infantry_javelinist_a.xml", basePath).encode("utf-8")+"\n") 
    157 f.write(printUnit("units/iber_infantry_slinger_a.xml", basePath).encode("utf-8")+"\n") 
    158 f.write(printUnit("units/iber_cavalry_spearman_a.xml", basePath).encode("utf-8")+"\n") 
     154f.write(printUnit("units/iber_infantry_spearman_b.xml", basePath).encode("utf-8")+"\n") 
     155f.write(printUnit("units/iber_infantry_swordsman_b.xml", basePath).encode("utf-8")+"\n") 
     156f.write(printUnit("units/iber_infantry_javelinist_b.xml", basePath).encode("utf-8")+"\n") 
     157f.write(printUnit("units/iber_infantry_slinger_b.xml", basePath).encode("utf-8")+"\n") 
     158f.write(printUnit("units/iber_cavalry_spearman_b.xml", basePath).encode("utf-8")+"\n") 
    159159f.write(printUnit("units/iber_champion_infantry.xml", basePath).encode("utf-8")+"\n") 
    160160f.write(printUnit("units/iber_champion_cavalry.xml", basePath).encode("utf-8")+"\n") 
     
    164164 
    165165f.write("\n\nThis page was generated using this [wiki:Unit_Summary_Table_Generator unit summary table generator script]."+"\n") 
    166  
    167166}}}