Skip to content
This repository was archived by the owner on Aug 6, 2022. It is now read-only.

V.2. Constants

Andrey Bogdanov edited this page Apr 6, 2016 · 5 revisions

Note: Constants, that are used internally, are not described here.

  • lord.Second 1000 milliseconds. Value: 1000.
  • lord.Minute 60000 milliseconds. Value: 60 * lord.Second.
  • lord.Hour 3600000 milliseconds. Value: 60 * lord.Minute.
  • lord.Day 86400000 milliseconds. Value: 24 * lord.Hour.
  • lord.Year 31536000000 milliseconds. Value: 365 * lord.Day.
  • lord.Billion It is actually 2 billion. Used for setting "non-expiring" cookies. Value: 2 * 1000 * 1000 * 1000.
  • lord.keyboardMap An array of keyboard key names. Indexes correspond to KeyboardEvent's key codes.
  • lord.WindowID Unique identifier of a browser window. A value generated with uuid.v4() call.
  • lord.DefaultSpells Default spells (post hiding/modification script) code. Value: "#wipe(samelines,samewords,longwords,symbols,capslock,numbers,whitespace)".
  • lord.DefaultHotkeys An object containing direct (dir) and reverse (rev) object-maps of hotkeys. Maps are populated with the lord._defineHotkey function.
  • lord.MovablePlayerBorderWidth The width of a movable player. Value: 5.
  • lord.BaseScaleFactor The default scale factor. Value: 10 * 1000 * 1000 * 1000. This base factor is used to overcome floating point calculation precision.

Clone this wiki locally