blob: 1b521aaf21898ef53941abb1ae8552779b79361c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
class Monster < ApplicationRecord
include HasWhatnot
def max_hp
self.whatnot[:max_hp][:base]
end
def speed
self.whatnot[:speed][:base]
end
def accuracy
self.whatnot[:accuracy][:base]
end
def power
self.whatnot[:power][:base]
end
def evasion
self.whatnot[:evasion][:base]
end
def block
self.whatnot[:block][:base]
end
def block_value
self.whatnot[:block_value][:base]
end
end
|