diff --git a/packages/warriorjs-tower-baby-steps/README.md b/packages/warriorjs-tower-baby-steps/README.md index fd0f2cd1..62620f9f 100644 --- a/packages/warriorjs-tower-baby-steps/README.md +++ b/packages/warriorjs-tower-baby-steps/README.md @@ -19,3 +19,35 @@ warriorjs ``` For more in depth documentation see: https://warrior.js.org/docs/player/towers. + +## Levels + +### Level 3: Healing Intro + +_You sense a larger sludge ahead, but you feel a bit weaker than usual._ + +> **TIP:** You must heal between battles! Use `warrior.health()` to check your +> health and `warrior.rest()` to regain health before fighting the second +> sludge. + +#### Floor Map + +``` +╔══════╗ +║@ s s>║ +╚══════╝ + +@ = Warrior (10 HP) +s = Sludge (12 HP) +> = stairs +``` + +#### Abilities + +- `warrior.health()`: Returns your current health. +- `warrior.rest()`: Regain 10% of max health (2 HP per rest). +- `warrior.walk()`: Move forward. +- `warrior.attack()`: Attack a unit in front. + +_All subsequent levels are shifted up by one (old Level 3 → 4, etc.) to maintain +progression._ diff --git a/packages/warriorjs-tower-baby-steps/src/index.js b/packages/warriorjs-tower-baby-steps/src/index.js index 9fb972a7..02ec8dc7 100644 --- a/packages/warriorjs-tower-baby-steps/src/index.js +++ b/packages/warriorjs-tower-baby-steps/src/index.js @@ -98,6 +98,50 @@ export default { ], }, }, + // Healing Intro Level (new Level 3) + { + description: + 'You sense a larger sludge ahead, but you feel a bit weaker than usual.', + tip: + 'You must heal between battles! Use `warrior.health()` to check your health and `warrior.rest()` to regain health before fighting the second sludge.', + clue: + "When there's no enemy ahead of you, call `warrior.rest()` until your health is full before walking forward.", + timeBonus: 30, + aceScore: 40, + floor: { + size: { + width: 6, + height: 1, + }, + stairs: { + x: 5, + y: 0, + }, + warrior: { + ...Warrior, + abilities: { + health: health(), + rest: rest({ healthGain: 0.1 }), + }, + position: { + x: 0, + y: 0, + facing: EAST, + }, + health: 10, // low health to require healing + }, + units: [ + { + ...Sludge, + position: { x: 2, y: 0, facing: WEST }, + }, + { + ...Sludge, + position: { x: 4, y: 0, facing: WEST }, + }, + ], + }, + }, { description: 'The air feels thicker than before. There must be a horde of sludge.',