summaryrefslogtreecommitdiff
path: root/app/models/monster.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/monster.rb')
-rw-r--r--app/models/monster.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/models/monster.rb b/app/models/monster.rb
new file mode 100644
index 0000000..1b521aa
--- /dev/null
+++ b/app/models/monster.rb
@@ -0,0 +1,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