Module:HeroDataArrays: Difference between revisions

Jump to navigation Jump to search
changed radius to centimeters
alt fire
Line 987: Line 987:


p.bulletRadiusTable = function(frame)
p.bulletRadiusTable = function(frame)
     local heroBulletRadiusData = heroDataArray({"Name", "Weapon>BulletRadius"})
     local heroBulletRadiusData = heroDataArray({"Name", "Weapon>BulletRadius", "Weapon>AltFire>BulletRadius"})


     local rows = {}
     local rows = {}
Line 994: Line 994:
             name = name,
             name = name,
             bulletRadius  = ((data["Weapon>BulletRadius"] * 100) or 0),
             bulletRadius  = ((data["Weapon>BulletRadius"] * 100) or 0),
            altBulletRadius  = ((data["Weapon>AltFire>BulletRadius"] * 100) or 0),
         })
         })
     end
     end
Line 1,003: Line 1,004:
             columns = {
             columns = {
                 { label = "Bullet Radius (cm)", field = "bulletRadius"  },
                 { label = "Bullet Radius (cm)", field = "bulletRadius"  },
            }
        },
        {
            title  = "Alt-fire Bullet Radius Stats",
            columns = {
                { label = "Bullet Radius (cm)", field = "baltBulletRadius"  },
             }
             }
         }
         }