IceDragon200

JumbledOutput (IEX2 - CustomStats)

Nov 22nd, 2011
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 7.27 KB | None | 0 0
  1.  
  2. class Game_Battler
  3.  
  4.         def base_maxcraft_en()
  5.           return 200
  6.         end  
  7.      
  8.           def maxcraft_en()
  9.             return [base_maxcraft_en + @maxcraft_en_plus, 1].max
  10.           end
  11.        
  12.       def craft_en
  13.         return @craft_en
  14.       end
  15.      
  16.       def craft_en=( new_craft_en )
  17.         @craft_en = [[new_craft_en, 0].max, maxcraft_en].min
  18.       end  
  19.    
  20.         STAT_INITS << "__initialize_craft_en"
  21.        
  22.         def __initialize_craft_en
  23.           @maxcraft_en_plus = 0
  24.           @craft_en = 0
  25.         end
  26.      
  27.         def base_maxlink()
  28.           return 3
  29.         end  
  30.      
  31.           def maxlink()
  32.             n = base_maxlink + @maxlink_plus
  33.             n = equips.inject( n ) { |r, eq| r + eq.maxlink() }
  34.            
  35.       rts = []
  36.       n = states.inject( n ) { |r, sts|
  37.         r + sts.maxlink()
  38.         rts << sts.maxlink_rate() if sts.maxlink_rate() > 0
  39.         r
  40.       }
  41.    
  42.             return [n, 1].max
  43.           end
  44.        
  45.       def link
  46.         return @link
  47.       end
  48.      
  49.       def link=( new_link )
  50.         @link = [[new_link, 0].max, maxlink].min
  51.       end  
  52.    
  53.         STAT_INITS << "__initialize_link"
  54.        
  55.         def __initialize_link
  56.           @maxlink_plus = 0
  57.           @link = 0
  58.         end
  59.      
  60.         def base_maxpheofeth()
  61.           return 20
  62.         end  
  63.      
  64.           def maxpheofeth()
  65.             n = base_maxpheofeth + @maxpheofeth_plus
  66.             n = equips.inject( n ) { |r, eq| r + eq.maxpheofeth() }
  67.            
  68.       rts = []
  69.       n = states.inject( n ) { |r, sts|
  70.         r + sts.maxpheofeth()
  71.         rts << sts.maxpheofeth_rate() if sts.maxpheofeth_rate() > 0
  72.         r
  73.       }
  74.    
  75.             return [n, 1].max
  76.           end
  77.        
  78.       def pheofeth
  79.         return @pheofeth
  80.       end
  81.      
  82.       def pheofeth=( new_pheofeth )
  83.         @pheofeth = [[new_pheofeth, 0].max, maxpheofeth].min
  84.       end  
  85.    
  86.         STAT_INITS << "__initialize_pheofeth"
  87.        
  88.         def __initialize_pheofeth
  89.           @maxpheofeth_plus = 0
  90.           @pheofeth = 0
  91.         end
  92.      
  93.         def base_maxoverchge()
  94.           return 5
  95.         end  
  96.      
  97.           def maxoverchge()
  98.             n = base_maxoverchge + @maxoverchge_plus
  99.             n = equips.inject( n ) { |r, eq| r + eq.maxoverchge() }
  100.            
  101.       rts = []
  102.       n = states.inject( n ) { |r, sts|
  103.         r + sts.maxoverchge()
  104.         rts << sts.maxoverchge_rate() if sts.maxoverchge_rate() > 0
  105.         r
  106.       }
  107.    
  108.             return [n, 1].max
  109.           end
  110.        
  111.       def overchge
  112.         return @overchge
  113.       end
  114.      
  115.       def overchge=( new_overchge )
  116.         @overchge = [[new_overchge, 0].max, maxoverchge].min
  117.       end  
  118.    
  119.         STAT_INITS << "__initialize_overchge"
  120.        
  121.         def __initialize_overchge
  122.           @maxoverchge_plus = 0
  123.           @overchge = 0
  124.         end
  125.      
  126.         def base_maxjavelin()
  127.           return 6
  128.         end  
  129.      
  130.           def maxjavelin()
  131.             n = base_maxjavelin + @maxjavelin_plus
  132.             n = equips.inject( n ) { |r, eq| r + eq.maxjavelin() }
  133.            
  134.       rts = []
  135.       n = states.inject( n ) { |r, sts|
  136.         r + sts.maxjavelin()
  137.         rts << sts.maxjavelin_rate() if sts.maxjavelin_rate() > 0
  138.         r
  139.       }
  140.    
  141.             return [n, 1].max
  142.           end
  143.        
  144.       def javelin
  145.         return @javelin
  146.       end
  147.      
  148.       def javelin=( new_javelin )
  149.         @javelin = [[new_javelin, 0].max, maxjavelin].min
  150.       end  
  151.    
  152.         STAT_INITS << "__initialize_javelin"
  153.        
  154.         def __initialize_javelin
  155.           @maxjavelin_plus = 0
  156.           @javelin = 0
  157.         end
  158.      
  159.         def base_maxarounds()
  160.           return 6
  161.         end  
  162.      
  163.           def maxarounds()
  164.             n = base_maxarounds + @maxarounds_plus
  165.             n = equips.inject( n ) { |r, eq| r + eq.maxarounds() }
  166.            
  167.       rts = []
  168.       n = states.inject( n ) { |r, sts|
  169.         r + sts.maxarounds()
  170.         rts << sts.maxarounds_rate() if sts.maxarounds_rate() > 0
  171.         r
  172.       }
  173.    
  174.             return [n, 1].max
  175.           end
  176.        
  177.       def arounds
  178.         return @arounds
  179.       end
  180.      
  181.       def arounds=( new_arounds )
  182.         @arounds = [[new_arounds, 0].max, maxarounds].min
  183.       end  
  184.    
  185.         STAT_INITS << "__initialize_arounds"
  186.        
  187.         def __initialize_arounds
  188.           @maxarounds_plus = 0
  189.           @arounds = 0
  190.         end
  191.      
  192.         def base_maxmagicdust()
  193.           return 10
  194.         end  
  195.      
  196.           def maxmagicdust()
  197.             n = base_maxmagicdust + @maxmagicdust_plus
  198.             n = equips.inject( n ) { |r, eq| r + eq.maxmagicdust() }
  199.            
  200.       rts = []
  201.       n = states.inject( n ) { |r, sts|
  202.         r + sts.maxmagicdust()
  203.         rts << sts.maxmagicdust_rate() if sts.maxmagicdust_rate() > 0
  204.         r
  205.       }
  206.    
  207.             return [n, 1].max
  208.           end
  209.        
  210.       def magicdust
  211.         return @magicdust
  212.       end
  213.      
  214.       def magicdust=( new_magicdust )
  215.         @magicdust = [[new_magicdust, 0].max, maxmagicdust].min
  216.       end  
  217.    
  218.         STAT_INITS << "__initialize_magicdust"
  219.        
  220.         def __initialize_magicdust
  221.           @maxmagicdust_plus = 0
  222.           @magicdust = 0
  223.         end
  224.      
  225.         def base_maxbloodrive()
  226.           return 15
  227.         end  
  228.      
  229.           def maxbloodrive()
  230.             n = base_maxbloodrive + @maxbloodrive_plus
  231.             n = equips.inject( n ) { |r, eq| r + eq.maxbloodrive() }
  232.            
  233.       rts = []
  234.       n = states.inject( n ) { |r, sts|
  235.         r + sts.maxbloodrive()
  236.         rts << sts.maxbloodrive_rate() if sts.maxbloodrive_rate() > 0
  237.         r
  238.       }
  239.    
  240.             return [n, 1].max
  241.           end
  242.        
  243.       def bloodrive
  244.         return @bloodrive
  245.       end
  246.      
  247.       def bloodrive=( new_bloodrive )
  248.         @bloodrive = [[new_bloodrive, 0].max, maxbloodrive].min
  249.       end  
  250.    
  251.         STAT_INITS << "__initialize_bloodrive"
  252.        
  253.         def __initialize_bloodrive
  254.           @maxbloodrive_plus = 0
  255.           @bloodrive = 0
  256.         end
  257.      
  258.         def base_maxplantpl()
  259.           return 8
  260.         end  
  261.      
  262.           def maxplantpl()
  263.             n = base_maxplantpl + @maxplantpl_plus
  264.             n = equips.inject( n ) { |r, eq| r + eq.maxplantpl() }
  265.            
  266.       rts = []
  267.       n = states.inject( n ) { |r, sts|
  268.         r + sts.maxplantpl()
  269.         rts << sts.maxplantpl_rate() if sts.maxplantpl_rate() > 0
  270.         r
  271.       }
  272.    
  273.             return [n, 1].max
  274.           end
  275.        
  276.       def plantpl
  277.         return @plantpl
  278.       end
  279.      
  280.       def plantpl=( new_plantpl )
  281.         @plantpl = [[new_plantpl, 0].max, maxplantpl].min
  282.       end  
  283.    
  284.         STAT_INITS << "__initialize_plantpl"
  285.        
  286.         def __initialize_plantpl
  287.           @maxplantpl_plus = 0
  288.           @plantpl = 0
  289.         end
  290.      
  291. def __initialize_stats()
  292. __initialize_craft_en()
  293. __initialize_link()
  294. __initialize_pheofeth()
  295. __initialize_overchge()
  296. __initialize_javelin()
  297. __initialize_arounds()
  298. __initialize_magicdust()
  299. __initialize_bloodrive()
  300. __initialize_plantpl()
  301. end
  302.  
  303.  end
  304.  
  305.  
Advertisement
Add Comment
Please, Sign In to add comment