from AutoPerson import AutoPerson from Scroll import Scroll class Thief(AutoPerson): def __init__(self, name, place, threshold): AutoPerson.__init__(self, name, place, threshold) def act(self): AutoPerson.act(self) for victim in self.otherPeopleAtSamePlace(): self.stealStuffFrom(victim) def stealStuffFrom(self, victim): for thing in victim.possessions: self.take(thing)