From 64c475ec96c5f10489b5152f080eb9fe376904fe Mon Sep 17 00:00:00 2001 From: Filip Hracek Date: Fri, 25 Sep 2020 13:03:18 -0700 Subject: [PATCH] Implement Conet ink --- .../locations/034_conet/000_conet.egb.txt | 12 +++++- edgehead/lib/writers_input.compiled.dart | 41 +++++++++++++++++-- 2 files changed, 48 insertions(+), 5 deletions(-) diff --git a/edgehead/assets/text/Knights/locations/034_conet/000_conet.egb.txt b/edgehead/assets/text/Knights/locations/034_conet/000_conet.egb.txt index 43f4708a6..c199df391 100644 --- a/edgehead/assets/text/Knights/locations/034_conet/000_conet.egb.txt +++ b/edgehead/assets/text/Knights/locations/034_conet/000_conet.egb.txt @@ -18,6 +18,8 @@ A kobold is operating a large device. He is turning a huge wheel, drawing some k A primitive writing on the entrance says "Conet". +// TODO: "There is a writing on the entrance: PICTURE" + [We] stay hidden. @@ -56,7 +58,13 @@ FOR_LOCATION: $conet COMMAND: Device >> Examine INK: -TODO: Explain that this device is obviously what makes the quakes. There are massive stones being lifted. There are cracks in the walls and the floor, radiating from the center of the device. +The device occupies most of the room. It is made of massive redwood beams and concrete blocks, but also delicate machinery. The air smells of oiled wood and kobold sweat. + +A large pillar of wood, concrete and metal stands in the center. A large spring rolls around this pillar and vibrates with strange, anxious energy. [[IF c.hasHappened(evConetDestroyed)]]This spring was being drawn by the kobold's turning of the wheel.[[ELSE]]This spring is being drawn, very slowly, by the kobold's turning of the wheel.[[ENDIF]] + +Only after focusing on this centerpiece do I realize that there is a subtle symmetry in the room. Rings of cracks on the floor radiate from the pillar outward, getting feinter as they recede from the core. + +This is the source of the earthquakes. I am sure of it. [[CODE]] c.learn(ConetFacts.sawConet); @@ -95,7 +103,7 @@ The kobold is talking to himself as he's turning the wheel. He swings his free hand as if holding a weapon. "You talkin' to me?" he says to an imaginary foe. "You talkin' to me? Who the hell do you think you're talking to?" -Another swing of hand, and a grin. +Another swing of a hand, and a grin. diff --git a/edgehead/lib/writers_input.compiled.dart b/edgehead/lib/writers_input.compiled.dart index 605a360ae..0f3c07c62 100644 --- a/edgehead/lib/writers_input.compiled.dart +++ b/edgehead/lib/writers_input.compiled.dart @@ -1775,7 +1775,42 @@ final conetExamineInk = InkAst([ final WorldStateBuilder w = c.outputWorld; final Storyline s = c.outputStoryline; s.add( - 'TODO: Explain that this device is obviously what makes the quakes. There are massive stones being lifted. There are cracks in the walls and the floor, radiating from the center of the device.\n', + 'The device occupies most of the room. It is made of massive redwood beams and concrete blocks, but also delicate machinery. The air smells of oiled wood and kobold sweat.\n', + isRaw: true); + }), + InkParagraphNode((c) => c.outputStoryline.addParagraph()), + InkParagraphNode((ActionContext c) { + final WorldState originalWorld = c.world; + final Simulation sim = c.simulation; + final Actor a = c.actor; + final WorldStateBuilder w = c.outputWorld; + final Storyline s = c.outputStoryline; + final ifBlock_5b399eb1d = c.hasHappened(evConetDestroyed) + ? '''This spring was being drawn by the kobold's turning of the wheel.''' + : '''This spring is being drawn, very slowly, by the kobold's turning of the wheel.'''; + s.add( + 'A large pillar of wood, concrete and metal stands in the center. A large spring rolls around this pillar and vibrates with strange, anxious energy. ${ifBlock_5b399eb1d}\n', + isRaw: true); + }), + InkParagraphNode((c) => c.outputStoryline.addParagraph()), + InkParagraphNode((ActionContext c) { + final WorldState originalWorld = c.world; + final Simulation sim = c.simulation; + final Actor a = c.actor; + final WorldStateBuilder w = c.outputWorld; + final Storyline s = c.outputStoryline; + s.add( + 'Only after focusing on this centerpiece do I realize that there is a subtle symmetry in the room. Rings of cracks on the floor radiate from the pillar outward, getting feinter as they recede from the core.\n', + isRaw: true); + }), + InkParagraphNode((c) => c.outputStoryline.addParagraph()), + InkParagraphNode((ActionContext c) { + final WorldState originalWorld = c.world; + final Simulation sim = c.simulation; + final Actor a = c.actor; + final WorldStateBuilder w = c.outputWorld; + final Storyline s = c.outputStoryline; + s.add('This is the source of the earthquakes. I am sure of it.\n', isRaw: true); }), InkParagraphNode((ActionContext c) { @@ -1826,7 +1861,7 @@ final conetKoboldExamineInk = InkAst([ final Actor a = c.actor; final WorldStateBuilder w = c.outputWorld; final Storyline s = c.outputStoryline; - s.add('Another swing of hand, and a grin.\n', isRaw: true); + s.add('Another swing of a hand, and a grin.\n', isRaw: true); }), ]); @@ -2033,7 +2068,7 @@ final Room conet = Room( final weSubstitutionCapitalized = getWeOrI(a, sim, originalWorld, capitalized: true); s.add( - 'A kobold is operating a large device. He is turning a huge wheel, drawing some kind of a spring.\n\nA primitive writing on the entrance says "Conet".\n\n${weSubstitutionCapitalized} stay hidden.\n', + 'A kobold is operating a large device. He is turning a huge wheel, drawing some kind of a spring.\n\nA primitive writing on the entrance says "Conet".\n\n\n${weSubstitutionCapitalized} stay hidden.\n', isRaw: true); }, (ActionContext c) {