mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-05-19 04:33:26 +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
|
||||
for selection in feature_choices:
|
||||
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
|
||||
return new_feat
|
||||
|
||||
Reference in New Issue
Block a user