@@ -1018,6 +1018,8 @@ class PlandoTexts(Option[typing.List[PlandoText]], VerifyKeys):
10181018 supports_weighting = False
10191019 display_name = "Plando Texts"
10201020
1021+ visibility = Visibility .template | Visibility .complex_ui | Visibility .spoiler
1022+
10211023 def __init__ (self , value : typing .Iterable [PlandoText ]) -> None :
10221024 self .value = list (deepcopy (value ))
10231025 super ().__init__ ()
@@ -1144,6 +1146,8 @@ class PlandoConnections(Option[typing.List[PlandoConnection]], metaclass=Connect
11441146 entrances : typing .ClassVar [typing .AbstractSet [str ]]
11451147 exits : typing .ClassVar [typing .AbstractSet [str ]]
11461148
1149+ visibility = Visibility .template | Visibility .complex_ui | Visibility .spoiler
1150+
11471151 duplicate_exits : bool = False
11481152 """Whether or not exits should be allowed to be duplicate."""
11491153
@@ -1435,6 +1439,7 @@ class DeathLink(Toggle):
14351439class ItemLinks (OptionList ):
14361440 """Share part of your item pool with other players."""
14371441 display_name = "Item Links"
1442+ visibility = Visibility .template | Visibility .complex_ui | Visibility .spoiler
14381443 rich_text_doc = True
14391444 default = []
14401445 schema = Schema ([
@@ -1726,11 +1731,16 @@ def generate_yaml_templates(target_folder: typing.Union[str, "pathlib.Path"], ge
17261731
17271732 def dictify_range (option : Range ):
17281733 data = {option .default : 50 }
1729- for sub_option in ["random" , "random-low" , "random-high" ]:
1734+ for sub_option in ["random" , "random-low" , "random-high" ,
1735+ f"random-range-{ option .range_start } -{ option .range_end } " ]:
17301736 if sub_option != option .default :
17311737 data [sub_option ] = 0
1732-
1733- notes = {}
1738+ notes = {
1739+ "random-low" : "random value weighted towards lower values" ,
1740+ "random-high" : "random value weighted towards higher values" ,
1741+ f"random-range-{ option .range_start } -{ option .range_end } " : f"random value between "
1742+ f"{ option .range_start } and { option .range_end } "
1743+ }
17341744 for name , number in getattr (option , "special_range_names" , {}).items ():
17351745 notes [name ] = f"equivalent to { number } "
17361746 if number in data :
0 commit comments