HousePoints
constHousePoints:object
Defined in: server/api.d.ts:3979
The server’s house standings, the same for every player: every house starts at 0, and every client’s game uses them, so the four hourglasses in the Reception Hall fill to them for everyone. A player’s own in-game award is refused by their client and raised as housePointsRequest; an ordinary award of up to 100 counts unless a handler returns false. Houses are named case-insensitively. Changes raise housePointsChanged(house, points, previous).
Type Declaration
Section titled “Type Declaration”houses
Section titled “houses”
readonlyhouses:string[]
The four houses, canonically spelt.
add(
house,delta):number
Adds to (or, negative, takes from) one house. The result is clamped to +-1000000 and returned.
Parameters
Section titled “Parameters”string
number
Returns
Section titled “Returns”number
all():
HouseStandings
Every house’s standing.
Returns
Section titled “Returns”get(
house):number
One house’s standing.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”number
set(
house,points):boolean
Sets one house’s standing. False outside +-1000000.
Parameters
Section titled “Parameters”string
points
Section titled “points”number
Returns
Section titled “Returns”boolean
setAll()
Section titled “setAll()”setAll(
points):boolean
Sets several houses in one change; houses left out keep theirs. False, changing nothing, when any value is outside +-1000000.
Parameters
Section titled “Parameters”points
Section titled “points”Partial<HouseStandings>
Returns
Section titled “Returns”boolean