Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class EnlargePerson(Modifier):
- def __init__(self):
- self.name = "Enlarge Person"
- def apply_to(self, creature):
- creature.str += 2
- creature.dex += -2
- creature.size += 1
- creature.main_weapon.size += 1
- creature.off_weapon.size += 1
- buff = EnlargePerson() # Create an instance of our modifier
- your_character.modifiers.append(buff) # add modifier
- your_character.attack_roll() # do things with buff on
- your_character.modifiers.pop() # Removes the last modifier
Advertisement
Add Comment
Please, Sign In to add comment