Skip to content

v2.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 07 Oct 19:44
· 21 commits to main since this release
5a205f3

API extended for Reign of the Warlock

  • Methods: StashTab.withdraw(), StashTab.deposit(), getDesecratedZones(), an optional gameType argument on createCharacter()
  • Enums: GameType.RotW, CharacterClass.Warlock, StashWithdrawTarget, DesecratedZoneSource, the Chronicle bits in ItemFlag

1.14d API changes

  • createCharacter works on 1.14d: types the name, sets hardcore / ladder / expansion and confirms, also from an empty character list (#86, #87)
  • me.ladder is a boolean from the character's Ladder flag; it was a number that was always 0 (#69)
  • me.maxdiff no longer includes the weapon-switch bit (#69)
  • getTradeInfo(1) returns the trade partner's name instead of your own (#77)
  • createGame defaults to the highest available difficulty (#64)
  • sendDDE throws when DDE cannot be set up, as d2bs did (#85)
  • StashTab.click(item) (#65)
  • unit.preciseX / preciseY, and fractional drawable positions (#66)
  • SQLite reads and binds BLOBs as ArrayBuffer (#73)
  • legacySkillNames flag (on by default): getSkillByName keeps the 1.14d skill names (#67)

Fixes

  • quitOnError leaves the game on an error in the bot's own script; it only fired for console scripts (#85)
  • say() no longer overruns the game's stack or chat buffers; long messages are cut to what the game accepts (#85)
  • getUIFlag() with an id past the game's UI table returns false instead of reading past it (#85)
  • Room data shared between scripts is no longer freed while another script still uses it (#84)

Improvements

  • Teleport paths: about 40% fewer casts, no more one-cell hops along walls (#72)
  • "Pause all" keeps heartbeat scripts running (#75)
  • Character-state snapshot: adds backend, gameType, lastUsedSkill and stack counts; the backend version string is now "LOD/1.14d" (#68)

Docs and typings

  • Enum-typed values in the docs and d2bsng.d.ts where they were plain numbers (#60, #64)
  • A description for every enum (#82)
  • Corrected docs for revive, clickMap, getMouseCoords and screenToAutomap (#76)

Full changelog: v2.2.0...v2.3.0

Full Changelog: v2.2.0...v2.3.0