Plugin that allows marking a room as :dark, in which case a :lit source is required to display it. If missing, a dark version of the room is presented instead.
Plugin that allows marking a room as :dark, in which case a :lit source is required to display it. If missing, a dark version of the room is presented instead.
(build-dark-room game-state)
Make a dark version of the current room, preserving only the connection to the previous one.
Make a dark version of the current room, preserving only the connection to the previous one.
(hook game-state)
If this is a regular room marked as :dark and there's no light source, replace it with a generated dark copy of the room. If this is a generated dark copy of a room, and there's a light source, replace it with the regular room.
If this is a regular room marked as :dark and there's no light source, replace it with a generated dark copy of the room. If this is a generated dark copy of a room, and there's a light source, replace it with the regular room.
(light-available? game-state)
Returns true if the room is dark and there are no light sources available.
Returns true if the room is dark and there are no light sources available.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close