Class: Configs::Stats
- Defined in:
- scripts/00800 Studio/00000 Configs/00004 Stats.rb
Overview
Configuration of stats
Instance Attribute Summary collapse
-
#acc_stage_index ⇒ Integer
Index of acc stage.
-
#atk_index ⇒ Integer
Index of atk ev.
-
#atk_stage_index ⇒ Integer
Index of atk stage.
-
#ats_index ⇒ Integer
Index of ats ev.
-
#ats_stage_index ⇒ Integer
Index of ats stage.
-
#dfe_index ⇒ Integer
Index of dfe ev.
-
#dfe_stage_index ⇒ Integer
Index of dfe stage.
-
#dfs_index ⇒ Integer
Index of dfs ev.
-
#dfs_stage_index ⇒ Integer
Index of dfs stage.
-
#eva_stage_index ⇒ Integer
Index of eva stage.
-
#hp_index ⇒ Integer
Index of each hp ev.
-
#max_stat_ev ⇒ Integer
Maximum amount of EV on a stat.
-
#max_total_ev ⇒ Integer
Maximum amount of EV.
-
#spd_index ⇒ Integer
Index of spd ev.
-
#spd_stage_index ⇒ Integer
Index of spd stage.
Instance Method Summary collapse
-
#initialize ⇒ Stats
constructor
A new instance of Stats.
- #to_json
Constructor Details
#initialize ⇒ Stats
Returns a new instance of Stats.
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 64 def initialize @max_total_ev = 510 @max_stat_ev = 252 @hp_index = 0 @atk_index = 1 @dfe_index = 2 @spd_index = 3 @ats_index = 4 @dfs_index = 5 @atk_stage_index = 0 @dfe_stage_index = 1 @spd_stage_index = 2 @ats_stage_index = 3 @dfs_stage_index = 4 @eva_stage_index = 5 @acc_stage_index = 6 end |
Instance Attribute Details
#acc_stage_index ⇒ Integer
Index of acc stage
62 63 64 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 62 def acc_stage_index @acc_stage_index end |
#atk_index ⇒ Integer
Index of atk ev
18 19 20 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 18 def atk_index @atk_index end |
#atk_stage_index ⇒ Integer
Index of atk stage
38 39 40 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 38 def atk_stage_index @atk_stage_index end |
#ats_index ⇒ Integer
Index of ats ev
30 31 32 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 30 def ats_index @ats_index end |
#ats_stage_index ⇒ Integer
Index of ats stage
50 51 52 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 50 def ats_stage_index @ats_stage_index end |
#dfe_index ⇒ Integer
Index of dfe ev
22 23 24 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 22 def dfe_index @dfe_index end |
#dfe_stage_index ⇒ Integer
Index of dfe stage
42 43 44 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 42 def dfe_stage_index @dfe_stage_index end |
#dfs_index ⇒ Integer
Index of dfs ev
34 35 36 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 34 def dfs_index @dfs_index end |
#dfs_stage_index ⇒ Integer
Index of dfs stage
54 55 56 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 54 def dfs_stage_index @dfs_stage_index end |
#eva_stage_index ⇒ Integer
Index of eva stage
58 59 60 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 58 def eva_stage_index @eva_stage_index end |
#hp_index ⇒ Integer
Index of each hp ev
14 15 16 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 14 def hp_index @hp_index end |
#max_stat_ev ⇒ Integer
Maximum amount of EV on a stat
10 11 12 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 10 def max_stat_ev @max_stat_ev end |
#max_total_ev ⇒ Integer
Maximum amount of EV
6 7 8 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 6 def max_total_ev @max_total_ev end |
#spd_index ⇒ Integer
Index of spd ev
26 27 28 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 26 def spd_index @spd_index end |
#spd_stage_index ⇒ Integer
Index of spd stage
46 47 48 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 46 def spd_stage_index @spd_stage_index end |
Instance Method Details
#to_json
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 82 def to_json(*) { klass: self.class.to_s, max_total_ev: @max_total_ev, max_stat_ev: @max_stat_ev, hp_index: @hp_index, atk_index: @atk_index, dfe_index: @dfe_index, spd_index: @spd_index, ats_index: @ats_index, dfs_index: @dfs_index, atk_stage_index: @atk_stage_index, dfe_stage_index: @dfe_stage_index, spd_stage_index: @spd_stage_index, ats_stage_index: @ats_stage_index, dfs_stage_index: @dfs_stage_index, eva_stage_index: @eva_stage_index, acc_stage_index: @acc_stage_index }.to_json end |