Guest User

Untitled

a guest
Apr 1st, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import random
  2.  
  3. class Spell:
  4.     def __init__(self, name, cost, dm, type):
  5.         self.name = name
  6.         self.cost = cost
  7.         self.dm = dm
  8.         self.type = type
  9.  
  10.     def gen_dm(self):
  11.         low = self.dm - 15
  12.         high = self.dm + 15
  13.         return random.randrange(low,high)
Add Comment
Please, Sign In to add comment