Class: Configs::Stats

Inherits:
Object show all
Defined in:
scripts/00800 Studio/00000 Configs/00004 Stats.rb

Overview

Configuration of stats

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStats

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_indexInteger

Index of acc stage

Returns:



62
63
64
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 62

def acc_stage_index
  @acc_stage_index
end

#atk_indexInteger

Index of atk ev

Returns:



18
19
20
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 18

def atk_index
  @atk_index
end

#atk_stage_indexInteger

Index of atk stage

Returns:



38
39
40
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 38

def atk_stage_index
  @atk_stage_index
end

#ats_indexInteger

Index of ats ev

Returns:



30
31
32
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 30

def ats_index
  @ats_index
end

#ats_stage_indexInteger

Index of ats stage

Returns:



50
51
52
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 50

def ats_stage_index
  @ats_stage_index
end

#dfe_indexInteger

Index of dfe ev

Returns:



22
23
24
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 22

def dfe_index
  @dfe_index
end

#dfe_stage_indexInteger

Index of dfe stage

Returns:



42
43
44
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 42

def dfe_stage_index
  @dfe_stage_index
end

#dfs_indexInteger

Index of dfs ev

Returns:



34
35
36
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 34

def dfs_index
  @dfs_index
end

#dfs_stage_indexInteger

Index of dfs stage

Returns:



54
55
56
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 54

def dfs_stage_index
  @dfs_stage_index
end

#eva_stage_indexInteger

Index of eva stage

Returns:



58
59
60
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 58

def eva_stage_index
  @eva_stage_index
end

#hp_indexInteger

Index of each hp ev

Returns:



14
15
16
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 14

def hp_index
  @hp_index
end

#max_stat_evInteger

Maximum amount of EV on a stat

Returns:



10
11
12
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 10

def max_stat_ev
  @max_stat_ev
end

#max_total_evInteger

Maximum amount of EV

Returns:



6
7
8
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 6

def max_total_ev
  @max_total_ev
end

#spd_indexInteger

Index of spd ev

Returns:



26
27
28
# File 'scripts/00800 Studio/00000 Configs/00004 Stats.rb', line 26

def spd_index
  @spd_index
end

#spd_stage_indexInteger

Index of spd stage

Returns:



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