Disable first description by default

master
Talon 2021-11-10 14:20:50 +01:00
parent 576debf261
commit 8f214e93bf
6 changed files with 14 additions and 5 deletions

View File

@ -0,0 +1,8 @@
# Insect lair
## start
A small alcove
### first

View File

View File

View File

@ -15,9 +15,10 @@ export default class Output {
string.split("\n").forEach((line) => { string.split("\n").forEach((line) => {
node.appendChild(document.createTextNode(line)); node.appendChild(document.createTextNode(line));
node.appendChild(document.createElement("br")); node.appendChild(document.createElement("br"));
// this.tts.speak(line, false);
}); });
this.history.appendChild(node); this.history.appendChild(node);
// this.tts.speak(string); this.tts.speak(string);
} }
play(file) { play(file) {

View File

@ -3,7 +3,7 @@ export default class Room {
this.id = "room"; this.id = "room";
this.title = "A room"; this.title = "A room";
this.description = "You see nothing special"; this.description = "You see nothing special";
this.firstDescription = "As you walk into the room, you notice nothing special"; this.firstDescription = "";
this.objects = []; this.objects = [];
this.exits = new Map(); this.exits = new Map();
this.enterCallback = null; this.enterCallback = null;

View File

@ -3,9 +3,9 @@ import RoomBuilder from "../../engine/builders/room";
export default new RoomBuilder() export default new RoomBuilder()
.withID("tunnel_2") .withID("tunnel_2")
.withTitle("A long, winding tunnel") .withTitle("A long, winding tunnel")
.withFirstDescription( // .withFirstDescription(
`You step out from your hidy hole into a thin, winding tunnel. The walls and ceiling appear to get thinner and thinner, space slowly dwindling away to nothing.` // `You step out from your hidy hole into a thin, winding tunnel. The walls and ceiling appear to get thinner and thinner, space slowly dwindling away to nothing.`
) // )
.withDescription( .withDescription(
`A tunnel that ends in a bowl shape.` `A tunnel that ends in a bowl shape.`
) )