Skip to content

Commit

Permalink
Build: (1fa9583) Merge pull request #14 from loathers/fix-orbweave
Browse files Browse the repository at this point in the history
fix orbweaving code in getisland
  • Loading branch information
gausie committed Dec 23, 2024
1 parent c1134c2 commit f6f5e5d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/crimbo/crimbo.js
Original file line number Diff line number Diff line change
Expand Up @@ -24019,14 +24019,17 @@ function getIslands() {
return islands;
}
function getIsland() {
var _islands$find, orb2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, islands = getIslands();
var _ref3, _islands$find, orb2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, islands = getIslands();
if (!orb2 || islands.length === 1)
return islands[0];
var ponderResult = ponder2();
return (_islands$find = islands.find(function(_ref3) {
var location = _ref3.location, orbTarget = _ref3.orbTarget;
return ![void 0, orbTarget].includes(ponderResult.get(location));
})) !== null && _islands$find !== void 0 ? _islands$find : islands[0];
return (_ref3 = (_islands$find = islands.find(function(_ref4) {
var location = _ref4.location, orbTarget = _ref4.orbTarget;
return ponderResult.get(location) === orbTarget;
})) !== null && _islands$find !== void 0 ? _islands$find : islands.find(function(_ref5) {
var location = _ref5.location;
return !ponderResult.has(location);
})) !== null && _ref3 !== void 0 ? _ref3 : islands[0];
}
function getCMCChoices() {
for (var options = (0, import_kolmafia90.visitUrl)("campground.php?action=workshed"), i = 0, match, entries = [], regexp = /descitem\((\d+)\)/g; (match = regexp.exec(options)) !== null; )
Expand Down

0 comments on commit f6f5e5d

Please sign in to comment.