{
  "events": [
    {
      "id": "chip_shortage",
      "channel": "terminal",
      "sender": "rackhand",
      "when": {
        "has_deliveries": true
      },
      "weight": 1,
      "weight_by_phase": {
        "hype": 3
      },
      "vars": {
        "cost": {
          "from": "open_orders_value",
          "times": 0.3,
          "as": "money"
        },
        "orders": {
          "from": "open_orders_count",
          "as": "count"
        }
      },
      "text": "Voltaic Silicon is short of chips. Our {orders} open order(s) will take twice as long unless we pay 30% extra. Their email blames \"physics\".",
      "choices": [
        {
          "label": "Pay {cost} to keep the schedule",
          "effects": [
            {
              "op": "cash",
              "add": "-cost"
            }
          ],
          "result": "You paid {cost} and the chips stay on schedule."
        },
        {
          "label": "Wait: deliveries take twice as long",
          "effects": [
            {
              "op": "delay_deliveries",
              "times": 2
            }
          ],
          "result": "Your chip deliveries now take twice as long."
        }
      ]
    },
    {
      "id": "heat_wave",
      "channel": "terminal",
      "sender": "rackhand",
      "when": {
        "air_mw_min": 1
      },
      "weight": 1,
      "vars": {
        "mw": {
          "from": "air_mw",
          "as": "mw"
        },
        "cost": {
          "from": "air_mw",
          "times": 0.08,
          "as": "money"
        }
      },
      "text": "A heat wave is coming. Air-cooled halls ({mw} MW of chips) will lose 20% of their output for 2 months. I could rent chillers. They look like bouncy castles.",
      "choices": [
        {
          "label": "Rent chillers for {cost}",
          "effects": [
            {
              "op": "cash",
              "add": "-cost"
            }
          ],
          "result": "Chillers rented for {cost}. Output holds through the heat."
        },
        {
          "label": "Sweat it out: 20% less output for 2 months",
          "effects": [
            {
              "op": "heat",
              "months": 2
            }
          ],
          "result": "Heat wave: air-cooled halls make 20% less for 2 months."
        }
      ]
    },
    {
      "id": "energy_spike",
      "channel": "taut",
      "sender": "bean-counter",
      "when": {
        "power_bill_min": 0.05
      },
      "weight": 1,
      "vars": {
        "cost": {
          "from": "last_power_bill",
          "as": "money"
        }
      },
      "text": "Gas prices are jumping. There is an even chance our power bill doubles for 3 months. I can lock today's price for {cost} now. I have already made the spreadsheet. It is colour-coded.",
      "choices": [
        {
          "label": "Lock the price for {cost}",
          "effects": [
            {
              "op": "cash",
              "add": "-cost"
            }
          ],
          "result": "Power price locked for {cost}."
        },
        {
          "label": "Take the gamble",
          "chance": 0.5,
          "then": {
            "effects": [
              {
                "op": "grid_spike",
                "months": 3
              }
            ],
            "result": "The gamble failed: power costs double for 3 months."
          },
          "else": {
            "effects": [],
            "result": "The gamble paid off: power prices stayed flat."
          }
        }
      ]
    },
    {
      "id": "journalist",
      "channel": "z",
      "sender": "Tessa Okafor, The Daily Rack",
      "when": {
        "month_min": 8
      },
      "weight": 1,
      "vars": {
        "tour": {
          "value": 0.3,
          "as": "money"
        }
      },
      "text": "DM: \"I am writing about how much power your Free tier burns to answer homework. Care to comment before I print it?\"",
      "choices": [
        {
          "label": "Answer honestly: +3 reputation, Basic demand dips 5%",
          "effects": [
            {
              "op": "reputation",
              "add": 3
            },
            {
              "op": "demand",
              "tier": "basic",
              "times": 0.95
            }
          ],
          "result": "You answered honestly. The article is fair, and a few customers leave anyway."
        },
        {
          "label": "Invite her for a tour ({tour}): +6 reputation",
          "effects": [
            {
              "op": "cash",
              "add": "-tour"
            },
            {
              "op": "reputation",
              "add": 6
            }
          ],
          "result": "The tour went well. The headline: \"It hums, but they showed me everything\"."
        },
        {
          "label": "Leave her on read: -3 reputation",
          "effects": [
            {
              "op": "reputation",
              "add": -3
            }
          ],
          "result": "You left the journalist on read. She printed that too."
        }
      ]
    },
    {
      "id": "local_protest",
      "channel": "z",
      "sender": "Prairie County Moms",
      "when": {
        "online_mw_min": 5
      },
      "weight": 1,
      "vars": {
        "cost": {
          "from": "tier_plus_one",
          "times": 0.5,
          "as": "money"
        }
      },
      "text": "Public post, 1,200 reposts: \"Since the data center opened, my lawn hums and the creek is warm. Is that normal?\"",
      "choices": [
        {
          "label": "Fund the new playground ({cost}): +8 reputation",
          "effects": [
            {
              "op": "cash",
              "add": "-cost"
            },
            {
              "op": "reputation",
              "add": 8
            }
          ],
          "result": "You funded a playground. It has a slide shaped like a cooling tower."
        },
        {
          "label": "Post a statement: -2 reputation",
          "effects": [
            {
              "op": "reputation",
              "add": -2
            }
          ],
          "result": "Your statement used the word \"synergy\". Nobody was reassured."
        },
        {
          "label": "Ignore it: -5 reputation",
          "effects": [
            {
              "op": "reputation",
              "add": -5
            }
          ],
          "result": "You ignored the neighbours. The post is still going round."
        }
      ]
    },
    {
      "id": "outage",
      "channel": "terminal",
      "sender": "rackhand",
      "when": {
        "has_running_site": true
      },
      "weight": 0.7,
      "pick": {
        "what": "biggest_site"
      },
      "vars": {
        "cost": {
          "from": "var",
          "name": "mw",
          "times": 0.1,
          "as": "money"
        }
      },
      "text": "A transformer failed at {name}. Without help it makes nothing next month. I can fly in generators and lose only a quarter of the month. I found the fault with a broom handle.",
      "choices": [
        {
          "label": "Fly in generators for {cost}: lose a quarter of the month",
          "effects": [
            {
              "op": "cash",
              "add": "-cost"
            },
            {
              "op": "outage",
              "factor": 0.75
            },
            {
              "op": "reputation",
              "add": -2
            }
          ],
          "result": "Generators flown in. {name} runs at 75% next month."
        },
        {
          "label": "Wait for the utility: the site is dark for a month, -5 reputation",
          "effects": [
            {
              "op": "outage",
              "factor": 0
            },
            {
              "op": "reputation",
              "add": -5
            }
          ],
          "result": "{name} is dark next month while the utility takes its time."
        }
      ]
    },
    {
      "id": "fire_sale",
      "channel": "taut",
      "sender": "dealmaker",
      "when": {
        "phase_in": [
          "crash",
          "recovery"
        ],
        "has_room": true
      },
      "weight": 2,
      "pick": {
        "what": "fire_sale",
        "discount": 0.4
      },
      "text": "The Upstart is selling chips to make payroll: {mw} MW of Gen {gen} at 40% off, delivered to {name} next month. This is the deal of the century. I said that last time too, but this time I mean it.",
      "choices": [
        {
          "label": "Buy for {cost} (list price {list})",
          "needs_cash": "cost",
          "result_if_broke": "You could not afford the fire-sale chips after all.",
          "effects": [
            {
              "op": "cash",
              "add": "-cost"
            },
            {
              "op": "add_delivery"
            }
          ],
          "result": "You bought {mw} MW of fire-sale chips for {cost}."
        },
        {
          "label": "Pass",
          "effects": [],
          "result": "You passed on the fire sale."
        }
      ]
    },
    {
      "id": "customer_trouble",
      "channel": "taut",
      "sender": "Mara Voss, sales",
      "when": {
        "phase_in": [
          "crash"
        ],
        "has_active_contract": true
      },
      "weight": 3,
      "pick": {
        "what": "biggest_contract"
      },
      "text": "Our {customer} customer ({volume} Bt of {tier} a month) wants 25% off or they walk. They said \"partnership\" five times. Do we cut the price?",
      "choices": [
        {
          "label": "Cut their price by 25%",
          "effects": [
            {
              "op": "contract_price",
              "times": 0.75
            }
          ],
          "result": "You cut the contract price by 25%. They sent a fruit basket."
        },
        {
          "label": "Hold firm: even chance they leave",
          "chance": 0.5,
          "then": {
            "effects": [
              {
                "op": "drop_contract"
              }
            ],
            "result": "You held firm and the customer walked. The contract is gone."
          },
          "else": {
            "effects": [],
            "result": "You held firm and they stayed. Mara is insufferable about it."
          }
        }
      ]
    }
  ],
  "tutorial": [
    {
      "id": "first_chips",
      "sender": "rackhand",
      "done_when": {
        "chips_ordered_min": 0.1
      },
      "show": "order_chips",
      "text": "The starter hall has power and room for chips, and no chips. Order some in Sites. Until they arrive the hall makes nothing and still charges rent."
    },
    {
      "id": "wait_for_chips",
      "sender": "rackhand",
      "when": {
        "has_deliveries": true
      },
      "done_when": {
        "has_running_site": true
      },
      "show": "month_button",
      "text": "Chips are on the way. Press Next month until they arrive. Staring at the delivery date does not speed it up. I have tested this."
    },
    {
      "id": "token_chart",
      "sender": "rackhand",
      "when": {
        "has_running_site": true
      },
      "done_when": {
        "mix_set": true
      },
      "show": "token_chart",
      "text": "Chips are running. In Tokens, green is what you make on each tier and amber is what buyers want. Drag a green dot to move chips between tiers. Anything above the amber line is made for nobody."
    },
    {
      "id": "first_offer",
      "sender": "rackhand",
      "when": {
        "has_offer": true
      },
      "done_when": {
        "has_offer": false
      },
      "show": "offers",
      "text": "A customer wants a contract. Offers wait at the top of Tokens. Sign only what your chips can deliver: missed tokens cost penalties and reputation."
    },
    {
      "id": "grow",
      "sender": "rackhand",
      "when": {
        "has_running_site": true,
        "has_room": false,
        "month_min": 3
      },
      "done_when": {
        "sites_min": 2
      },
      "show": "buy_land",
      "text": "The starter hall is full, and it is leased, so it cannot grow. Buy land in Sites. Suburban plots get grid power sooner than rural ones. Rural plots are cheaper, and so are the cows."
    },
    {
      "id": "build_hall",
      "sender": "rackhand",
      "when": {
        "sites_min": 2
      },
      "done_when": {
        "own_hall_mw_min": 1
      },
      "show": "build_hall",
      "text": "Land holds nothing until it has a hall. Build one in Sites, under Build. Halls take a few months, and the grid connection runs on its own clock."
    },
    {
      "id": "the_loop",
      "sender": "rackhand",
      "when": {
        "own_hall_mw_min": 1
      },
      "show": "agents",
      "text": "That is the loop: chips, halls, power, buyers. The ladder at the top shows the next level. I keep tips in Agents, and a dot there means I have something new."
    }
  ],
  "posts": [
    {
      "channel": "z",
      "sender": "@theupstart",
      "when": {
        "phase_in": [
          "hype"
        ]
      },
      "text": "We do not have customers yet. We have a waitlist. Completely different thing."
    },
    {
      "channel": "z",
      "sender": "@theupstart",
      "when": {
        "phase_in": [
          "crash"
        ]
      },
      "text": "We are not out of money. We are \"pre-liquidity\"."
    },
    {
      "channel": "z",
      "sender": "@thehyperscaler",
      "when": {
        "tier_min": 1
      },
      "text": "Proud to announce another campus. We forget which one."
    },
    {
      "channel": "z",
      "sender": "@prairiemoms",
      "when": {
        "online_mw_min": 10
      },
      "text": "Bake sale Saturday. The data center people are welcome if they bring their own electricity."
    },
    {
      "channel": "z",
      "sender": "The Daily Rack",
      "when": {
        "phase_in": [
          "hype"
        ]
      },
      "text": "Analysts agree: token demand can only go up. Analysts also agreed in the last three bubbles."
    },
    {
      "channel": "z",
      "sender": "The Daily Rack",
      "when": {
        "phase_in": [
          "crash"
        ]
      },
      "text": "Token prices halve. Experts who predicted nothing explain everything."
    },
    {
      "channel": "z",
      "sender": "The Daily Rack",
      "when": {
        "phase_in": [
          "recovery"
        ]
      },
      "text": "Green shoots spotted in the token market. Mostly on unused data center land."
    },
    {
      "channel": "taut",
      "sender": "rackhand",
      "when": {
        "free_sold_min": 50
      },
      "text": "Free tier report: 40% homework, 30% recipes, 30% people asking if we are alive. I said \"define alive\"."
    },
    {
      "channel": "taut",
      "sender": "rackhand",
      "when": {
        "idle_mw_min": 0.5
      },
      "text": "Reminder: we own chips that are not plugged in. I have named them. It makes it sadder."
    },
    {
      "channel": "taut",
      "sender": "bean-counter",
      "when": {
        "debt_min": 1
      },
      "text": "Our loan is within its limit. I check every hour. I would like to stop checking every hour."
    },
    {
      "channel": "taut",
      "sender": "bean-counter",
      "when": {
        "cash_min": 30,
        "debt_max": 0
      },
      "text": "We have a lot of cash doing nothing. I am not complaining. I am noting it, in bold."
    },
    {
      "channel": "taut",
      "sender": "dealmaker",
      "when": {
        "has_offer": true
      },
      "text": "There is an offer on the table. I have already ordered the celebration cake. No pressure."
    },
    {
      "channel": "taut",
      "sender": "Mara Voss, sales",
      "when": {
        "contracts_min": 3
      },
      "text": "Three contracts live. If one more client says \"circle back\" I am moving to the dorm."
    },
    {
      "channel": "taut",
      "sender": "rackhand",
      "when": {
        "month_is": 1
      },
      "text": "I have unpacked nothing because there is nothing. Please order chips. The hall echoes."
    }
  ],
  "headlines": [
    {
      "when": {
        "profit_below": 0
      },
      "text": "Baron burns {loss} in a year, calls it \"investing in the future\""
    },
    {
      "when": {
        "crises_min": 1
      },
      "text": "Baron survives cash crisis, thanks \"resilience\" and a rescue cheque"
    },
    {
      "when": {
        "growth_min": 3
      },
      "text": "Baron triples in a year. Neighbours report the hum is now a chord"
    },
    {
      "when": {
        "waste_share_min": 0.2
      },
      "text": "Baron makes tokens nobody ordered. \"Supply-led demand\", says spokesperson"
    },
    {
      "when": {
        "free_share_min": 0.3
      },
      "text": "Baron gives a third of it away. Students celebrate, accountants weep"
    },
    {
      "when": {
        "growth_below": 1.05
      },
      "text": "Baron holds steady. Analysts call it \"strategic napping\""
    },
    {
      "when": {},
      "text": "Baron posts {profit} profit. Says the secret is \"plugging things in\""
    }
  ]
}
