File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ bool ConditionalInput::IsValid(RE::FormID a_formID) const
4848 }
4949 case RE::FormType::Cell:
5050 return currentCell == form;
51+ case RE::FormType::WorldSpace:
52+ {
53+ const auto worldspace = form->As <RE::TESWorldSpace>();
54+ return currentWorldspace && (currentWorldspace == worldspace || currentWorldspace->parentWorld == worldspace);
55+ }
5156 default :
5257 break ;
5358 }
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ struct ConditionalInput
3131 ref (a_ref),
3232 base (a_form),
3333 currentCell (a_ref->GetSaveParentCell ()),
34+ currentWorldspace(a_ref->GetWorldspace ()),
3435 currentLocation(a_ref->GetCurrentLocation ()),
3536 currentRegionList(currentCell ? currentCell->GetRegionList (false ) : nullptr)
3637 {}
@@ -45,6 +46,7 @@ struct ConditionalInput
4546 const RE::TESObjectREFR* ref;
4647 const RE::TESForm* base;
4748 RE::TESObjectCELL* currentCell;
49+ RE::TESWorldSpace* currentWorldspace;
4850 RE::BGSLocation* currentLocation;
4951 RE::TESRegionList* currentRegionList;
5052};
You can’t perform that action at this time.
0 commit comments