Static data table for the misfit generator. Holds the built-in fallback pools (clung objects, roles, fears, twitches, speech tics, nicknames, name syllables, backstory templates, colour palettes and size ranges) plus fixed mappings from FirstContact to ability, flashback genre and body plan name. Lookup helpers FindThing and FindRole match by short name.
using System;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The built-in copy of the data every misfit is rolled from: objects, roles, fears, twitches,
/// names, backstory sentences and colours. The live pools come from Assets/data/sump/*.json
/// (see MisfitData.cs); these tables are what is used when a file is missing or broken. MisfitGenerator rolls from these;
/// MisfitVoice reads them back to make a misfit talk about itself.
/// </summary>
public static partial class MisfitTables
{
/// <summary>A human object a misfit clings to.</summary>
public sealed class ClungThing
{
/// <summary>Short name, what goes in MisfitProfile.ClungObject ("Walkman").</summary>
public string Name { get; set; }
/// <summary>The same thing with an article and a detail ("a Walkman holding a mixtape called FOR SUMMER").</summary>
public string With { get; set; }
/// <summary>What the misfit says about it, in plain first person (no speech tic yet).</summary>
public string Note { get; set; }
public ClungThing() { }
public ClungThing( string name, string with, string note ) { Name = name; With = with; Note = note; }
}
/// <summary>What a misfit came to Earth as.</summary>
public sealed class RoleEntry
{
/// <summary>"scout"</summary>
public string Name { get; set; }
/// <summary>"a scout"</summary>
public string A { get; set; }
/// <summary>Reads after a comma: "A scout, sent ahead to see if the planet was safe".</summary>
public string Mission { get; set; }
/// <summary>Reads after "My orders were to ...".</summary>
public string Orders { get; set; }
public RoleEntry() { }
public RoleEntry( string name, string a, string mission, string orders ) { Name = name; A = a; Mission = mission; Orders = orders; }
}
// ------------------------------------------------------------------ fixed mappings
public static TwistedAbility AbilityFor( FirstContact c ) => c switch
{
FirstContact.Dissected => TwistedAbility.BodyDoor,
FirstContact.BecameMeme => TwistedAbility.OnlyWhileWatched,
FirstContact.ShotOnFarm => TwistedAbility.BulletMagnet,
FirstContact.WorshippedThenSold => TwistedAbility.PriceTag,
_ => TwistedAbility.ToyStillness,
};
/// <summary>Adopted-then-forgotten plays as farm horror: the farmhouse where the child lived.</summary>
public static FlashbackGenre GenreFor( FirstContact c ) => c switch
{
FirstContact.ShotOnFarm => FlashbackGenre.FarmHorror,
FirstContact.Dissected => FlashbackGenre.LabEscape,
FirstContact.BecameMeme => FlashbackGenre.TalkShow,
FirstContact.WorshippedThenSold => FlashbackGenre.TalkShow,
_ => FlashbackGenre.FarmHorror,
};
public static string PlanName( BodyPlan plan ) => plan switch
{
BodyPlan.GasSac => "gas sac",
BodyPlan.CrystalLattice => "crystal lattice",
BodyPlan.Swarm => "swarm",
BodyPlan.Jelly => "jelly",
BodyPlan.Insectoid => "insectoid",
BodyPlan.Fungus => "fungus",
_ => "machine",
};
public static readonly string[] FearKinds = { "light", "noise", "touch", "crowds", "open", "eyes" };
public static readonly string[] SpeechTics = { "stutter", "echo", "jingle", "backwards", "whisper", "prices", "none" };
// ------------------------------------------------------------------ objects
static readonly ClungThing[] FarmThings =
{
new( "John Deere cap", "a John Deere cap with a hole through the brim", "The hole in it is mine. We went through the same afternoon together." ),
new( "shotgun shell", "a spent shotgun shell it keeps polished", "It is empty now. I keep it so that I know where one of them is." ),
new( "egg carton", "an egg carton holding one egg it will not let break", "Twelve places, one egg. I sit on it at night. Nothing has happened. I remain hopeful and slightly sore." ),
new( "scarecrow's glove", "a scarecrow's left glove", "He stood in that field for years and nobody shot him. I am studying his technique." ),
new( "seed catalogue", "a 1987 seed catalogue, swollen with rain", "On page forty there is a tomato that wins prizes. I would like to meet it." ),
new( "dog collar", "a dog collar with a tag that says GOOD BOY", "The dog did not bark at me. He was the only one. I am keeping his name safe for him." ),
new( "porch bulb", "a burnt-out porch light bulb", "This one cannot come on any more. That is why I like it." ),
new( "transistor radio", "a transistor radio stuck on a crop report", "It tells me the price of soybeans every morning. Somebody ought to know." ),
new( "milk bottle", "a glass milk bottle full of rainwater", "It was on the step. It was the last thing I saw that was not angry." ),
new( "rubber boot", "one rubber boot, left foot, with something living in it", "A foot lived in this once. Now a frog does. The frog pays no rent, and I respect that." ),
new( "cow bell", "a cow bell with no cow", "The cow was the only one who did not run or shoot. She just chewed and broke wind. I am learning to chew." ),
new( "fly swatter", "a fly swatter with a scorch mark through it", "They tried this first. Then the gun. I like to remember that there was an order of escalation." ),
new( "prize ribbon", "a county fair ribbon for Second Largest Marrow", "Second largest marrow. I have never seen the first. I think about it at night." ),
new( "toilet roll", "half a toilet roll from the outhouse it hid in", "I hid in a small wooden room for two days. This was the only thing in there that was soft." ),
new( "pitchfork tine", "one tine off a pitchfork", "It went into the back of me. It came out with help. We do not discuss the help." ),
new( "long johns", "a pair of long johns off a washing line, flap open", "There is a little door in the back of them. Nobody will tell me what it is for. I have guesses." ),
};
static readonly ClungThing[] LabThings =
{
new( "hospital bracelet", "a hospital bracelet that reads SPECIMEN 9", "It is the only thing anyone ever gave me with my name on it. It is not my name." ),
new( "rubber glove", "a single rubber glove, turned inside out", "Inside out, it cannot go anywhere it should not. I checked. I check every day." ),
new( "clipboard", "a clipboard with its own chart still on it", "Under 'notes' somebody wrote 'seems calm'. I was not calm. I was being polite." ),
new( "lollipop", "an unlicked lollipop from the jar on the lab desk", "They gave these to the brave ones. I took mine on the way out." ),
new( "coffee mug", "a mug that says WORLD'S OKAYEST SCIENTIST", "He drank from it while he worked. He hummed. It was a nice tune. That was the worst part." ),
new( "sticking plasters", "a box of cartoon sticking plasters, nearly empty", "I put one on every place they opened. I ran out of plasters before I ran out of places." ),
new( "stethoscope", "a stethoscope it listens to itself with", "I listen every night. Everything is back where it was. Nearly everything." ),
new( "visitor badge", "a clip-on badge that says VISITOR", "I wear it so that everyone understands I am only visiting." ),
new( "desk fan", "a small desk fan with no plug", "It was the only thing in that room that looked away." ),
new( "specimen jar", "a specimen jar with a bit of itself still in it", "That is mine. I do not know which bit. It does not seem to miss me." ),
new( "thermometer", "a thermometer it refuses to say where they put", "I know where it went. It knows where it went. We have agreed to be strangers." ),
new( "paper gown", "a paper gown that does not close at the back", "It does not close at the back. Humans do this to each other too. I found that comforting." ),
new( "tongue depressor", "a wooden tongue depressor", "They said 'say aah'. I do not have a tongue. I said aah from somewhere else, and they wrote that down." ),
new( "bedpan", "a steel bedpan it wears as a helmet", "They told me what it was for after I had worn it a week. I kept wearing it. It is mine now." ),
new( "sandwich", "half a technician's sandwich, eleven years old", "A man on his break did not report me. He gave me this instead. I will never eat it. It is a medal." ),
new( "name tag", "a name tag that says HELLO MY NAME IS and then a barcode", "I have learned to pronounce the barcode. It is mostly a long beep and then shame." ),
};
static readonly ClungThing[] AltarThings =
{
new( "crucifix", "a plastic glow-in-the-dark crucifix", "It glows in the dark. I also glowed in the dark. Only one of us kept the job." ),
new( "price-sticker gun", "a price-sticker gun, half loaded", "Everything has a number. It is restful, once you know yours." ),
new( "collection plate", "a dented collection plate", "It used to fill up when I glowed. I still glow. Force of habit." ),
new( "auction paddle", "an auction paddle, number 44", "Forty-four won. I never met forty-four. I was shipped." ),
new( "receipt", "the receipt from its own sale, laminated", "It says 'no returns'. I have read it many times, looking for a loophole." ),
new( "birthday candle", "a birthday candle taken from its own altar", "They lit hundreds. This is the one that was still burning when the van came." ),
new( "tambourine", "a tambourine with three jingles left", "They sang about me. The song had my name wrong, and I learned to answer to it." ),
new( "snow globe", "a snow globe of a cathedral", "A small holy place that you can shake. I find that honest." ),
new( "bubble wrap", "a sheet of bubble wrap with every bubble intact", "I was wrapped in this to be posted. It was the gentlest anyone had been." ),
new( "souvenir mug", "a gift-shop mug with its face printed slightly off", "My face is on it, a little to the left of where my face goes. It outsold the real me." ),
new( "raffle ticket", "ticket number 7 from the raffle it was a prize in", "I was second prize. First prize was a ham. I have made my peace with the ham." ),
new( "tinsel halo", "a halo made from a coat hanger and tinsel", "It itched. I wore it for eight months. Holiness is mostly itching." ),
new( "foot bowl", "the bowl they washed its feet in", "They washed my feet every Sunday. I do not have feet. Nobody wanted to be the one to say." ),
new( "bumper sticker", "a bumper sticker that says I SAW THE LIGHT AND IT WAS REASONABLY PRICED", "They sold nine hundred of these. I got one. I had to pay for it." ),
new( "clearance sticker", "a red sticker that says MANAGER'S SPECIAL", "They stuck it on my forehead. I think it is my forehead. I leave it on out of respect for the manager." ),
new( "hymn sheet", "a hymn sheet with its name spelled four different ways", "Four verses, four spellings. In the chorus they just hummed where my name goes." ),
};
static readonly ClungThing[] FameThings =
{
new( "selfie stick", "a snapped selfie stick", "It kept me at arm's length. Everybody did. This was at least honest about it." ),
new( "TV remote", "a TV remote with the mute button worn smooth", "The mute button does not work on people. I have pressed it very hard." ),
new( "novelty T-shirt", "a T-shirt with its own face on it, size XL", "This is me, on a shirt, size XL. I am a medium. Nobody asked me. Nobody gave me one either." ),
new( "ring light", "a cracked ring light", "A circle that makes you look alive. I do not switch it on. I only hold it." ),
new( "mouse mat", "a mouse mat printed with its worst moment", "That is the moment. The one they all saw. I keep it face down." ),
new( "water bottle", "a talk-show water bottle with the host's face on the label", "They gave me water and four minutes. The water was good." ),
new( "cassette tape", "a cassette labelled LAUGHS (CANNED)", "I play it after I say something. It helps to know where the funny part was." ),
new( "marker pen", "a marker pen, dried out from signing", "I signed nine hundred pictures of my own face. Then the pen stopped, and so did they." ),
new( "cracked phone", "a phone with a cracked screen and no signal", "There are eleven million comments. I have read all of them. Some were kind. Four." ),
new( "lunchbox", "a dented lunchbox with its own face on the lid", "A child ate sandwiches out of my head for a year. I hope they were good sandwiches." ),
new( "bobblehead", "a bobblehead of itself that nods at everything", "It agrees with everybody. That is why they liked it more than me." ),
new( "banana", "a green-room banana it has kept nine years too long", "It was the only thing backstage that was also going brown. We aged together. It aged faster." ),
new( "whoopee cushion", "the whoopee cushion a host hid on its chair", "It made a rude noise under me and forty million people laughed. I have forgiven the cushion. It was only doing its job." ),
new( "cue card", "a cue card that says LOOK SAD", "They held this up. I was already doing it. I would like the credit for that." ),
new( "makeup sponge", "a makeup sponge in a shade called Human", "They painted me the colour of a person so the cameras would not be upset." ),
new( "clip trophy", "a plastic trophy for Clip of the Year, runner-up", "Runner-up. First place was a man falling into a wedding cake. I have watched it. He earned it." ),
};
static readonly ClungThing[] ChildThings =
{
new( "McDonald's toy", "a McDonald's toy still sealed in its bag", "We came out of the same box, this one and I. It never got opened either." ),
new( "Walkman", "a Walkman holding a mixtape called FOR SUMMER", "Side B stops in the middle of a song. She meant to finish it." ),
new( "night light", "a night light shaped like a moon", "She could not sleep without it. Then she could. I am still working on that." ),
new( "friendship bracelet", "half a friendship bracelet", "The other half is on a wrist that is thirty years old now." ),
new( "crayon", "a single crayon, the colour called Sky", "She drew me with this. In the picture I am smiling. I have been practising." ),
new( "shoebox", "a shoebox with air holes punched in the lid", "This was my room. The holes were her idea. She was very thorough, for seven." ),
new( "school photo", "a school photo of a child with a missing tooth", "She promised to come back after school. School is very long, here." ),
new( "toy teacup", "a pink plastic toy teacup", "I was always invited to the tea. There was never any tea. I never minded." ),
new( "birthday card", "a birthday card signed in crayon, TO MY BEST THING", "It says 'best thing'. Not 'best friend'. I have decided that it is better." ),
new( "yo-yo", "a yo-yo with a knotted string", "It is supposed to come back. I am giving it time." ),
new( "retainer", "a child's dental retainer wrapped in a napkin", "It was thrown out by mistake and nobody went through the bins for it. So I did. We understand each other." ),
new( "sticker sheet", "a sheet of scratch-and-sniff stickers, all sniffed out", "They used to smell of grape. Now they smell of thumb." ),
new( "sock puppet", "a sock puppet with one button eye", "It was her other best friend. It has a hand-shaped hole in it. So do I, I think." ),
new( "duck potty", "a plastic training potty shaped like a duck", "She outgrew this first, and then me. It took it better than I did. It is a duck." ),
new( "report card", "a report card that says KATIE HAS A VIVID IMAGINATION", "I am the vivid imagination. It is the only official document that mentions me." ),
new( "baby tooth", "a baby tooth it got to before the fairy did", "A small flying woman pays money for these. I waited up to ask her about my orders. She never came either." ),
new( "ceiling star", "a glow-in-the-dark ceiling star that has stopped glowing", "It had one job, and it did it for nine years, over a bed nobody was in." ),
};
static readonly ClungThing[] GeneralThings =
{
new( "library card", "an expired library card in someone else's name", "With this you may take anything, as long as you bring it back. I liked a rule that ends with coming back." ),
new( "bus pass", "a monthly bus pass for March 1994", "It is good for the whole month. I am waiting for the month to come round again." ),
new( "umbrella", "a broken umbrella it holds open indoors", "Up there the sky was open all the time. This helps." ),
new( "Rubik's cube", "a Rubik's cube solved on one side", "One side is finished. I am told that is not how it counts." ),
new( "air freshener", "a pine-tree air freshener", "It is the only tree down here. It is doing its best against forty of us. It is losing." ),
new( "fridge magnet", "a fridge magnet from Niagara Falls", "I never saw the falls. I was a tourist for eleven minutes." ),
new( "wristwatch", "a wristwatch stopped at 4:17", "4:17 is when it happened. It is always a little bit 4:17." ),
new( "phone book", "a phone book for a town called Dubuque", "Everybody in it can be reached. I find that reassuring. I have not called." ),
new( "bowling trophy", "a bowling trophy for third place", "Third. Somebody tried, and it was written down. I would like that." ),
new( "tin of peaches", "a tin of peaches it cannot open", "It is for a special occasion. I will know it when it comes." ),
new( "keyring", "a keyring with eleven keys and no doors", "Each of these opens something up there. Somebody is locked out because of me. I am sorry." ),
new( "lottery ticket", "an unscratched lottery ticket", "As long as I do not scratch it, I may have won." ),
new( "garden gnome", "a garden gnome caught mid-moon", "He stood in the grass with his trousers half down, smiling, and nobody minded. I asked him how. He is still thinking." ),
new( "postcard", "a postcard that says WISH YOU WERE HERE", "It was not addressed to me. But it says what it says." ),
new( "Tamagotchi", "a Tamagotchi with a dead battery", "It needed feeding every day. I fed it every day. The battery was not my fault." ),
new( "harmonica", "a harmonica it has never dared to blow", "It makes a sound if you breathe near it. So I do not breathe near it. One day." ),
new( "driving licence", "a learner's driving licence found in a ditch", "The face on it looks frightened too. We keep each other company." ),
new( "View-Master", "a View-Master with one reel, the Grand Canyon", "Seven pictures of a very big hole. It made me feel at home before I had one." ),
new( "swimming badge", "a 25-metre swimming badge", "Somebody swam twenty-five metres and was told 'well done'. I am keeping it for when I do something." ),
new( "thermos", "a tartan thermos, still faintly warm", "It has been warm since 1991. I do not open it. I do not want to let that out." ),
new( "answering machine", "an answering machine with one saved message", "A voice says 'call me back, it's not urgent'. I worry about how long it has not been urgent." ),
new( "hotel soap", "a tiny hotel soap, still wrapped", "The wrapper says 'welcome'. It is the only thing up there that said so. I will never use it. I have looked into what washing involves." ),
new( "spirit level", "a spirit level", "The bubble finds the middle every time. I watch it do it." ),
new( "jigsaw piece", "one jigsaw piece, all sky", "It belongs somewhere exactly. I have not found where, but it does. That is the point of them." ),
new( "toilet seat", "a padded toilet seat it wears like a collar", "It is the only human chair with a hole for the tail. Somebody up there was thinking of us." ),
new( "plunger", "a sink plunger it believes was a diplomatic gift", "A man threw it at me and shouted. Where I come from, that is how you present a sceptre." ),
new( "false teeth", "a set of false teeth in a glass", "Somebody's smile, with nobody in it. I practise with them. I am told I am getting worse." ),
new( "toupee", "a toupee it found in a storm drain", "It was small, wet and frightened. I thought it was one of us. I have still not ruled it out." ),
new( "parking ticket", "a parking ticket issued to its own ship", "Sixty dollars. The ship is in nine pieces and they still want sixty dollars. I admire the follow-through." ),
new( "nose-hair trimmer", "a battery nose-hair trimmer", "It buzzes like my mother. I do not have a nose. I hold it when I am homesick." ),
new( "underpants", "a pair of novelty underpants that say TUESDAY", "They tell you what day it is. It has been Tuesday for nineteen years." ),
new( "loyalty card", "a coffee loyalty card with nine stamps out of ten", "One more stamp and something free happens. I have never dared. I could not bear to be let down by a coffee." ),
new( "pamphlet", "a pamphlet called SO YOU HAVE A RASH", "I read it as a survival guide. It did not cover my situation. It was still the most honest thing they ever printed." ),
new( "golf ball", "the golf ball that hit it in 1998", "It came out of the sky and hit me on the head. A man ran over and said sorry. To the ball." ),
new( "urinal cake", "a blue urinal cake it takes for a jewel", "It is the bluest thing I ever saw. I found it in a white shrine with running water. I will not hear a word against it." ),
new( "stick-on moustache", "a stick-on moustache, slightly used", "With this on I passed for human for nearly four seconds. They were the best four seconds." ),
new( "kazoo", "a kazoo", "It is the only instrument that sounds as embarrassed as I feel." ),
new( "lost dog poster", "a LOST DOG poster for a dog that is not it", "Somebody looked this hard for a dog. I keep it to remind me that being looked for is possible." ),
new( "stress ball", "a stress ball shaped like a pair of buttocks", "You squeeze it when you are afraid. I have squeezed it flat nine thousand times. It keeps coming back. It is my hero." ),
new( "fortune cookie slip", "a fortune cookie slip that says YOU WILL TRAVEL FAR", "It was right. It did not say anything about afterwards. I checked the back. The back is lottery numbers." ),
};
static ClungThing[] BuiltInThingsFor( FirstContact c ) => c switch
{
FirstContact.ShotOnFarm => FarmThings,
FirstContact.Dissected => LabThings,
FirstContact.WorshippedThenSold => AltarThings,
FirstContact.BecameMeme => FameThings,
_ => ChildThings,
};
/// <summary>Finds an object by its short name; null if it is not one of ours.</summary>
public static ClungThing FindThing( string name )
{
if ( string.IsNullOrEmpty( name ) ) return null;
foreach ( var t in AllThings )
if ( string.Equals( t.Name, name, StringComparison.OrdinalIgnoreCase ) ) return t;
return null;
}
// ------------------------------------------------------------------ roles
static readonly RoleEntry[] BuiltInRoles =
{
new( "scout", "a scout", "sent ahead to see if the planet was safe", "signal the all-clear" ),
new( "tourist", "a tourist", "on a nine-day package holiday, breakfast not included", "wait at the pickup point for the return shuttle" ),
new( "invader", "an invader", "the entire first wave of an invasion, and also the second", "hold the beachhead until the second wave landed" ),
new( "abductor", "an abductor", "sent to borrow one human for study", "bring back one human, unharmed, by morning" ),
new( "diplomat", "a diplomat", "carrying a greeting that took ninety years to write", "deliver the greeting and wait for a reply" ),
new( "surveyor", "a surveyor", "sent to measure the oceans", "send the measurements home and wait for collection" ),
new( "missionary", "a missionary", "sent to share some very good news about a moon", "keep preaching until relieved" ),
new( "sales rep", "a sales rep", "sent to open a new market", "close one sale and phone head office" ),
new( "hitchhiker", "a hitchhiker", "only passing through on the way to somewhere better", "stand by the road until the next ship came past" ),
new( "census taker", "a census taker", "sent to count everybody", "count everyone twice and file the total" ),
new( "honeymooner", "a honeymooner", "separated from its other half on the way down", "meet my other half at the big rock if we were separated" ),
new( "intern", "an intern", "on the first day of an unpaid placement", "observe, touch nothing, and wait to be collected at five" ),
new( "repo agent", "a repo agent", "sent to repossess a probe nobody had paid for", "tow the probe home and get a signature" ),
new( "exile", "an exile", "dropped off here as a punishment", "stay put until my sentence was reviewed" ),
new( "weather observer", "a weather observer", "posted to watch the clouds for one season", "log the weather every hour until the relief shift came" ),
new( "stowaway", "a stowaway", "hidden in the hold of someone else's mission", "keep quiet until we were home" ),
new( "medic", "a medic", "sent to patch up whoever had landed before", "find the survivors and call for extraction" ),
new( "courier", "a courier", "delivering a parcel marked FRAGILE, THIS WAY UP to the wrong planet", "get a signature and return to the depot" ),
new( "plumber", "a plumber", "called out to a leak in the wrong solar system", "fix the leak, leave an invoice and be home for tea" ),
new( "process server", "a process server", "sent to serve the whole human race with papers", "hand over the papers and say 'you have been served'" ),
new( "food critic", "a food critic", "sent to review the planet for a guidebook", "taste one of everything and file two stars" ),
new( "exchange student", "an exchange student", "on a term abroad that got out of hand", "stay with a host family and write home every week" ),
new( "warm-up act", "a warm-up act", "booked to open for an invasion that was cancelled", "do twenty minutes and get off before the headliner" ),
new( "traffic warden", "a traffic warden", "sent to ticket a probe left on a double yellow moon", "issue the fine and wait for payment" ),
new( "wedding guest", "a wedding guest", "who took a wrong turn on the way to a reception three stars over", "bring the gift, find my table and not make a speech" ),
new( "pest inspector", "a pest inspector", "sent to check the planet for humans", "confirm the infestation and wait for the fumigators" ),
new( "latrine scout", "a latrine scout", "sent ahead to find the fleet a rest stop", "find a clean one, signal the fleet and hold the door" ),
new( "understudy", "an understudy", "standing in for the real ambassador, who had a cold", "say the ambassador's lines and not improvise" ),
new( "lost-property clerk", "a lost-property clerk", "sent to return one shoe somebody left on our moon", "hand back the shoe and get a receipt" ),
};
public static RoleEntry FindRole( string name )
{
foreach ( var r in Roles )
if ( string.Equals( r.Name, name, StringComparison.OrdinalIgnoreCase ) ) return r;
return null;
}
// ------------------------------------------------------------------ fears
static readonly (string Phrase, string Kind)[] FarmFears =
{
( "porch lights coming on", "light" ),
( "torch beams sweeping a field", "light" ),
( "the click before the bang", "noise" ),
( "dogs barking two fields away", "noise" ),
( "a screen door slamming", "noise" ),
( "open fields with nowhere to crouch", "open" ),
( "wide skies", "open" ),
( "being watched down a long barrel", "eyes" ),
( "tractors starting up", "noise" ),
( "pickup headlights", "light" ),
( "a rooster clearing its throat", "noise" ),
( "being prodded with a boot to see if it is dead", "touch" ),
( "anything long being pointed at it", "eyes" ),
};
static readonly (string Phrase, string Kind)[] LabFears =
{
( "bright lamps overhead", "light" ),
( "gloved hands", "touch" ),
( "being touched without being asked", "touch" ),
( "cold metal tables", "touch" ),
( "the hum of a refrigerator", "noise" ),
( "the snap of a rubber glove", "noise" ),
( "people leaning in to look", "eyes" ),
( "anyone holding a clipboard", "eyes" ),
( "people in white coats saying 'hmm'", "noise" ),
( "cold jelly on the end of anything", "touch" ),
( "being weighed", "touch" ),
( "little torches shone into holes", "light" ),
( "anybody saying 'this may pinch'", "noise" ),
};
static readonly (string Phrase, string Kind)[] AltarFears =
{
( "kneeling crowds", "crowds" ),
( "full rooms that go quiet", "crowds" ),
( "queues", "crowds" ),
( "chanting", "noise" ),
( "an auctioneer's hammer", "noise" ),
( "being looked up at", "eyes" ),
( "hands reaching for a blessing", "touch" ),
( "candlelight", "light" ),
( "collection baskets going round", "crowds" ),
( "organ music", "noise" ),
( "the click of a price gun", "noise" ),
( "being carried on shoulders", "touch" ),
( "car boot sales", "crowds" ),
};
static readonly (string Phrase, string Kind)[] FameFears =
{
( "camera lenses", "eyes" ),
( "being recognised", "eyes" ),
( "strangers pointing", "eyes" ),
( "phone screens lighting up", "light" ),
( "a red recording light", "light" ),
( "laughter from another room", "noise" ),
( "applause", "noise" ),
( "studio audiences", "crowds" ),
( "flash photography", "light" ),
( "anybody saying 'do the face'", "noise" ),
( "canned laughter", "noise" ),
( "comment sections", "crowds" ),
( "phones held up to film", "eyes" ),
};
static readonly (string Phrase, string Kind)[] ChildFears =
{
( "wide empty rooms", "open" ),
( "a door left open on a dark hall", "open" ),
( "being picked up", "touch" ),
( "being put down", "touch" ),
( "birthday parties", "crowds" ),
( "the big light being switched on", "light" ),
( "footsteps going down the stairs", "noise" ),
( "car doors closing in a driveway", "noise" ),
( "the school bus pulling away", "noise" ),
( "being put in a box 'just for now'", "touch" ),
( "garage sales", "crowds" ),
( "a vacuum cleaner in the next room", "noise" ),
( "being put through the wash", "touch" ),
};
static (string Phrase, string Kind)[] BuiltInFearsFor( FirstContact c ) => c switch
{
FirstContact.ShotOnFarm => FarmFears,
FirstContact.Dissected => LabFears,
FirstContact.WorshippedThenSold => AltarFears,
FirstContact.BecameMeme => FameFears,
_ => ChildFears,
};
// ------------------------------------------------------------------ twitches
static readonly string[] BuiltInTwitches =
{
"flinches left every few seconds",
"counts its own limbs when nervous",
"checks over its shoulder for a ship that is not coming",
"ducks whenever anything clicks",
"taps out a landing code on the nearest surface",
"holds its breath when footsteps pass",
"salutes nobody, then looks embarrassed",
"apologises to furniture it bumps into",
"freezes mid-step for a full second",
"pats itself down as if looking for keys",
"looks up at the ceiling every time it says 'home'",
"rehearses a greeting under its breath",
"turns its good side toward whoever is speaking",
"jumps at its own shadow, then apologises to it",
"rocks gently, like something being carried",
"keeps one part of itself pointed at the exit",
"waves at the end of every sentence, in case it is the last",
"tidies things that are already tidy",
"practises being smaller when anybody walks by",
"nods along to instructions nobody is giving",
"breaks wind when startled, then blames the nearest rock",
"salutes every bucket, in case it outranks it",
"sniffs itself and looks worried",
"scratches somewhere rude, then remembers it has company",
"hides behind things much thinner than itself",
"laughs half a second after everyone else",
"shudders whenever anyone says 'probe'",
"checks its fly, though it has never owned trousers",
"hums the hold music it heard in 1997",
"ducks under doorways that are not there",
"plays dead at the slightest excuse, badly",
"burps the first three notes of an anthem",
"trembles politely, with one limb raised for permission",
"spins round to catch whoever is not following it",
"blinks out an SOS that nobody reads",
"winces at its own name",
};
static string[] BuiltInTwitchesFor( BodyPlan plan ) => plan switch
{
BodyPlan.GasSac => new[]
{
"vents a small sad puff whenever a door closes",
"deflates a little when it is ignored",
"drifts toward the ceiling when it forgets to worry",
"lets one go when it is frightened, and it is always frightened",
"squeaks like a balloon animal when hugged",
},
BodyPlan.CrystalLattice => new[]
{
"rings faintly when somebody lies nearby",
"sheds a fine glitter when startled",
"hums one note until it remembers to stop",
"chimes when it needs the toilet, which nobody has ever seen it use",
"fogs up when it is embarrassed",
},
BodyPlan.Swarm => new[]
{
"loses count of itself and has to start again",
"sends a few of itself ahead to check round corners",
"holds a quick vote before answering anything",
"always has one of itself facing the wrong way",
"argues with itself about whose turn it is to be the face",
},
BodyPlan.Jelly => new[]
{
"goes see-through when spoken to directly",
"wobbles in time with distant machinery",
"leaves a small damp apology wherever it has been",
"makes a rude noise against any smooth surface, then looks mortified",
"jiggles for some time after it has stopped being scared",
},
BodyPlan.Insectoid => new[]
{
"cleans antennae that are no longer there",
"clicks its mandibles in threes, never twos",
"stands perfectly still in the hope of passing for a twig",
"rubs its back legs together and denies it was a mating call",
"tucks in all six knees whenever a shoe goes past",
},
BodyPlan.Fungus => new[]
{
"lets go a nervous puff of spores at sudden sounds",
"leans toward anything damp and familiar",
"grows a little toward whoever was last kind to it",
"smells strongly of feet when nervous, and knows it",
"drops a cap as a distraction and regrets it at once",
},
_ => new[]
{
"restarts its left side in the middle of a sentence",
"plays a dial-up tone when it is trying not to cry",
"runs a self-test whenever anyone says 'fine'",
"ejects an empty tray whenever it is flattered",
"beeps a swear word it learned from a forklift",
},
};
// ------------------------------------------------------------------ speech tics, weighted by first contact
static string[] BuiltInTicsFor( FirstContact c ) => c switch
{
FirstContact.ShotOnFarm => new[] { "stutter", "stutter", "stutter", "backwards", "backwards", "whisper", "whisper", "echo", "none" },
FirstContact.Dissected => new[] { "whisper", "whisper", "whisper", "stutter", "stutter", "backwards", "backwards", "echo", "none" },
FirstContact.WorshippedThenSold => new[] { "prices", "prices", "prices", "prices", "echo", "echo", "jingle", "whisper", "none" },
FirstContact.BecameMeme => new[] { "jingle", "jingle", "jingle", "echo", "echo", "echo", "stutter", "backwards", "prices" },
_ => new[] { "echo", "echo", "whisper", "whisper", "jingle", "jingle", "stutter", "stutter", "backwards", "none" },
};
// ------------------------------------------------------------------ names
static string[] BuiltInNicknamesFor( FirstContact c ) => c switch
{
FirstContact.ShotOnFarm => new[]
{
"Buckshot",
"Varmint",
"Coyote",
"Scarecrow",
"Trespasser",
"Both Barrels",
"Chicken Thief",
"Rock Salt",
"Git",
"Crop Circle",
"Swamp Gas",
"Weather Balloon",
"Not A Coyote",
"Outhouse",
"Second Barrel",
"Compost",
},
FirstContact.Dissected => new[]
{
"Exhibit C",
"Specimen Nine",
"Trays",
"Stitches",
"The Volunteer",
"Seems Calm",
"Table Four",
"Sample",
"Patient Zero-ish",
"Leftovers",
"Jar Seven",
"Say Aah",
"Open Wide",
"Mostly Intact",
"Do Not Refreeze",
"Spare Parts",
},
FirstContact.WorshippedThenSold => new[]
{
"Lot 44",
"Saint Bargain",
"The Used Angel",
"Reduced",
"Roof Fund",
"Hallelujah",
"As Is",
"Half Off",
"Our Visitor",
"Clearance",
"Saint Refund",
"Second Prize",
"Blessed-ish",
"Manager's Special",
"His Reasonableness",
"Free Postage",
},
FirstContact.BecameMeme => new[]
{
"Sad One",
"The Face",
"Reaction Guy",
"Ringtone",
"Clip",
"Trending",
"Car Park",
"Nine Days",
"Caption",
"Lunchbox",
"Wet One",
"Skip Ad",
"Blooper",
"Runner-Up",
"The Noise",
"Before The Dog",
},
_ => new[]
{
"Mr. Buttons",
"Sprinkles",
"Misc",
"Best Thing",
"Captain Blanket",
"Shoebox",
"Sir Wiggles",
"Biscuit",
"Friend",
"Vivid Imagination",
"Lord Puddles",
"Stinky",
"Under-The-Bed",
"Show And Tell",
"Bath Toy",
"Admiral Fluff",
},
};
static readonly string[] BuiltInAnyNicknames =
{
"Gary", "Somebody", "Late", "Lefty", "Whatsit", "Not Dave", "Doorstop", "Thursday",
"Sorry", "The Quiet One", "Mostly", "Pardon", "Oops", "Nearly", "Plan B", "Regrets",
"Kevin?", "Damp", "Wrong Planet", "Ask Later", "Um", "Table For One", "Old Wotsit", "Honk",
};
static readonly string[] BuiltInSwarmNames =
{
"We-of-Nine-Thousand", "We-of-Roughly-Forty", "The-Several", "Us-Mostly", "We-the-Remainder", "We-of-One-Fewer",
"The-Left-Half", "We-Who-Were-More", "All-of-Us-Here", "We-of-the-Jar", "Some-of-Us", "We-Still-Counting",
"We-of-the-Drain", "Us-Give-or-Take", "We-Who-Voted-No", "Most-of-a-Quorum", "We-of-the-Left-Sock", "Them-Lot",
};
/// <summary>Start, middle and end sounds for a body plan's alien names.</summary>
static (string[] Start, string[] Mid, string[] End) BuiltInSyllablesFor( BodyPlan plan ) => plan switch
{
BodyPlan.GasSac => (
new[] { "Hoo", "Phu", "Whoa", "Bwa", "Vuu", "Oo", "Fwo", "Toot", "Pff", "Bur" },
new[] { "loo", "sha", "ha", "wo", "mu", "", "pa" },
new[] { "m", "sh", "loon", "ph", "oof", "aah", "parp", "pfft" } ),
BodyPlan.CrystalLattice => (
new[] { "Kx", "Tik", "Qir", "Zit", "Ix", "Kri", "Tz", "Glin", "Chi" },
new[] { "it", "ax", "el", "ik", "yz", "" },
new[] { "tal", "ix", "ek", "yx", "ite", "aq", "onk", "ing" } ),
BodyPlan.Jelly => (
new[] { "Blu", "Glo", "Mwo", "Ploo", "Sloo", "Ulu", "Wub", "Squi", "Gloo" },
new[] { "bbi", "lo", "mu", "wa", "llo", "", "bbo" },
new[] { "p", "b", "sh", "oom", "le", "lub", "dge", "plop" } ),
BodyPlan.Insectoid => (
new[] { "Skr'", "Tch'", "Kik'", "Zrr'", "Chk'", "Vrr'", "Xt'", "Bzt'", "Nik'" },
new[] { "i", "a", "ee", "ik", "ax", "" },
new[] { "tk", "xel", "ch", "rrit", "kk", "zza", "nik", "ptt" } ),
BodyPlan.Fungus => (
new[] { "Mor", "Myc", "Spo", "Hum", "Loa", "Mul", "Tru", "Mil", "Fus" },
new[] { "el", "u", "ra", "o", "ffl", "", "di" },
new[] { "th", "m", "cap", "ling", "dew", "moss", "rot", "funk" } ),
_ => (
new[] { "Zz", "Mmz", "Bzi", "Hmm", "Nn", "Vzz", "Bvv" },
new[] { "i", "u", "a", "" },
new[] { "zz", "mm", "nn", "zzt", "zzp" } ),
};
static readonly string[] BuiltInMachineSuffixes = { "", "", " Mk II", " (Recalled)", " Rev. B", " (Demo Unit)", "", " (Refurbished)", " (Do Not Rinse)", " Lite", " (Floor Model)", "" };
// ------------------------------------------------------------------ backstories
// Tokens: {Arole} "A scout", {arole} "a scout", {mission}, {obj} (the object with its article and detail).
static readonly string[] FarmStories =
{
"{Arole}, {mission}, who landed in a soybean field and was shot before finishing the word 'greetings'. It left with {obj}.",
"{Arole}, {mission}. The farmer fired first, apologised to his cows, and fired again. It crawled away holding {obj}.",
"Came down behind a barn as {arole}, {mission}. Took both barrels from a man in slippers. It has kept {obj} ever since.",
"{Arole}, {mission}, mistaken for something that was after the chickens. It was not after the chickens. It still carries {obj}.",
"{Arole}, {mission}. It knocked on a farmhouse door at 3 a.m. to ask the way. The answer was buckshot. It took {obj} and ran.",
"Was {arole}, {mission}, until a farm dog found it and a shotgun found it second. The dog was nicer. It kept {obj}.",
"{Arole}, {mission}. It landed in a slurry pit. The farmer shot the smell first and the visitor second. It waded out with {obj}.",
"{Arole}, {mission}, who hid in an outhouse for two days. On the third day somebody needed the outhouse. It fled with {obj}.",
"Came down as {arole}, {mission}, in the middle of a prize marrow that had been going to win. It was chased four miles, clutching {obj}.",
"{Arole}, {mission}. It tried to milk the bull as a gesture of friendship. The bull and the farmer both objected. It got away with {obj}.",
};
static readonly string[] LabStories =
{
"{Arole}, {mission}, netted on arrival and opened on a steel table by people who took notes. It left through a vent with {obj}.",
"{Arole}, {mission}. A laboratory kept it for eleven years and learned nothing it would not have told them. It walked out with {obj}.",
"Arrived as {arole}, {mission}. Was labelled, weighed and taken apart twice. It put itself back together around {obj}.",
"{Arole}, {mission}, who woke under a bright lamp with its insides in numbered trays. It took the trays back, and {obj}.",
"{Arole}, {mission}. They asked what it was by cutting. When the night guard dozed, it took {obj} and the stairs.",
"Once {arole}, {mission}; afterwards Exhibit C in a basement with good funding. It escaped during a fire drill, carrying {obj}.",
"{Arole}, {mission}. Forty experts spent six years looking for its bottom. It does not have one. It let itself out with {obj}.",
"{Arole}, {mission}, kept in a drawer between procedures. The drawer was labelled MISC, ORGANIC. It left by the laundry chute with {obj}.",
"Landed as {arole}, {mission}. They took its temperature in nine places, eight of them guesses. It walked out at shift change with {obj}.",
"{Arole}, {mission}. They took something out, could not work out what it did, and put it back upside down. It hobbled off with {obj}.",
};
static readonly string[] AltarStories =
{
"{Arole}, {mission}, taken for a god by a small congregation and sold for the roof fund eight months later. It kept {obj}.",
"{Arole}, {mission}. A town prayed to it all summer and auctioned it in the autumn. It went for less than the organ. It still has {obj}.",
"Landed as {arole}, {mission}. Was given a robe, a choir and a feast day, then a price tag. It left with {obj}.",
"{Arole}, {mission}, worshipped in a converted garage until the collections dried up, then listed as 'angel, used'. It holds on to {obj}.",
"{Arole}, {mission}. It answered every prayer it could. They sold it to a collector to pay for the car park. It took {obj} with it.",
"Was {arole}, {mission}, then a miracle, then Lot 44. Nobody told it which of those was the promotion. It carries {obj}.",
"{Arole}, {mission}, declared holy after it sneezed on a tractor and the tractor started. Sold when it could not do it twice. It kept {obj}.",
"{Arole}, {mission}. They bottled its bathwater and sold that first. Then they cut out the bottle and sold it direct. It left with {obj}.",
"Arrived as {arole}, {mission}. Got a church, a gift shop and a theme tune, in that order of quality. Then a clearance sticker. It has {obj}.",
"{Arole}, {mission}, worshipped by a bowling league until the playoffs went badly. It was swapped for a ball polisher. It still holds {obj}.",
};
static readonly string[] FameStories =
{
"{Arole}, {mission}, filmed falling over in a car park. Eleven million people watched. Nobody asked if it was hurt. It keeps {obj}.",
"{Arole}, {mission}. Its first words to humanity became a ringtone. It was booked on a talk show, laughed at, and dropped. It kept {obj}.",
"Arrived as {arole}, {mission}. One blurry photo later it was a reaction image for mild disappointment. It clings to {obj}.",
"{Arole}, {mission}, famous for nine days as 'the sad one'. On the tenth day there was a dog on a skateboard. It still has {obj}.",
"{Arole}, {mission}. A host asked it to do the face. It did the face. It has been doing the face ever since, holding {obj}.",
"Was {arole}, {mission}, until someone added a caption. It has read every comment. It left the studio with {obj}.",
"{Arole}, {mission}. It stepped off the ship, said 'we come in peace' and broke wind. Only one of those went round the world. It kept {obj}.",
"{Arole}, {mission}, caught on a doorbell camera being chased by a goose. Forty million views. The goose got a book deal. It has {obj}.",
"Landed as {arole}, {mission}, upside down in a hedge behind a live weather forecast. By Friday it was a novelty costume. It kept {obj}.",
"{Arole}, {mission}. A breakfast show taught it one rude word and had it say the word every morning for a week. It left with {obj}.",
};
static readonly string[] ChildStories =
{
"{Arole}, {mission}, found by a seven-year-old and kept in a shoebox for one perfect summer. Then school started. It still has {obj}.",
"{Arole}, {mission}. A child named it, fed it cereal and told it everything. The child turned twelve. It waited in the attic with {obj}.",
"Landed as {arole}, {mission}. Became somebody's best secret, then a box marked MISC. It climbed out years later holding {obj}.",
"{Arole}, {mission}, adopted by a little girl who promised to come back after her swimming lesson. That was in 1994. It kept {obj}.",
"{Arole}, {mission}. It was loved very hard for a short time and then outgrown, like shoes. It took {obj} when the house was sold.",
"Was {arole}, {mission}, then an imaginary friend who happened to be real. The family moved. It was not on the list. It has {obj}.",
"{Arole}, {mission}, taken to show-and-tell in a pillowcase. It got a B. The hamster got an A. It was left in the cloakroom with {obj}.",
"{Arole}, {mission}. A small boy hid it under his bed and fed it crusts. Then he discovered football. It stayed under there with {obj}.",
"Landed as {arole}, {mission}. Was dressed as a baby and wheeled about in a pram for one glorious June. Then a puppy arrived. It kept {obj}.",
"{Arole}, {mission}, flushed down a toilet 'to set it free' by a child who meant well. It has thought about that ever since. It kept {obj}.",
};
static string[] BuiltInStoriesFor( FirstContact c ) => c switch
{
FirstContact.ShotOnFarm => FarmStories,
FirstContact.Dissected => LabStories,
FirstContact.WorshippedThenSold => AltarStories,
FirstContact.BecameMeme => FameStories,
_ => ChildStories,
};
// ------------------------------------------------------------------ looks
/// <summary>Primary and secondary colour pairs per body plan, as r,g,b.</summary>
static (float[] Primary, float[] Secondary)[] BuiltInPaletteFor( BodyPlan plan ) => plan switch
{
// pale, see-through, bruised pastels
BodyPlan.GasSac => new[]
{
( new[] { 0.85f, 0.75f, 0.95f }, new[] { 0.55f, 0.35f, 0.75f } ),
( new[] { 0.75f, 0.95f, 0.80f }, new[] { 0.30f, 0.65f, 0.50f } ),
( new[] { 0.98f, 0.85f, 0.65f }, new[] { 0.85f, 0.50f, 0.30f } ),
( new[] { 0.70f, 0.88f, 0.98f }, new[] { 0.35f, 0.55f, 0.85f } ),
},
// gem colours with a bright inner light
BodyPlan.CrystalLattice => new[]
{
( new[] { 0.55f, 0.90f, 0.95f }, new[] { 0.95f, 0.98f, 1.00f } ),
( new[] { 0.75f, 0.50f, 0.95f }, new[] { 0.95f, 0.75f, 1.00f } ),
( new[] { 0.95f, 0.55f, 0.70f }, new[] { 1.00f, 0.90f, 0.85f } ),
( new[] { 0.50f, 0.95f, 0.65f }, new[] { 0.90f, 1.00f, 0.80f } ),
},
// dark bodies, one warning colour
BodyPlan.Swarm => new[]
{
( new[] { 0.15f, 0.14f, 0.12f }, new[] { 0.95f, 0.75f, 0.15f } ),
( new[] { 0.25f, 0.10f, 0.10f }, new[] { 0.95f, 0.35f, 0.20f } ),
( new[] { 0.10f, 0.18f, 0.22f }, new[] { 0.40f, 0.90f, 0.85f } ),
( new[] { 0.22f, 0.20f, 0.10f }, new[] { 0.75f, 0.85f, 0.25f } ),
},
// sweet-shop brights
BodyPlan.Jelly => new[]
{
( new[] { 0.95f, 0.45f, 0.70f }, new[] { 0.60f, 0.85f, 1.00f } ),
( new[] { 0.40f, 0.80f, 0.95f }, new[] { 0.95f, 0.95f, 0.60f } ),
( new[] { 0.70f, 0.95f, 0.60f }, new[] { 0.95f, 0.60f, 0.85f } ),
( new[] { 0.95f, 0.65f, 0.40f }, new[] { 0.75f, 0.50f, 0.95f } ),
},
// shell greens, rusts and beetle blues
BodyPlan.Insectoid => new[]
{
( new[] { 0.25f, 0.45f, 0.20f }, new[] { 0.80f, 0.65f, 0.20f } ),
( new[] { 0.45f, 0.20f, 0.15f }, new[] { 0.90f, 0.80f, 0.55f } ),
( new[] { 0.15f, 0.25f, 0.45f }, new[] { 0.40f, 0.85f, 0.75f } ),
( new[] { 0.50f, 0.40f, 0.15f }, new[] { 0.20f, 0.20f, 0.20f } ),
},
// cellar colours with one cap colour
BodyPlan.Fungus => new[]
{
( new[] { 0.80f, 0.70f, 0.55f }, new[] { 0.75f, 0.25f, 0.20f } ),
( new[] { 0.55f, 0.45f, 0.60f }, new[] { 0.90f, 0.85f, 0.70f } ),
( new[] { 0.45f, 0.50f, 0.35f }, new[] { 0.95f, 0.80f, 0.35f } ),
( new[] { 0.90f, 0.88f, 0.80f }, new[] { 0.50f, 0.35f, 0.25f } ),
},
// office-equipment greys with one indicator light
_ => new[]
{
( new[] { 0.55f, 0.57f, 0.60f }, new[] { 0.95f, 0.55f, 0.15f } ),
( new[] { 0.80f, 0.78f, 0.70f }, new[] { 0.75f, 0.15f, 0.15f } ),
( new[] { 0.30f, 0.35f, 0.40f }, new[] { 0.30f, 0.85f, 0.95f } ),
( new[] { 0.60f, 0.50f, 0.35f }, new[] { 0.25f, 0.60f, 0.35f } ),
},
};
/// <summary>Smallest and largest Size for a body plan (always inside 0.6 to 1.6).</summary>
static (float Min, float Max) BuiltInSizeFor( BodyPlan plan ) => plan switch
{
BodyPlan.GasSac => (1.1f, 1.6f),
BodyPlan.CrystalLattice => (0.8f, 1.4f),
BodyPlan.Swarm => (0.7f, 1.3f),
BodyPlan.Jelly => (0.7f, 1.2f),
BodyPlan.Insectoid => (0.8f, 1.5f),
BodyPlan.Fungus => (0.6f, 1.1f),
_ => (0.9f, 1.6f),
};
}