parent
65905cf656
commit
b5cd4df795
1 changed files with 5 additions and 1 deletions
|
@ -166,11 +166,15 @@ def fields_check_valid(fields):
|
||||||
return False
|
return False
|
||||||
if not field_types in fields:
|
if not field_types in fields:
|
||||||
return False
|
return False
|
||||||
# creatures have p/t, other things don't
|
# creatures and vehicles have p/t, other things don't
|
||||||
iscreature = False
|
iscreature = False
|
||||||
for idx, value in fields[field_types]:
|
for idx, value in fields[field_types]:
|
||||||
if 'creature' in value:
|
if 'creature' in value:
|
||||||
iscreature = True
|
iscreature = True
|
||||||
|
if fields.get(field_subtypes):
|
||||||
|
for idx, value in fields[field_subtypes]:
|
||||||
|
if 'vehicle' in value:
|
||||||
|
iscreature = True
|
||||||
if iscreature:
|
if iscreature:
|
||||||
return field_pt in fields
|
return field_pt in fields
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue