@@ -38,6 +38,7 @@ var _modclub_population: Array
3838var _modclub_destinations : Array
3939var _magikrab_extra_behaviors : PackedScene
4040var _magikrab_dest_modclub : PackedScene
41+ var _modclub_seed_offset : int
4142
4243
4344func _init (modutils : ContentInfo ) -> void :
@@ -59,193 +60,157 @@ func _init(modutils: ContentInfo) -> void:
5960 {
6061 "scene" : "res://mods/cat_modutils/world/scenery/decorative_plants/RandomPlanter.tscn" ,
6162 "mode" : "standing" ,
62- "chance" : 1 / 3 .0 ,
63+ "chance" : 1 / 4 .0 ,
6364 "flags" : ["modutils_modclub_unlocked" ],
6465 },
6566 {
6667 "scene" : "res://mods/cat_modutils/world/scenery/decorative_plants/RandomPlanter.tscn" ,
6768 "mode" : "standing" ,
68- "chance" : 1 / 3 .0 ,
69+ "chance" : 1 / 4 .0 ,
6970 "flags" : ["modutils_modclub_unlocked" ],
7071 },
7172 {
7273 "scene" : "res://mods/cat_modutils/world/scenery/decorative_plants/RandomPlanter.tscn" ,
7374 "mode" : "standing" ,
74- "chance" : 1 / 3 .0 ,
75+ "chance" : 1 / 4 .0 ,
7576 "flags" : ["modutils_modclub_unlocked" ],
7677 },
7778 {
7879 "scene" : "res://mods/cat_modutils/world/scenery/decorative_plants/RandomPlanter.tscn" ,
7980 "mode" : "standing" ,
80- "chance" : 1 / 3 .0 ,
81+ "chance" : 1 / 4 .0 ,
8182 "flags" : ["modutils_modclub_unlocked" ],
8283 },
8384 {
8485 "scene" : "res://mods/cat_modutils/world/scenery/decorative_plants/RandomPlanter.tscn" ,
8586 "mode" : "standing" ,
86- "chance" : 1 / 3.0 ,
87- "flags" : ["modutils_modclub_unlocked" ],
88- },
89- {
90- "scene" : "res://mods/cat_modutils/world/scenery/decorative_plants/RandomPlanter.tscn" ,
91- "mode" : "shop full" ,
92- "chance" : 1 / 3.0 ,
93- "flags" : ["modutils_modclub_unlocked" ],
94- },
95- {
96- "scene" : "res://mods/cat_modutils/world/scenery/decorative_plants/RandomPlanter.tscn" ,
97- "mode" : "shop full" ,
98- "chance" : 1 / 3.0 ,
99- "flags" : ["modutils_modclub_unlocked" ],
100- },
101- {
102- "scene" : "res://mods/cat_modutils/world/scenery/decorative_plants/RandomPlanter.tscn" ,
103- "mode" : "shop full" ,
104- "chance" : 1 / 3.0 ,
105- "flags" : ["modutils_modclub_unlocked" ],
106- },
107- {
108- "scene" : "res://mods/cat_modutils/world/scenery/decorative_plants/RandomPlanter.tscn" ,
109- "mode" : "shop full" ,
110- "chance" : 1 / 3.0 ,
111- "flags" : ["modutils_modclub_unlocked" ],
112- },
113- {
114- "scene" : "res://mods/cat_modutils/world/scenery/decorative_plants/RandomPlanter.tscn" ,
115- "mode" : "shop full" ,
116- "chance" : 1 / 3.0 ,
117- "flags" : ["modutils_modclub_unlocked" ],
118- },
119- {
120- "scene" : "res://mods/cat_modutils/world/scenery/decorative_plants/RandomPlanter.tscn" ,
121- "mode" : "shop full" ,
122- "chance" : 1 / 3.0 ,
87+ "chance" : 1 / 4.0 ,
12388 "flags" : ["modutils_modclub_unlocked" ],
12489 },
12590 {
12691 "scene" : "res://world/objects/decorative_plants/autumn_leaf_pile/autumn_leaf_pile_1.tscn" ,
12792 "mode" : "shop full" ,
128- "chance" : 1 / 3 .0 ,
93+ "chance" : 1 / 4 .0 ,
12994 "flags" : ["modutils_modclub_unlocked" ],
13095 },
13196 {
13297 "scene" : "res://world/objects/decorative_plants/autumn_leaf_pile/autumn_leaf_pile_1.tscn" ,
13398 "mode" : "shop full" ,
134- "chance" : 1 / 3 .0 ,
99+ "chance" : 1 / 4 .0 ,
135100 "flags" : ["modutils_modclub_unlocked" ],
136101 },
137102 {
138103 "scene" : "res://mods/cat_modutils/world/scenery/RandomDestructible.tscn" ,
139104 "mode" : "standing" ,
140- "chance" : 1 / 3 .0 ,
105+ "chance" : 1 / 6 .0 ,
141106 "flags" : ["modutils_modclub_unlocked" ],
142107 },
143108 {
144109 "scene" : "res://mods/cat_modutils/world/scenery/RandomDestructible.tscn" ,
145110 "mode" : "standing" ,
146- "chance" : 1 / 3 .0 ,
111+ "chance" : 1 / 6 .0 ,
147112 "flags" : ["modutils_modclub_unlocked" ],
148113 },
149114 {
150115 "scene" : "res://mods/cat_modutils/world/scenery/RandomLiftable.tscn" ,
151116 "mode" : "standing" ,
152- "chance" : 1 / 3 .0 ,
117+ "chance" : 1 / 2 .0 ,
153118 "flags" : ["modutils_modclub_unlocked" ],
154119 },
155120 {
156121 "scene" : "res://mods/cat_modutils/world/scenery/RandomLiftable.tscn" ,
157122 "mode" : "standing" ,
158- "chance" : 1 / 3 .0 ,
123+ "chance" : 1 / 2 .0 ,
159124 "flags" : ["modutils_modclub_unlocked" ],
160125 },
161126 {
162127 "scene" : "res://mods/cat_modutils/world/scenery/RandomLiftable.tscn" ,
163128 "mode" : "standing" ,
164- "chance" : 1 / 3 .0 ,
129+ "chance" : 1 / 2 .0 ,
165130 "flags" : ["modutils_modclub_unlocked" ],
166131 },
167132 {
168133 "scene" : "res://mods/cat_modutils/world/scenery/RandomLiftable.tscn" ,
169134 "mode" : "standing" ,
170- "chance" : 1 / 3 .0 ,
135+ "chance" : 1 / 2 .0 ,
171136 "flags" : ["modutils_modclub_unlocked" ],
172137 },
173138 {
174139 "scene" : "res://mods/cat_modutils/world/scenery/RandomFurniture.tscn" ,
175140 "mode" : "standing" ,
176- "chance" : 1 / 3 .0 ,
141+ "chance" : 1 / 5 .0 ,
177142 "flags" : ["modutils_modclub_unlocked" ],
178143 },
179144 {
180145 "scene" : "res://mods/cat_modutils/world/scenery/RandomFurniture.tscn" ,
181146 "mode" : "standing" ,
182- "chance" : 1 / 3 .0 ,
147+ "chance" : 1 / 5 .0 ,
183148 "flags" : ["modutils_modclub_unlocked" ],
184149 },
185150 {
186151 "scene" : "res://mods/cat_modutils/world/scenery/RandomFurniture.tscn" ,
187152 "mode" : "standing" ,
188- "chance" : 1 / 3 .0 ,
153+ "chance" : 1 / 5 .0 ,
189154 "flags" : ["modutils_modclub_unlocked" ],
190155 },
191156 {
192157 "scene" : "res://mods/cat_modutils/world/scenery/RandomFurniture.tscn" ,
193158 "mode" : "standing" ,
194- "chance" : 1 / 3 .0 ,
159+ "chance" : 1 / 5 .0 ,
195160 "flags" : ["modutils_modclub_unlocked" ],
196161 },
197162 {
198163 "scene" : "res://mods/cat_modutils/world/scenery/RandomFurniture.tscn" ,
199164 "mode" : "standing" ,
200- "chance" : 1 / 3 .0 ,
165+ "chance" : 1 / 5 .0 ,
201166 "flags" : ["modutils_modclub_unlocked" ],
202167 },
203168 {
204169 "scene" : "res://mods/cat_modutils/world/scenery/RandomFurniture.tscn" ,
205170 "mode" : "standing" ,
206- "chance" : 1 / 3 .0 ,
171+ "chance" : 1 / 5 .0 ,
207172 "flags" : ["modutils_modclub_unlocked" ],
208173 },
209174 {
210175 "scene" : "res://world/objects/interior_props/PunchingBag.tscn" ,
211176 "mode" : "shop full" ,
212- "chance" : 1 / 3 .0 ,
177+ "chance" : 1 / 8 .0 ,
213178 "flags" : ["modutils_modclub_unlocked" ],
214179 },
215180 {
216181 "scene" : "res://mods/cat_modutils/world/scenery/CoffeeTableScene.tscn" ,
217182 "mode" : "shop full" ,
218- "chance" : 1 / 3 .0 ,
183+ "chance" : 1 / 8 .0 ,
219184 "flags" : ["modutils_modclub_unlocked" ],
220185 },
221186 {
222187 "scene" : "res://mods/cat_modutils/world/scenery/CoffeeTableScene.tscn" ,
223188 "mode" : "shop full" ,
224- "chance" : 1 / 3 .0 ,
189+ "chance" : 1 / 8 .0 ,
225190 "flags" : ["modutils_modclub_unlocked" ],
226191 },
227192 {
228193 "scene" : "res://mods/cat_modutils/world/scenery/CoffeeTableScene.tscn" ,
229194 "mode" : "shop full" ,
230- "chance" : 1 / 3 .0 ,
195+ "chance" : 1 / 8 .0 ,
231196 "flags" : ["modutils_modclub_unlocked" ],
232197 },
233198 {
234199 "scene" : "res://mods/cat_modutils/world/scenery/CoffeeTableScene.tscn" ,
235200 "mode" : "shop full" ,
236- "chance" : 1 / 3 .0 ,
201+ "chance" : 1 / 8 .0 ,
237202 "flags" : ["modutils_modclub_unlocked" ],
238203 },
239204 {
240205 "scene" : "res://mods/cat_modutils/world/scenery/CoffeeTableScene.tscn" ,
241206 "mode" : "shop full" ,
242- "chance" : 1 / 3 .0 ,
207+ "chance" : 1 / 8 .0 ,
243208 "flags" : ["modutils_modclub_unlocked" ],
244209 },
245210 {
246211 "scene" : "res://mods/cat_modutils/world/scenery/CoffeeTableScene.tscn" ,
247212 "mode" : "shop full" ,
248- "chance" : 1 / 3 .0 ,
213+ "chance" : 1 / 8 .0 ,
249214 "flags" : ["modutils_modclub_unlocked" ],
250215 },
251216 ]
@@ -273,8 +238,8 @@ func _init(modutils: ContentInfo) -> void:
273238 # I highly recommend your mod do the same, for dungeons.
274239 SceneManager .PRESERVABLE_SCENE_BLACKLIST .push_back ("res://mods/cat_modutils/" )
275240
276- # Add "Mod Club Station" to overworld fast travel map if discovered
277- SaveSystem .connect ("file_loaded" , self , "_init_modclub_chunk_feature " )
241+ # Add "Mod Club Station" to overworld fast travel map if discovered, load seed, etc.
242+ SaveSystem .connect ("file_loaded" , self , "_on_save_file_loaded " )
278243
279244 # Add "Return to Mod Club Station" button to menu
280245 _init_modclub_return_button ()
@@ -387,6 +352,12 @@ func is_modclub_populated() -> bool:
387352 return true
388353 return false
389354
355+
356+ func _on_save_file_loaded () -> void :
357+ _modclub_seed_offset = 0
358+ _init_modclub_chunk_feature ()
359+
360+
390361# Adds fast travel waypoint to an overworld chunk for Mod Club Station
391362func _init_modclub_chunk_feature (force : bool = false ) -> void :
392363 if _chunk_init :
0 commit comments