libram 0.7.8 → 0.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -162,11 +162,13 @@ export function setConfiguration(configuration) {
|
|
|
162
162
|
if (!canConfigure())
|
|
163
163
|
return false;
|
|
164
164
|
visitUrl("campground.php?action=workshed");
|
|
165
|
-
runChoice(1, `forceoption=0${configuration
|
|
165
|
+
runChoice(1, `forceoption=0${configuration
|
|
166
|
+
.map((station, index) => `&slot[${index}]=${stationToInt(station)}`)
|
|
167
|
+
.join("")}`);
|
|
166
168
|
visitUrl("main.php");
|
|
167
169
|
const currentConfiguration = cycle();
|
|
168
170
|
return configuration.every((station, index) => station === currentConfiguration[index]);
|
|
169
171
|
}
|
|
170
172
|
export function next() {
|
|
171
|
-
return cycle()[get("
|
|
173
|
+
return cycle()[get("trainsetPosition") % 8];
|
|
172
174
|
}
|