You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Mutable mappings are no longer longer cached
* Test cases based on report #1
* fixes for the same
* Added additional tests for similar possible bugs.
* Made FlockException a subtype of KeyError to allow it to be handled more naively
* Separate handling at key points
def find_char(template, stats):
template['ExSeed'] = 0
passes_check = False
while not passes_check:
print('trying')
template.shear()
for sn, sv in stats.items():
stat = template['stats'][sn]
print(f'Checking {sn} {sv} vs {stat}')
if template['stats'][sn] < sv:
print('stepping')
template['ExSeed'] += 1
break
else:
passes_check = True
template['base_stats'] = template['base_stats'].shear()
return template
throws error:
AttributeError Traceback (most recent call last)
in ()
2 beastmaster['level'] = 5
3 beastmaster['bonuses']['racial']={'MA':ma_bonus,'PS':ps_bonus,'PE':pe_bonus}
----> 4 beastmaster = find_char(beastmaster,{'MA': 12, 'PS':10, 'PE':10})
5 beastmaster['Psionics'] = ['Animal Control']
6
in find_char(template, stats)
14 else:
15 passes_check = True
---> 16 template['base_stats'] = template['base_stats'].shear()
17 return template
AttributeError: 'collections.OrderedDict' object has no attribute 'shear'
but any dict added to a flock should have been converted to a flockDict.
The text was updated successfully, but these errors were encountered: