mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-06-13 16:13:32 +02:00
updated feature_selector to allow multiple choices of (ex) Fighting Style
This commit is contained in:
@@ -80,6 +80,9 @@ class FeatureSelector(Feature):
|
|||||||
new_feat.needs_implementation = True
|
new_feat.needs_implementation = True
|
||||||
for selection in feature_choices:
|
for selection in feature_choices:
|
||||||
if selection.lower() in t.options:
|
if selection.lower() in t.options:
|
||||||
new_feat = t.options[selection.lower()](owner=owner)
|
feat_class = t.options[selection.lower()]
|
||||||
|
if owner.has_feature(feat_class):
|
||||||
|
continue
|
||||||
|
new_feat = feat_class(owner=owner)
|
||||||
new_feat.source = t.source
|
new_feat.source = t.source
|
||||||
return new_feat
|
return new_feat
|
||||||
|
|||||||
Reference in New Issue
Block a user