@maka/maka-cli 5.205.0 → 5.206.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.205.0",
3
+ "version": "5.206.0",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 3.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 3.x applications using React.",
@@ -303,7 +303,15 @@ export class MoveCommand extends Command {
303
303
  // wall unclimbable rather than merely slow. Hanging on with
304
304
  // progress banked is the book's own shape: another Complex
305
305
  // Action, from where you got to.
306
- actor.climbProgress = wall.progressFor(reached);
306
+ //
307
+ // ...BUT ONLY IF THERE ARE METRES (6SmvvRRtn9eEMZSbF). A first
308
+ // attempt that buys nothing used to bank ZERO and still count as
309
+ // being on the wall -- which is a real place to this engine, so
310
+ // the runner could not "move" until they "descend"ed off a floor
311
+ // they had never left, and descend then narrated letting go from
312
+ // no height at all. You are on a wall when you are up it.
313
+ const banked = wall.progressFor(reached);
314
+ actor.climbProgress = banked.meters > 0 ? banked : undefined;
307
315
  // THE TWO FIGURES HAVE TO ADD UP. Rounding each independently
308
316
  // printed "about 2m up" and "about 2m still above you" on a
309
317
  // 3m wall -- both are honest roundings of 1.5, and together
@@ -338,15 +346,26 @@ export class MoveCommand extends Command {
338
346
  const wentNowhere = reached <= 0;
339
347
  const moved = reached < 1 ? 'a body length' : `${shownUp}m`;
340
348
  const why = climb.glitch ? 'a hold shears away under your weight' : 'no purchase left within reach';
349
+ // AND NOBODY HANGS FROM THE FLOOR. With nothing banked the runner
350
+ // is standing in the yard with their hands on the wall, so
351
+ // "you hang on, boots wedged" is the same false picture the
352
+ // distance was painting. Off the wall entirely, say so.
353
+ const offTheWall = banked.meters <= 0;
354
+ const perch = down
355
+ ? (left < 1 ? 'the ground within reach' : `about ${left}m still below you`)
356
+ : (left < 1 ? 'the lip within reach' : `about ${left}m still above you`);
357
+ const rest = offTheWall
358
+ ? `, boots still on the ground.`
359
+ : `. You hang on, boots wedged, ${perch}.`;
341
360
  return {
342
361
  arrived: false,
343
362
  text: down
344
363
  ? `${wentNowhere
345
364
  ? `You feel for the next hold and there isn't one -- you get no lower, ${why}`
346
- : `You get about ${moved} down and it stops going anywhere -- ${why}`}. You hang on, boots wedged, ${left < 1 ? 'the ground within reach' : `about ${left}m still below you`}.${hint(` (Descend again to keep going${assisted ? '' : '; rope and a harness would let you rappel it'}.)`)}`
365
+ : `You get about ${moved} down and it stops going anywhere -- ${why}`}${rest}${hint(` (Descend again to keep going${assisted ? '' : '; rope and a harness would let you rappel it'}.)`)}`
347
366
  : `${wentNowhere
348
367
  ? `You feel for the next hold and there isn't one -- you get no higher, ${why}`
349
- : `You get about ${moved} up and it stops going anywhere -- ${why}`}. You hang on, boots wedged, ${left < 1 ? 'the lip within reach' : `about ${left}m still above you`}.${hint(` (Climb again to keep going${assisted ? '' : '; rope and a harness would double your rate'}.)`)}`,
368
+ : `You get about ${moved} up and it stops going anywhere -- ${why}`}${rest}${hint(` (Climb again to keep going${assisted ? '' : '; rope and a harness would double your rate'}.)`)}`,
350
369
  };
351
370
  }
352
371
  // THE SECOND CHANCE (p.134 Climbing Failures and Glitches;
@@ -385,11 +404,18 @@ export class MoveCommand extends Command {
385
404
  const heightNow = Math.max(0, wall.heightAtStart + (down ? -reached : reached));
386
405
  const shownHeight = heightNow < 1 ? 'a body length' : `${Math.round(heightNow)}m`;
387
406
  if (catchIt.hits >= 1) {
388
- actor.climbProgress = wall.progressFor(reached);
407
+ // Same rule as the hold-on above (6SmvvRRtn9eEMZSbF): catching
408
+ // yourself with nothing banked is catching yourself ON THE FLOOR,
409
+ // and saying "you are still on the wall" about a runner standing
410
+ // in the yard is the sort of line that gets an item sent back.
411
+ const caught = wall.progressFor(reached);
412
+ actor.climbProgress = caught.meters > 0 ? caught : undefined;
389
413
  this.actor.performAction('slips on', `the ${spotName} climb, and catches themselves`);
390
414
  return {
391
415
  arrived: false,
392
- text: `You come off -- and catch yourself a body length down, fingers screaming. You are still on the wall, about ${shownHeight} up.${hint(` (${down ? 'Descend' : 'Climb'} again to keep going.)`)}`,
416
+ text: caught.meters > 0
417
+ ? `You come off -- and catch yourself a body length down, fingers screaming. You are still on the wall, about ${shownHeight} up.${hint(` (${down ? 'Descend' : 'Climb'} again to keep going.)`)}`
418
+ : `You come off almost as soon as you start -- and catch yourself, boots back on the ground, fingers screaming.${hint(` (${down ? 'Descend' : 'Climb'} again to try it.)`)}`,
393
419
  };
394
420
  }
395
421
  // The grip goes: the wall takes back everything it gave.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.205.0",
3
+ "version": "5.206.0",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 3.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 3.x applications using React.",