Formula

CommonFun.CalcBattlePassExpByStat

formula.lua
1function CommonFun.CalcBattlePassExpByStat(statid, statnum)
2  local A = 0
3  if statid == 1 then
4    if 200 <= statnum then
5      A = A + 100
6    elseif 150 <= statnum then
7      A = A + 50
8    else
9      if 80 <= statnum then
10        A = A + 30
11      else
12      end
13    end
14  end
15  if statid == 2 then
16    if 6 <= statnum then
17      A = A + 100
18    elseif 4 <= statnum then
19      A = A + 50
20    else
21      if 3 <= statnum then
22        A = A + 30
23      else
24      end
25    end
26  end
27  if statid == 3 then
28    if 20 <= statnum then
29      A = A + 100
30    elseif 12 <= statnum then
31      A = A + 50
32    else
33      if 6 <= statnum then
34        A = A + 30
35      else
36      end
37    end
38  end
39  if statid == 4 then
40    if 20 <= statnum then
41      A = A + 100
42    elseif 12 <= statnum then
43      A = A + 50
44    else
45      if 6 <= statnum then
46        A = A + 30
47      else
48      end
49    end
50  end
51  if statid == 5 then
52    if 20 <= statnum then
53      A = A + 100
54    elseif 12 <= statnum then
55      A = A + 50
56    else
57      if 6 <= statnum then
58        A = A + 30
59      else
60      end
61    end
62  end
63  if statid == 6 then
64    if 5 <= statnum then
65      A = A + 100
66    elseif 3 <= statnum then
67      A = A + 50
68    else
69      if 1 <= statnum then
70        A = A + 30
71      else
72      end
73    end
74  end
75  if statid == 7 then
76    if 3 <= statnum then
77      A = A + 100
78    elseif 2 <= statnum then
79      A = A + 50
80    else
81      if 1 <= statnum then
82        A = A + 30
83      else
84      end
85    end
86  end
87  if statid == 8 then
88    if 2 <= statnum then
89      A = A + 100
90    else
91      if 1 <= statnum then
92        A = A + 50
93      else
94      end
95    end
96  end
97  if statid == 10 then
98    if 60 <= statnum then
99      A = A + 100
100    elseif 30 <= statnum then
101      A = A + 50
102    else
103      if 10 <= statnum then
104        A = A + 30
105      else
106      end
107    end
108  end
109  if statid == 11 then
110    if 3 <= statnum then
111      A = A + 100
112    elseif 2 <= statnum then
113      A = A + 50
114    else
115      if 1 <= statnum then
116        A = A + 30
117      else
118      end
119    end
120  end
121  if statid == 12 then
122    if 50 <= statnum then
123      A = A + 100
124    elseif 30 <= statnum then
125      A = A + 50
126    else
127      if 10 <= statnum then
128        A = A + 30
129      else
130      end
131    end
132  end
133  if statid == 16 then
134    if 30 <= statnum then
135      A = A + 100
136    elseif 20 <= statnum then
137      A = A + 50
138    else
139      if 10 <= statnum then
140        A = A + 30
141      else
142      end
143    end
144  end
145  if statid == 17 then
146    if 20 <= statnum then
147      A = A + 100
148    elseif 10 <= statnum then
149      A = A + 50
150    else
151      if 5 <= statnum then
152        A = A + 30
153      else
154      end
155    end
156  end
157  if statid == 18 then
158    if 10 <= statnum then
159      A = A + 100
160    elseif 5 <= statnum then
161      A = A + 50
162    else
163      if 3 <= statnum then
164        A = A + 30
165      else
166      end
167    end
168  end
169  if statid == 19 then
170    if 100 <= statnum then
171      A = A + 100
172    elseif 50 <= statnum then
173      A = A + 50
174    else
175      if 20 <= statnum then
176        A = A + 30
177      else
178      end
179    end
180  end
181  return A
182end
Formula Graph

Connected Archive Data

See which cards, equipment, headwears, buffs, and other archived records connect to this formula.

Loading graph filters

CommonFun.CalcBattlePassExpByStat

commonfun-calcbattlepassexpbystat

Nodes

0

Edges

0

Related Nodes

Select at least one node type.