TR
games/rob-revisited / src / Revisited / Land / Economy.php · commit f9a1307
<?phpnamespace App\Revisited\Land;/** * Money (docs/reborn.md "Wave 2"): first Rob barters; the colony's ceramic tokens, the crédits Halde, are found in the * canyon (the old counter, the Rôdeurs' rack, bodies, wrecks), and from then the merchants (Oko, Koru, Nadjé, Grell, * Kessa: Talk::SHOPS) sell and buy for crédits, at prices that follow what they think of Rob. */final class Economy{    /** The first crédits seen: the merchants take them from now on. */    public static function known(Game $g): void    {        if (empty($g->flags['credits_known']) && $g->inv->has('credit')) {            $g->flags['credits_known'] = true;            $g->say('Des crédits Halde : des jetons de céramique frappés du sceau de la colonie. Les marchands du canyon et du fleuve les acceptent encore.');        }    }    /** What Rob's things are worth at a fair price (for the journal). */    public static function wealth(Game $g): int    {        return $g->inv->count('credit');    }}