Changeset 620

Show
Ignore:
Timestamp:
12/21/07 20:59:55 (1 year ago)
Author:
takkaria
Message:

Add some more useful statistics.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/obj-tweak/analyse.lua

    r417 r620  
    1 #!/usr/local/bin/lua5
     1#!/usr/bin/env lua5.
    22 
    33function vd_table(t, depth) 
     
    113113 
    114114levels = { 1, 5, 10, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100 } 
    115 chances = {
     115chances = { ["** Overall"] = {}
    116116 
    117117for _, dlev in pairs(levels) do 
     
    120120  get_probs(subsect, num, dlev, chances) 
    121121 
    122 --  print("Level " .. dlev .. ", chance of potion: " .. float((num * 100) / total) .. "%") 
     122  chances["** Overall"][dlev] = (num * 100) / total 
    123123 
    124124end 
     
    178178 
    179179end 
    180  
    181  
    182  
    183  
    184  
    185  
    186  
    187  
    188  
    189  
    190  
    191  
    192  
    193  
    194  
    195  
    196  
    197  
    198  
    199  
    200  
    201  
    202