def drops(self): totaldrops = self._get_total_drops() drops = [] for n in range(1, totaldrops): wrand = Walkerrandom(self._drops.values(), self._drops.keys()) drops.append(wrand.random()) return drops
def _get_total_drops(self): ''' Gets the total drops of this enemy ''' wrand = Walkerrandom(self._totaldrops.values(), self._totaldrops.keys()) return wrand.random()