summaryrefslogtreecommitdiff
path: root/rubywarrior/ultimate-beginner/README
blob: a058fe4eb8874c94e8fae4e64f15bc39f6571b7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Level 4

You can hear bow strings being stretched.

Tip: No new abilities this time, but you must be careful not to rest while taking damage. Save a @health instance variable and compare it on each turn to see if you're taking damage.

 -------
|@ Sa S>|
 -------

  > = Stairs
  @ = ultimate (20 HP)
  S = Thick Sludge (24 HP)
  a = Archer (7 HP)


Warrior Abilities:

  warrior.health
    Returns an integer representing your health.

  warrior.rest!
    Gain 10% of max health back, but do nothing more.

  warrior.feel
    Returns a Space for the given direction (forward by default).

  warrior.attack!
    Attacks a unit in given direction (forward by default).

  warrior.walk!
    Move in the given direction (forward by default).


When you're done editing player.rb, run the rubywarrior command again.