Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
<<if $LevelOneComplete eq true>>\
The room of halls was like the centre of a spider's web. Halls stretched out from it in every direction, leading to the underground rooms in which the machine's various parts lurked.
The [[boiler room]] was the hottest room. She could feel the heat coming from it. It was where the machine's mouth was, where it needed to be fed.
One of the halls led to a sealed off wall. This was where Shu Fang had pushed a brick loose and discovered Clare and Sam as prisoners in the \
<<if $KokoInside eq false>>\
[[Hole|window to the hole]].\
<<else>>\
Hole. \
<<endif>>\
<br>
Down a particularly dark passage with hundreds of pipes lining its walls was [[the engine room]].
The shortest passage led to the [[heart of the machine|machine room]]. Unlike the boiler room where the machine liked to be fed, this was the mechanical hub where its major work was done. The heart of the machine was cold and damp.
The last passage split into two at the end. One side led to the [[systems for the Master's house|house controls]] and the other led to a large [[chimney|Chimney]].
<<else>>\
Shu Fang stopped... Perhaps it was not of her own accord but due to the little voice that lived within her. It told her she couldn't leave the boiler room. Not until the machine was fed. And the machine was very hungry.
Perhaps she could assign some dustigans to help her forage for coal and lollies. The dustigans needed a constant supply of lollies and the machine needed coal to eat.
[[Return|boiler room]]
<<endif>>\
Shu Fang peered into the Hole. It was dark and uninhabited, save for a couple of [[dustigans|https://static.wixstatic.com/media/0d422e_863bb46873174fd48188de22cef811d5~mv2.png]] scampering around on the floor.
"The Hole wouldn't have been a happy memory for Clare and Sam," Shu Fang thought to herself, "But for me... it's probably one of the few times I've ever been able to laugh. I wonder what it's like up there on the surface, being able to laugh."
[[Push the loose brick|enter the hole]]
<<click "Back">>\
<<goto "The Room of Halls">>\
<</click>>\<<if $FixedPipe eq false>>\
Oil was leaking from lots of little holes. Shu Fang put a small container below one of the drips but it was still dropping all over the floor. An oil leak was not a good thing. Especially in the vicinity of such a fiery machine.<br>
<<set $OilUnlocked = true>>\
[[Attempt to patch up the pipe|fix pipe]]
<<endif>>\
<<if $FixedPipe eq true>>\
The pipe was not leaking anymore.
<<endif>>\
[[Go back|Check oil tap]]
\
\
<<if $Oil eq 0>>\
<<set $Oil += 1>>\
<<endif>>\A large pipe crawled up through the ceiling. There was a little door but it was bolted tight.
<<click "Unbolt the door">>
<<if $HungerLevel eq "Three" and $LevelThreeComplete eq false>>\
<<replace "#Unlock">><br>Shu Fang had to go and satiate the machine's hunger. She couldn't leave now.<</replace>>
<<elseif $SpecialTool eq true>>\
<<replace "#Unlock">><br>Shu Fang used her T37 Spanner and unbolted the door. It creaked open revealing an entrance just large enough for her to fit inside. Shu Fang hesitated slightly. The ventilation system was byzantine, and people had been known to get lost in there for weeks. <br>[[Crawl inside]]<</replace>>
<<else>>\
<<replace "#Unlock">><br>Shu Fang tried to use her fingers to unbolt it but it was much too tight.<</replace>>
<<endif>>\
<</click>>\
<span id="Unlock"></span>\
[[Back|the engine room]]<<audio "boiler" play>>\
<<if $KokoInside is false>>\
Shu Fang stood in the heat of the furnace. Getting cold was never an issue down here. The fire never stopped.
[[Go back|boiler room]]
<<else>>\
Shu Fang showed Koko the furnace where she had spent so many hours labouring.<br><br>\
Koko peered inside and sneezed an almighty sneeze. It was a sneeze so powerful that it blew a large portion of the glowing coal to the back of the furnace. <br><br>\
[[Go back|boiler room]]
<<endif>>\<<set $rope = 0>>
<<set $wire = 0>>
<<set $TrapPaper = false>>
<<set $cogclues to 0>>\
<<set $FeedCounter = 0>>\
<<set $Candy to 3>>
<<set $Breadcrumbs to 0>>
<<set $Dustigan to 0>>
<<set $CandyForager to 1>>
<<set $BreadForager to 0>>
<<set $PopCap to 5>>
<<set $Population to 1>>
<<set $Sleeping to 0>>
<<set $Story to "//The Birth of Industry.//">>
<<set $AbleFeed to false>>
<<set $FeedOption to false>>
<<set $AlwaysTrue to true>>
<<set $Coal to 1>>
<<set $CoalForager to 0>>
<<set $BoilerWorker to 0>>
<<set $Oil to 0>>
<<set $OilForager to 0>>
<<set $Nuts to 0>>
<<set $NutForager to 0>>
<<set $Bolts to 0>>
<<set $BoltForager to 0>>
<<set $Treacle to 0>>
<<set $Cotton to 0>>
<<set $CottonForager to 0>>
<<set $CottonBlanket to 0>>
<<set $BoilerRoomSound to false>>\
<<set $NewBoilerWorkers to false>>
<<set $NewOil to false>>\
<<set $CottonBlanketUnlocked to false>> \
<<set $CottonUnlocked to false>>
<<set $FirstCottonBlanket to false>>
<<set $CottonForagerUnlocked to false>>
<<set $CottonUnlocked to false>>
<<set $BoilerWorkerUnlocked to false>>
<<set $OilUnlocked to false>> \
<<set $OilForagerUnlocked to false>>
<<set $NutsUnlocked to false>>
<<set $NutForagerUnlocked to false>>
<<set $BoltsUnlocked to false>>
<<set $BoltForagerUnlocked to false>>
<<set $Hunger to 20>>
<<set $HungerLevel = "One">>
<<set $LevelOneComplete = false>>
<<set $LevelTwoComplete = false>>
<<set $LevelThreeComplete = false>>
<<set $LevelFourComplete = false>>
<<set $FixedPipe = false>>
/% 2.2 %/
<<set $SteamEngineRoomFixed = false>>
<<set $SteamHouseControlsFixed = false>>
<<set $SteamMachineRoomFixed = false>>\
<<set $SteamFixed = false>>\
<<set $SpecialTool = false>>\
<<set $Donut = 0>>\
/% Vent Sequence %/
<<set $Directions = ["Forward", "Left", "Right"]>>
<<set $Sequence = 0>>
<<set $FirstClick to false>>
<<set $SecondClick to false>>
<<set $ThirdClick to false>>
<<set $FoundDonut to false>>
<<set $InVent to false>>\
<<set $TakeDonut = 0>>\
<<set $IsDonut to "There's a donut.">>\
<<set $WrongClick to false>>\
<<set $CrankFixed = false>>\
<<set $WireSnippers = false>>\
<<set $WireMesh = true>>\
<<set $SatKoko to false>>\
<<set $RememberRuko to false>>\
/% 2.3 %/
<<set $MetKoko to false>>
<<set $ChimneyPuzzle to false>>
<<set $KokoInside to false>>
<<set $CoalStorage to false>>
<<set $WetCotton to false>>
<<set $PipeCog to false>>
<<set $FurnaceCog to false>>\
<<set $FurnaceReveal to false>>\
<<set $CoalPistonOn = false>>\
<<set $ConveyorBeltOn = false>>\
<<set $ThirstSatisfied = false>>\
<<set $ConveyorBeltAttached = false>>\
<<set $WaterDiverted = false>>\
<<set $SValve = 1>>\
<<set $XValve = 1>>\
<<set $MValve = 1>>\
<<set $TValve = 1>>\
/% SET INITIAL TIMESTAMP %/
<<set $now to new Date(Date.now())>>\
<<set $hour to $now.getHours()>>\
<<set $minute to $now.getMinutes()>>\
<<set $second to $now.getSeconds()>>\
<<set $hour to $hour*3600>>\
<<set $minute to $minute*60>>\
<<set $popstamp1 to $hour + $minute + $second>>\
<<set $candystamp1 to $hour + $minute + $second>>\
<<set $coalstamp1 to $hour + $minute + $second>>\
<<set $breadstamp1 to $hour + $minute + $second>>\
<<set $cottonstamp1 to $hour + $minute + $second>>\
<<set $oilstamp1 to $hour + $minute + $second>>\
<<set $boltstamp1 to $hour + $minute + $second>>\
<<set $nutstamp1 to $hour + $minute + $second>>\
<<set $boilerstamp1 to $hour + $minute + $second>>\
<<set $coalcost1 to $hour + $minute + $second>>\
<<set $breadcost1 to $hour + $minute + $second>>\
<<set $cottoncost1 to $hour + $minute + $second>>\
<<set $oilcost1 to $hour + $minute + $second>>\
<<set $boltcost1 to $hour + $minute + $second>>\
<<set $nutcost1 to $hour + $minute + $second>>\
<<set $boilercost1 to $hour + $minute + $second>>\
<<set $coalattrition1 to $hour + $minute + $second>>\
<<set $breadattrition1 to $hour + $minute + $second>>\
<<set $cottonattrition1 to $hour + $minute + $second>>\
<<set $oilattrition1 to $hour + $minute + $second>>\
<<set $boltattrition1 to $hour + $minute + $second>>\
<<set $nutattrition1 to $hour + $minute + $second>>\
<<set $boilerattrition1 to $hour + $minute + $second>>\
<<cacheaudio "koko" "https://static.wixstatic.com/mp3/0d422e_10be269905a94b1bade30601828f2ea3.mp3">>
<<cacheaudio "ambience" "https://static.wixstatic.com/mp3/0d422e_0e5ada14cbf24d458efdcf80a934a1d7.mp3?fbclid=IwAR0T9RSRrxMu6PZqbVKwFHUl_8zrrz4nb2jTv1kxAHb0g4RoZfBQricbkXo">>
<<cacheaudio "dustigans" "https://static.wixstatic.com/mp3/0d422e_a823e29f67d94db1adc5feb8fbad83fe.mp3">>
<<cacheaudio "violin" "https://static.wixstatic.com/mp3/0d422e_4a71112a91e64d21bf2b0d4766cd57f9.mp3">>
<<cacheaudio "trap" "https://static.wixstatic.com/mp3/0d422e_97f96cbc98864157887cddbfe2447eeb.mp3">>
<<cacheaudio "lure" "https://static.wixstatic.com/mp3/0d422e_d210b93867d142e8a060b93682535c25.mp3">>
<<cacheaudio "snub" "https://static.wixstatic.com/mp3/0d422e_56f07cab43dc4a36899a03acd25d4c1f.mp3">>
<<cacheaudio "dust1" "https://static.wixstatic.com/mp3/0d422e_dab288bbee4d431ab2a5e9a57a8ea73d.mp3">>
<<cacheaudio "dust2" "https://static.wixstatic.com/mp3/0d422e_263f670ac5c34e2582a4918444115690.mp3">>
<<cacheaudio "dust3" "https://static.wixstatic.com/mp3/0d422e_c5f4150d3202403cb4fa34acc779a162.mp3">>
<<cacheaudio "dust4" "https://static.wixstatic.com/mp3/0d422e_a63dada2ff084c46958edace03c949a6.mp3">>
<<cacheaudio "dust5" "https://static.wixstatic.com/mp3/0d422e_9e51c73aa9994a379fe10e63b47e2fa3.mp3">>
<<cacheaudio "dust6" "https://static.wixstatic.com/mp3/0d422e_3658e9d2c7b448d0bf58f1b8346fd021.mp3">>
<<cacheaudio "dust7" "https://static.wixstatic.com/mp3/0d422e_5ab1c45c0e7847b49254066bd01231da.mp3">>
<<cacheaudio "dust8" "https://static.wixstatic.com/mp3/0d422e_89cebcd7324f4c199b636cc5365758d5.mp3">>
<<cacheaudio "dust9" "https://static.wixstatic.com/mp3/0d422e_4908c170966546ecadfb1a46dc3bb5cd.mp3">>
<<cacheaudio "dust0" "https://static.wixstatic.com/mp3/0d422e_ff18221b3b614c5c979b8b2a670ebc31.mp3">>
<<cacheaudio "boil" "https://static.wixstatic.com/mp3/0d422e_06f3bcaa3a494859b248d0f45e785c70.mp3">>
<<cacheaudio "sizzle" "https://static.wixstatic.com/mp3/0d422e_dfd94869acb24e4587cc934d13a51284.mp3">>
<<cacheaudio "seagulls" "https://static.wixstatic.com/mp3/0d422e_3748368d14934495979b8cc267577409.mp3">>
<<cacheaudio "introcinema" "https://static.wixstatic.com/mp3/0d422e_6dc3d726ddbd4052bc120c15da9c14d3.mp3">>
<<cacheaudio "flute" "https://static.wixstatic.com/mp3/0d422e_10be269905a94b1bade30601828f2ea3.mp3">>
<<cacheaudio "boiler" "https://static.wixstatic.com/mp3/0d422e_b19ea24c450142ddb429ffa3fdcc9b74.mp3">>
<<cacheaudio "shovelling" "https://static.wixstatic.com/mp3/0d422e_fcdcdb79f7fc4bbcb2f883e614a54aec.mp3">>
<<cacheaudio "steamfade" "https://static.wixstatic.com/mp3/0d422e_787f4afe7de04465b60468b65fe48813.mp3">>
<<cacheaudio "factory" "https://static.wixstatic.com/mp3/0d422e_35807899f0714750ba2e443fadd1ac12.mp3">>
<<cacheaudio "violin" "https://static.wixstatic.com/mp3/0d422e_96f09f69f516447faddff2644dffc88c.mp3">>
<<cacheaudio "longdust" "https://static.wixstatic.com/mp3/0d422e_3c1d49c32be44e04bf73d73bb533423c.mp3">>
<<cacheaudio "cheeky" "https://static.wixstatic.com/mp3/0d422e_d8d287406fad47ad8a8aef33c30d5a56.mp3">><<if $LevelOneComplete eq false>>\
"This is no time to be leaving the machine!" exclaimed Shu Fang. The furnace angrily clanked away, beckoning her to feed it more coal.
<<endif>>\
<<if $LevelOneComplete eq true>>\
Shu Fang pushed a [[loose brick|https://static.wixstatic.com/media/0d422e_f5ee3421a5b849a798e6628cfda815fc~mv2.jpg?fbclid=IwAR17CRpmO_If8UnK2cw9NKVKK5eBu_1_yLqlbDAU5Lh3_UXisNWBKsOIuWg]] at about knee height, then wriggled back into the chamber.
A set of stairs led up to the chamber door, which was bolted shut. The [[vent|venthole]] hung open at ground level.<br>
<<endif>>\
[[Go back|window to the hole]]<<if $BoilerRoomSound is false>>\
<<endif>>\
<<if $ConveyorBeltOn eq true>>\
<<if $ConveyorBeltAttached eq false>>\
The conveyor belt was feeding coal into the boiler room and the dustigans were feeding it to the machine. She couldn't leave the dustigans here forever to feed the machine either. They were happy to help her but it didn't seem right to leave them here with the machine for eternity. It hadn't been a great life for her down here.
[[Fold out the old conveyor belt]]
Through the archway, a passage led to the [[room of halls|The Room of Halls]].
<<else>>\
The entrance to the boiler room was sealed. There was no way to enter back inside. Shu Fang had to focus on the task at hand.
[[Go back to the room of halls|The Room of Halls]].
<<endif>>\
<<elseif $HungerLevel eq "Four" and $LevelFourComplete eq false>>\
The mouth of the machine lurked at the back of the boiler room with a trap that opened and shut. The [[furnace]] glowed red, burning embers within.
"If only I can find some way to divert all the water in the building to the machine," Shu Fang said to herself. "Maybe I'll be able to quench its thirst."
Through the archway, a passage led to the [[room of halls|The Room of Halls]].
<<else>>\
The mouth of the [[machine|https://static.wixstatic.com/media/0d422e_553f233afe974ac6a806a3210bb8bb61~mv2.jpg?fbclid=IwAR2mfiXiuDYiv2o0_5TVuI0BVnToMH1_MwdlrWEJMtol2iivnuht0l__0k4]] lurked at the back of the boiler room with a trap that opened and shut. The [[furnace]] glowed red, burning embers within. There was an old conveyor belt that folded out to reveal a large gaping [[tunnel|Tunnel]].<br><br>\
<<if $KokoInside eq true>>\
"If I'm going to leave, I need to find a way for the machine to feed itself," Shu Fang explained to Koko. Koko tilted his head in response, a little unsure what she meant... or perhaps he was unsure why. He would help her nonetheless.<br><br>\
<<else>>\
Every day Shu Fang would shovel coal into the jaws of the machine and as she grew ever stronger, the machine grew ever hungrier. Sometimes, when a break allowed it, Shu Fang would lie down, back on the floor and <<if $ImagineOver neq true>>[[imagine]]<<else>>imagine<<endif>>.<br><br>\
<<endif>>\
Through the archway, a passage led to the [[room of halls|The Room of Halls]].
<<endif>>\<<if $LevelThreeComplete eq true or $SteamHouseControlsFixed eq true>>\
This room controlled the various systems of the Master's house. The first section of the room was allocated to the <<if $RememberRuko eq true>>[[water system|water pump]]<<else>>water system<<endif>>. It had a set of tanks and valves to control the water flow. The second section was allocated to the gas, the third was allocated to the sewerage and the fourth was allocated to the [[Transport Chute System|Transport Chute System]].
At the entrance there was a [[lockbox|Master's lockbox]] just within Shu Fang's reach.
<<if $wire eq 0>>\
A stray hook lay on the ground.
[[Take the hook|take the hook]]
<<endif>>\
[[Go back|The Room of Halls]]
\
<<elseif $HungerLevel eq "Three" and $LevelThreeComplete eq false and $SteamHouseControlsFixed eq false>>\
<<audio "steamfade" play>>\
The machine raged hungrier than ever. Hot steam poured everywhere like brimstone breath. If Shu Fang didn't fix the steam leaks soon, the rising heat would be too much to bear.
At the entrance there was a [[lockbox|Master's lockbox]] just within Shu Fang's reach.
<<if $wire eq 0>>\
A stray hook lay on the ground.
[[Take the hook|take the hook]]
<<endif>>\
<<click "Fix steam leaks">>\
<<if $SpecialTool eq true>>\
<<goto "fixed house controls">>\
<<else>>\
<<script>>UI.alert("Shu Fang did not yet have the right tool.");<</script>>\
<<endif>>\
<</click>><br>\
[[Go back|The Room of Halls]]
\
<<else>>\
<<audio "steamfade" play>>\
Hot steam gushed out from the pipes, making it impossible for Shu Fang to pass. If only she could fix them, she'd be able to go through.
At the entrance there was a [[lockbox|Master's lockbox]] just within Shu Fang's reach.
<<if $wire eq 0>>\
A stray hook lay on the ground. It was about as big as her hand.
[[Take the hook|take the hook]]
<<endif>>\
<<click "Fix steam leaks">>\
<<if $SpecialTool eq true>>\
<<goto "fixed house controls">>\
<<else>>\
<<script>>UI.alert("Shu Fang did not yet have the right tool.");<</script>>\
<<endif>>\
<</click>><br>\
[[Go back|The Room of Halls]]
<<endif>>\
<<if $BedroomRead neq true>>\
Shu Fang's makeshift bedroom was neither spacious nor private. And as sad as that was, that was all she'd ever really known for the majority of her years. Memories of life before the machine were few and far between. Sometimes little memories would jump out at her but more often than not, any remembering would take hours of effort.
<<set $BedroomRead = true>>\
<<endif>>\
If ever she needed to look at her tools, Shu Fang would come here and sit on her bed. \
<<if $BedroomRead neq true>>\
//When you think of a bed, what you picture would be warm blankets, a mattress, a raised frame to keep off the cockroaches, a pillow to lay your head on and maybe... if you're very lucky a mother to tuck you in. What Shu Fang pictured when she thought of a bed was a bunch of unwashed rags to call a blanket and a broken barrel she used to lie her head upon.// \
<<endif>>
<<if $GrapplingHook eq true>>\
The grappling hook wasn't super flash bit it seemed to do its job just fine.
<<endif>>\
<<if $SpecialTool eq true>>\
Shu Fang looked closely at the special spanner she had in her pocket. Its tool code was T37.
"Perhaps Sam would find this useful," she thought.
<<endif>>\
\
<<if $WireSnippers eq true>>\
Shu Fang looked at the snippers in her hand. They'd be perfect for cutting wire and mesh.
<<endif>>\
\
<<if $rope eq 0>>\
A coil of utility rope lay at the end of her bed... //well on the floor.//
[[Take the rope|take the rope]]
<<endif>>\
[[Back|machine room]]<<if $LevelThreeComplete eq true or $SteamEngineRoomFixed eq true>>\
<<if $EngineRead neq true>>\
The bottom half of the engine room was what Shu Fang could access and it was like the bottom of an iceberg. She could see the machinery weaving its way up in the darkness, up above to where she imagined the cotton factory to be. She could sometimes hear the odd voice shouting up above but it was always muffled and impersonal. Sometimes an odd flicker of light from a crack in the ceiling would cast dancing shadows upon the other parts of the room.
<<set $EngineRead = true>>\
<<endif>>\
Large pipes lined the walls like a network of large roots, coming down from up above and leading back to the heart of the machine. There was a ladder which went up towards the ventilation pipe.
<<if $KokoInside eq true>>\
High up, on one of the walls was a gauge, but Shu Fang couldn't reach it herself.
[[Gesture to the gauge]]\
<<else>>\
High up, on one of the walls was a gauge, but Shu Fang had no way to reach it.
<<endif>>\
<<if $KokoInside eq false>>\
[[Climb the ladder to the platform|Ventilation pipe]]
<<endif>>\
[[Go back to the room of halls|The Room of Halls]]
\
<<elseif $HungerLevel eq "Three" and $LevelThreeComplete eq false and $SteamEngineRoomFixed eq false>>\
<<audio "steamfade" play>>\
The machine raged hungrier than ever. Hot steam poured everywhere like brimstone breath. If Shu Fang didn't fix the steam leaks soon, the rising heat would be too much to bear.
<<click "Fix steam leaks">>\
<<if $SpecialTool eq true and $Oil gte 5>>\
<<goto "fixed engine room">>\
<<elseif $SpecialTool eq true and $Oil lt 5>>\
<<script>>UI.alert("The clamps were getting stuck. Shu Fang needed more oil to fully tighten them.");<</script>>\
<<else>>\
<<script>>UI.alert("Shu Fang did not yet have the right tool.");<</script>>\
<<endif>>\
<</click>><br>\
[[Go back to the room of halls|The Room of Halls]]
\
<<else>>\
<<audio "steamfade" play>>\
Hot steam gushed out from the pipes, making it impossible for Shu Fang to pass. If only she could fix the pipes, she'd be able to go through.
\<br>
<<click "Fix steam leaks">>\
<<if $SpecialTool eq true>>\
<<goto "fixed engine room">>\
<<elseif $SpecialTool eq true and $Oil lt 5>>\
<<script>>UI.alert("The clamps were getting stuck. Shu Fang needed more oil to fully tighten them.");<</script>>\
<<else>>\
<<script>>UI.alert("Shu Fang did not yet have the right tool.");<</script>>\
<<endif>>\
<</click>>\
[[Go back to the room of halls|The Room of Halls]]
<<endif>>\<<set $rope += 1>>\
Shu Fang coiled the rope and attached it to her toolbelt.
[[Continue|Shu's Corner]]<<set $wire += 1>>\
Shu Fang picked up the rusty hook and attached it to her toolbelt. Maybe it could help her grab something.
[[Go back|house controls]]
Shu Fang carefully attached the hook to the rope and hurled it down the vent.
She pulled on the rope and dragged back the little piece of cotton.
[[Take the piece of cotton|take cotton]]
<<set $GrapplingHook = true>>\<<set $Cotton += 1>>\
<<set $CottonUnlocked = true>>\
Shu Fang put the piece of cotton in her pocket. "Perhaps I can make something with this in the machine room," Shu Fang thought to herself with a smile.
[[Go back|enter the hole]]<<if $TrapPaper eq false>>\
The gears looked like they were in need of some oiling. The vent that was above Shu Fang was rattling wildly. <br>
<<click "Oil the gears">>\
<<if $Oil gte 5>>\
<<set $Oil -= 5>>\
<<goto "repair the gears">>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have enough Oil to get the gears turning.");<</script>>\
<<endif>>\
<</click>><br>\
<<endif>>\
<<if $TrapPaper eq true>>\
The gears were now working properly.
The mysterious piece of paper was pinned on the wall where Shu Fang had left it. It seemed important information to share with the other children.
[[Paper|https://static.wixstatic.com/media/0d422e_43faf6c9ea6e4b9dacc386da27de3ccd~mv2.png]]
<<endif>>\
[[Back to the machine room|machine room]]<<if $LevelTwoComplete eq false>>\
The Master's lockbox sat up on the wall. The Master has several of these scattered throughout the mill. "I should ask Sam and Clare if they have the same kind of lockbox as well," Shu Fang said to herself.
But just as she was about to check the Master's lockbox...
[[Continue|Start Level Two]]
<<else>>\
The Master's lockbox sat up on the wall. The Master had several of these scattered throughout the mill. \
<<if $SpecialTool eq false>>\
Little did Shu Fang know that at this very moment, Sam and Clare were also trying to unlock one of these lockboxes... each one had the exact same code. "If only there were some way I could communicate with them," Shu Fang said to herself. "We'd be able to work together."
<<textbox "$genericpword" "ENTER CODE">> <br> <<click "Use Button">>\
<<set $genericpword to $genericpword.toUpperCase()>>\
<<if $genericpword is "3875" or $genericpword is "THREE EIGHT SEVEN FIVE" or $genericpword is "THREEEIGHTSEVENFIVE">><<replace "#result_text">><p>Shu Fang put in the code and it unlocked. "When I get the chance, I'd better let Clare and Sam know what the code is," Shu Fang said to herself.
[[Check inside lockbox]]</p><</replace>>\
\
<<else>><<replace "#result_text">><p>The lock didn't budge.</p> <</replace>>\
\
<<endif>><</click>>\
<p><span id="result_text"></span></p>\
<<else>>\
This was where Shu Fang had found the T37 spanner.
<<endif>>\
[[Go back|house controls]]
<<endif>>\<<set $A1 to "x">>\
<<set $A2 to "x">>\
<<set $A3 to "x">>\
<<set $A4 to "x">>\
<<set $B1 to "x">>\
<<set $B2 to "x">>\
<<set $B3 to "x">>\
<<set $B4 to "x">>\
<<set $C1 to "x">>\
<<set $C2 to "x">>\
<<set $C3 to "x">>\
<<set $C4 to "x">>\
<<set $D1 to "x">>\
<<set $D2 to "x">>\
<<set $D3 to "x">>\
<<set $D4 to "x">>\
<<set $Location = ["A1", "A2", "A3", "A4", "B1", "B2", "B3", "B4", "C1", "C2", "C3", "C4", "D1", "D2", "D3", "D4"]>>
<<set $Timer = ["2s", "3s", "4s", "5s", "6s", "7s", "8s", "9s", "10s", "11s", "12s"]>>\
<<set $Outcome to "Shu Fang successfully patched up all of the holes! [[Secure the patches|complete]]">>\
<<set $A1Mole = 0>>\
<<set $A2Mole = 0>>\
<<set $A3Mole = 0>>\
<<set $A4Mole = 0>>\
<<set $B1Mole = 0>>\
<<set $B2Mole = 0>>\
<<set $B3Mole = 0>>\
<<set $B4Mole = 0>>\
<<set $C1Mole = 0>>\
<<set $C2Mole = 0>>\
<<set $C3Mole = 0>>\
<<set $C4Mole = 0>>\
<<set $D1Mole = 0>>\
<<set $D2Mole = 0>>\
<<set $D3Mole = 0>>\
<<set $D4Mole = 0>>\
<<silently>>
<<set $Mole to $Location.randomMany(6)>>
<<set $TimerA1 to $Timer.random()>>
<<set $TimerA2 to $Timer.random()>>
<<set $TimerA3 to $Timer.random()>>
<<set $TimerA4 to $Timer.random()>>
<<set $TimerB1 to $Timer.random()>>
<<set $TimerB2 to $Timer.random()>>
<<set $TimerB3 to $Timer.random()>>
<<set $TimerB4 to $Timer.random()>>
<<set $TimerC1 to $Timer.random()>>
<<set $TimerC2 to $Timer.random()>>
<<set $TimerC3 to $Timer.random()>>
<<set $TimerC4 to $Timer.random()>>
<<set $TimerD1 to $Timer.random()>>
<<set $TimerD2 to $Timer.random()>>
<<set $TimerD3 to $Timer.random()>>
<<set $TimerD4 to $Timer.random()>>
<</silently>>
<<fadein 1s 0s>>\
<<fadeout 1s 13s>>\
<table>\
<tr>\
<td>\
<span id= "A1">$A1</span>
<<if $Mole.includes("A1")>>\
<<timed $TimerA1>>\
<<set $A1Mole = 1>>\
<<replace "#A1">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $A1Mole = 0>>\
<<replace "#A1">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
<td>\
<span id= "A2">$A2</span>
<<if $Mole.includes("A2")>>\
<<timed $TimerA2>>\
<<set $A2Mole = 1>>\
<<replace "#A2">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $A2Mole = 0>>\
<<replace "#A2">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
<td>\
<span id= "A3">$A3</span>
<<if $Mole.includes("A3")>>\
<<timed $TimerA3>>\
<<set $A3Mole = 1>>\
<<replace "#A3">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $A3Mole = 0>>\
<<replace "#A3">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
<td>\
<span id= "A4">$A4</span>
<<if $Mole.includes("A4")>>\
<<timed $TimerA4>>\
<<set $A4Mole = 1>>\
<<replace "#A4">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $A4Mole = 0>>\
<<replace "#A4">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
</tr>\
<tr>\
<td>\
<span id= "B1">$B1</span>
<<if $Mole.includes("B1")>>\
<<timed $TimerB1>>\
<<set $B1Mole = 1>>\
<<replace "#B1">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $B1Mole = 0>>\
<<replace "#B1">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
<td>\
<span id= "B2">$B2</span>
<<if $Mole.includes("B2")>>\
<<timed $TimerB2>>\
<<set $A2Mole = 1>>\
<<replace "#B2">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $B2Mole = 0>>\
<<replace "#B2">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
<td>\
<span id= "B3">$B3</span>
<<if $Mole.includes("B3")>>\
<<timed $TimerB3>>\
<<set $B3Mole = 1>>\
<<replace "#B3">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $B3Mole = 0>>\
<<replace "#B3">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
<td>\
<span id= "B4">$B4</span>
<<if $Mole.includes("B4")>>\
<<timed $TimerB4>>\
<<set $B4Mole = 1>>\
<<replace "#B4">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $B4Mole = 0>>\
<<replace "#B4">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
</tr>\
<tr>\
<td>\
<span id= "C1">$C1</span>
<<if $Mole.includes("C1")>>\
<<timed $TimerC1>>\
<<set $C1Mole = 1>>\
<<replace "#C1">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $C1Mole = 0>>\
<<replace "#C1">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
<td>\
<span id= "C2">$C2</span>
<<if $Mole.includes("C2")>>\
<<timed $TimerC2>>\
<<set $C2Mole = 1>>\
<<replace "#C2">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $C2Mole = 0>>\
<<replace "#C2">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
<td>\
<span id= "C3">$C3</span>
<<if $Mole.includes("C3")>>\
<<timed $TimerC3>>\
<<set $C3Mole = 1>>\
<<replace "#C3">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $C3Mole = 0>>\
<<replace "#C3">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
<td>\
<span id= "C4">$C4</span>
<<if $Mole.includes("C4")>>\
<<timed $TimerC4>>\
<<set $C4Mole = 1>>\
<<replace "#C4">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $C4Mole = 0>>\
<<replace "#C4">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
</tr>\
<tr>\
<td>\
<span id= "D1">$D1</span>
<<if $Mole.includes("D1")>>\
<<timed $TimerD1>>\
<<set $D1Mole = 1>>\
<<replace "#D1">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $D1Mole = 0>>\
<<replace "#D1">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
<td>\
<span id= "D2">$D2</span>
<<if $Mole.includes("D2")>>\
<<timed $TimerD2>>\
<<set $D2Mole = 1>>\
<<replace "#D2">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $D2Mole = 0>>\
<<replace "#D2">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
<td>\
<span id= "D3">$D3</span>
<<if $Mole.includes("D3")>>\
<<timed $TimerD3>>\
<<set $D3Mole = 1>>\
<<replace "#D3">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $D3Mole = 0>>\
<<replace "#D3">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
<td>\
<span id= "D4">$D4</span>
<<if $Mole.includes("D4")>>\
<<timed $TimerD4>>\
<<set $D4Mole = 1>>\
<<replace "#D4">>\
<<fadeout 2s 4s>>\
<<click "o">>\
<<set $D4Mole = 0>>\
<<replace "#D4">>x<</replace>>\
<</click>>\
<</fadeout>>\
<</replace>>\
<</timed>>\
<<endif>>\
</td>\
</tr>\
</table>\
<</fadeout>>\
<</fadein>>\
<<timed 15s>>\
<<fadein 1s 0s>>\
<<if $A1Mole + $A2Mole + $A3Mole + $A4Mole + $B1Mole + $B2Mole + $B3Mole + $B4Mole + $C1Mole + $C2Mole + $C3Mole + $C4Mole + $D1Mole + $D2Mole + $D3Mole + $D4Mole > 0>>\
<<set $Outcome to "Shu Fang failed to patch up all of the holes. Try again.">>\
<<endif>>\
<span id = "Outcome">$Outcome</span>
<</fadein>>\
<</timed>>
<<timed 15s>>\
<<fadein 1s 0s>>\
[[Go back|oil gauge]]
<</fadein>>\
<</timed>>The gears steadily turned... faster and faster, and air began to circulate through the vent again. A piece of paper with a picture of something on it fluttered out from the vent onto the floor. Shu Fang picked up the mysterious piece of paper and pinned it on the wall by the gears. It seemed important information to share with the other children. She couldn't really read what it said. No one had ever taught her to read but she'd picked up how numbers worked.
"Maybe Sam and Clare would find this useful," Shu Fang thought to herself. "I wonder if it'll help me unlock the Master's lockbox."
[[Mysterious paper|https://static.wixstatic.com/media/0d422e_29f692cc5fca449a8a74d85bc6059702~mv2.jpg]]
<<set $TrapPaper = true>>\
[[Go back|machine room]]<<set $LevelOneComplete = true>>\
<<set $HungerLevel = "Two">>\
<<if $Hunger lte 0>>\
<<set $Hunger = 35>>\
<<endif>>\
\
Shu Fang heard a large rumble echo from the hall. The machine was hungry. She had to hurry back.
[[Continue|boiler room]] <<set $LevelOneComplete = true>>\
<<set $LevelTwoComplete = true>>\
\
Shu Fang heard a chattering and clanging noise. She turned her head to see a little dustigan pulling her wire snippers behind it.
"Wait!" cried Shu Fang to the dustigan. The wire snippers had been missing for some time.
It bounded toward the heart of the machine and as she started to gain on it, she was interrupted by a deep rumbling sound. The machine was hungry again. It was more voracious than ever before... Shu Fang would have to feed it first.
\
<<set $HungerLevel = "Three">>\
<<set $Hunger = 50>>\
[[Run to the boiler room|boiler room]] The machine let out a loud 'shhhhhh' noise as the trap closed to the furnace. Its hunger was satiated once again.
"Two times I've fed him today," Shu Fang thought to herself, quite perplexed. "Usually once a day is enough."
Shu Fang wondered if the machine knew she was planning to leave. If it did, it certainly wasn't happy about the idea...
\
<<set $Hunger = 0>>\
<<set $LevelTwoComplete = true>>\
[[Continue|boiler room]] The machine's hunger was satiated once again... the dustigans had been very helpful to Shu Fang. And the machine was not happy about it. It was fuming in anger. It had to make her stay.
<<set $Hunger = 0>>\
<<set $LevelThreeComplete = true>>\
[[Continue|boiler room]]
Sleeping Dustigans: <span id="Dustigan">$Dustigan</span>
PopCap: <span id="PopCap">$PopCap</span>
Population: <span id="Population">$Population</span>
<<set $PopCap = 20>>
<<set $Population = 19>>
<<click "Here">>
<<set $Dustigan += 1>>
<<replace "#Dustigan">>$Dustigan<</replace>>
<</click>>
<<if $PopCap - $Population eq 1>>
<<repeat `random(2,5) + 's'`>>
<<script>>
Dialog.setup('Hello!');
Dialog.wiki(Story.get('greetings').processText());
Dialog.open();
<</script>>
<</repeat>>
<<elseif ($PopCap - $Population) gte 2 and $PopCap - $Population lte 5>>
<<elseif ($PopCap - $Population) gte 6>>
<<endif>>
<<goto `either("Dustigan Notification 2", "Dustigan Notification 3")`>>/% CAN ONLY ADD UP TO 1 DUSTIGAN %/ \
<<set $Notification = random(1, 4)>> \
\
<<set $Population += 1>> \
<<replace "#Population">>$Population<</replace>> \
<<set $Sleeping += 1>> \
<<replace "#Sleeping">>$Sleeping<</replace>> \
<<if $Notification eq 1>> \
A dustigan moved into the cotton blanket, making it a shade darker with soot. \
<<elseif $Notification eq 2>> \
A small dustigan with big beady eyes looked up at Shu Fang, then it tip-toed off to the blanket and went to sleep. \
<<elseif $Notification eq 3>> \
A somewhat robust looking dustigan rolled down the room and settled in the boiler room. \
<<elseif $Notification eq 4>> \
A dustigan trundled underneath Shu Fang's legs, causing her to jump in fright. It had a dazed look in its eye and nestled itself amongst the cotton blanket. \
<<endif>> \
\Double-click this passage to edit it.Double-click this passage to edit it.<<set $Notification = random(1, 4)>> \
\
<<if $Notification eq 1>> \
<<set $Population += 2>> \
<<replace "#Population">>$Population<</replace>> \
<<set $Sleeping += 2>> \
<<replace "#Sleeping">>$Sleeping<</replace>> \
Two new dustigans moved into the cotton blanket. They left little black footprints along an already quite sooty floor.
<<elseif $Notification eq 2>> \
<<set $Population += 3>> \
<<replace "#Population">>$Population<</replace>> \
<<set $Sleeping += 3>> \
<<replace "#Sleeping">>$Sleeping<</replace>> \
Three wary looking dustigans moved into the kitchen, making little chuckling noises. \
<<elseif $Notification eq 3>> \
<<set $Population += 4>> \
<<replace "#Population">>$Population<</replace>> \
<<set $Sleeping += 4>> \
<<replace "#Sleeping">>$Sleeping<</replace>> \
Four new dustigans moved into the cotton blanket. They chattered loudly and seemed unaffected by the heat of the boiler room.\
<<elseif $Notification eq 4>> \
<<set $Population += 5>> \
<<replace "#Population">>$Population<</replace>> \
<<set $Sleeping += 5>> \
<<replace "#Sleeping">>$Sleeping<</replace>> \
A large group of dustigans moved into the boiler room. Their eyes looked dazed and they went to sleep under the cotton blanket almost immediately. \
<<endif>> \/% CAN ONLY ADD UP TO 2 DUSTIGANS %/ \
<<set $Population += 2>> \
<<replace "#Population">>$Population<</replace>> \
<<set $Sleeping += 2>> \
<<replace "#Sleeping">>$Sleeping<</replace>> \
An odd couple of dustigans moved into the cotton blanket, making it a shade darker with soot. \The machine steamed and chuffed to a deeper, slower rumble. Finally it was satiated.
Now she could focus on preparing for the escape. Shu Fang had been tasked with finding a grappling hook to scale over walls and climb down buildings. On paper, her task was quite simple however, she carried a larger burden that she hadn't told them. Shu Fang was bound to the machine and the machine was bound to her.
When she had been in the hole with Sam and Clare, it had been fun talking with other humans like herself, and the idea of adventure and leaving was easy to imagine... but all those positive thoughts had made her forget her responsibilities. Her responsibilities of looking after the machine.
"If only I could figure out some way for the machine to feed itself, then, maybe I'd be free to leave," Shu Fang spoke to herself softly.
\
<<set $Hunger = 0>>\
<<set $LevelOneComplete = true>>\
[[Continue|boiler room]]
<<set $Notification = random(1, 4)>> \
\
<<if $Notification eq 1>> \
<<set $Population += 5>> \
<<replace "#Population">>$Population<</replace>> \
<<set $Sleeping += 5>> \
<<replace "#Sleeping">>$Sleeping<</replace>> \
Some more dustigans moved into the boiler room. They chattered at Shu Fang as if they were eager for work, then immediately fell asleep. \
<<elseif $Notification eq 2>> \
<<set $Population += 6>> \
<<replace "#Population">>$Population<</replace>> \
<<set $Sleeping += 6>> \
<<replace "#Sleeping">>$Sleeping<</replace>> \
A large group of dustigans moved into the boiler room. Their eyes looked dazed and they went to sleep under the cotton blanket almost immediately. \
<<elseif $Notification eq 3>> \
<<set $Population += 7>> \
<<replace "#Population">>$Population<</replace>> \
<<set $Sleeping += 7>> \
<<replace "#Sleeping">>$Sleeping<</replace>> \
Some dustigans crowded into the boiler room. They were making little chirping noises. "Perhaps they want something sweet?" Shu Fang thought to herself. \
<<elseif $Notification eq 4>> \
<<set $Population += 8>> \
<<replace "#Population">>$Population<</replace>> \
<<set $Sleeping += 8>> \
<<replace "#Sleeping">>$Sleeping<</replace>> \
Some dustigans crowded into the boiler room. They were making little chirping noises. "Perhaps they want something sweet?" Shu Fang thought to herself. \
<<elseif $Notification eq 4>> \
<<set $Population += 9>> \
<<replace "#Population">>$Population<</replace>> \
<<set $Sleeping += 9>> \
<<replace "#Sleeping">>$Sleeping<</replace>> \
Some more dustigans moved into the boiler room. They chattered at Shu Fang as if they were eager for work, then immediately fell asleep. \
<<elseif $Notification eq 4>> \
<<set $Population += 10>> \
<<replace "#Population">>$Population<</replace>> \
<<set $Sleeping += 10>> \
<<replace "#Sleeping">>$Sleeping<</replace>> \
A large group of dustigans moved into the boiler room. Their eyes looked adaze and they went to sleep under the cotton blanket almost immediately. \
<<endif>> \<<audio "shovelling" play>>\
<<audio "boiler" play>>\
<<timed 5s>>\
<<audio "shovelling" fadeout>>\
<<audio "boiler" fadeout>>\
<</timed>>\
<<if $HungerLevel eq "One">>\
<<set $Coal -= 5>>\
<<set $Hunger -=5>>\
\
\
<<if $FeedCounter eq 0>>\
Shu Fang crouched low and filled the front of her overalls with a pile of coal.<br>
<<fadein 1s 2s>>\
It was a hard job...<br><br>\
<</fadein>>\
\
<<fadein 1s 4s>>\
But she would get it done...<br><br>\
<</fadein>>\
\
<<fadein 1s 6s>>\
Shu Fang slung the pile of coal into the ever-hungry machine.
[[Continue|boiler room]]
<</fadein>>\
<<set $FeedCounter += 1>>\
\
<<elseif $FeedCounter eq 1>>\
Shu Fang crouched low and filled the front of her overalls with a pile of coal.<br>
<<fadein 1s 2s>>\
This hard job would get tedious very quick...<br><br>\
<</fadein>>\
\
<<fadein 1s 4s>>\
But Shu Fang was a persevering kind of child...<br><br>\
<</fadein>>\
\
<<fadein 1s 6s>>\
She slung the pile of coal into the ever-hungry machine.
[[Continue|boiler room]]
<</fadein>>\
<<set $FeedCounter += 1>>\
\
<<elseif $FeedCounter eq 2>>\
Shu Fang crouched low and filled the front of her overalls with a pile of coal.<br>
<<fadein 1s 2s>>\
This was definitely getting tedious...<br><br>\
<</fadein>>\
\
<<fadein 1s 4s>>\
And it was only the third time today...<br><br>\
<</fadein>>\
\
<<fadein 1s 6s>>\
Shu Fang piled coal into the ever-hungry machine.
[[Continue|boiler room]]
<</fadein>>\
<<set $FeedCounter += 1>>\
\
<<else>>\
Shu Fang crouched low and filled the front of her overalls with a pile of coal.<br>
<<fadein 1s 2s>>\
I hope there's another way around this...<br><br>\
<</fadein>>\
\
<<fadein 1s 4s>>\
They say dustigans appear to help children in their time of need...<br><br>\
<</fadein>>\
\
<<fadein 1s 6s>>\
This certainly felt like a time of need for Shu Fang.
Shu Fang was very very tired as she slung another pile of coal into //that greedy, industrial machine.//
[[Continue|boiler room]]
<</fadein>>\
<<set $FeedCounter += 1>>\
<<endif>>\
<<elseif $HungerLevel neq "One">>
<<set $Coal -= 5>> \
<<set $Hunger -=5>>\
<<set $BoilerWorkerUnlocked = true>>\
Shu Fang crouched low and filled the front of her overalls with a pile of coal.<br><br>\
\
<<fadein 1s 2s>>\
As she did so, the [[dustigans|https://static.wixstatic.com/media/0d422e_52689f6258e64a72b84e3b38b1865a33~mv2.jpg?fbclid=IwAR2oCcXFfRzw2rDzmWApUiu-7TnJNyuKPpHdRg0Wzbmtcx3kQrmn4oHWwxI]] were bobbing up and down...<br><br>\
<</fadein>>\
\
<<fadein 1s 4s>>\
It seemed they were happy to help her work the boiler...<br><br>\
<</fadein>>\
\
<<fadein 1s 6s>>\
Shu Fang slung the pile of coal into the ever-hungry machine and wiped away the sweat. "I could assign some of the dustigans to help throw coal into the boiler. That would leave relieve me for other machine duties," Shu Fang thought to herself.
[[Continue|boiler room]]
<<set $NewBoilerWorkers to true>>\
<</fadein>>\
<<endif>>\<<set $Cotton = 0>>\
<<replace "#Cotton">>$Cotton<</replace>>\
A tongue of fire reached out from the machine, igniting the cotton the dustigans had worked so hard to collect.\
\
/% Could have the fire and oil burn up the cotton blankets. Makes the society overpopulated. ie. Population more than the popcap. So dustigans start leaving looking for other places to sleep %/ \<<textbox "$genericpword" "Display Text">> <br> <<click "Use Button">>\
<<set $genericpword to $genericpword.toUpperCase()>>\
<<if $genericpword is "CORRECT ANSWER" or $genericpword is "ANOTHER CORRECT ANSWER">><<replace "#result_text">><p>WIN CONDITION</p><</replace>>\
<<elseif $genericpword is "ANOTHER ANSWER">><<replace "#result_text">><p>This Answer also works.</p><</replace>>\
\
<<else>><<replace "#result_text">><p>INCORRECT</p><</replace>>\
\
<<endif>><</click>>\
<p><span id="result_text"></span></p><<set $FixedPipe = true>>\
After lots of jumping around and frantically plugging all of the leaks in the pipe, Shu Fang managed to fix them all.
[[Go back|Check oil tap]] <<if $HeartMachineRead neq true>>\
This was the heart of the machine. Like various organs, cogs spun, flywheels turned and pistons steamed. All throughout the underground the machine was present but here in this very room, Shu Fang felt like she was inside of it, completely at its mercy... and it to her. They were bound to each other. If it wasn't for the machine, Shu Fang would have nowhere to sleep, nowhere to call home. And where would food come from, if not from the mechanical hatch that fed her pieces of scrap bread? And if Shu Fang wasn't here to tend to its wounds, to keep it satiated, who would do that? The machine hummed and drummed coarsely. It told her it needed her and that she needed it.
<<set $HeartMachineRead = true>>\
<<endif>>\
A line of small [[gears]] turned with loud cranking noises. They were like the joints of the machine, throbbing as it worked tirelessly. To its right was an \
<<if $OilForagerUnlocked eq false>>\
[[oil tap|Check oil tap]] \
<<else>>\
oil tap \
<<endif>>\
and to its left, a large [[flywheel|Check flywheel]] turned, powered by the machine's boiler.
In the centre of the room was a set of \
<<if $WireSnippers eq false>>\
[[large cogs|Cog Machine]] \
<<else>>\
large cogs\
<<endif>>\
, with a crank to operate it manually.
In the far corner, underneath an elevated metal drum was [[Shu Fang's makeshift resting space|Shu's Corner]].
[[Go back to the room of halls|The Room of Halls]]<<if tags().includes("showresources")>>\
\
\
<<set $now to new Date(Date.now())>>\
<<set $hour to $now.getHours()>>\
<<set $minute to $now.getMinutes()>>\
<<set $second to $now.getSeconds()>>\
<<set $hour to $hour*3600>>\
<<set $minute to $minute*60>>\
<<set $popstamp2 to $hour + $minute + $second>>\
<<repeat 1s>>\
<<set $now to new Date(Date.now())>>\
<<set $hour to $now.getHours()>>\
<<set $minute to $now.getMinutes()>>\
<<set $second to $now.getSeconds()>>\
<<set $hour to $hour*3600>>\
<<set $minute to $minute*60>>\
<<set $popstamp2 to $hour + $minute + $second>>\
<</repeat>>\
\
<<silently>>\
<<repeat 1s>>\
<<if $Population lte 5>>\ /% This slows down the rate of dustigans arriving, the more dustigans you have %/
<<set $RTimer = random(25,30)>>\
<<elseif $Population gt 5 and $Population lte 20>>\
<<set $RTimer = random(25,30)>>\
<<elseif $Population gt 20 and $Population lte 60>>\
<<set $RTimer = random(45,60)>>\
<<elseif $Population gt 60 and $Population lte 120>>\
<<set $RTimer = random(60,90)>>\
<<elseif $Population gt 400>>\
<<set $RTimer = random(90,120)>>\
<<endif>>\
<<if $popstamp2 > $popstamp1 + $RTimer>>\
<<if $PopCap - $Population eq 1>>
<<script>>
Dialog.setup('!');
Dialog.wiki(Story.get('Dustigan Notification 1').processText());
Dialog.open();
<</script>>
<<elseif ($PopCap - $Population) gte 2 and $PopCap - $Population lte 4>>
<<script>>
Dialog.setup('!');
Dialog.wiki(Story.get('Dustigan Notification 2-4').processText());
Dialog.open();
<</script>>
<<elseif ($PopCap - $Population) gte 5 and $PopCap - $Population lte 10>>
<<script>>
Dialog.setup('!');
Dialog.wiki(Story.get('Dustigan Notification 5-10').processText());
Dialog.open();
<</script>>
<<elseif ($PopCap - $Population) gte 11>>
<<script>>
Dialog.setup('!');
Dialog.wiki(Story.get('Dustigan Notification 11+').processText());
Dialog.open();
<</script>>
<<endif>>\
<<set $popstamp1 to $popstamp2>>\
<<endif>>\
<</repeat>>\
<</silently>>\
\
\
\
<<endif>>\
\
\
\
<<if tags().includes("hideresources")>>\
\
\
<<set $now to new Date(Date.now())>>\
<<set $hour to $now.getHours()>>\
<<set $minute to $now.getMinutes()>>\
<<set $second to $now.getSeconds()>>\
<<set $hour to $hour*3600>>\
<<set $minute to $minute*60>>\
<<set $popstamp2 to $hour + $minute + $second>>\
<<repeat 1s>>\
<<set $now to new Date(Date.now())>>\
<<set $hour to $now.getHours()>>\
<<set $minute to $now.getMinutes()>>\
<<set $second to $now.getSeconds()>>\
<<set $hour to $hour*3600>>\
<<set $minute to $minute*60>>\
<<set $popstamp2 to $hour + $minute + $second>>\
<</repeat>>\
\
<<silently>>
<<repeat 1s>>
<<if $Population lte 5>>\ /% This slows down the rate of dustigans arriving, the more dustigans you have %/
<<set $RTimer = random(25,30)>>\
<<elseif $Population gt 5 and $Population lte 20>>\
<<set $RTimer = random(25,30)>>\
<<elseif $Population gt 20 and $Population lte 60>>\
<<set $RTimer = random(45,60)>>\
<<elseif $Population gt 60 and $Population lte 120>>\
<<set $RTimer = random(60,90)>>\
<<elseif $Population gt 400>>\
<<set $RTimer = random(90,120)>>\
<<endif>>\
<<if $popstamp2 > $popstamp1 + $RTimer>>
<<if $PopCap - $Population eq 1>>
<<set $Population += 1>>
<<set $Sleeping += 1>>
<<elseif ($PopCap - $Population) gte 2 and $PopCap - $Population lte 4>>
<<set $Population += 2>>
<<set $Sleeping += 2>>
<<elseif ($PopCap - $Population) gte 5 and $PopCap - $Population lte 10>>
<<set $Notification = random(1, 4)>>
<<if $Notification eq 1>>
<<set $Population += 2>>
<<set $Sleeping += 2>>
<<elseif $Notification eq 2>>
<<set $Population += 3>>
<<set $Sleeping += 3>>
<<elseif $Notification eq 3>>
<<set $Population += 4>>
<<set $Sleeping += 4>>
<<elseif $Notification eq 4>>
<<set $Population += 5>>
<<set $Sleeping += 5>>
<<endif>>
<<elseif ($PopCap - $Population) gte 11>>
<<set $Notification = random(1, 4)>>
<<if $Notification eq 1>>
<<set $Population += 5>>
<<set $Sleeping += 5>>
<<elseif $Notification eq 2>>
<<set $Population += 6>>
<<set $Sleeping += 6>>
<<elseif $Notification eq 3>>
<<set $Population += 7>>
<<set $Sleeping += 7>>
<<elseif $Notification eq 4>>
<<set $Population += 8>>
<<set $Sleeping += 8>>
<<elseif $Notification eq 4>>
<<set $Population += 9>>
<<set $Sleeping += 9>>
<<elseif $Notification eq 4>>
<<set $Population += 10>>
<<set $Sleeping += 10>>
<<endif>>
<<endif>>
<<set $popstamp1 to $popstamp2>>
<<endif>>
<</repeat>>
<</silently>>\
\
\
\
<<endif>>\
\
\
\<<if tags().includes("showresources")>>\
\
\
<table>\
<tr>\
<td>Machine Hunger:</td>\
<td><span id="Hunger">$Hunger</span></td>\
</tr>\
</table>\
\
<<if $HungerLevel eq "One">>\
<<if $LevelOneComplete eq false>>\
The machine's mouth opened and shut menacingly. It wanted to be fed. \
<<silently>>\
<<repeat 5s>> /% THIS CHANGES THE TICK RATE OF HUNGER CHANGES %/ \
<<set $Hunger to $Hunger>><<replace "#Hunger">>$Hunger<</replace>> \
<</repeat>>\
<</silently>>\
<<else>>\
The machine made loud noises but didn't seem hungry at this point in time. Shu Fang was grateful for that but she suspected that it wouldn't be satisfied for very long.\
<<endif>>\
<<elseif $HungerLevel eq "Two">>\
<<if $LevelTwoComplete eq false>>\
The machine's trap opened and shut viciously. It was fuming in hunger. \
<<if $CottonForagerUnlocked eq false>>\
Shu Fang looked at the once white cotton rags in the boiler room. The dustigans seemed to love them. "I need to find some more cotton fabric," Shu Fang said to herself. "Then I can make more blankets for the dustigans. The white cotton seems to attract them." \
<<endif>>\
<<silently>>\
<<repeat 10s>> /% THIS CHANGES THE TICK RATE OF HUNGER CHANGES %/ \
<<set $Hunger to $Hunger + 1>> /% THIS CHANGES THE AMOUNT HUNGER CHANGES %/ \
<<replace "#Hunger">>$Hunger<</replace>> \
<</repeat>> \
<</silently>> \
<<else>> \
The machine made loud noises but didn't seem hungry at this point in time. \
<<endif>> \
<<elseif $HungerLevel eq "Three">> \
<<if $LevelThreeComplete eq false>> \
The machine was ravenous. And its hunger was continuing to climb. \
<<silently>> \
<<repeat 5s>> /% THIS CHANGES THE TICK RATE OF HUNGER CHANGES %/ \
<<set $Hunger to $Hunger + 1>> /% THIS CHANGES THE AMOUNT HUNGER CHANGES %/ \
<<replace "#Hunger">>$Hunger<</replace>> \
<</repeat>> \
<</silently>> \
<<else>> \
The machine made loud noises but didn't seem hungry at this point in time. \
<<endif>> \
<<elseif $HungerLevel eq "Four">> \
<<if $LevelFourComplete eq false>> \
The machine's furnace was burning hotter than ever. It was so hot however that the pipes and machinery were struggling to keep up. "Water..." it seemed to call out. "More water... more thirst." It needed more water to satiate its boiler. \
<<silently>> \
<<repeat 1s>> /% THIS CHANGES THE TICK RATE OF HUNGER CHANGES %/ \
<<set $Hunger to $Hunger + 0>> /% THIS CHANGES THE AMOUNT HUNGER CHANGES %/ \
<<replace "#Hunger">>$Hunger<</replace>>\
<</repeat>> \
<</silently>> \
<<else>> \
The machine made loud noises but didn't seem hungry at this point in time. \
<<endif>> \
<<endif>>\
\
<<repeat 0.1s>>\
<<if $HungerLevel eq "One" and $LevelOneComplete eq false>>\
<<if $Hunger lte 0>>\
<<goto "First Level Win">>\
<<endif>>\
<<elseif $HungerLevel eq "Two" and $LevelTwoComplete eq false>>\
<<if $Hunger lte 0>>\
<<goto "Second Level Win">>\
<<endif>>\
<<elseif $HungerLevel eq "Four" and $LevelFourComplete eq false>>\
<<if $ThirstSatisfied eq true>>\
<<goto "Fourth Level Win">>\
<<endif>>\
<<elseif $HungerLevel eq "Three" and $LevelThreeComplete eq false>>\
<<if $Hunger lte 0>>\
<<if $SteamFixed eq false>>\
<<script>>UI.alert("Shu Fang and the dustigans satiated the machine's hunger... but only for a brief second. It would never be satisfied until Shu Fang had fixed the pipes which were letting out steam around the chambers. It called out in hunger immediately.");<</script>>\
<<set $HungerLevel = "Three">>\
<<set $Hunger = 60>>\
<<else>>\
<<goto "Third Level Win">>\
<<endif>>\
<<endif>>\
<<endif>>\
<</repeat>>\
\
\
<<if $Hunger gt 0>>\
<<click "Feed the machine">>\
<<if $Coal gte 5>>\
<<goto "Feed the Machine First">>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have enough Coal to feed the machine.");<</script>>\
<<endif>>\
<</click>><br>\
<<endif>>\
\
\
<<if $CottonBlanketUnlocked eq true>>\
<table>\
<tr>\
<td>Cotton Blankets:</td>\
<td><span id="CottonBlanket">$CottonBlanket</span></td>\
</tr>\
</table>\
<<endif>>\
\
\
<<if $CottonBlanketUnlocked eq true>>\
<<click "Make Cotton Blanket">>\
<<if $Cotton gte 20>>\
<<set $Cotton to $Cotton - 20>>\
<<set $CottonBlanket to $CottonBlanket + 1>>\
<<set $PopCap to $PopCap + 5>>\
<<replace "#Cotton">>$Cotton<</replace>>\
<<replace "#CottonBlanket">>$CottonBlanket<</replace>>\
<<replace "#PopCap">>$PopCap<</replace>>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have enough Cotton to make a Cotton Blanket.");<</script>>\
<<endif>>\
<</click>><br>\
<<endif>>\
\
\
\
\
\
\
\
<table>\
<tr>\
<td>Population:</td>\
<td><span id="Population">$Population</span>/<span id="PopCap">$PopCap</span></td>\
</tr>\
</table>\
\
\
<table>\
<tr>\
<td>Lollies:</td>\
<td><span id="Candy">$Candy</span></td>\
</tr>\
</table>\
<<if $OilUnlocked eq true>>\
<table>\
<tr>\
<td>Oil:</td>\
<td><span id="Oil">$Oil</span></td>\
</tr>\
</table>\
<<endif>>\
<table>\
<tr>\
<td>Coal:</td>\
<td><span id="Coal">$Coal</span></td>\
</tr>\
</table>\
<<if $NutsUnlocked eq true>>\
<table>\
<tr>\
<td>Nuts:</td>\
<td><span id="Nuts">$Nuts</span></td>\
</tr>\
</table>\
<<endif>>\
<<if $BoltsUnlocked eq true>>\
<table>\
<tr>\
<td>Bolts:</td>\
<td><span id="Bolts">$Bolts</span></td>\
</tr>\
</table>\
<<endif>>\
\
\
/% INGREDIENT 1. COPY AND PASTE STARTS HERE %/ \
<<if $CottonUnlocked eq true>>\
<table>\
<tr>\
<td>Cotton:</td>\
<td><span id="Cotton">$Cotton</span></td>\
</tr>\
</table>\
<<endif>>\
\
\
/% INGREDIENT 1. COPY AND PASTE ENDS HERE %/ \
\
\
\
<table>\
<tr>\
<td>Waiting Dustigans:</td>\
<td><span id="Dustigan">$Dustigan</span></td>\
</tr>\
</table>\
/% Ingredient 2. Copy and paste starts here %/ \
<table>\
<tr>\
<td>Coal Foragers:</td>\
<td><span id="CoalForager">$CoalForager</span></td>\
<td><<click "+">>\
<<if $Dustigan > 0>>\
<<if $Dustigan + $CandyForager - 1 <= 0>>\
<<script>>UI.alert("Shu Fang needed at least one dustigan foraging Candy.");<</script>>\
<<else>>\
<<set $Dustigan to $Dustigan - 1>>\
<<set $CoalForager to $CoalForager + 1>>\
<<replace "#Dustigan">>$Dustigan<</replace>>\
<<replace "#CoalForager">>$CoalForager<</replace>>\
<<endif>>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have enough free Dustigans.");<</script>>\
<<endif>>\
<<set $random to random(9)>><<if $random is 1>><<audio "dust1" play>><<endif>><<if $random is 2>><<audio "dust2" play>><<endif>><<if $random is 3>><<audio "dust3" play>><<endif>><<if $random is 4>><<audio "dust4" play>><<endif>><<if $random is 5>><<audio "dust5" play>><<endif>><<if $random is 6>><<audio "dust6" play>><<endif>><<if $random is 7>><<audio "dust7" play>><<endif>><<if $random is 8>><<audio "dust8" play>><<endif>><<if $random is 9>><<audio "dust9" play>><<endif>><<if $random is 0>><<audio "dust9" play>><<endif>>\
<</click>>\
</td>\
<td><<click "-">>\
<<if $CoalForager > 0>>\
<<set $CoalForager to $CoalForager - 1>>\
<<set $Dustigan to $Dustigan + 1>>\
<<replace "#CoalForager">>$CoalForager<</replace>>\
<<replace "#Dustigan">>$Dustigan<</replace>>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have any Coal Foragers.");<</script>>\
<<endif>>\
<</click>>\
</td>\
</tr>\
</table>\
/% Ingredient 2. Copy and paste ends here %/ \
/% BOILER WORKER 2 STARTS HERE %/ \
<<if $BoilerWorkerUnlocked eq true>>\
<table>\
<tr>\
<td>Boiler Workers:</td>\
<td><span id="BoilerWorker">$BoilerWorker</span></td>\
<td><<click "+">>\
<<if $Dustigan > 0>>\
<<if $Dustigan + $CandyForager - 1 <= 0>>\
<<script>>UI.alert("Shu Fang needed at least one dustigan foraging Candy.");<</script>>\
<<else>>\
<<set $Dustigan to $Dustigan - 1>>\
<<set $BoilerWorker to $BoilerWorker + 1>>\
<<replace "#Dustigan">>$Dustigan<</replace>>\
<<replace "#BoilerWorker">>$BoilerWorker<</replace>>\
<<endif>>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have enough free dustigans.");<</script>>\
<<endif>>\
<<set $random to random(9)>><<if $random is 1>><<audio "dust1" play>><<endif>><<if $random is 2>><<audio "dust2" play>><<endif>><<if $random is 3>><<audio "dust3" play>><<endif>><<if $random is 4>><<audio "dust4" play>><<endif>><<if $random is 5>><<audio "dust5" play>><<endif>><<if $random is 6>><<audio "dust6" play>><<endif>><<if $random is 7>><<audio "dust7" play>><<endif>><<if $random is 8>><<audio "dust8" play>><<endif>><<if $random is 9>><<audio "dust9" play>><<endif>><<if $random is 0>><<audio "dust9" play>><<endif>>\
<</click>>\
</td>\
<td><<click "-">>\
<<if $BoilerWorker > 0>>\
<<set $BoilerWorker to $BoilerWorker - 1>>\
<<set $Dustigan to $Dustigan + 1>>\
<<replace "#BoilerWorker">>$BoilerWorker<</replace>>\
<<replace "#Dustigan">>$Dustigan<</replace>>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have any Boiler Workers.");<</script>>\
<<endif>>\
<</click>>\
</td>\
</tr>\
</table>\
<<endif>>\
/% BOILER WORKER 2 ENDS HERE %/ \
<<if $CottonForagerUnlocked eq true>>\
<table>\
<tr>\
<td>Cotton Foragers:</td>\
<td><span id="CottonForager">$CottonForager</span></td>\
<td><<click "+">>\
<<if $Dustigan > 0>>\
<<if $Dustigan + $CandyForager - 1 <= 0>>\
<<script>>UI.alert("Shu Fang needed at least one dustigan foraging Candy.");<</script>>\
<<else>>\
<<set $Dustigan to $Dustigan - 1>>\
<<set $CottonForager to $CottonForager + 1>>\
<<replace "#Dustigan">>$Dustigan<</replace>>\
<<replace "#CottonForager">>$CottonForager<</replace>>\
<<endif>>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have enough free dustigans.");<</script>>\
<<endif>>\
<<set $random to random(9)>><<if $random is 1>><<audio "dust1" play>><<endif>><<if $random is 2>><<audio "dust2" play>><<endif>><<if $random is 3>><<audio "dust3" play>><<endif>><<if $random is 4>><<audio "dust4" play>><<endif>><<if $random is 5>><<audio "dust5" play>><<endif>><<if $random is 6>><<audio "dust6" play>><<endif>><<if $random is 7>><<audio "dust7" play>><<endif>><<if $random is 8>><<audio "dust8" play>><<endif>><<if $random is 9>><<audio "dust9" play>><<endif>><<if $random is 0>><<audio "dust9" play>><<endif>>\
<</click>>\
</td>\
<td><<click "-">>\
<<if $CottonForager > 0>>\
<<set $CottonForager to $CottonForager - 1>>\
<<set $Dustigan to $Dustigan + 1>>\
<<replace "#CottonForager">>$CottonForager<</replace>>\
<<replace "#Dustigan">>$Dustigan<</replace>>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have any Cotton Foragers.");<</script>>\
<<endif>>\
<</click>>\
</td>\
</tr>\
</table>\
<<endif>>\
\
\
\
\
<<if $OilForagerUnlocked eq true>>\
<table>\
<tr>\
<td>Oil Foragers:</td>\
<td><span id="OilForager">$OilForager</span></td>\
<td><<click "+">> \
<<if $Dustigan > 0>> \
<<if $Dustigan + $CandyForager - 1 <= 0>> \
<<script>>UI.alert("Shu Fang needed at least one dustigan foraging Candy.");<</script>>\
<<else>>\
<<set $Dustigan to $Dustigan - 1>>\
<<set $OilForager to $OilForager + 1>>\
<<replace "#Dustigan">>$Dustigan<</replace>>\
<<replace "#OilForager">>$OilForager<</replace>>\
<<endif>>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have enough free dustigans.");<</script>>\
<<endif>>\
<<set $random to random(9)>><<if $random is 1>><<audio "dust1" play>><<endif>><<if $random is 2>><<audio "dust2" play>><<endif>><<if $random is 3>><<audio "dust3" play>><<endif>><<if $random is 4>><<audio "dust4" play>><<endif>><<if $random is 5>><<audio "dust5" play>><<endif>><<if $random is 6>><<audio "dust6" play>><<endif>><<if $random is 7>><<audio "dust7" play>><<endif>><<if $random is 8>><<audio "dust8" play>><<endif>><<if $random is 9>><<audio "dust9" play>><<endif>><<if $random is 0>><<audio "dust9" play>><<endif>>\
<</click>>\
</td>\
<td><<click "-">>\
<<if $OilForager > 0>>\
<<set $OilForager to $OilForager - 1>>\
<<set $Dustigan to $Dustigan + 1>>\
<<replace "#OilForager">>$OilForager<</replace>>\
<<replace "#Dustigan">>$Dustigan<</replace>>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have any Oil Foragers.");<</script>>\
<<endif>>\
<</click>>\
</td>\
</tr>\
</table>\
<<endif>>\
<<if $BoltForagerUnlocked eq true>>\
<table>\
<tr>\
<td>Bolt Foragers:</td>\
<td><span id="BoltForager">$BoltForager</span></td>\
<td><<click "+">>\
<<if $Dustigan > 0>>\
<<if $Dustigan + $CandyForager - 1 <= 0>>\
<<script>>UI.alert("Shu Fang needed at least one dustigan foraging lollies.");<</script>>\
<<else>>\
<<set $Dustigan to $Dustigan - 1>>\
<<set $BoltForager to $BoltForager + 1>>\
<<replace "#Dustigan">>$Dustigan<</replace>>\
<<replace "#BoltForager">>$BoltForager<</replace>>\
<<endif>>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have enough free dustigans.");<</script>>\
<<endif>>\
<<set $random to random(9)>><<if $random is 1>><<audio "dust1" play>><<endif>><<if $random is 2>><<audio "dust2" play>><<endif>><<if $random is 3>><<audio "dust3" play>><<endif>><<if $random is 4>><<audio "dust4" play>><<endif>><<if $random is 5>><<audio "dust5" play>><<endif>><<if $random is 6>><<audio "dust6" play>><<endif>><<if $random is 7>><<audio "dust7" play>><<endif>><<if $random is 8>><<audio "dust8" play>><<endif>><<if $random is 9>><<audio "dust9" play>><<endif>><<if $random is 0>><<audio "dust9" play>><<endif>>\
<</click>>\
</td>\
<td><<click "-">>\
<<if $BoltForager > 0>>\
<<set $BoltForager to $BoltForager - 1>>\
<<set $Dustigan to $Dustigan + 1>>\
<<replace "#BoltForager">>$BoltForager<</replace>>\
<<replace "#Dustigan">>$Dustigan<</replace>>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have any Bolt Foragers.");<</script>>\
<<endif>>\
<</click>>\
</td>\
</tr>\
</table>\
<<endif>>\
<<if $NutForagerUnlocked eq true>>\
<table>\
<tr>\
<td>Nut Foragers:</td>\
<td><span id="NutForager">$NutForager</span></td>\
<td><<click "+">>\
<<if $Dustigan > 0>>\
<<if $Dustigan + $CandyForager - 1 <= 0>>\
<<script>>UI.alert("Shu Fang needed at least one dustigan foraging lollies.");<</script>>\
<<else>>\
<<set $Dustigan to $Dustigan - 1>>\
<<set $NutForager to $NutForager + 1>>\
<<replace "#Dustigan">>$Dustigan<</replace>>\
<<replace "#NutForager">>$NutForager<</replace>>\
<<endif>>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have enough free dustigans.");<</script>>\
<<endif>>\
<<set $random to random(9)>><<if $random is 1>><<audio "dust1" play>><<endif>><<if $random is 2>><<audio "dust2" play>><<endif>><<if $random is 3>><<audio "dust3" play>><<endif>><<if $random is 4>><<audio "dust4" play>><<endif>><<if $random is 5>><<audio "dust5" play>><<endif>><<if $random is 6>><<audio "dust6" play>><<endif>><<if $random is 7>><<audio "dust7" play>><<endif>><<if $random is 8>><<audio "dust8" play>><<endif>><<if $random is 9>><<audio "dust9" play>><<endif>><<if $random is 0>><<audio "dust9" play>><<endif>>\
<</click>>\
</td>\
<td><<click "-">>\
<<if $NutForager > 0>>\
<<set $NutForager to $NutForager - 1>>\
<<set $Dustigan to $Dustigan + 1>>\
<<replace "#NutForager">>$NutForager<</replace>>\
<<replace "#Dustigan">>$Dustigan<</replace>>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have any Nut Foragers.");<</script>>\
<<endif>>\
<</click>>\
</td>\
</tr>\
</table>\
<<endif>>\
<table>\
<tr>\
<td>Lolly Foragers:</td>\
<td><span id="CandyForager">$CandyForager</span></td>\
<td><<click "+">>\
<<if $Dustigan > 0>>\
<<set $Dustigan to $Dustigan - 1>>\
<<set $CandyForager to $CandyForager + 1>>\
<<replace "#Dustigan">>$Dustigan<</replace>>\
<<replace "#CandyForager">>$CandyForager<</replace>>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have enough free dustigans.");<</script>>\
<<endif>>\
<<set $random to random(9)>><<if $random is 1>><<audio "dust1" play>><<endif>><<if $random is 2>><<audio "dust2" play>><<endif>><<if $random is 3>><<audio "dust3" play>><<endif>><<if $random is 4>><<audio "dust4" play>><<endif>><<if $random is 5>><<audio "dust5" play>><<endif>><<if $random is 6>><<audio "dust6" play>><<endif>><<if $random is 7>><<audio "dust7" play>><<endif>><<if $random is 8>><<audio "dust8" play>><<endif>><<if $random is 9>><<audio "dust9" play>><<endif>><<if $random is 0>><<audio "dust9" play>><<endif>>\
<</click>>\
</td>\
<td><<click "-">>\
<<if $CandyForager > 0>>\
<<set $CandyForager to $CandyForager - 1>>\
<<set $Dustigan to $Dustigan + 1>>\
<<replace "#CandyForager">>$CandyForager<</replace>>\
<<replace "#Dustigan">>$Dustigan<</replace>>\
<<else>>\
<<script>>UI.alert("Shu Fang didn't have any lolly foragers.");<</script>>\
<<endif>>\
<</click>>\
</td>\
</tr>\
</table>\
<table>\
<tr>\
<td>Sleeping Dustigans:</td>\
<td><span id="Sleeping">$Sleeping</span></td>\
<td><<click "Feed Sleeping Dustigans">>\
<<if $Sleeping > 0>>\
<<if $Candy > 0>>\
<<set $Sleeping to $Sleeping - 1>>\
<<set $Dustigan to $Dustigan + 1>>\
<<set $Candy to $Candy - 1>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<replace "#Dustigan">>$Dustigan<</replace>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<script>>UI.alert("Shu Fang needed lollies to feed sleeping dustigans.");<</script>>\
<<endif>>\
<<else>>\
<<script>>UI.alert("There were no sleeping dustigans to feed");<</script>>\
<<endif>>\
<</click>>\
</td>\
</tr>\
</table>\
\
\
/% TIMER SET FOR SECOND TIMESTAMP %/ \
\
\
<<set $now to new Date(Date.now())>>\
<<set $hour to $now.getHours()>>\
<<set $minute to $now.getMinutes()>>\
<<set $second to $now.getSeconds()>>\
<<set $hour to $hour*3600>>\
<<set $minute to $minute*60>>\
<<set $candystamp2 to $hour + $minute + $second>>\
<<set $coalstamp2 to $hour + $minute + $second>>\
<<set $breadstamp2 to $hour + $minute + $second>>\
<<set $cottonstamp2 to $hour + $minute + $second>>\
<<set $oilstamp2 to $hour + $minute + $second>>\
<<set $boltstamp2 to $hour + $minute + $second>>\
<<set $nutstamp2 to $hour + $minute + $second>>\
<<set $boilerstamp2 to $hour + $minute + $second>>\
<<set $coalcost2 to $hour + $minute + $second>>\
<<set $breadcost2 to $hour + $minute + $second>>\
<<set $cottoncost2 to $hour + $minute + $second>>\
<<set $oilcost2 to $hour + $minute + $second>>\
<<set $boltcost2 to $hour + $minute + $second>>\
<<set $nutcost2 to $hour + $minute + $second>>\
<<set $boilercost2 to $hour + $minute + $second>>\
<<set $coalattrition2 to $hour + $minute + $second>>\
<<set $breadattrition2 to $hour + $minute + $second>>\
<<set $cottonattrition2 to $hour + $minute + $second>>\
<<set $oilattrition2 to $hour + $minute + $second>>\
<<set $boltattrition2 to $hour + $minute + $second>>\
<<set $nutattrition2 to $hour + $minute + $second>>\
<<set $boilerattrition2 to $hour + $minute + $second>>\
<<repeat 1s>>\
<<set $now to new Date(Date.now())>>\
<<set $hour to $now.getHours()>>\
<<set $minute to $now.getMinutes()>>\
<<set $second to $now.getSeconds()>>\
<<set $hour to $hour*3600>>\
<<set $minute to $minute*60>>\
<<set $candystamp2 to $hour + $minute + $second>>\
<<set $coalstamp2 to $hour + $minute + $second>>\
<<set $breadstamp2 to $hour + $minute + $second>>\
<<set $cottonstamp2 to $hour + $minute + $second>>\
<<set $oilstamp2 to $hour + $minute + $second>>\
<<set $boltstamp2 to $hour + $minute + $second>>\
<<set $nutstamp2 to $hour + $minute + $second>>\
<<set $boilerstamp2 to $hour + $minute + $second>>\
<<set $coalcost2 to $hour + $minute + $second>>\
<<set $breadcost2 to $hour + $minute + $second>>\
<<set $cottoncost2 to $hour + $minute + $second>>\
<<set $oilcost2 to $hour + $minute + $second>>\
<<set $boltcost2 to $hour + $minute + $second>>\
<<set $nutcost2 to $hour + $minute + $second>>\
<<set $boilercost2 to $hour + $minute + $second>>\
<<set $coalattrition2 to $hour + $minute + $second>>\
<<set $breadattrition2 to $hour + $minute + $second>>\
<<set $cottonattrition2 to $hour + $minute + $second>>\
<<set $oilattrition2 to $hour + $minute + $second>>\
<<set $boltattrition2 to $hour + $minute + $second>>\
<<set $nutattrition2 to $hour + $minute + $second>>\
<<set $boilerattrition2 to $hour + $minute + $second>>\
<</repeat>>\
\
\
/% Incomes %/ \
\
\
/% Income: Candy from Candy Foragers %/ \
\
<<silently>>\
<<if $candystamp2 >= $candystamp1 + 5>> /% THE NUMBER DENOTES THE AMOUNT OF SECONDS WITH WHICH THIS FUNCTION REPEATS e.g. +5 MEANS IT REPEATS EVERY 5 SECONDS %/ \
<<set $Candy to $Candy + $CandyForager*1>>\
<<set $candystamp1 to $candystamp2>>\
<<repeat 1s>>\
<<if $candystamp2 >= $candystamp1 + 5>>\
<<set $Candy to $Candy + $CandyForager*1>>\
<<set $candystamp1 to $candystamp2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<repeat 1s>>\
<<if $candystamp2 >= $candystamp1 + 5>>\
<<set $Candy to $Candy + $CandyForager*1>>\
<<set $candystamp1 to $candystamp2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>> \
\
\
/% Income: Coal from Coal Foragers %/ \
\
<<silently>>\
<<if $coalstamp2 >= $coalstamp1 + 5>> /% THE NUMBER DENOTES THE AMOUNT OF SECONDS WITH WHICH THIS FUNCTION REPEATS e.g. +5 MEANS IT REPEATS EVERY 5 SECONDS %/ \
<<set $Coal to $Coal + $CoalForager*1>>\
<<set $coalstamp1 to $coalstamp2>>\
<<repeat 1s>>\
<<if $coalstamp2 >= $coalstamp1 + 5>>\
<<set $Coal to $Coal + $CoalForager*1>>\
<<set $coalstamp1 to $coalstamp2>>\
<<replace "#Coal">>$Coal<</replace>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<repeat 1s>>\
<<if $coalstamp2 >= $coalstamp1 + 5>>\
<<set $Coal to $Coal + $CoalForager*1>>\
<<set $coalstamp1 to $coalstamp2>>\
<<replace "#Coal">>$Coal<</replace>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Income: Breadcrumbs from Breadcrumb Foragers %/ \
\
<<silently>>\
<<if $breadstamp2 >= $breadstamp1 + 5>> /% THE NUMBER DENOTES THE AMOUNT OF SECONDS WITH WHICH THIS FUNCTION REPEATS e.g. +5 MEANS IT REPEATS EVERY 5 SECONDS %/ \
<<set $Breadcrumbs to $Breadcrumbs + $BreadForager*4>>\
<<set $breadstamp1 to $breadstamp2>>\
<<repeat 1s>>\
<<if $breadstamp2 >= $breadstamp1 + 5>>\
<<set $Breadcrumbs to $Breadcrumbs + $BreadForager*4>>\
<<set $breadstamp1 to $breadstamp2>>\
<<replace "#Breadcrumbs">>$Breadcrumbs<</replace>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<repeat 1s>>\
<<if $breadstamp2 >= $breadstamp1 + 5>>\
<<set $Breadcrumbs to $Breadcrumbs + $BreadForager*4>>\
<<set $breadstamp1 to $breadstamp2>>\
<<replace "#Breadcrumbs">>$Breadcrumbs<</replace>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Income: Cotton Foragers %/ \
\
<<silently>>\
<<if $cottonstamp2 >= $cottonstamp1 + 5>> /% THE NUMBER DENOTES THE AMOUNT OF SECONDS WITH WHICH THIS FUNCTION REPEATS e.g. +5 MEANS IT REPEATS EVERY 5 SECONDS %/ \
<<set $Cotton to $Cotton + $CottonForager*1>>\
<<set $cottonstamp1 to $cottonstamp2>>\
<<repeat 1s>>\
<<if $cottonstamp2 >= $cottonstamp1 + 5>>\
<<set $Cotton to $Cotton + $CottonForager*1>>\
<<set $cottonstamp1 to $cottonstamp2>>\
<<replace "#Cotton">>$Cotton<</replace>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<repeat 1s>>\
<<if $cottonstamp2 >= $cottonstamp1 + 5>>\
<<set $Cotton to $Cotton + $CottonForager*1>>\
<<set $cottonstamp1 to $cottonstamp2>>\
<<replace "#Cotton">>$Cotton<</replace>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Income: Oil Foragers %/ \
\
<<silently>>\
<<if $oilstamp2 >= $oilstamp1 + 5>> /% THE NUMBER DENOTES THE AMOUNT OF SECONDS WITH WHICH THIS FUNCTION REPEATS e.g. +5 MEANS IT REPEATS EVERY 5 SECONDS %/ \
<<set $Oil to $Oil + $OilForager*1>>\
<<set $oilstamp1 to $oilstamp2>>\
<<repeat 1s>>\
<<if $oilstamp2 >= $oilstamp1 + 5>>\
<<set $Oil to $Oil + $OilForager*1>>\
<<set $oilstamp1 to $oilstamp2>>\
<<replace "#Oil">>$Oil<</replace>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<repeat 1s>>\
<<if $oilstamp2 >= $oilstamp1 + 5>>\
<<set $Oil to $Oil + $OilForager*1>>\
<<set $oilstamp1 to $oilstamp2>>\
<<replace "#Oil">>$Oil<</replace>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Income: Bolt Foragers %/ \
\
<<silently>>\
<<if $boltstamp2 >= $boltstamp1 + 5>> /% THE NUMBER DENOTES THE AMOUNT OF SECONDS WITH WHICH THIS FUNCTION REPEATS e.g. +5 MEANS IT REPEATS EVERY 5 SECONDS %/ \
<<set $Bolts to $Bolts + $BoltForager*2>>\
<<set $boltstamp1 to $boltstamp2>>\
<<repeat 1s>>\
<<if $boltstamp2 >= $boltstamp1 + 5>>\
<<set $Bolts to $Bolts + $BoltForager*2>>\
<<set $boltstamp1 to $boltstamp2>>\
<<replace "#Bolts">>$Bolts<</replace>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<repeat 1s>>\
<<if $boltstamp2 >= $boltstamp1 + 5>>\
<<set $Bolts to $Bolts + $BoltForager*2>>\
<<set $boltstamp1 to $boltstamp2>>\
<<replace "#Bolts">>$Bolts<</replace>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Income: Nut Foragers %/ \
\
<<silently>>\
<<if $nutstamp2 >= $nutstamp1 + 5>> /% THE NUMBER DENOTES THE AMOUNT OF SECONDS WITH WHICH THIS FUNCTION REPEATS e.g. +5 MEANS IT REPEATS EVERY 5 SECONDS %/ \
<<set $Nuts to $Nuts + $NutForager*2>>\
<<set $nutstamp1 to $nutstamp2>>\
<<repeat 1s>>\
<<if $nutstamp2 >= $nutstamp1 + 5>>\
<<set $Nuts to $Nuts + $NutForager*2>>\
<<set $nutstamp1 to $nutstamp2>>\
<<replace "#Nuts">>$Nuts<</replace>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<repeat 1s>>\
<<if $nutstamp2 >= $nutstamp1 + 5>>\
<<set $Nuts to $Nuts + $NutForager*2>>\
<<set $nutstamp1 to $nutstamp2>>\
<<replace "#Nuts">>$Nuts<</replace>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Income: Boiler Workers %/ \
\
<<silently>>\
<<if $boilerstamp2 >= $boilerstamp1 + 5>>\
<<if $Coal > $BoilerWorker>>\
<<set $Coal to $Coal - $BoilerWorker>>\
<<if $Hunger - $BoilerWorker < 0>>\
<<set $Hunger = 0>>\
<<else>>\
<<set $Hunger to $Hunger - $BoilerWorker>>\
<<endif>>\
<<set $boilerstamp1 to $boilerstamp2>>\
<<repeat 1s>>\
<<if $boilerstamp2 >= $boilerstamp1 + 5>>\
<<if $Coal > $BoilerWorker>>\
<<set $Coal to $Coal - $BoilerWorker>>\
<<if $Hunger - $BoilerWorker < 0>>\
<<set $Hunger = 0>>\
<<else>>\
<<set $Hunger to $Hunger - $BoilerWorker>>\
<<endif>>\
<<replace "#Hunger">>$Hunger<</replace>>\
<<replace "#Coal">>$Coal<</replace>>\
<<else>>\
<<set $Hunger to $Hunger - $Coal>>\
<<if $Hunger < 0>>\
<<set $Hunger = 0>>\
<<endif>>\
<<set $Coal to 0>>\
<<replace "#Hunger">>$Hunger<</replace>>\
<<replace "#Coal">>$Coal<</replace>>\
<<endif>>\
<<set $boilerstamp1 to $boilerstamp2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Hunger to $Hunger - $Coal>>\
<<set $Coal to 0>>\
<<set $boilerstamp1 to $boilerstamp2>>\
<<repeat 1s>>\
<<if $boilerstamp2 >= $boilerstamp1 + 5>>\
<<if $Coal > $BoilerWorker>>\
<<set $Coal to $Coal - $BoilerWorker>>\
<<if $Hunger - $BoilerWorker < 0>>\
<<set $Hunger = 0>>\
<<else>>\
<<set $Hunger to $Hunger - $BoilerWorker>>\
<<endif>>\
<<replace "#Hunger">>$Hunger<</replace>>\
<<replace "#Coal">>$Coal<</replace>>\
<<else>>\
<<set $Hunger to $Hunger - $Coal>>\
<<if $Hunger < 0>>\
<<set $Hunger = 0>>\
<<endif>>\
<<set $Coal to 0>>\
<<replace "#Hunger">>$Hunger<</replace>>\
<<replace "#Coal">>$Coal<</replace>>\
<<endif>>\
<<set $boilerstamp1 to $boilerstamp2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $boilerstamp2 >= $boilerstamp1 + 5>>\
<<if $Coal > $BoilerWorker>>\
<<set $Coal to $Coal - $BoilerWorker>>\
<<if $Hunger - $BoilerWorker < 0>>\
<<set $Hunger = 0>>\
<<else>>\
<<set $Hunger to $Hunger - $BoilerWorker>>\
<<endif>>\
<<replace "#Hunger">>$Hunger<</replace>>\
<<replace "#Coal">>$Coal<</replace>>\
<<else>>\
<<set $Hunger to $Hunger - $Coal>>\
<<if $Hunger < 0>>\
<<set $Hunger = 0>>\
<<endif>>\
<<set $Coal to 0>>\
<<replace "#Hunger">>$Hunger<</replace>>\
<<replace "#Coal">>$Coal<</replace>>\
<<endif>>\
<<set $boilerstamp1 to $boilerstamp2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Costs %/ \
\
\
/% Costs: Coal Foragers %/ \
\
<<silently>>\
<<if $coalcost2 > $coalcost1 + 10>>\
<<if $Candy - $CoalForager*1 > 0>>\
<<set $Candy to $Candy - $CoalForager*1>>\
<<set $coalcost1 to $coalcost2>>\
<<repeat 1s>>\
<<if $coalcost2 > $coalcost1 + 10>>\
<<if $Candy - $CoalForager*1 > 0>>\
<<set $Candy to $Candy - $CoalForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $coalcost1 to $coalcost2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Candy = 0>>\
<<set $coalcost1 to $coalcost2>>\
<<repeat 1s>>\
<<if $coalcost2 > $coalcost1 + 10>>\
<<if $Candy - $CoalForager*1 > 0>>\
<<set $Candy to $Candy - $CoalForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $coalcost1 to $coalcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $coalcost2 > $coalcost1 + 10>>\
<<if $Candy - $CoalForager*1 > 0>>\
<<set $Candy to $Candy - $CoalForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $coalcost1 to $coalcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Costs: Bread Foragers %/
\
<<silently>>\
<<if $breadcost2 > $breadcost1 + 5>>\
<<if $Candy - $BreadForager*1 > 0>>\
<<set $Candy to $Candy - $BreadForager*1>>\
<<set $breadcost1 to $breadcost2>>\
<<repeat 1s>>\
<<if $breadcost2 > $breadcost1 + 5>>\
<<if $Candy - $BreadForager*1 > 0>>\
<<set $Candy to $Candy - $BreadForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $breadcost1 to $breadcost2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Candy = 0>>\
<<set $breadcost1 to $breadcost2>>\
<<repeat 1s>>\
<<if $breadcost2 > $breadcost1 + 5>>\
<<if $Candy - $BreadForager*1 > 0>>\
<<set $Candy to $Candy - $BreadForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $breadcost1 to $breadcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $breadcost2 > $breadcost1 + 5>>\
<<if $Candy - $BreadForager*1 > 0>>\
<<set $Candy to $Candy - $BreadForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $breadcost1 to $breadcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Costs: Cotton Foragers %/ \
\
<<silently>>\
<<if $cottoncost2 > $cottoncost1 + 10>>\
<<if $Candy - $CottonForager*1 > 0>>\
<<set $Candy to $Candy - $CottonForager*1>>\
<<set $cottoncost1 to $cottoncost2>>\
<<repeat 1s>>\
<<if $cottoncost2 > $cottoncost1 + 10>>\
<<if $Candy - $CottonForager*1 > 0>>\
<<set $Candy to $Candy - $CottonForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $cottoncost1 to $cottoncost2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Candy = 0>>\
<<set $cottoncost1 to $cottoncost2>>\
<<repeat 1s>>\
<<if $cottoncost2 > $cottoncost1 + 10>>\
<<if $Candy - $CottonForager*1 > 0>>\
<<set $Candy to $Candy - $CottonForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $cottoncost1 to $cottoncost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $cottoncost2 > $cottoncost1 + 10>>\
<<if $Candy - $CottonForager*1 > 0>>\
<<set $Candy to $Candy - $CottonForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $cottoncost1 to $cottoncost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Costs: Oil Foragers %/ \
\
<<silently>>\
<<if $oilcost2 > $oilcost1 + 5>>\
<<if $Candy - $OilForager*2 > 0>>\
<<set $Candy to $Candy - $OilForager*2>>\
<<set $oilcost1 to $oilcost2>>\
<<repeat 1s>>\
<<if $oilcost2 > $oilcost1 + 5>>\
<<if $Candy - $OilForager*2 > 0>>\
<<set $Candy to $Candy - $OilForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $oilcost1 to $oilcost2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Candy = 0>>\
<<set $oilcost1 to $oilcost2>>\
<<repeat 1s>>\
<<if $oilcost2 > $oilcost1 + 5>>\
<<if $Candy - $OilForager*2 > 0>>\
<<set $Candy to $Candy - $OilForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $oilcost1 to $oilcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $oilcost2 > $oilcost1 + 5>>\
<<if $Candy - $OilForager*2 > 0>>\
<<set $Candy to $Candy - $OilForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $oilcost1 to $oilcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Costs: Nut Foragers %/ \
\
<<silently>>\
<<if $nutcost2 > $nutcost1 + 5>>\
<<if $Candy - $NutForager*2 > 0>>\
<<set $Candy to $Candy - $NutForager*2>>\
<<set $nutcost1 to $nutcost2>>\
<<repeat 1s>>\
<<if $nutcost2 > $nutcost1 + 5>>\
<<if $Candy - $NutForager*2 > 0>>\
<<set $Candy to $Candy - $NutForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $nutcost1 to $nutcost2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Candy = 0>>\
<<set $nutcost1 to $nutcost2>>\
<<repeat 1s>>\
<<if $nutcost2 > $nutcost1 + 5>>\
<<if $Candy - $NutForager*2 > 0>>\
<<set $Candy to $Candy - $NutForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $nutcost1 to $nutcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $nutcost2 > $nutcost1 + 5>>\
<<if $Candy - $NutForager*2 > 0>>\
<<set $Candy to $Candy - $NutForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $nutcost1 to $nutcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Costs: Bolt Foragers %/ \
\
<<silently>>\
<<if $boltcost2 > $boltcost1 + 5>>\
<<if $Candy - $BoltForager*2 > 0>>\
<<set $Candy to $Candy - $BoltForager*2>>\
<<set $boltcost1 to $boltcost2>>\
<<repeat 1s>>\
<<if $boltcost2 > $boltcost1 + 5>>\
<<if $Candy - $BoltForager*2 > 0>>\
<<set $Candy to $Candy - $BoltForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $boltcost1 to $boltcost2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Candy = 0>>\
<<set $boltcost1 to $boltcost2>>\
<<repeat 1s>>\
<<if $boltcost2 > $boltcost1 + 5>>\
<<if $Candy - $BoltForager*2 > 0>>\
<<set $Candy to $Candy - $BoltForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $boltcost1 to $boltcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $boltcost2 > $boltcost1 + 5>>\
<<if $Candy - $BoltForager*2 > 0>>\
<<set $Candy to $Candy - $BoltForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $boltcost1 to $boltcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Costs: Boiler Workers %/ \
\
<<silently>>\
<<if $boilercost2 > $boilercost1 + 5>>\
<<if $Candy - $BoilerWorker*1 > 0>>\
<<set $Candy to $Candy - $BoilerWorker*1>>\
<<set $boilercost1 to $boilercost2>>\
<<repeat 1s>>\
<<if $boilercost2 > $boilercost1 + 5>>\
<<if $Candy - $BoilerWorker*1 > 0>>\
<<set $Candy to $Candy - $BoilerWorker*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $boilercost1 to $boilercost2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Candy = 0>>\
<<set $boilercost1 to $boilercost2>>\
<<repeat 1s>>\
<<if $boilercost2 > $boilercost1 + 5>>\
<<if $Candy - $BoilerWorker*1 > 0>>\
<<set $Candy to $Candy - $BoilerWorker*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $boilercost1 to $boilercost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $boilercost2 > $boilercost1 + 5>>\
<<if $Candy - $BoltForager*2 > 0>>\
<<set $Candy to $Candy - $BoilerWorker*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $boilercost1 to $boilercost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>> \
\
\
/% Attrition %/ \
\
\
/% Attrition: Coal Forager %/ \
\
<<silently>>\
<<if $coalattrition2 > $coalattrition1 + 2>>\
<<if $CoalForager > $Candy>>\
<<set $CoalForager to $CoalForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<set $coalattrition1 to $coalattrition2>>\
<<repeat 1s>>\
<<if $coalattrition2 > $coalattrition1 + 2>>\
<<if $CoalForager > $Candy>>\
<<set $CoalForager to $CoalForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#CoalForager">>$CoalForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $coalattrition1 to $coalattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $coalattrition2 > $coalattrition1 + 2>>\
<<if $CoalForager > $Candy>>\
<<set $CoalForager to $CoalForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#CoalForager">>$CoalForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $coalattrition1 to $coalattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Attrition: Bread Forager %/ \
\
<<silently>>\
<<if $breadattrition2 > $breadattrition1 + 2>>\
<<if $BreadForager > $Candy>>\
<<set $BreadForager to $BreadForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<set $breadattrition1 to $breadattrition2>>\
<<repeat 1s>>\
<<if $breadattrition2 > $breadattrition1 + 2>>\
<<if $BreadForager > $Candy>>\
<<set $BreadForager to $BreadForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#BreadForager">>$BreadForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $breadattrition1 to $breadattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $breadattrition2 > $breadattrition1 + 2>>\
<<if $BreadForager > $Candy>>\
<<set $BreadForager to $BreadForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#BreadForager">>$BreadForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $breadattrition1 to $breadattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Attrition: Cotton Forager %/ \
\
<<silently>>\
<<if $cottonattrition2 > $cottonattrition1 + 2>>\
<<if $CottonForager > $Candy>>\
<<set $CottonForager to $CottonForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<set $cottonattrition1 to $cottonattrition2>>\
<<repeat 1s>>\
<<if $cottonattrition2 > $cottonattrition1 + 2>>\
<<if $CottonForager > $Candy>>\
<<set $CottonForager to $CottonForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#CottonForager">>$CottonForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $cottonattrition1 to $cottonattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $cottonattrition2 > $cottonattrition1 + 2>>\
<<if $CottonForager > $Candy>>\
<<set $CottonForager to $CottonForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#CottonForager">>$CottonForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $cottonattrition1 to $cottonattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Attrition: Oil Forager %/ \
\
<<silently>>\
<<if $oilattrition2 > $oilattrition1 + 2>>\
<<if $OilForager*2 > $Candy>>\
<<set $OilForager to $OilForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<set $oilattrition1 to $oilattrition2>>\
<<repeat 1s>>\
<<if $oilattrition2 > $oilattrition1 + 2>>\
<<if $OilForager*2 > $Candy>>\
<<set $OilForager to $OilForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#OilForager">>$OilForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $oilattrition1 to $oilattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $oilattrition2 > $oilattrition1 + 2>>\
<<if $OilForager*2 > $Candy>>\
<<set $OilForager to $OilForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#OilForager">>$OilForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $oilattrition1 to $oilattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Attrition: Bolt Forager %/ \
\
<<silently>>\
<<if $boltattrition2 > $boltattrition1 + 2>>\
<<if $BoltForager*2 > $Candy>>\
<<set $BoltForager to $BoltForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<set $boltattrition1 to $boltattrition2>>\
<<repeat 1s>>\
<<if $boltattrition2 > $boltattrition1 + 2>>\
<<if $BoltForager*2 > $Candy>>\
<<set $BoltForager to $BoltForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#BoltForager">>$BoltForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $boltattrition1 to $boltattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $boltattrition2 > $boltattrition1 + 2>>\
<<if $BoltForager*2 > $Candy>>\
<<set $BoltForager to $BoltForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#BoltForager">>$BoltForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $boltattrition1 to $boltattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Attrition: Nut Forager %/ \
\
<<silently>>\
<<if $nutattrition2 > $nutattrition1 + 2>>\
<<if $NutForager*2 > $Candy>>\
<<set $NutForager to $NutForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<set $nutattrition1 to $nutattrition2>>\
<<repeat 1s>>\
<<if $nutattrition2 > $nutattrition1 + 2>>\
<<if $NutForager*2 > $Candy>>\
<<set $NutForager to $NutForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#NutForager">>$NutForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $nutattrition1 to $nutattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $nutattrition2 > $nutattrition1 + 2>>\
<<if $NutForager*2 > $Candy>>\
<<set $NutForager to $NutForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#NutForager">>$NutForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $nutattrition1 to $nutattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Attrition: Boiler Worker %/ \
\
<<silently>>\
<<if $boilerattrition2 > $boilerattrition1 + 2>>\
<<if $BoilerWorker*2 > $Candy>>\
<<set $BoilerWorker to $BoilerWorker - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<set $boilerattrition1 to $boilerattrition2>>\
<<repeat 1s>>\
<<if $boilerattrition2 > $boilerattrition1 + 2>>\
<<if $BoilerWorker*2 > $Candy>>\
<<set $BoilerWorker to $BoilerWorker - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#BoilerWorker">>$BoilerWorker<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $boilerattrition1 to $boilerattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $boilerattrition2 > $boilerattrition1 + 2>>\
<<if $BoilerWorker*2 > $Candy>>\
<<set $BoilerWorker to $BoilerWorker - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#BoilerWorker">>$BoilerWorker<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $boilerattrition1 to $boilerattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
<<if $NewBoilerWorkers is true>>\
<<timed 1s>> \
<<script>> \
Dialog.setup('!');
Dialog.wiki(Story.get('BoilerWorkerNotification').processText());
Dialog.open();
<</script>> \
<</timed>>\
<<endif>>\
<<if $NewOil is true>>\
<<timed 1s>>\
<<script>>\
Dialog.setup('!');
Dialog.wiki(Story.get('OilWorkerNotification').processText());
Dialog.open();
<</script>>\
<</timed>>\
<<endif>>\
\
\
<<endif>> /% End of Visible Resource System %/
\
\
\
\
\
<<if tags().includes("hideresources")>>
\
\
/% TIMER SET FOR SECOND TIMESTAMP %/ \
\
\
<<set $now to new Date(Date.now())>>\
<<set $hour to $now.getHours()>>\
<<set $minute to $now.getMinutes()>>\
<<set $second to $now.getSeconds()>>\
<<set $hour to $hour*3600>>\
<<set $minute to $minute*60>>\
<<set $candystamp2 to $hour + $minute + $second>>\
<<set $coalstamp2 to $hour + $minute + $second>>\
<<set $breadstamp2 to $hour + $minute + $second>>\
<<set $cottonstamp2 to $hour + $minute + $second>>\
<<set $oilstamp2 to $hour + $minute + $second>>\
<<set $boltstamp2 to $hour + $minute + $second>>\
<<set $nutstamp2 to $hour + $minute + $second>>\
<<set $boilerstamp2 to $hour + $minute + $second>>\
<<set $coalcost2 to $hour + $minute + $second>>\
<<set $breadcost2 to $hour + $minute + $second>>\
<<set $cottoncost2 to $hour + $minute + $second>>\
<<set $oilcost2 to $hour + $minute + $second>>\
<<set $boltcost2 to $hour + $minute + $second>>\
<<set $nutcost2 to $hour + $minute + $second>>\
<<set $boilercost2 to $hour + $minute + $second>>\
<<set $coalattrition2 to $hour + $minute + $second>>\
<<set $breadattrition2 to $hour + $minute + $second>>\
<<set $cottonattrition2 to $hour + $minute + $second>>\
<<set $oilattrition2 to $hour + $minute + $second>>\
<<set $boltattrition2 to $hour + $minute + $second>>\
<<set $nutattrition2 to $hour + $minute + $second>>\
<<set $boilerattrition2 to $hour + $minute + $second>>\
<<repeat 1s>>\
<<set $now to new Date(Date.now())>>\
<<set $hour to $now.getHours()>>\
<<set $minute to $now.getMinutes()>>\
<<set $second to $now.getSeconds()>>\
<<set $hour to $hour*3600>>\
<<set $minute to $minute*60>>\
<<set $candystamp2 to $hour + $minute + $second>>\
<<set $coalstamp2 to $hour + $minute + $second>>\
<<set $breadstamp2 to $hour + $minute + $second>>\
<<set $cottonstamp2 to $hour + $minute + $second>>\
<<set $oilstamp2 to $hour + $minute + $second>>\
<<set $boltstamp2 to $hour + $minute + $second>>\
<<set $nutstamp2 to $hour + $minute + $second>>\
<<set $boilerstamp2 to $hour + $minute + $second>>\
<<set $coalcost2 to $hour + $minute + $second>>\
<<set $breadcost2 to $hour + $minute + $second>>\
<<set $cottoncost2 to $hour + $minute + $second>>\
<<set $oilcost2 to $hour + $minute + $second>>\
<<set $boltcost2 to $hour + $minute + $second>>\
<<set $nutcost2 to $hour + $minute + $second>>\
<<set $boilercost2 to $hour + $minute + $second>>\
<<set $coalattrition2 to $hour + $minute + $second>>\
<<set $breadattrition2 to $hour + $minute + $second>>\
<<set $cottonattrition2 to $hour + $minute + $second>>\
<<set $oilattrition2 to $hour + $minute + $second>>\
<<set $boltattrition2 to $hour + $minute + $second>>\
<<set $nutattrition2 to $hour + $minute + $second>>\
<<set $boilerattrition2 to $hour + $minute + $second>>\
<</repeat>>\
\
\
/% Incomes %/ \
\
\
/% Income: Candy from Candy Foragers %/ \
\
<<silently>>
<<if $candystamp2 >= $candystamp1 + 5>> /% THE NUMBER DENOTES THE AMOUNT OF SECONDS WITH WHICH THIS FUNCTION REPEATS e.g. +5 MEANS IT REPEATS EVERY 5 SECONDS %/ \
<<set $Candy to $Candy + $CandyForager*1>>\
<<set $candystamp1 to $candystamp2>>\
<<repeat 1s>>\
<<if $candystamp2 >= $candystamp1 + 5>>\
<<set $Candy to $Candy + $CandyForager*1>>\
<<set $candystamp1 to $candystamp2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<repeat 1s>>\
<<if $candystamp2 >= $candystamp1 + 5>>\
<<set $Candy to $Candy + $CandyForager*1>>\
<<set $candystamp1 to $candystamp2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>
\
\
/% Income: Coal from Coal Foragers %/ \
\
<<silently>>
<<if $coalstamp2 >= $coalstamp1 + 5>> /% THE NUMBER DENOTES THE AMOUNT OF SECONDS WITH WHICH THIS FUNCTION REPEATS e.g. +5 MEANS IT REPEATS EVERY 5 SECONDS %/ \
<<set $Coal to $Coal + $CoalForager*1>>\
<<set $coalstamp1 to $coalstamp2>>\
<<repeat 1s>>\
<<if $coalstamp2 >= $coalstamp1 + 5>>\
<<set $Coal to $Coal + $CoalForager*1>>\
<<set $coalstamp1 to $coalstamp2>>\
<<replace "#Coal">>$Coal<</replace>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<repeat 1s>>\
<<if $coalstamp2 >= $coalstamp1 + 5>>\
<<set $Coal to $Coal + $CoalForager*1>>\
<<set $coalstamp1 to $coalstamp2>>\
<<replace "#Coal">>$Coal<</replace>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>
\
\
/% Income: Breadcrumbs from Breadcrumb Foragers %/ \
\
<<silently>>
<<if $breadstamp2 >= $breadstamp1 + 5>> /% THE NUMBER DENOTES THE AMOUNT OF SECONDS WITH WHICH THIS FUNCTION REPEATS e.g. +5 MEANS IT REPEATS EVERY 5 SECONDS %/ \
<<set $Breadcrumbs to $Breadcrumbs + $BreadForager*4>>\
<<set $breadstamp1 to $breadstamp2>>\
<<repeat 1s>>\
<<if $breadstamp2 >= $breadstamp1 + 5>>\
<<set $Breadcrumbs to $Breadcrumbs + $BreadForager*4>>\
<<set $breadstamp1 to $breadstamp2>>\
<<replace "#Breadcrumbs">>$Breadcrumbs<</replace>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<repeat 1s>>\
<<if $breadstamp2 >= $breadstamp1 + 5>>\
<<set $Breadcrumbs to $Breadcrumbs + $BreadForager*4>>\
<<set $breadstamp1 to $breadstamp2>>\
<<replace "#Breadcrumbs">>$Breadcrumbs<</replace>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>
\
\
/% Income: Cotton Foragers %/ \
\
<<silently>>
<<if $cottonstamp2 >= $cottonstamp1 + 5>> /% THE NUMBER DENOTES THE AMOUNT OF SECONDS WITH WHICH THIS FUNCTION REPEATS e.g. +5 MEANS IT REPEATS EVERY 5 SECONDS %/ \
<<set $Cotton to $Cotton + $CottonForager*2>>\
<<set $cottonstamp1 to $cottonstamp2>>\
<<repeat 1s>>\
<<if $cottonstamp2 >= $cottonstamp1 + 5>>\
<<set $Cotton to $Cotton + $CottonForager*2>>\
<<set $cottonstamp1 to $cottonstamp2>>\
<<replace "#Cotton">>$Cotton<</replace>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<repeat 1s>>\
<<if $cottonstamp2 >= $cottonstamp1 + 5>>\
<<set $Cotton to $Cotton + $CottonForager*2>>\
<<set $cottonstamp1 to $cottonstamp2>>\
<<replace "#Cotton">>$Cotton<</replace>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>
\
\
/% Income: Oil Foragers %/ \
\
<<silently>>
<<if $oilstamp2 >= $oilstamp1 + 5>> /% THE NUMBER DENOTES THE AMOUNT OF SECONDS WITH WHICH THIS FUNCTION REPEATS e.g. +5 MEANS IT REPEATS EVERY 5 SECONDS %/ \
<<set $Oil to $Oil + $OilForager*1>>\
<<set $oilstamp1 to $oilstamp2>>\
<<repeat 1s>>\
<<if $oilstamp2 >= $oilstamp1 + 5>>\
<<set $Oil to $Oil + $OilForager*1>>\
<<set $oilstamp1 to $oilstamp2>>\
<<replace "#Oil">>$Oil<</replace>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<repeat 1s>>\
<<if $oilstamp2 >= $oilstamp1 + 5>>\
<<set $Oil to $Oil + $OilForager*1>>\
<<set $oilstamp1 to $oilstamp2>>\
<<replace "#Oil">>$Oil<</replace>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>
\
\
/% Income: Bolt Foragers %/ \
\
<<silently>>
<<if $boltstamp2 >= $boltstamp1 + 5>> /% THE NUMBER DENOTES THE AMOUNT OF SECONDS WITH WHICH THIS FUNCTION REPEATS e.g. +5 MEANS IT REPEATS EVERY 5 SECONDS %/ \
<<set $Bolts to $Bolts + $BoltForager*2>>\
<<set $boltstamp1 to $boltstamp2>>\
<<repeat 1s>>\
<<if $boltstamp2 >= $boltstamp1 + 5>>\
<<set $Bolts to $Bolts + $BoltForager*2>>\
<<set $boltstamp1 to $boltstamp2>>\
<<replace "#Bolts">>$Bolts<</replace>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<repeat 1s>>\
<<if $boltstamp2 >= $boltstamp1 + 5>>\
<<set $Bolts to $Bolts + $BoltForager*2>>\
<<set $boltstamp1 to $boltstamp2>>\
<<replace "#Bolts">>$Bolts<</replace>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>
\
\
/% Income: Nut Foragers %/ \
\
<<silently>>
<<if $nutstamp2 >= $nutstamp1 + 5>> /% THE NUMBER DENOTES THE AMOUNT OF SECONDS WITH WHICH THIS FUNCTION REPEATS e.g. +5 MEANS IT REPEATS EVERY 5 SECONDS %/ \
<<set $Nuts to $Nuts + $NutForager*2>>\
<<set $nutstamp1 to $nutstamp2>>\
<<repeat 1s>>\
<<if $nutstamp2 >= $nutstamp1 + 5>>\
<<set $Nuts to $Nuts + $NutForager*2>>\
<<set $nutstamp1 to $nutstamp2>>\
<<replace "#Nuts">>$Nuts<</replace>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<repeat 1s>>\
<<if $nutstamp2 >= $nutstamp1 + 5>>\
<<set $Nuts to $Nuts + $NutForager*2>>\
<<set $nutstamp1 to $nutstamp2>>\
<<replace "#Nuts">>$Nuts<</replace>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>
\
\
/% Income: Boiler Workers %/ \
\
<<silently>>\
<<if $boilerstamp2 >= $boilerstamp1 + 5>>\
<<if $Coal > $BoilerWorker>>\
<<set $Coal to $Coal - $BoilerWorker>>
<<if $Hunger - $BoilerWorker < 0>>\
<<set $Hunger = 0>>\
<<else>>\
<<set $Hunger to $Hunger - $BoilerWorker>>\
<<endif>>\
<<set $boilerstamp1 to $boilerstamp2>>\
<<repeat 1s>>\
<<if $boilerstamp2 >= $boilerstamp1 + 5>>\
<<if $Coal > $BoilerWorker>>\
<<set $Coal to $Coal - $BoilerWorker>>\
<<if $Hunger - $BoilerWorker < 0>>\
<<set $Hunger = 0>>\
<<else>>\
<<set $Hunger to $Hunger - $BoilerWorker>>\
<<endif>>\
<<replace "#Hunger">>$Hunger<</replace>>\
<<replace "#Coal">>$Coal<</replace>>\
<<else>>\
<<set $Hunger to $Hunger - $Coal>>\
<<set $Coal to 0>>\
<<replace "#Hunger">>$Hunger<</replace>>\
<<replace "#Coal">>$Coal<</replace>>\
<<endif>>\
<<set $boilerstamp1 to $boilerstamp2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Hunger to $Hunger - $Coal>>\
<<set $Coal to 0>>\
<<set $boilerstamp1 to $boilerstamp2>>\
<<repeat 1s>>\
<<if $boilerstamp2 >= $boilerstamp1 + 5>>\
<<if $Coal > $BoilerWorker>>\
<<set $Coal to $Coal - $BoilerWorker>>\
<<if $Hunger - $BoilerWorker < 0>>\
<<set $Hunger = 0>>\
<<else>>\
<<set $Hunger to $Hunger - $BoilerWorker>>\
<<endif>>\
<<replace "#Hunger">>$Hunger<</replace>>\
<<replace "#Coal">>$Coal<</replace>>\
<<else>>\
<<set $Hunger to $Hunger - $Coal>>\
<<set $Coal to 0>>\
<<replace "#Hunger">>$Hunger<</replace>>\
<<replace "#Coal">>$Coal<</replace>>\
<<endif>>\
<<set $boilerstamp1 to $boilerstamp2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $boilerstamp2 >= $boilerstamp1 + 5>>\
<<if $Coal > $BoilerWorker>>\
<<set $Coal to $Coal - $BoilerWorker>>\
<<if $Hunger - $BoilerWorker < 0>>\
<<set $Hunger = 0>>\
<<else>>\
<<set $Hunger to $Hunger - $BoilerWorker>>\
<<endif>>\
<<replace "#Hunger">>$Hunger<</replace>>\
<<replace "#Coal">>$Coal<</replace>>\
<<else>>\
<<set $Hunger to $Hunger - $Coal>>\
<<set $Coal to 0>>\
<<replace "#Hunger">>$Hunger<</replace>>\
<<replace "#Coal">>$Coal<</replace>>\
<<endif>>\
<<set $boilerstamp1 to $boilerstamp2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Costs %/ \
\
\
/% Costs: Coal Foragers %/
\
<<silently>>
<<if $coalcost2 > $coalcost1 + 10>>\
<<if $Candy - $CoalForager*1 > 0>>\
<<set $Candy to $Candy - $CoalForager*1>>\
<<set $coalcost1 to $coalcost2>>\
<<repeat 1s>>\
<<if $coalcost2 > $coalcost1 + 10>>\
<<if $Candy - $CoalForager*1 > 0>>\
<<set $Candy to $Candy - $CoalForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $coalcost1 to $coalcost2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Candy = 0>>\
<<set $coalcost1 to $coalcost2>>\
<<repeat 1s>>\
<<if $coalcost2 > $coalcost1 + 10>>\
<<if $Candy - $CoalForager*1 > 0>>\
<<set $Candy to $Candy - $CoalForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $coalcost1 to $coalcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $coalcost2 > $coalcost1 + 10>>\
<<if $Candy - $CoalForager*1 > 0>>\
<<set $Candy to $Candy - $CoalForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $coalcost1 to $coalcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>
\
\
/% Costs: Bread Foragers %/
\
<<silently>>
<<if $breadcost2 > $breadcost1 + 5>>\
<<if $Candy - $BreadForager*1 > 0>>\
<<set $Candy to $Candy - $BreadForager*1>>\
<<set $breadcost1 to $breadcost2>>\
<<repeat 1s>>\
<<if $breadcost2 > $breadcost1 + 5>>\
<<if $Candy - $BreadForager*1 > 0>>\
<<set $Candy to $Candy - $BreadForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $breadcost1 to $breadcost2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Candy = 0>>\
<<set $breadcost1 to $breadcost2>>\
<<repeat 1s>>\
<<if $breadcost2 > $breadcost1 + 5>>\
<<if $Candy - $BreadForager*1 > 0>>\
<<set $Candy to $Candy - $BreadForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $breadcost1 to $breadcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $breadcost2 > $breadcost1 + 5>>\
<<if $Candy - $BreadForager*1 > 0>>\
<<set $Candy to $Candy - $BreadForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $breadcost1 to $breadcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>
\
\
/% Costs: Cotton Foragers %/
\
<<silently>>
<<if $cottoncost2 > $cottoncost1 + 10>>\
<<if $Candy - $CottonForager*1 > 0>>\
<<set $Candy to $Candy - $CottonForager*1>>\
<<set $cottoncost1 to $cottoncost2>>\
<<repeat 1s>>\
<<if $cottoncost2 > $cottoncost1 + 10>>\
<<if $Candy - $CottonForager*1 > 0>>\
<<set $Candy to $Candy - $CottonForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $cottoncost1 to $cottoncost2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Candy = 0>>\
<<set $cottoncost1 to $cottoncost2>>\
<<repeat 1s>>\
<<if $cottoncost2 > $cottoncost1 + 10>>\
<<if $Candy - $CottonForager*1 > 0>>\
<<set $Candy to $Candy - $CottonForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $cottoncost1 to $cottoncost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $cottoncost2 > $cottoncost1 + 10>>\
<<if $Candy - $CottonForager*1 > 0>>\
<<set $Candy to $Candy - $CottonForager*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $cottoncost1 to $cottoncost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>
\
\
/% Costs: Oil Foragers %/
\
<<silently>>
<<if $oilcost2 > $oilcost1 + 5>>\
<<if $Candy - $OilForager*2 > 0>>\
<<set $Candy to $Candy - $OilForager*2>>\
<<set $oilcost1 to $oilcost2>>\
<<repeat 1s>>\
<<if $oilcost2 > $oilcost1 + 5>>\
<<if $Candy - $OilForager*2 > 0>>\
<<set $Candy to $Candy - $OilForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $oilcost1 to $oilcost2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Candy = 0>>\
<<set $oilcost1 to $oilcost2>>\
<<repeat 1s>>\
<<if $oilcost2 > $oilcost1 + 5>>\
<<if $Candy - $OilForager*2 > 0>>\
<<set $Candy to $Candy - $OilForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $oilcost1 to $oilcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $oilcost2 > $oilcost1 + 5>>\
<<if $Candy - $OilForager*2 > 0>>\
<<set $Candy to $Candy - $OilForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $oilcost1 to $oilcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>
\
\
/% Costs: Nut Foragers %/
\
<<silently>>
<<if $nutcost2 > $nutcost1 + 5>>\
<<if $Candy - $NutForager*2 > 0>>\
<<set $Candy to $Candy - $NutForager*2>>\
<<set $nutcost1 to $nutcost2>>\
<<repeat 1s>>\
<<if $nutcost2 > $nutcost1 + 5>>\
<<if $Candy - $NutForager*2 > 0>>\
<<set $Candy to $Candy - $NutForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $nutcost1 to $nutcost2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Candy = 0>>\
<<set $nutcost1 to $nutcost2>>\
<<repeat 1s>>\
<<if $nutcost2 > $nutcost1 + 5>>\
<<if $Candy - $NutForager*2 > 0>>\
<<set $Candy to $Candy - $NutForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $nutcost1 to $nutcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $nutcost2 > $nutcost1 + 5>>\
<<if $Candy - $NutForager*2 > 0>>\
<<set $Candy to $Candy - $NutForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $nutcost1 to $nutcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>
\
\
/% Costs: Bolt Foragers %/
\
<<silently>>
<<if $boltcost2 > $boltcost1 + 5>>\
<<if $Candy - $BoltForager*2 > 0>>\
<<set $Candy to $Candy - $BoltForager*2>>\
<<set $boltcost1 to $boltcost2>>\
<<repeat 1s>>\
<<if $boltcost2 > $boltcost1 + 5>>\
<<if $Candy - $BoltForager*2 > 0>>\
<<set $Candy to $Candy - $BoltForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $boltcost1 to $boltcost2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Candy = 0>>\
<<set $boltcost1 to $boltcost2>>\
<<repeat 1s>>\
<<if $boltcost2 > $boltcost1 + 5>>\
<<if $Candy - $BoltForager*2 > 0>>\
<<set $Candy to $Candy - $BoltForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $boltcost1 to $boltcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $boltcost2 > $boltcost1 + 5>>\
<<if $Candy - $BoltForager*2 > 0>>\
<<set $Candy to $Candy - $BoltForager*2>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $boltcost1 to $boltcost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>
\
\
/% Costs: Boiler Foragers %/
\
<<silently>>
<<if $boilercost2 > $boilercost1 + 5>>\
<<if $Candy - $BoilerWorker*1 > 0>>\
<<set $Candy to $Candy - $BoilerWorker*1>>\
<<set $boilercost1 to $boilercost2>>\
<<repeat 1s>>\
<<if $boilercost2 > $boilercost1 + 5>>\
<<if $Candy - $BoilerWorker*1 > 0>>\
<<set $Candy to $Candy - $BoilerWorker*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $boilercost1 to $boilercost2>>\
<<endif>>\
<</repeat>>\
<<else>>\
<<set $Candy = 0>>\
<<set $boilercost1 to $boilercost2>>\
<<repeat 1s>>\
<<if $boilercost2 > $boilercost1 + 5>>\
<<if $Candy - $BoilerWorker*1 > 0>>\
<<set $Candy to $Candy - $BoilerWorker*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $boilercost1 to $boilercost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $boilercost2 > $boilercost1 + 5>>\
<<if $Candy - $BoltForager*2 > 0>>\
<<set $Candy to $Candy - $BoilerWorker*1>>\
<<replace "#Candy">>$Candy<</replace>>\
<<else>>\
<<set $Candy = 0>>\
<<replace "#Candy">>$Candy<</replace>>\
<<endif>>\
<<set $boilercost1 to $boilercost2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>
\
\
/% Attrition %/
\
\
/% Attrition: Coal Forager %/
\
<<silently>>\
<<if $coalattrition2 > $coalattrition1 + 2>>\
<<if $CoalForager > $Candy>>\
<<set $CoalForager to $CoalForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<set $coalattrition1 to $coalattrition2>>\
<<repeat 1s>>\
<<if $coalattrition2 > $coalattrition1 + 2>>\
<<if $CoalForager > $Candy>>\
<<set $CoalForager to $CoalForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#CoalForager">>$CoalForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $coalattrition1 to $coalattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $coalattrition2 > $coalattrition1 + 2>>\
<<if $CoalForager > $Candy>>\
<<set $CoalForager to $CoalForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#CoalForager">>$CoalForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $coalattrition1 to $coalattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Attrition: Bread Forager %/
\
<<silently>>\
<<if $breadattrition2 > $breadattrition1 + 2>>\
<<if $BreadForager > $Candy>>\
<<set $BreadForager to $BreadForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<set $breadattrition1 to $breadattrition2>>\
<<repeat 1s>>\
<<if $breadattrition2 > $breadattrition1 + 2>>\
<<if $BreadForager > $Candy>>\
<<set $BreadForager to $BreadForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#BreadForager">>$BreadForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $breadattrition1 to $breadattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $breadattrition2 > $breadattrition1 + 2>>\
<<if $BreadForager > $Candy>>\
<<set $BreadForager to $BreadForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#BreadForager">>$BreadForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $breadattrition1 to $breadattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Attrition: Cotton Forager %/
\
<<silently>>\
<<if $cottonattrition2 > $cottonattrition1 + 2>>\
<<if $CottonForager > $Candy>>\
<<set $CottonForager to $CottonForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<set $cottonattrition1 to $cottonattrition2>>\
<<repeat 1s>>\
<<if $cottonattrition2 > $cottonattrition1 + 2>>\
<<if $CottonForager > $Candy>>\
<<set $CottonForager to $CottonForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#CottonForager">>$CottonForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $cottonattrition1 to $cottonattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $cottonattrition2 > $cottonattrition1 + 2>>\
<<if $CottonForager > $Candy>>\
<<set $CottonForager to $CottonForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#CottonForager">>$CottonForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $cottonattrition1 to $cottonattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Attrition: Oil Forager %/
\
<<silently>>\
<<if $oilattrition2 > $oilattrition1 + 2>>\
<<if $OilForager*2 > $Candy>>\
<<set $OilForager to $OilForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<set $oilattrition1 to $oilattrition2>>\
<<repeat 1s>>\
<<if $oilattrition2 > $oilattrition1 + 2>>\
<<if $OilForager*2 > $Candy>>\
<<set $OilForager to $OilForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#OilForager">>$OilForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $oilattrition1 to $oilattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $oilattrition2 > $oilattrition1 + 2>>\
<<if $OilForager*2 > $Candy>>\
<<set $OilForager to $OilForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#OilForager">>$OilForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $oilattrition1 to $oilattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Attrition: Bolt Forager %/
\
<<silently>>\
<<if $boltattrition2 > $boltattrition1 + 2>>\
<<if $BoltForager*2 > $Candy>>\
<<set $BoltForager to $BoltForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<set $boltattrition1 to $boltattrition2>>\
<<repeat 1s>>\
<<if $boltattrition2 > $boltattrition1 + 2>>\
<<if $BoltForager*2 > $Candy>>\
<<set $BoltForager to $BoltForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#BoltForager">>$BoltForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $boltattrition1 to $boltattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $boltattrition2 > $boltattrition1 + 2>>\
<<if $BoltForager*2 > $Candy>>\
<<set $BoltForager to $BoltForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#BoltForager">>$BoltForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $boltattrition1 to $boltattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Attrition: Nut Forager %/
\
<<silently>>\
<<if $nutattrition2 > $nutattrition1 + 2>>\
<<if $NutForager*2 > $Candy>>\
<<set $NutForager to $NutForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<set $nutattrition1 to $nutattrition2>>\
<<repeat 1s>>\
<<if $nutattrition2 > $nutattrition1 + 2>>\
<<if $NutForager*2 > $Candy>>\
<<set $NutForager to $NutForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#NutForager">>$NutForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $nutattrition1 to $nutattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $nutattrition2 > $nutattrition1 + 2>>\
<<if $NutForager*2 > $Candy>>\
<<set $NutForager to $NutForager - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#NutForager">>$NutForager<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $nutattrition1 to $nutattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
/% Attrition: Boiler Worker %/
\
<<silently>>\
<<if $boilerattrition2 > $boilerattrition1 + 2>>\
<<if $BoilerWorker*2 > $Candy>>\
<<set $BoilerWorker to $BoilerWorker - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<set $boilerattrition1 to $boilerattrition2>>\
<<repeat 1s>>\
<<if $boilerattrition2 > $boilerattrition1 + 2>>\
<<if $BoilerWorker*2 > $Candy>>\
<<set $BoilerWorker to $BoilerWorker - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#BoilerWorker">>$BoilerWorker<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $boilerattrition1 to $boilerattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<<else>>\
<<repeat 1s>>\
<<if $boilerattrition2 > $boilerattrition1 + 2>>\
<<if $BoilerWorker*2 > $Candy>>\
<<set $BoilerWorker to $BoilerWorker - 1>>\
<<set $Sleeping to $Sleeping + 1>>\
<<replace "#BoilerWorker">>$BoilerWorker<</replace>>\
<<replace "#Sleeping">>$Sleeping<</replace>>\
<<endif>>\
<<set $boilerattrition1 to $boilerattrition2>>\
<<endif>>\
<</repeat>>\
<<endif>>\
<</silently>>\
\
\
<<endif>>
\
\
\
<<if tags().includes("sequence")>>\
<<silently>>\
<<repeat 1s>>\
<<set $Sequence to $Directions.random()>>\
<</repeat>>\
<</silently>>\
<<timed 7s>>\
<<fadein 2s 2s>>\
<<fadeout 2s 3s>>\
<<set $First to $Sequence>>\
$Sequence
<</fadeout>>\
<</fadein>>\
<</timed>>\
<<timed 10s>>\
<<fadein 2s 2s>>\
<<fadeout 2s 3s>>\
<<set $Second to $Sequence>>\
$Sequence
<</fadeout>>\
<</fadein>>\
<</timed>>\
<<timed 13s>>\
<<fadein 2s 2s>>\
<<fadeout 2s 3s>>\
<<set $Third to $Sequence>>\
$Sequence
<</fadeout>>\
<</fadein>>\
<</timed>>\
<<timed 16s>>\
<<fadein 2s 2s>>\
<<fadeout 2s 3s>>\
<<set $Fourth to $Sequence>>\
$Sequence
<</fadeout>>\
<</fadein>>\
<</timed>>\
<<endif>>\<<if $CottonForagerUnlocked eq true>>\
Cotton Blankets: <span id="CottonBlanket">$CottonBlanket</span> <br>
<<endif>>
An immense flywheel was rotating. There were several pistons attached and Shu Fang couldn't tell if the flywheel was powering the pistons or if the pistons were powering the flywheel. <br>
<<if $CottonUnlocked eq true and $CottonForagerUnlocked eq false>>\
"If only I had more cotton," Shu Fang thought to herself. "I'd be able to make a small blanket for the dustigans."
The dustigans who had moved in had already become quite attached to the now-no-longer white rag in the boiler room. Perhaps they'd forage her more cotton and in return, she could make some more blankets.
White fabric, as we all ought to know, attracts dust and soot more than anything else.
<<set $CottonForagerUnlocked = true>>\
<<elseif $CottonUnlocked eq false and $CottonForagerUnlocked eq false>>\
Whenever Shu Fang had found scraps of cotton, she had woven small pieces of material using the wheel. But she had no cotton left.
<<endif>>\
<<if $CottonForagerUnlocked eq true and $FirstCottonBlanket eq false>>\
<<if $CottonBlanket lt 40>>\
Shu Fang inspected one of the small wheels closely. She could definitely spin a small blanket with this. Shu Fang was very nifty with her hands. The dustigans could help her forage for more cotton to make it.
<<click "Make Cotton Blanket">>\
<<if $Cotton gte 20>>\
<<set $Cotton to $Cotton - 20>>\
<<set $CottonBlanket to $CottonBlanket + 1>>\
<<set $PopCap to $PopCap + 5>>\
<<goto "Spin a cotton blanket">>
<<else>>\
<<script>>UI.alert("Shu Fang did't have enough Cotton to make a Cotton Blanket.");<</script>>\
<<endif>>\
<</click>><br>\
<<else>>\
<<script>>UI.alert("Shu Fang felt like she had made enough cotton blankets. There were so many dustigans, they were rolling over each other.");<</script>>\
<<endif>>\
<<elseif $CottonForagerUnlocked eq true and $FirstCottonBlanket eq true>>\
<<if $CottonBlanket lt 40>>\
The dustigans could help her forage for more cotton.
<<click "Make Cotton Blanket">>\
<<if $Cotton gte 20>>\
<<set $Cotton to $Cotton - 20>>\
<<set $CottonBlanket to $CottonBlanket + 1>>\
<<set $PopCap to $PopCap + 5>>\
<<goto "Spin a cotton blanket">>
<<else>>\
<<script>>UI.alert("Shu Fang didn't have enough Cotton to make a Cotton Blanket.");<</script>>\
<<endif>>\
<</click>><br>\
<<else>>\
<<script>>UI.alert("Shu Fang felt like she had made enough cotton blankets. There were so many dustigans, they were rolling over each other.");<</script>>\
<<endif>>\
<<endif>>\
[[Go back|machine room]] <<if $CottonForagerUnlocked eq true and $FirstCottonBlanket eq false>>\
<<set $FirstCottonBlanket = true>>\
Shu Fang carefully spun the cotton into thread.
<<fadein 1s 1s>>\
Then she worked quickly with the thread between her fingers and the contraptions in front of her.
<</fadein>>\
<<fadein 1s 3s>>\
It was all coming together.
<</fadein>>\
<<fadein 1s 4s>>\
Now she had a small cotton blanket.
[[Continue|Check flywheel]]
<</fadein>>\
<<else>>\
Shu Fang quickly made another miniature cotton blanket. She was getting better every time.
[[Continue|Check flywheel]]
<<endif>>\<<if $FixedPipe eq false>>\
Shu Fang tried opening the valve but nothing came out.
[[Check oil gauge|oil gauge]]
<<elseif $FixedPipe eq true>>\
Shu Fang opened the valve and the oil spilled out into the oil can below.
<<endif>>\
<<if $FixedPipe eq true and $OilForagerUnlocked eq false>>\
<<timed 2s>>\
<<audio "longdust" play>>\
<</timed>>
A lolly carrying dustigan stopped beside Shu Fang, bobbing up and down.
"Perhaps these helpful dustigans can carry oil for me as well," Shu Fang whispered quietly. She didn't mean for the dustigan to hear her, but as if in reply, it bobbed up and down even faster with a small grin.
<<set $OilForagerUnlocked = true>>\
<<set $NewOil to true>>\
<<endif>>\
[[Go back|machine room]]<<if $KokoInside eq true and $CoalPistonOn eq false>>\
Shu Fang pointed at the locked door to her right. There was probably a large quantity of coal inside. Shu Fang didn't have the key but the wood was so rotten, maybe Koko could break it down.
[[Gesture for Koko to ram the door]]
[[Go down|Tunnel]]
<<elseif $KokoInside eq true and $CoalPistonOn eq true>>\
Coal was being pushed onto the conveyor belt. Although the belt wasn't moving, the coal was still rolling slowly but slightly down the tunnel.
[[Go down|Tunnel]]
<<elseif $KokoInside eq false and $OilUnlocked eq true and $OilForager eq false and $FixedPipe eq true>>\
There was a locked door to her right but the wood was rotten and looked as if it were ready to fall apart. There was some loose coal spilling from below. "Perhaps it was used for storing coal," Shu Fang thought to herself.
A trap door lay above her. <<if $ReadCylinders neq true>>A pile of small metal capped cylinders lay at her feet. Shu Fang wasn't sure what they were for but they looked very old and rusty. Everything here seemed as if it had been here for many, many years.<<set $ReadCylinders = true>><<endif>>
[[Knock on the trap door]]
[[Go down|Tunnel]]
<<else>>\
There was a locked door to her right but the wood was rotten and looked as if it were ready to fall apart. There was some loose coal spilling from below. "Perhaps it was used for storing coal," Shu Fang thought to herself.
A trap door lay above her. <<if $ReadCylinders neq true>>A pile of small metal capped cylinders lay at her feet. Shu Fang wasn't sure what they were for but they looked very old and rusty. Everything here seemed as if it had been here for many, many years.<<set $ReadCylinders = true>><<endif>>
Shu Fang heard a voice up above her. "Work at the gatehouse, they said. It'll be fun, they said."
[[Knock on the trap door]]
[[Go down|Tunnel]]\
<<endif>>\<<if $LevelOneComplete neq true>>\
Shu Fang stopped... Perhaps it was not of her own accord but due to the little voice that lived within her. It told her she couldn't leave the boiler room. Not until the machine was fed. And the machine was very hungry.
Perhaps she could assign some dustigans to help her forage for coal and lollies. The dustigans needed a constant supply of lollies and the machine needed coal to eat.
[[Return|boiler room]]
\
<<elseif $ConveyorBeltOn eq true>>\
The conveyor belt was moving coal into the boiler room. Shu Fang could step onto the walkway to climb up if she needed to... but it didn't seem important right now.
[[Go back|boiler room]]
<<elseif $KokoInside eq true>>\
The gaping tunnel was wide enough to fit several people, wide enough to fit both her and Koko. It was on a not-so-steep angle, leading a little bit higher or lower (depending where you started) on every step. It had a walkway on the side and a mechanical track lining the centre, an old conveyor belt that creaked with every step.
There was a small loft up above. Maybe she could reach it with Koko's help.
[[Gesture to the loft]]
[[Go to the top of the tunnel|Top of the Tunnel]]
[[Go to the boiler room|boiler room]]
<<else>>\
The gaping tunnel was wide enough to fit several people. It was on a not-so-steep angle, leading a little bit higher or lower (depending where you started) on every step. The tunnel wasn't a bestial kind of tunnel. It wasn't for wombats or foxes... or badgers for that matter. Instead, it had a mechanical track lining the ground, an old conveyor belt that creaked with every step. Beside it was a walkway.
There was a small loft up above but Shu Fang couldn't reach it.
<<if $GrapplingHook eq true>>\
[[Try to get up with the grappling hook]]
<<endif>>\
[[Go to the top of the tunnel|Top of the Tunnel]]
[[Go to the boiler room|boiler room]]
<<endif>>\
<<fadein 1s 1s>>\
Shu Fang tightened her tool around the clamps and started rotating.
<</fadein>>\
<<fadein 1s 2.5s>>\
Shu Fang oiled the clamps thoroughly.
<</fadein>>\
<<fadein 1s 4s>>\
She tightened all the clamps until the emanating steam was all but a small intermittent puff.
[[Continue|the engine room]]
<</fadein>>\
<<set $SteamEngineRoomFixed = true>>\
<<set $Oil -= 5>>\
\
<<if $SteamHouseControlsFixed eq true>>
<<set $SteamFixed = true>>\
<<endif>>\
/% COULD PUT SPEED CLICKING GAME HERE AS A RACE AGAINST THE STEAM %/
<<fadein 1s 1s>>\
Shu Fang tightened her tool around the clamps and started rotating.
<</fadein>>\
<<fadein 1s 2.5s>>\
Shu Fang wiped sweat from her brow as she tightened the pipes.
<</fadein>>\
<<fadein 1s 4s>>\
She tightened all the clamps until the emanating steam was all but a small intermittent puff.
[[Continue|house controls]]
<</fadein>>\
<<set $SteamHouseControlsFixed = true>>\
\
<<if $SteamEngineRoomFixed eq true>>
<<set $SteamFixed = true>>\
<<endif>>\
/% COULD PUT SPEED CLICKING GAME HERE AS A RACE AGAINST THE STEAM %/<<set $SpecialTool = true>>\
Shu Fang found a special spanner! It was labelled T37. "Wasn't Sam talking about finding a spanner?" Shu Fang thought to herself. "Perhaps I should tell him the code on the spanner."
[[Go back|Start Level Three]]Test of Steam and Level 3 Begins Here
<<set $Dustigan = 149>>
<<set $PopCap = 450>>
<<set $Population = 450>>
<<set $BoilerWorkerUnlocked = true>>
<<set $Candy = 3000>>
<<set $CoalForager = 100>>
<<set $BoilerWorker = 100>>
<<set $CandyForager = 100>>
<<set $OilUnlocked = true>>
<<set $OilForagerUnlocked = true>>
<<set $LevelOneComplete = true>>\
<<set $LevelTwoComplete = true>>\
<<set $LevelThreeComplete = true>>\
<<set $WireSnippers = true>>\
<<set $SpecialTool = true>>\
[[Remember what Ruko said]]<<if $WireMesh eq true>>\
Through the wire mesh, Shu Fang could see all over the mill. There was a silhouetted figure sitting on the edge of the roof playing a tune on some sort of flute.
The figure seemed lonely there on the roof all by itself. Shu Fang felt like this spirit really needed her help. Maybe her new friends Clare and Sam would have some idea what to do or what to say.
<<textbox "$genericpword" "SPIRIT'S NAME">> <br> <<click "Call out">>\
<<set $spiritname to $genericpword.toUpperCase()>>\
<<if $spiritname is "KOKO">><<replace "#result_text">><p>The spirit called Koko's ears flared up. It turned around and looked at Shu Fang with its large downcast eyes.<br><br>[[Smile at Koko]]<br>[[Say hello]]</p><</replace>>\
\
<<else>><<replace "#result_text">><p>Maybe if she called out its name it would respond.</p> <</replace>>\
\
<<endif>><</click>>\
<p><span id="result_text"></span></p>\
\
[[Cut the wire mesh]]
<<else>>\
\
<<if $SatKoko is false>>\
Through the opening, Shu Fang could see all over the mill. There was a silhouetted figure sitting on the edge of the roof playing a tune on some sort of flute.
The figure seemed lonely there on the roof all by itself. Shu Fang felt like this spirit really needed her help. Maybe her new friends Clare and Sam would have some idea what to do or what to say.
<<textbox "$genericpword" "SPIRIT'S NAME">> <br> <<click "Call out">>\
<<set $spiritname to $genericpword.toUpperCase()>>\
<<if $spiritname is "KOKO">><<replace "#result_text">><p>The spirit called Koko's ears flared up. It turned around and looked at Shu Fang with it's large downcast eyes.<br>[[Smile at Koko]]<br>[[Say hello]]</p><</replace>>\
\
<<else>><<replace "#result_text">><p>Maybe if she called out its name it would respond.</p> <</replace>>\
\
<<endif>><</click>>\
<p><span id="result_text"></span></p>\
<<else>>\
<<goto "Sit with Koko">>\
<<endif>>\
<<endif>>\
\
<<click "Crawl back into the vent">>\
<<set $VentCrawl to true>>\
<<goto "Crawl inside">>\
<</click>>\<<if $WireMesh eq true>>\
Shu Fang smiled at the creature.
The spirit called Koko walked over to the mesh and peered through at her. It was much larger than Shu Fang. About the size of a large adult.
<<else>>\
Shu Fang smiled at the creature.
The spirit called Koko walked over to Shu Fang. It was much larger than her. About the size of a large adult.
<<endif>>\
[[Go back down the vent|Crawl inside]]
<<if $WireMesh eq true>>\
[[Put out hand|Mesh in way]]
<<else>>\
[[Put out hand]]
<<endif>>\
<<if $WireSnippers eq true and $WireMesh eq true>>\
[[Cut the wire mesh|Cut the wire mesh after interaction]]
<<endif>>\<<if $WireMesh eq true>>\
Shu Fang said hello to the creature.
The spirit called Koko walked over to the mesh and peered through at her. It was much larger than Shu Fang. About the size of a large adult.
<<else>>\
Shu Fang said hello to the creature.
The spirit called Koko walked over to Shu Fang. It was much larger than her. About the size of a large adult.
<<endif>>\
[[Go back down the vent|Crawl inside]]
<<if $WireMesh eq true>>\
[[Put out hand|Mesh in way]]
<<else>>\
[[Put out hand]]
<<endif>>\
<<if $WireSnippers eq true and $WireMesh eq true>>\
[[Cut the wire mesh|Cut the wire mesh after interaction]]
<<endif>>\"Why do you sit here all alone?" Shu Fang asked Koko. The spirit said nothing but raised the flute to its mouth and started playing a soft tune. A tune of longing and uncertainty, of loneliness and fear. A tune that resonated with Shu Fang much more than she expected. 'Resonated' here means that Shu Fang felt very connected to both the tune and Koko. Like they were very similar, like they were themselves kindred spirits.
[[I'm feeling afraid]]
“Is this all you know?” Shu Fang asked. Koko nodded his head, staring out into the distance.
“We’re the same,” Shu Fang continued. She pointed at the spirit through and then herself. “Koko and Shu Fang.” Koko smiled a small smile. A sad smile.
“I want to see what’s out there. But what if it’s scarier than here?” Shu Fang asked.
Koko nodded in agreement.
Do you mind if I sit here with you?
[[Continue|Sit with Koko]]
<<if $RememberRuko neq true>>\
<<set $SatKoko to true>>\
Koko sat on the edge of the [[roof|https://static.wixstatic.com/media/0d422e_c0f0073444a447bba33c016d9fb8454b~mv2.jpg?fbclid=IwAR0PX0K85pcM_HZ8ZUxB_S31l9zrXojrPhuLLvpOcD49e9kW5ZGRPigFK2Y]]. It felt almost like they were in the clouds, with all the smoke from the mill billowing around them. Shu Fang felt like she could sit here for ever.
[[Point at the spike]]
[[Continue sitting and watching over the mill]]
[[Say something else to Koko]]
<<click "Crawl back into the vent">>\
<<set $VentCrawl to true>>\
<<goto "Crawl inside">>\
<</click>>\
\
<<if $Donut gte 1>>\
<<click "Offer Koko a donut">>\
<span id="Unlock">$Hunger</span>
<<replace "#Feed">>Koko opened his mouth, threw the donut in and swallowed in it one large gulp before licking his lips. His eyes gleamed with desire for another donut but Shu Fang had no more left and she showed her empty hands. Koko's ears drooped in disappointment.<</replace>>
<<set $Donut -= 1>>\
<</click>>
<<endif>>
<span id="Feed"></span>
<<else>>\
Koko stood watching Shu Fang. She needed to find some way to get him underground but he wouldn't be able to fit through the ventilation pipe. She pointed to it, then said "underground." Koko nodded and pointed towards the chimney. There was only a little bit of smoke coming from the top.
Perhaps if she could put out the fire below, Koko would be able to squeeze in through the top of the chimney.
<<click "Crawl back into the vent">>\
<<set $VentCrawl to true>>\
<<goto "Crawl inside">>\
<</click>>\
<<endif>>\One of the small dustigans wriggled out through the cut mesh and sat by the two of them.
[[Daydream]]
[[Let Koko know you're close friends]]<<textbox "$genericpword" "">> <br> <<click "Say something">>\
<<set $spiritphrase to $genericpword.toUpperCase()>>\
<<if $spiritphrase is "REMEMBER WHAT RUKO SAID">><<replace "#result_text">><p><<goto "Remember what Ruko said">></p><</replace>>\
\
<<elseif $spiritphrase is "HOW ARE YOU FEELING" or $spiritphrase is "HOW IS KOKO FEELING" or $spiritphrase is "HOWAREYOUFEELING" or $spiritphrase is "HOWISKOKOFEELING" or $spiritphrase is "WHATAREYOUFEELING" or $spiritphrase is "WHAT ARE YOU FEELING" or $spiritphrase is "HOW ARE YOU FEELING?" or $spiritphrase is "HOW IS KOKO FEELING?" or $spiritphrase is "HOWAREYOUFEELING?" or $spiritphrase is "HOWISKOKOFEELING?" or $spiritphrase is "WHATAREYOUFEELING?" or $spiritphrase is "WHAT ARE YOU FEELING?">><<replace "#result_text">><p>Koko stared at her for a second. He pointed at the roof and then he pointed past the smoke, past the mill.
"You're afraid of leaving?" Shu Fang asked.
Koko nodded slowly. Although he didn't talk, Koko really seemed to understand Shu Fang.</p><</replace>>\
<<else>><<replace "#result_text">><p>Koko didn't seem to understand.</p> <</replace>>\
\
<<endif>><</click>>\
<p><span id="result_text"></span></p>\
[[Continue sitting|Sit with Koko]]Shu Fang thought of the birds up above the mill, flying free in the white [[clouds|Article 67]]. Those birds were free from the darkness of below ground, free from the ever-hungry machine. Below was darkness and fire, below was hell, but it was all she knew... and what if out past the clouds was worse?
[[Continue sitting|Sit with Koko]]'I'm feeling afraid,' Shu Fang said. 'Are you too?"
Koko stared at her for a second. Then he nodded his head. He pointed at the roof and then he pointed past the smoke, past the mill.
"You're afraid of leaving?" Shu Fang asked.
Koko nodded slowly. Although he didn't talk, Koko really seemed to understand Shu Fang.
[[Is this all you know?]]<<if $RememberRuko is false>>\
"Remember what Ruko said," Shu Fang said, not entirely sure why.
Koko closed his large eyes. He was in deep thought for quite some time. Shu Fang just waited patiently.
Then he took a deep breath before exhaling as if letting something go. When his eyes opened they reflected hope. It made Shu Fang feel happy.
Koko gestured at himself and then Shu Fang. Then he drew a circle with his finger, including the both of them. "They would be together from now on," he was trying to say.
[[Continue|Sit with Koko]]
<<set $MetKoko to true>>\
<<set $RememberRuko to true>>\
<<else>>\
Koko still maintained that look of hope he had when you first mentioned Ruko.
"I have to find some way to get him into the machine room," Shu Fang thought to herself.
The mill's chimney led all the way down to the machine. Perhaps Koko could come down through there.
[[Sit with Koko]]
<<endif>>
Shu Fang put out her hand to Koko. It tilted its head curiously.
Koko put its palm against her hand. It was soft and fluffy. There was the same solemn look in its eyes. Shu Fang wondered why it sat up here all by itself.
[[Why do you sit here all alone?]]<<if $VentCrawl is false>>\
<<if $InVent is false>>\
Shu Fang squeezed into the vent.<br>\
After a few moments of crawling, she comes to an intersection.<br><br>\
[[Go left|TURN LEFT]]
[[Go right|TURN RIGHT]]
[[Go back to the engine room|the engine room]]
<<else>>\
Shu Fang was at an intersection.<br><br>\
[[Go left|TURN LEFT]]
[[Go right|TURN RIGHT]]
[[Go back to the engine room|the engine room]]
<<endif>>\
<<else>>\
Shu Fang made it back inside by following the sounds of the machine. She was at an intersection in the vent.<br><br>\
[[Go left|TURN LEFT]]
[[Go right|TURN RIGHT]]
[[Go to the engine room|the engine room]]
<<set $VentCrawl to false>>\
<<endif>>\This is a very spooky area of the vent. Shivers are running all down your spine.<br><br>\
<<click "Press Onwards">>
<<set $Vents to $Vents + 1>>\
<<set $VentChoice to random(1,10)>>\
<<if $Vents >= 3>>\
<<goto "Koko Start">>
<<else>>\
<<if $VentChoice eq 1>>\
<<goto "Vent1">>\
<<endif>>\
<<if $VentChoice eq 2>>\
<<goto "Vent2">>\
<<endif>>\
<<if $VentChoice eq 3>>\
<<goto "Vent3">>\
<<endif>>\
<<if $VentChoice eq 4>>\
<<goto "Vent4">>\
<<endif>>\
<<if $VentChoice eq 5>>\
<<goto "Vent5">>\
<<endif>>\
<<if $VentChoice eq 6>>\
<<goto "Vent6">>\
<<endif>>\
<<if $VentChoice eq 7>>\
<<goto "Vent7">>\
<<endif>>\
<<if $VentChoice eq 8>>\
<<goto "Vent8">>\
<<endif>>\
<<if $VentChoice eq 9>>\
<<goto "Vent9">>\
<<endif>>\
<<if $VentChoice eq 10>>\
<<goto "Vent10">>\
<<endif>>\
<<endif>>\
<</click>>\A lost tribe of Dustigans have claimed this stretch of vent. They regard you with awe.<br><br>\
<<click "Press Onwards">>
<<set $Vents to $Vents + 1>>\
<<set $VentChoice to random(2,10)>>\
<<if $Vents gte 3>>\
<<goto "Koko Start">>
<<else>>\
<<if $VentChoice eq 1>>\
<<goto "Vent1">>\
<<endif>>\
<<if $VentChoice eq 2>>\
<<goto "Vent2">>\
<<endif>>\
<<if $VentChoice eq 3>>\
<<goto "Vent3">>\
<<endif>>\
<<if $VentChoice eq 4>>\
<<goto "Vent4">>\
<<endif>>\
<<if $VentChoice eq 5>>\
<<goto "Vent5">>\
<<endif>>\
<<if $VentChoice eq 6>>\
<<goto "Vent6">>\
<<endif>>\
<<if $VentChoice eq 7>>\
<<goto "Vent7">>\
<<endif>>\
<<if $VentChoice eq 8>>\
<<goto "Vent8">>\
<<endif>>\
<<if $VentChoice eq 9>>\
<<goto "Vent9">>\
<<endif>>\
<<if $VentChoice eq 10>>\
<<goto "Vent10">>\
<<endif>>\
<<endif>>\
<</click>>\There's a possum hiding out in this part of the vent system.<br><br>\
<<click "Press Onwards">>
<<set $Vents to $Vents + 1>>\
<<set $VentChoice to random(1,10)>>\
<<if $Vents >= 3>>\
<<goto "Koko Start">>
<<else>>\
<<if $VentChoice eq 1>>\
<<goto "Vent1">>\
<<endif>>\
<<if $VentChoice eq 2>>\
<<goto "Vent2">>\
<<endif>>\
<<if $VentChoice eq 3>>\
<<goto "Vent3">>\
<<endif>>\
<<if $VentChoice eq 4>>\
<<goto "Vent4">>\
<<endif>>\
<<if $VentChoice eq 5>>\
<<goto "Vent5">>\
<<endif>>\
<<if $VentChoice eq 6>>\
<<goto "Vent6">>\
<<endif>>\
<<if $VentChoice eq 7>>\
<<goto "Vent7">>\
<<endif>>\
<<if $VentChoice eq 8>>\
<<goto "Vent8">>\
<<endif>>\
<<if $VentChoice eq 9>>\
<<goto "Vent9">>\
<<endif>>\
<<if $VentChoice eq 10>>\
<<goto "Vent10">>\
<<endif>>\
<<endif>>\
<</click>>\There's the dead body of Tempo in this section of vent. Tempo of Grave.<br><br>\
<<click "Press Onwards">>
<<set $Vents to $Vents + 1>>\
<<set $VentChoice to random(1,10)>>\
<<if $Vents >= 3>>\
<<goto "Koko Start">>
<<else>>\
<<if $VentChoice eq 1>>\
<<goto "Vent1">>\
<<endif>>\
<<if $VentChoice eq 2>>\
<<goto "Vent2">>\
<<endif>>\
<<if $VentChoice eq 3>>\
<<goto "Vent3">>\
<<endif>>\
<<if $VentChoice eq 4>>\
<<goto "Vent4">>\
<<endif>>\
<<if $VentChoice eq 5>>\
<<goto "Vent5">>\
<<endif>>\
<<if $VentChoice eq 6>>\
<<goto "Vent6">>\
<<endif>>\
<<if $VentChoice eq 7>>\
<<goto "Vent7">>\
<<endif>>\
<<if $VentChoice eq 8>>\
<<goto "Vent8">>\
<<endif>>\
<<if $VentChoice eq 9>>\
<<goto "Vent9">>\
<<endif>>\
<<if $VentChoice eq 10>>\
<<goto "Vent10">>\
<<endif>>\
<<endif>>\
<</click>>\There's a pantsless man wearing the top half of a Santa Claus outfit in this section of vent.<br><br>\
<<click "Press Onwards">>
<<set $Vents to $Vents + 1>>\
<<set $VentChoice to random(1,10)>>\
<<if $Vents >= 3>>\
<<goto "Koko Start">>
<<else>>\
<<if $VentChoice eq 1>>\
<<goto "Vent1">>\
<<endif>>\
<<if $VentChoice eq 2>>\
<<goto "Vent2">>\
<<endif>>\
<<if $VentChoice eq 3>>\
<<goto "Vent3">>\
<<endif>>\
<<if $VentChoice eq 4>>\
<<goto "Vent4">>\
<<endif>>\
<<if $VentChoice eq 5>>\
<<goto "Vent5">>\
<<endif>>\
<<if $VentChoice eq 6>>\
<<goto "Vent6">>\
<<endif>>\
<<if $VentChoice eq 7>>\
<<goto "Vent7">>\
<<endif>>\
<<if $VentChoice eq 8>>\
<<goto "Vent8">>\
<<endif>>\
<<if $VentChoice eq 9>>\
<<goto "Vent9">>\
<<endif>>\
<<if $VentChoice eq 10>>\
<<goto "Vent10">>\
<<endif>>\
<<endif>>\
<</click>>\There's a vent-gremlin here.<br><br>\
<<click "Press Onwards">>
<<set $Vents to $Vents + 1>>\
<<set $VentChoice to random(1,10)>>\
<<if $Vents >= 3>>\
<<goto "Koko Start">>
<<else>>\
<<if $VentChoice eq 1>>\
<<goto "Vent1">>\
<<endif>>\
<<if $VentChoice eq 2>>\
<<goto "Vent2">>\
<<endif>>\
<<if $VentChoice eq 3>>\
<<goto "Vent3">>\
<<endif>>\
<<if $VentChoice eq 4>>\
<<goto "Vent4">>\
<<endif>>\
<<if $VentChoice eq 5>>\
<<goto "Vent5">>\
<<endif>>\
<<if $VentChoice eq 6>>\
<<goto "Vent6">>\
<<endif>>\
<<if $VentChoice eq 7>>\
<<goto "Vent7">>\
<<endif>>\
<<if $VentChoice eq 8>>\
<<goto "Vent8">>\
<<endif>>\
<<if $VentChoice eq 9>>\
<<goto "Vent9">>\
<<endif>>\
<<if $VentChoice eq 10>>\
<<goto "Vent10">>\
<<endif>>\
<<endif>>\
<</click>>\Someone has stashed away a huge amount of pig's milk in this bit of vent. <br><br>\
<<click "Press Onwards">>
<<set $Vents to $Vents + 1>>\
<<set $VentChoice to random(1,10)>>\
<<if $Vents >= 3>>\
<<goto "Koko Start">>
<<else>>\
<<if $VentChoice eq 1>>\
<<goto "Vent1">>\
<<endif>>\
<<if $VentChoice eq 2>>\
<<goto "Vent2">>\
<<endif>>\
<<if $VentChoice eq 3>>\
<<goto "Vent3">>\
<<endif>>\
<<if $VentChoice eq 4>>\
<<goto "Vent4">>\
<<endif>>\
<<if $VentChoice eq 5>>\
<<goto "Vent5">>\
<<endif>>\
<<if $VentChoice eq 6>>\
<<goto "Vent6">>\
<<endif>>\
<<if $VentChoice eq 7>>\
<<goto "Vent7">>\
<<endif>>\
<<if $VentChoice eq 8>>\
<<goto "Vent8">>\
<<endif>>\
<<if $VentChoice eq 9>>\
<<goto "Vent9">>\
<<endif>>\
<<if $VentChoice eq 10>>\
<<goto "Vent10">>\
<<endif>>\
<<endif>>\
<</click>>\This section of vent is sticky. Really sticky.<br><br>\
<<click "Press Onwards">>
<<set $Vents to $Vents + 1>>\
<<set $VentChoice to random(1,10)>>\
<<if $Vents >= 3>>\
<<goto "Koko Start">>
<<else>>\
<<if $VentChoice eq 1>>\
<<goto "Vent1">>\
<<endif>>\
<<if $VentChoice eq 2>>\
<<goto "Vent2">>\
<<endif>>\
<<if $VentChoice eq 3>>\
<<goto "Vent3">>\
<<endif>>\
<<if $VentChoice eq 4>>\
<<goto "Vent4">>\
<<endif>>\
<<if $VentChoice eq 5>>\
<<goto "Vent5">>\
<<endif>>\
<<if $VentChoice eq 6>>\
<<goto "Vent6">>\
<<endif>>\
<<if $VentChoice eq 7>>\
<<goto "Vent7">>\
<<endif>>\
<<if $VentChoice eq 8>>\
<<goto "Vent8">>\
<<endif>>\
<<if $VentChoice eq 9>>\
<<goto "Vent9">>\
<<endif>>\
<<if $VentChoice eq 10>>\
<<goto "Vent10">>\
<<endif>>\
<<endif>>\
<</click>>\This section of vent is surprisingly luxurious. The walls are padded and have tassles. The roof has intricate pargetting.<br><br>\
<<click "Press Onwards">>
<<set $Vents to $Vents + 1>>\
<<set $VentChoice to random(1,10)>>\
<<if $Vents >= 3>>\
<<goto "Koko Start">>
<<else>>\
<<if $VentChoice eq 1>>\
<<goto "Vent1">>\
<<endif>>\
<<if $VentChoice eq 2>>\
<<goto "Vent2">>\
<<endif>>\
<<if $VentChoice eq 3>>\
<<goto "Vent3">>\
<<endif>>\
<<if $VentChoice eq 4>>\
<<goto "Vent4">>\
<<endif>>\
<<if $VentChoice eq 5>>\
<<goto "Vent5">>\
<<endif>>\
<<if $VentChoice eq 6>>\
<<goto "Vent6">>\
<<endif>>\
<<if $VentChoice eq 7>>\
<<goto "Vent7">>\
<<endif>>\
<<if $VentChoice eq 8>>\
<<goto "Vent8">>\
<<endif>>\
<<if $VentChoice eq 9>>\
<<goto "Vent9">>\
<<endif>>\
<<if $VentChoice eq 10>>\
<<goto "Vent10">>\
<<endif>>\
<<endif>>\
<</click>>\This section of vent has a pleasant breeze.<br><br>\
<<click "Press Onwards">>
<<set $Vents to $Vents + 1>>\
<<set $VentChoice to random(1,10)>>\
<<if $Vents >= 3>>\
<<goto "Koko Start">>
<<else>>\
<<if $VentChoice eq 1>>\
<<goto "Vent1">>\
<<endif>>\
<<if $VentChoice eq 2>>\
<<goto "Vent2">>\
<<endif>>\
<<if $VentChoice eq 3>>\
<<goto "Vent3">>\
<<endif>>\
<<if $VentChoice eq 4>>\
<<goto "Vent4">>\
<<endif>>\
<<if $VentChoice eq 5>>\
<<goto "Vent5">>\
<<endif>>\
<<if $VentChoice eq 6>>\
<<goto "Vent6">>\
<<endif>>\
<<if $VentChoice eq 7>>\
<<goto "Vent7">>\
<<endif>>\
<<if $VentChoice eq 8>>\
<<goto "Vent8">>\
<<endif>>\
<<if $VentChoice eq 9>>\
<<goto "Vent9">>\
<<endif>>\
<<if $VentChoice eq 10>>\
<<goto "Vent10">>\
<<endif>>\
<<endif>>\
<</click>>\<<set $InVent to true>>\
The left vent led to a dead end.
[[Go back|Crawl inside]]<<audio "dust0" play>>\
<<set $InVent to true>>\
Ahead were the shifting vents. The vents in the house were well-known to move about and rearrange themselves on a whim. Very cheeky.
Shu Fang came across a little dustigan waving at her. It seemed terribly desperate to tell her something.<br><br>\
[[Give the dustigan your undivided attention|Give the Dustigan your undivided attention]]
[[Back|Crawl inside]] <<timed 2s>>\
<<audio "dust8" play>>\
<</timed>>\
<<fadein 2s 1s>>\
<<fadeout 2s 4s>>\
The little dustigan began what looked like a dance routine. It pointed its arms in various directions.\
<</fadeout>>\
<</fadein>>\
<<fadein 2s 21s>>\
<<click "Forward">>\
<<if $First is "Forward">>\
<<set $FirstClick to true>>\
<<else>>\
<<set $FirstClick to true>>\
<<set $WrongClick to true>>\
<<endif>>\
<<goto "SecondClick">>\
<</click>><br>\
<<click "Left">>\
<<if $First is "Left">>\
<<set $FirstClick to true>>\
<<else>>\
<<set $FirstClick to true>>\
<<set $WrongClick to true>>\
<<endif>>\
<<goto "SecondClick">>\
<</click>><br>\
<<click "Right">>\
<<if $First is "Right">>\
<<set $FirstClick to true>>\
<<else>>\
<<set $FirstClick to true>>\
<<set $WrongClick to true>>\
<<endif>>\
<<goto "SecondClick">>\
<</click>><br>\
<</fadein>>\Shu Fang held her ear to the loosened brick as she heard her new friends Sam and Clare being taken out of the Hole by someone with a very harsh voice. Almost as harsh as the machine she tended to.
And then… they were gone. Shu Fang was all alone once again. It was just her and the machine as it had always been. Well, almost… Shu Fang had the odd memory of life before the machine but it was all slowly fading away.
She jumped up in fright as she felt something wriggle in her pocket.
[[Check pockets]]It was one of the small dustigans. It must have crept into her pocket.
[[Put the dustigan down on the floor]]
[[Pat the dustigan]]
Shu Fang carefully placed the dustigan on the ground. It spun around in circles before shooting off into the darkness.
<<fadein 2s 4s>>\
A loud noise came from the boiler room. Shu Fang instinctively knew what that meant. The machine -- her guardian, her home, her terrible beast. It was hungry once again. She rushed into the boiler room and found her new dustigan friend with a pile of three lollies.
She'd better get to work. Or the machine would rage and rage.<br><br>\
<</fadein>>\
<<fadein 2s 7s>>\
<<click "Go to the boiler room">>\
<<set $now to new Date(Date.now())>>\
<<set $hour to $now.getHours()>>\
<<set $minute to $now.getMinutes()>>\
<<set $second to $now.getSeconds()>>\
<<set $hour to $hour*3600>>\
<<set $minute to $minute*60>>\
<<set $popstamp1 to $hour + $minute + $second>>\
<<goto "boiler room">>\
<</click>>\
<</fadein>>\The dustigan bobbed up and down contentedly.
[[Put the dustigan down on the floor]]
<<if $KokoInside is false>>\
<<if $MetKoko is false>>\
The embers were glowing orange in the small [[hearth|Harvest Endurance Scroll]]. It wasn't a raging fire like the furnace in the boiler room but it was hot nonetheless. This fire was used specifically to heat up water for all the bathtubs in the Master's house. Seemed an awfully large chimney for such a specific task.
[[Go back|The Room of Halls]]
<<else>>\
The embers were glowing orange in the small hearth. It wasn't a raging fire like the furnace in the boiler room but it was hot nonetheless. Shu Fang could hear Koko's flute playing up above the chimney.
<<if $WaterBucket eq true>>\
[[Throw bucket of water on the hearth]]
<<else>>
Shu Fang needed to find some way to put out the fire.
<<endif>>\
[[Go back|The Room of Halls]]
<<endif>>\
<<else>>\
The fire was completely out. Koko went to the hearth and blew. The ash flew into the air. Shu Fang smiled.
[[Go back|The Room of Halls]]
<<endif>>\<<if $CrankFixed eq true and $WireSnippers eq false>>\
[[Investigate the cogs|Fix the Cog Machine]]
<<elseif $CrankFixed eq true and $WireSnippers eq true>>\
The cogs seemed to work just fine.
[[Go back|machine room]]
<<else>>\
<<if $SpecialTool eq false>>\
The manual crank to work the cogs looked broken. Shu Fang needed a special spanner to fix it.<br><br>\
[[Leave the cogs|machine room]]
<<else>>\
The T37 spanner looked like just the tool Shu Fang needed. She didn't know how she had survived without it.<br><br>\
[[Fix the crank]]
[[Leave the cogs|machine room]]
<<endif>>\
<<endif>>\<<set $WireSnippers = true>>\
\
Shu Fang reached in and took out the fluffy dustigan. It was holding the wire snippers to its body with a guilty look in its eye. It looked up at her, then dropped the wire snippers before bounding away through the passage.
Shu Fang picked up the wire snippers and put them on her tool belt.
[[Continue|machine room]] Peering into the glass pipe viewing hole behind the largest cog, she saw a small dustigan asleep with a pair of wire snippers. "Playing hide and seek are we?" Shu Fang asked the dustigan. "Those snippers have been missing for some time."
The little dustigan must have carried the wire snippers into the hole and fallen asleep. But now that the cog had rotated, it was stuck inside.
\
[[Investigate the cogs|https://static.wixstatic.com/media/0d422e_2b157fbff0644b08865a584de799e126~mv2.jpg]].<br><br>\
//It is important to note that Shu Fang was an engineering genius, and utterly remarkable for a child of only six years old. Her immediate reaction was to think logically and work with her hands. In no time, the problem would be solved. The typical reaction from a group of adults however, would be for them to all scratch their heads, go "hmm" and make jokes to each other about how they should have paid attention in maths class. Teamwork at the very least, seemed like a good approach for this kind of situation.//
\
If Shu Fang could turn the small manual hand crank on the machine the exact right amount of times to make the large cog complete half a rotation, then she could align the holes in the large cog with its frame and reach the snippers. And if Shu Fang wasn't able to align the gears right before she reached her hand in, she might get her fingers pinched. "Not too much harm in trying," she said to herself.<br><br>\
Number of Manual Hand Crank Rotations:
\
<<textbox "$turncount" "0">> <br> <<click "Turn">>\
<<set $turncount to $turncount.toUpperCase()>>\
<<if $turncount is "7.5" or $turncount is "SEVEN AND A HALF" or $turncount is "7 AND A HALF" or $turncount is "7 1/2" or $turncount is "7 & 1/2" or $turncount is "7 + 1/2" or $turncount is "7 and 1/2">><<replace "#gearmove">><p>Shu Fang turned the manual hand crank exactly seven and a half times and very slowly [[reached into the access hole.|Access Hole]]</p><</replace>>\
<<elseif $turncount is "15">>\
<p>The big wheel turned one full rotation.
"Hmm, I need it to only turn halfway," mused Shu Fang.</p>\
<<else>><<replace "#gearmove">>\
<<set $cogclues to $cogclues + 1>>\
<<if $cogclues is 1>>\
<p>Shu Fang tried to reach into the hole but it was blocked by the large gear. Shu Fang pulled her arm out and had another think about how many times she needed to turn the crank.</p>\
<<elseif $cogclues is 2>>\
<p>Shu Fang tried to reach into the hole again but it was still blocked by the large gear.
“I should imagine it in my head," she mused. "If I turn the crank one full rotation, maybe I can work out how far each cog will turn. Then I can work out how many rotations of the manual hand crank are needed to make the big cog turn half the way around.”</p>\
<<elseif $cogclues is 3>>\
<p>Shu Fang tried to reach into the hole again but it was still blocked by the large gear.
"Every time I turn the crank one full rotation, eight teeth will rotate around on the first cog. That one rotation will cause the second cog with twenty-four teeth to only turn one third of a rotation."</p>\
<<else>>\
<p>Shu Fang tried to reach into the hole again but it was still blocked by the large gear.
"Maybe the answer isn't a whole number?"</p>\
<<endif>>\
<</replace>>
<<endif>><</click>>\
<p><span id="gearmove"></span></p>\
\
[[Leave the cogs|machine room]] Shu Fang could now assign dustigans to be boiler workers. "That will be very helpful," Shu Fang thought to herself. "They can feed the machine its coal so I can get on with my other tasks."
<<set $NewBoilerWorkers to false>>\<<set $Hunger = 0>>\
<<set $LevelOneComplete = true>>\
<<set $LevelTwoComplete = true>>\
<<set $LevelThreeComplete = true>>\
<<set $Dustigan = 149>>
<<set $PopCap = 450>>
<<set $Population = 450>>
<<set $BoilerWorkerUnlocked = true>>
<<set $Candy = 3000>>
<<set $Oil = 3000>>
<<set $CoalForager = 100>>
<<set $BoilerWorker = 100>>
<<set $CandyForager = 100>>
<<set $OilUnlocked = true>>
<<set $OilForagerUnlocked = true>>
<<set $SpecialTool = true>>\
<<set $WireSnippers = true>>\
<<set $CottonForagerUnlocked = true>>
<<set $Cotton = 50>>
<<set $SatKoko to true>>\
[[Remember what Ruko said]] Shu Fang could now assign dustigans to be oil foragers. "That will be very helpful," Shu Fang thought to herself. "If they collect oil for me, I can get on with my other tasks."
<<set $NewOil to false>>\Sometimes Shu Fang imagined she was at the centre of the sun, shovelling coal into its mouth. If she wasn't there to do her work, then the sun wouldn't be able to shine. And if the sun didn't shine, the plants wouldn't be able to grow. And if the plants didn't grow there would be no food for the animals and the people to eat. Thinking like this made the work easier for Shu Fang but... it was also her curse. For it made the idea of leaving more difficult.
"Yes, I made two new friends," Shu Fang thought to herself. "But if I go, who will look after the machine? Who will tend to its wounds? Who will make sure it doesn't go hungry?"
Shu Fang was caught between a rock and a hard place. "If only I can find a way for the machine to feed itself," Shu Fang thought positively, "maybe <b>then</b> I can leave."
[[Continue|boiler room]]
<<set $ImagineOver = true>>\"I've told him once, I've told him a thousand times. This security booth is too cramped for me to properly carry out my guard duties. It's perverse! If Harold doesn't sort out some cash for me soon maybe I'll refuse to work tonight's shift. Ah, what's the use... This whole mill is about to go under anyway." The man seemed to be talking to himself.
Shu Fang tapped on the trap door.
"Oi! Who's that?" she heard the voice shout from directly above her. It was a husky sounding voice. "I ain't afraid of no ghosts. Bunyips, yowies, huh. There's no such thing." She heard the man sit down.
[[Knock again]]
[[Leave the trap door|Top of the Tunnel]]Shu Fang knocked again, a little bit louder.
"Not an earthquake is it?" The man sounded confused. She could hear him rushing out the door. Then he strode back in and started muttering to himself.
[[Ignore him|Top of the Tunnel]]<<if $WireSnippers eq true>>\
Shu Fang carefully cut the mesh with the wire snippers.
[[Continue|Koko Start]]
<<set $WireMesh = false>>\
<<else>>\
Shu Fang needed to find a pair of wire snippers to cut through the mesh.
[[Continue|Koko Start]]
<<endif>>\
Shu Fang wanted to reach out to the solitary creature but the mesh was too close together. She needed to find some wire snippers to cut through it. It turned away and sat back down on the edge of the roof.
[[Go back down the vent|Crawl inside]]
<<if $WireMesh eq true>>\
[[Cut the wire mesh]]
<<endif>>\<<set $WireSnippers = true>>\
[[Continue|Koko Start]]Koko watched her with wide eyes as she cut through the wire mesh with her wire snippers. Then she pulled the mesh out of the way.
[[Put out hand]] Shu Fang gripped her spanner and tightened the loose bolts. She tested the crank and it seemed to be fixed. She was about to walk away when she heard a rustling sound coming from the largest cog.
[[Investigate|Fix the Cog Machine]]
<<set $CrankFixed = true>>\The water system used a mix of lead and galvanized iron pipework. There was a creaky tap which dripped incessantly so Shu Fang had kept an old bucket underneath it to catch the water.
On the wall was a [[piece of paper|https://static.wixstatic.com/media/0d422e_8a279a02e5ed4b08b1afb9b494d7f5ac~mv2.jpg]] which explained the original valve positions. Shu Fang couldn't read what they said, but she could tell which valve was which by the shape of the letter.<br><br>\
<<if $WaterDiverted eq false>>\
There were three old water tanks and a [[set of valves]] that helped control the flow of water.<br><br>\
<<if $TValve eq 2 and $SatKoko eq true>>\
[[Fill up the bucket]]
<<elseif $TValve eq 2 and $SatKoko eq false>>\
[[Fill up the bucket|Water not needed]]
<<else>>\
[[Fill up the bucket|No water]]
<<endif>>\
[[Go back|house controls]]
<<else>>\
The water was now all diverted to the machine's boiler.
[[Go back|house controls]]
<<endif>>\There were four valves, one labelled S, one labelled, X, one labelled M and one labelled T. Each time a valve was rotated, it would rotate clock-wise by 90 degrees.
Shu Fang knew from experience that by pulling the lever next to the valves, it would reset the valves and therefore reset the water flow to its original setting. And if she wanted water to come out of the tap, she would have to pull the lever first to reset the valves and then rotate the T Valve one time.
<<click "Pull lever">>
<<set $SValve = 1>>\
<<set $XValve = 1>>\
<<set $MValve = 1>>\
<<set $TValve = 1>>\
<<goto "set of valves">>\
<</click>>\
<<if $KokoInside eq true>>\
<<click "Rotate T Valve">>
<<if $TValve eq 1>>\
<<set $TValve = 2>>\
<<elseif $TValve eq 2>>\
<<set $TValve = 3>>\
<<elseif $TValve eq 3>>\
<<set $TValve = 4>>\
<<elseif $TValve eq 4>>\
<<set $TValve = 1>>\
<<endif>>\
<<goto "set of valves">>\
<</click>>\
<<click "Rotate S Valve">>
<<if $SValve eq 1>>\
<<set $SValve = 2>>\
<<elseif $SValve eq 2>>\
<<set $SValve = 3>>\
<<elseif $SValve eq 3>>\
<<set $SValve = 4>>\
<<elseif $SValve eq 4>>\
<<set $SValve = 1>>\
<<endif>>\
<<goto "set of valves">>\
<</click>>\
<<click "Rotate X Valve">>
<<if $XValve eq 1>>\
<<set $XValve = 2>>\
<<elseif $XValve eq 2>>\
<<set $XValve = 3>>\
<<elseif $XValve eq 3>>\
<<set $XValve = 4>>\
<<elseif $XValve eq 4>>\
<<set $XValve = 1>>\
<<endif>>\
<<goto "set of valves">>\
<</click>>\
<<click "Rotate M Valve">>
<<if $MValve eq 1>>\
<<set $MValve = 2>>\
<<elseif $MValve eq 2>>\
<<set $MValve = 3>>\
<<elseif $MValve eq 3>>\
<<set $MValve = 4>>\
<<elseif $MValve eq 4>>\
<<set $MValve = 1>>\
<<endif>>\
<<goto "set of valves">>\
<</click>>\
<<elseif $KokoInside eq false>>\
<<click "Rotate T Valve">>
<<if $TValve eq 1>>\
<<set $TValve = 2>>\
<<elseif $TValve eq 2>>\
<<set $TValve = 3>>\
<<elseif $TValve eq 3>>\
<<set $TValve = 4>>\
<<elseif $TValve eq 4>>\
<<set $TValve = 1>>\
<<endif>>\
<<goto "set of valves">>\
<</click>>\
<<click "Rotate S Valve">>
<<goto "Don't affect valves">>\
<</click>>\
<<click "Rotate X Valve">>
<<goto "Don't affect valves">>\
<</click>>\
<<click "Rotate M Valve">>
<<goto "Don't affect valves">>\
<</click>>\
<<endif>>\
[[Go back|water pump]]
<<repeat 0.1s>>\
<<if $SValve eq 4 and $MValve eq 2 and $XValve eq 1 and $TValve eq 1 and $LevelFourComplete eq false>>
<<goto "Divert water from Master's house to the machine">>\
<<endif>>\
<</repeat>>\<<set $WaterBucket = true>>\
Shu Fang filled up the bucket with water.
[[Continue|water pump]] Shu Fang threw the bucket of water on the fire. It hissed with steam.
She stepped back then waited...
Koko came crashing down the chimney and rolled out onto his back. The smothered wet coals went all over the floor. Luckily Koko didn't seem hurt at all. They both smiled at each other.
[[Continue|Start Level Four]]
<<set $KokoInside = true>>\
Koko crashed through the door, sending rotten wood chips flying. It was dim but Shu Fang could make out coal piled up from floor to ceiling. "This would surely be enough to keep the machine fed," she thought proudly. Koko was beaming. He was clearly quite proud for having broken down the door on first attempt.
Inside the storage room was a lever and a piston larger than Koko. Shu Fang didn't feel like she had a choice... she had to pull the lever.
[[Pull on lever]]
<<set $CoalStorage = true>>\Shu Fang pulled on the lever but it was stuck, probably from having been unused for so long. As she wrestled with it unsuccessfully, her whole body hanging on the lever, Koko grabbed it and with one big jerk, yanked it back. A loud rumbling noise started and then they were pushed out of the room back into the tunnel.
The piston was going back and forth, pushing coal onto the conveyor belt.
[[Continue|Top of the Tunnel]]
<<set $CoalPistonOn = true>>\<<set $LevelOneComplete = true>>\
<<set $LevelTwoComplete = true>>\
<<set $LevelThreeComplete = true>>\
\
Shu Fang heard sounds coming from the boiler room. "Maybe the machine's in trouble?" she said to Koko, quite concerned.
\
<<set $HungerLevel = "Four">>\
<<set $Hunger = 0>>\
[[Run to the boiler room|Level Four]] The machine looked drowsy, like it was finally close to being settled. It steamed and steamed, seeming to pay no attention to Shu Fang. An old memory came to her... it reminded her of someone asleep in a bathhouse. She couldn't remember who anymore.
Now that the machine was temporarily satisfied, Shu Fang had to use this opportunity to figure out the conveyor belt so the machine could be fed without her. If she didn't, she would never be able to leave. She was quite certain.
[[Continue|set of valves]]
<<set $LevelFourComplete = true>>\With a large whooshing sound, Shu Fang heard the water in the pipes changing course. All the tank water was now diverted away from the building above and towards the machine's boiler.
[[Continue|Fourth Level Win]]
<<set $WaterDiverted = true>>\Shu Fang pointed at herself and then up at the loft. Koko nodded, then picked her up, raising her onto it.
In the tiny loft, Shu Fang found the old contraption that controlled the conveyor belt.
[[Investigate the contraption|the contraption]]
[[Go back down|Tunnel]]Shu Fang threw the hook up to the loft, holding onto the rope... but there was nothing for the hook to catch onto. It fell back down.
[[Continue|Tunnel]] Shu Fang placed the first sprocket onto the [[chain of linked sprockets.|https://static.wixstatic.com/media/0d422e_0bd101ea057049a29a2e7695dadf3e07~mv2.png]]
Sprocket 2 Direction:
[[Clockwise|Incorrect Sprocket Turn 3]]
[[Anticlockwise|Incorrect Sprocket Turn 3]]Shu Fang placed the first sprocket onto the [[chain of linked sprockets.|https://static.wixstatic.com/media/0d422e_0bd101ea057049a29a2e7695dadf3e07~mv2.png]]
Sprocket 2 Direction:
[[Clockwise|Correct Sprocket Turn 3]]
[[Anticlockwise|Incorrect Sprocket Turn 3]]Shu Fang placed the second sprocket onto the [[chain of linked sprockets.|https://static.wixstatic.com/media/0d422e_0bd101ea057049a29a2e7695dadf3e07~mv2.png]]
Sprocket 3 Direction:
[[Clockwise|Incorrect Sprocket Turn 4]]
[[Anticlockwise|Incorrect Sprocket Turn 4]]Shu Fang placed the second sprocket onto the [[chain of linked sprockets.|https://static.wixstatic.com/media/0d422e_0bd101ea057049a29a2e7695dadf3e07~mv2.png]]
Sprocket 3 Direction:
[[Clockwise|Incorrect Sprocket Turn 4]]
[[Anticlockwise|Correct Sprocket Turn 4]]Shu Fang placed the third sprocket onto the [[chain of linked sprockets.|https://static.wixstatic.com/media/0d422e_0bd101ea057049a29a2e7695dadf3e07~mv2.png]]
Sprocket 4 Direction:
[[Clockwise|Incorrect Sprocket Turn 5]]
[[Anticlockwise|Incorrect Sprocket Turn 5]]Shu Fang placed the third sprocket onto the [[chain of linked sprockets.|https://static.wixstatic.com/media/0d422e_0bd101ea057049a29a2e7695dadf3e07~mv2.png]]
Sprocket 4 Direction:
[[Clockwise|Incorrect Sprocket Turn 5]]
[[Anticlockwise|Correct Sprocket Turn 5]]Shu Fang placed the fourth sprocket onto the [[chain of linked sprockets.|https://static.wixstatic.com/media/0d422e_0bd101ea057049a29a2e7695dadf3e07~mv2.png]]
Sprocket 5 Direction:
[[Clockwise|Sprocket Failure]]
[[Anticlockwise|Sprocket Failure]]Shu Fang placed the fourth sprocket onto the [[chain of linked sprockets.|https://static.wixstatic.com/media/0d422e_0bd101ea057049a29a2e7695dadf3e07~mv2.png]]
Sprocket 5 Direction:
[[Clockwise|Sprocket Success]]
[[Anticlockwise|Sprocket Failure]]After placing the fifth and final sprocket onto the machine Shu Fang pulled the lever to activate the contraption. The mechanism made a great creaking noise which echoed throughout the tunnel. Then it stopped. The conveyor belt wasn't turning.
[[Continue|Conveyor belt on]]After placing the fifth and final sprocket onto the machine Shu Fang pulled the lever to activate the machine. Quickly spinning up to speed, the contraption's engine started to turn... then suddenly, several of the gears loosened themselves off their threads and fell to the ground. "I can't give up now," Shu Fang said to herself positively. "I'm so close. I'll have to try again."
[[Continue|the contraption]]<<if $CoalPistonOn eq true>>\
The thread holding the sprockets onto the contraption had been designed not to unscrew as they rotated in the right direction, but would untighten themselves and fly off if attached to the machine in the wrong orientation. Which in this case had happened to five of the sprockets that had dislodged from the contraption and landed on the ground nearby. Shu Fang knew that if she didn't attach the sprockets correctly they would unscrew themselves and the contraption wouldn't be able to turn the conveyor belt.
Thankfully Shu Fang noticed that there was a clear spin direction indicated on each of the sprockets, she just had to work out which way each of the five sprockets would be rotating in the [[chain of linked sprockets|https://static.wixstatic.com/media/0d422e_0bd101ea057049a29a2e7695dadf3e07~mv2.png]] and place the sprockets on the machine accordingly.
Sprocket 1 Direction:
[[Clockwise|Incorrect Sprocket Turn 2]]
[[Anticlockwise|Correct Sprocket Turn 2]]
[[Go back down|Tunnel]]
<<else>>\
"I should work out how to get coal from the top of the tunnel first," Shu Fang said to Koko. "If we turn on the conveyor belt first, we might not be able to get up there again." Koko nodded in agreement.
[[Go back down|Tunnel]]
<<endif>>\Shu Fang was so disappointed. "How will the machine be able to feed if this isn't working?" she thought to herself. "I want to leave but I have a responsibility to keep the machine going."
Shu Fang began to cry. As she wiped her eyes, stepping towards the ledge, she tripped over a pipe and tumbled.
Koko quick as a flash, jumped sideways and caught her, landing with his back on the conveyor belt. A large clanging sound started, and the creaking noise started again. Then the conveyor belt started moving downwards. It was working!
It carried them down to the boiler room.
[[Continue|boiler room]]
<<set $ConveyorBeltOn = true>>\<<click "Forward">>\
<<if $Second is "Forward">>\
<<set $SecondClick to true>>\
<<else>>\
<<set $SecondClick to true>>\
<<set $WrongClick to true>>\
<<endif>>\
<<goto "ThirdClick">>\
<</click>><br>\
<<click "Left">>\
<<if $Second is "Left">>\
<<set $SecondClick to true>>\
<<else>>\
<<set $SecondClick to true>>\
<<set $WrongClick to true>>\
<<endif>>\
<<goto "ThirdClick">>\
<</click>><br>\
<<click "Right">>\
<<if $Second is "Right">>\
<<set $SecondClick to true>>\
<<else>>\
<<set $SecondClick to true>>\
<<set $WrongClick to true>>\
<<endif>>\
<<goto "ThirdClick">>\
<</click>><br>\<<click "Forward">>\
<<if $Third is "Forward">>\
<<set $ThirdClick to true>>\
<<else>>\
<<set $ThirdClick to true>>\
<<set $WrongClick to true>>\
<<endif>>\
<<goto "FourthClick">>\
<</click>><br>\
<<click "Left">>\
<<if $Third is "Left">>\
<<set $ThirdClick to true>>\
<<else>>\
<<set $ThirdClick to true>>\
<<set $WrongClick to true>>\
<<endif>>\
<<goto "FourthClick">>\
<</click>><br>\
<<click "Right">>\
<<if $Third is "Right">>\
<<set $ThirdClick to true>>\
<<else>>\
<<set $ThirdClick to true>>\
<<set $WrongClick to true>>\
<<endif>>\
<<goto "FourthClick">>\
<</click>><br>\<<click "Forward">>\
<<if $Fourth is "Forward" and $WrongClick is false>>\
<<goto "Koko Start">>
<<set $FirstClick to false>>\
<<set $SecondClick to false>>\
<<set $ThirdClick to false>>\
<<else>>\
<<script>>UI.alert("Shu Fang got lost in the ever-changing vent system!");<</script>>\
<<set $FirstClick to false>>\
<<set $SecondClick to false>>\
<<set $ThirdClick to false>>\
<<set $WrongClick to false>>\
<<goto "Crawl inside">>\
<<endif>>\
<</click>><br>\
<<click "Left">>\
<<if $Fourth is "Left" and $WrongClick is false>>\
<<goto "Koko Start">>
<<set $FirstClick to false>>\
<<set $SecondClick to false>>\
<<set $ThirdClick to false>>\
<<else>>\
<<script>>UI.alert("Shu Fang got lost in the ever-changing vent system!");<</script>>\
<<set $FirstClick to false>>\
<<set $SecondClick to false>>\
<<set $ThirdClick to false>>\
<<set $WrongClick to false>>\
<<goto "Crawl inside">>\
<<endif>>\
<</click>><br>\
<<click "Right">>\
<<if $Fourth is "Right" and $WrongClick is false>>\
<<goto "Koko Start">>
<<set $FirstClick to false>>\
<<set $SecondClick to false>>\
<<set $ThirdClick to false>>\
<<else>>\
<<script>>UI.alert("Shu Fang got lost in the ever-changing vent system!");<</script>>\
<<set $FirstClick to false>>\
<<set $SecondClick to false>>\
<<set $ThirdClick to false>>\
<<set $WrongClick to false>>\
<<goto "Crawl inside">>\
<<endif>>\
<</click>><br>\Shu Fang folded out the old belt and attached it to the mouth of the machine. The coal was now pouring in automatically.
The machine started to eat and eat... its hunger was so vast. And although it had never been fed so much coal and so much water at such a fast pace, it didn't want Shu Fang to leave. It would have her here in the boiler room forever. It steamed, it rumbled and it raged more than it ever had before.
Pipes burst, water poured onto the ground, and a tank hanging from the ceiling began to dislodge. The entrance to the boiler room was starting to collapse.
[[Continue|Shu unsure]]As the entrance began to crumble, Koko picked up Shu Fang with his mighty arms and jumped through... just in the nick of time.
The entrance to the boiler room was now sealed. Koko would not allow her to stay. He would not allow her to be a slave to both the machine and Cromwell forever.
<<click "Continue">>\
<<goto "Last objective">>\
<</click>>\The final part of the plan was to get the tools from Sam. Sam had said that whenever he was thrown into the Hole, he'd have his pockets emptied. Therefore, he'd lose all the tools he would have obtained up above in the mill for their escape plan. "Since the day is getting late, Sam must have almost all his tools ready by now," Shu Fang thought to herself. "Now we just need to get them down here."
[[Continue|The Room of Halls]]<<if $LevelFourComplete eq false and $HungerLevel eq "Four">>\
Shu Fang had no time to figure out the transport chute system right now. She had to satiate the machine's thirst. It was of utmost responsibility. The chute system would have to wait for now.
[[Go back|house controls]]
<<elseif $ConveyorBeltAttached eq false and $LevelFourComplete eq true>>\
Shu Fang had no time to figure out the transport chute system right now. She had to set up the conveyor belt to feed the machine. It was of utmost responsibility. The chute system would have to wait for now.
[[Go back|house controls]]
<<elseif $KokoInside eq true and $ConveyorBeltAttached eq true>>\
In front of Shu Fang stood a row of large closed hatches, each of them labelled with a designation from M-1 to M-8. Occasionally Shu Fang would see one of the hatches suddenly lurch open and deposit a tool or a replacement part needed to fix the machine, but she had never operated the system herself. It seemed that it could be controlled from a number of locations throughout the mill.
Jutting out from the wall next to her were a series of levers, with labels that each matched one of the closed hatches.
[[Pull lever labelled M-1|M-One]]
[[Pull lever labelled M-2|M-Two]]
[[Pull lever labelled M-3|M-Three]]
[[Pull lever labelled M-4|M-Four]]
[[Pull lever labelled M-5|M-Five]]
[[Pull lever labelled M-6|M-Six]]
[[Pull lever labelled M-7|M-Seven]]
[[Pull lever labelled M-8|M-Eight]]
[[Go back|house controls]]
<<else>>\
"It's probably too early to figure out the transport chute system," Shu Fang thought to herself.
This was one of the final things to do... after Sam had had enough time to gather all the necessary tools. Shu Fang had other things to accomplish first.
[[Go back|house controls]]
<<endif>>\Shu Fang pulled the lever and could hear the rumbling of gears engaging somewhere inside the machine. Below the levers were a series of dials with numbers on them and a switch to activate the machine.
Enter Total Travel Distance:
<<textbox "$fakepasswordentry" "0">> <br> <<click "Flick Switch">>\
<<set $fakepasswordentry to $fakepasswordentry.toUpperCase()>>\
<<if $fakepasswordentry is "impossiblepassword">>\
<<replace "#result_text">><p>I have hacked the game and I should feel bad</p><</replace>>\
<<else>><<replace "#result_text">><p>Shu Fang could hear the transport chute system whir with movement, but when the hatch opened there was nothing inside.</p><</replace>>\
\
<</if>><</click>>\
<p><span id="result_text"></span></p>
[[Transport Chute System]]
Shu Fang pulled the lever and could hear the rumbling of gears engaging somewhere inside the machine. Below the levers were a series of dials with numbers on them and a switch to activate the machine.
Enter Total Travel Distance:
<<textbox "$fakepasswordentry" "0">> <br> <<click "Flick Switch">>\
<<set $fakepasswordentry to $fakepasswordentry.toUpperCase()>>\
<<if $fakepasswordentry is "impossiblepassword">>\
<<replace "#result_text">><p>I have hacked the game and I should feel bad</p><</replace>>\
<<else>><<replace "#result_text">><p>Shu Fang could hear the transport chute system whir with movement, but when the hatch opened there was nothing inside.</p><</replace>>\
\
<</if>><</click>>\
<p><span id="result_text"></span></p>
[[Transport Chute System]]
Shu Fang pulled the lever and could hear the rumbling of gears engaging somewhere inside the machine. Below the levers were a series of dials with numbers on them and a switch to activate the machine.
Enter Total Travel Distance:
<<textbox "$fakepasswordentry" "0">> <br> <<click "Flick Switch">>\
<<set $fakepasswordentry to $fakepasswordentry.toUpperCase()>>\
<<if $fakepasswordentry is "impossiblepassword">>\
<<replace "#result_text">><p>I have hacked the game and I should feel bad</p><</replace>>\
<<else>><<replace "#result_text">><p>Shu Fang could hear the transport chute system whir with movement, but when the hatch opened there was nothing inside.</p><</replace>>\
\
<</if>><</click>>\
<p><span id="result_text"></span></p>
[[Transport Chute System]] Shu Fang pulled the lever and could hear the rumbling of gears engaging somewhere inside the machine. Below the levers were a series of dials with numbers on them and a switch to activate the machine.
Enter Total Travel Distance:
<<textbox "$fakepasswordentry" "0">> <br> <<click "Flick Switch">>\
<<set $fakepasswordentry to $fakepasswordentry.toUpperCase()>>\
<<if $fakepasswordentry is "impossiblepassword">>\
<<replace "#result_text">><p>I have hacked the game and I should feel bad</p><</replace>>\
<<else>><<replace "#result_text">><p>Shu Fang could hear the transport chute system whir with movement, but when the hatch opened there was nothing inside.</p><</replace>>\
\
<</if>><</click>>\
<p><span id="result_text"></span></p>
[[Transport Chute System]]Shu Fang pulled the lever and could hear the rumbling of gears engaging somewhere inside the machine. Below the levers were a series of dials with numbers on them and a switch to activate the machine.
Enter Total Travel Distance:
<<textbox "$fakepasswordentry" "0">> <br> <<click "Flick Switch">>\
<<set $fakepasswordentry to $fakepasswordentry.toUpperCase()>>\
<<if $fakepasswordentry is "impossiblepassword">>\
<<replace "#result_text">><p>I have hacked the game and I should feel bad</p><</replace>>\
<<else>><<replace "#result_text">><p>Shu Fang could hear the transport chute system whir with movement, but when the hatch opened there was nothing inside.</p><</replace>>\
\
<</if>><</click>>\
<p><span id="result_text"></span></p>
[[Transport Chute System]] Shu Fang pulled the lever and could hear the rumbling of gears engaging somewhere inside the machine. Below the levers were a series of dials with numbers on them and a switch to activate the machine.
Enter Total Travel Distance:
<<textbox "$realpasswordentry" "0">> <br> <<click "Flick Switch">>\
<<set $realpasswordentry to $realpasswordentry.toUpperCase()>>\
<<if $realpasswordentry is "36" or $realpasswordentry is "36 SPACES" or $realpasswordentry is "THIRTY SIX" or $realpasswordentry is "36 YARDS" or $realpasswordentry is "36Y">><<replace "#result_text">><p>When the hatch opened there was a [[bag full of tools]] inside. Sam must have been pretty quick!</p><</replace>>\
<<else>><<replace "#result_text">><p>Shu Fang could hear the transport chute system whir with movement, but when the hatch opened there was nothing inside.</p><</replace>>\
\
<</if>><</click>>\
<p><span id="result_text"></span></p>
[[Transport Chute System]] Shu Fang pulled the lever and could hear the rumbling of gears engaging somewhere inside the machine. Below the levers were a series of dials with numbers on them and a switch to activate the machine.
Enter Total Travel Distance:
<<textbox "$fakepasswordentry" "0">> <br> <<click "Flick Switch">>\
<<set $fakepasswordentry to $fakepasswordentry.toUpperCase()>>\
<<if $fakepasswordentry is "impossiblepassword">>\
<<replace "#result_text">><p>I have hacked the game and I should feel bad</p><</replace>>\
<<else>><<replace "#result_text">><p>Shu Fang could hear the transport chute system whir with movement, but when the hatch opened there was nothing inside.</p><</replace>>\
\
<</if>><</click>>\
<p><span id="result_text"></span></p>
[[Transport Chute System]]
Shu Fang pulled the lever and could hear the rumbling of gears engaging somewhere inside the machine. Below the levers were a series of dials with numbers on them and a switch to activate the machine.
Enter Total Travel Distance:
<<textbox "$fakepasswordentry" "0">> <br> <<click "Flick Switch">>\
<<set $fakepasswordentry to $fakepasswordentry.toUpperCase()>>\
<<if $fakepasswordentry is "impossiblepassword">>\
<<replace "#result_text">><p>I have hacked the game and I should feel bad</p><</replace>>\
<<else>><<replace "#result_text">><p>Shu Fang could hear the transport chute system whir with movement, but when the hatch opened there was nothing inside.</p><</replace>>\
\
<</if>><</click>>\
<p><span id="result_text"></span></p>
[[Transport Chute System]] Let me see... The conveyor belt is attached, the water is diverted from the Master's house to the machine, Shu Fang has gotten over her fear of leaving, Koko is by her side... Yes, everything seems to be in order. Perhaps you are ready for Chapter Three!
Very well, I'll give you a clue: the password is three words long, and the third word is SYNCER.
Hang on... Are all your friends up to this part yet?
I can't be certain if you're ahead of the others or not. You know what I'm going to do? I'm going to lock Chapter Three until I'm certain everyone is ready. Nobody is allowed to progress until everyone has the password. If you're ahead, you'll just have to sit there and read something while your friends catch up.
<br><br>\
<<textbox "$book_search" "WHAT'S THE PASSWORD?">><br>\
<<click "Enter password">>
<<set $book_search to $book_search.toUpperCase()>>\
<<if $book_search is "HOOKE LYNNE SYNCER">><<replace "#search_results">><<goto "You Win">><</replace>>\
<<else>><<replace "#search_results">><br>No, that's not the password at all. Stop trying to skip ahead, you'll ruin the story!<br><</replace>><<endif>><</click>>\
<span id="search_results"></span>
[[Go back|Transport Chute System]]Shu Fang gestured to the gauge. Koko nodded, picked her up in his arms and climbed up the wall.
Now she could check the [[mysterious gauge.|https://static.wixstatic.com/media/0d422e_0de1dae87cf74d008b82615c642fc23b~mv2.png]]
[[Go down|the engine room]] The machine's furnace was burning hotter than ever. It was so hot however that the pipes and machinery were struggling to keep up. "Water..." it seemed to call out. "More water... more thirst." It needed more water to satiate its boiler.
[[Continue|boiler room]] Shu Fang collected the tools and waited for the [[performance|https://www.thefloatingworld.com.au/wix-3-narrator-2-vid-chapter-3-link]] to begin...
<<audio "ambience" fadeout>>\No water came out of the tap. Shu Fang would have to try and adjust the valves.
[[Continue|water pump]]Shu Fang had no reason to adjust the valves except for the T valve. She could use it to access water for the tap, but she felt like it would be wrong to mess around with them for no reason.
[[Continue|set of valves]] Shu Fang was dumbstruck. She lay on her knees, not sure what to think. She had done everything in her power to keep the machine fed so it would be okay in her absence. She had sacrificed her childhood catering to its every need and this was how it had responded. It would never let her go.
[[Continue|Koko carries Shu]]
<<set $ConveyorBeltAttached = true>>\Shu Fang pointed behind them and upwards at the spike. It loomed over them, casting its shadow upon the roof. It was the topmost part of the building, where the Master lived. He didn't seem to be there at this current time.
Koko looked up at it and shuddered. Shu Fang was unsure why... but she had the feeling that they were being watched by something and it wasn't human. When she looked up at it she felt... gloomy.
[[Continue sitting|Sit with Koko]]Shu Fang crawled until she came the the T-intersection. It was too cramped to crawl any further.
<<if $Cotton eq 0>>\
Looking down one end of the vent, she could see a stray piece of cotton. It was much too far to reach.<br><br>\
<<endif>>\
<<if $rope gte 1 and $wire gte 1 and $Cotton eq 0>>\
[[Attach the hook to the rope|lasso]]<br>\
<<endif>>\
[[Back|enter the hole]]Shu Fang had no reason to fill up the bucket with water.
[[Go back|water pump]]Sat in the header
<<silently>>
<<repeat 100s>>
<<if $Cotton gte 50>>\
<<timed 5s>>
<<script>>
Dialog.setup('!');
Dialog.wiki(Story.get('Random Notification').processText());
Dialog.open();
<</script>>
<</timed>>
<<endif>>
<</repeat>>
<</silently>>\
<<silently>>
<<repeat 100s>>
<<if $Cotton gte 50>>\
<<timed 5s>>
<<set $Cotton = 0>>\
<</timed>>
<<endif>>
<</repeat>>
<</silently>>\"Because we're going to be together from now on," Shu Fang said pointing to Koko, "You can also call me Xiao Fang. It means 'little Fang.' It's one of the only things I remember of my family. My Ye Ye 爷爷 used to call me that." Koko nodded and smiled. Shu Fang knew he understood her, she could read it in his happy eyes.
[[Teach Koko to bow]]
[[Daydream]] Shu Fang acted out a bow to Koko, then gestured for him to copy. She explained that the lower the bow, the more respect or gratitude that was being offering.
Koko carefully straightened his back and bowed so low that his face bumped into the floor.
[[Sit with Koko]] In the hearth was [[Scene 1 of the Harvest Endurance Scroll|https://www.nma.gov.au/explore/features/harvest-of-endurance/scroll/early-chinese-migrants#:~:text=Records%20show%20that%20about%2018,and%20purchased%20land%20at%20Parramatta]].
Wait, what? Why is this here? It doesn't belong in this story. I mean sure, it might have some historical relevance to Shu Fang's mysterious lineage, but I didn't put it here so feel free to ignore it.
What? You want to read it? Well, just don't go holding the others up alright? If you're ahead and waiting then go right ahead and read what you want. But if not, better save it for later.
[[Continue|Chimney]]In the clouds was [[Article 67|https://sydneylivingmuseums.com.au/stories/chinese-goldfields]]
No. It's definitely not there in the clouds.
Pretend you saw nothing in the clouds.
I did not misplace Article 67 and I did not accidentally put it in Shu Fang's daydreaming section.
You did not find it and you will not read it. On no account will you ever remember finding it. And if you do remember, you will not read it.
Unless... unless you are ahead and waiting for the others. BUT, that is the ONLY time. Oh, and I guess if your friends are ahead of you, maybe they can read it, but then you'll have to go on. You don't want to keep them waiting now do you?
Better get cracking.
[[Continue|Daydream]]<<click "BEGIN">>\
<<audio "ambience" loop play>>\
<<goto "Beginning">>\
<</click>>\