gemwarrior 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cd1829a08b6e83220b459bbf729652871e0e81d
4
- data.tar.gz: 43625f3347022e2f25edafa561de8adc0201eaa2
3
+ metadata.gz: 214b51cef137a58bb89714b22d1dcaf53887e0e1
4
+ data.tar.gz: 511f3f3531a5923e1a17278262ac218325db4b5a
5
5
  SHA512:
6
- metadata.gz: 6cafe13f7ec0d4d08e50859ba1a2774afa6b715fb264745957d11ff14f2c97f853ab6c872d64d712acb3756aa6aa2c48324c43ddc426ff1a331efdc53ddefd8a
7
- data.tar.gz: 61332501f1680a1289723a2c7379d84ced6eb8195723640b41de1be6fdefa95c7469b0541da12cc311b0bbd30c62212e28724831feb44c4bda63c0a73838bb7d
6
+ metadata.gz: 44b68d28a14d5ebe2935fbc0a3bee80a180562eed4fa610df9444db642e28e220114601a1cbc84701be63525893a02ba27d4359da29f8101e806ee26b086794e
7
+ data.tar.gz: c967f7f4af2aa97602990437eb9a5179e6acdd4ca800ee79b2766c1541427f6c311be0f69fa2b478a060c8f7e1fd08c87057b1cdc0b899f77d30f2eb9a72dbd7
@@ -48,11 +48,18 @@ module Gemwarrior
48
48
  end
49
49
 
50
50
  puts
51
- puts "PLAYER :: #{player.hp_cur.to_s.rjust(3)} HP"
52
- puts "MONSTER :: #{monster.hp_cur.to_s.rjust(3)} HP"
53
- puts "[Fight/Attack][Look][Run]".colorize(:color => :yellow)
51
+ puts "PLAYER :: #{player.hp_cur.to_s.rjust(3)} HP"
52
+ print "MONSTER :: "
53
+ if world.debug_mode || PlayerLevels::get_level_stats(player.level)[:special_abilities].include?(:rocking_vision)
54
+ print "#{monster.hp_cur.to_s.rjust(3)}"
55
+ else
56
+ print "???"
57
+ end
58
+ print " HP\n"
59
+ puts
54
60
 
55
61
  puts 'What do you do?'
62
+ puts "[Fight/Attack][Look][Run]".colorize(:color => :yellow)
56
63
  cmd = gets.chomp.downcase
57
64
 
58
65
  # player action
@@ -70,7 +77,7 @@ module Gemwarrior
70
77
  puts "You miss entirely!".colorize(:yellow)
71
78
  end
72
79
  when 'look', 'l'
73
- puts "#{monster.name}: #{monster.description}"
80
+ puts "#{monster.name} (#{monster.hp_cur}/#{monster.hp_max} HP): #{monster.description}"
74
81
  puts "Its got some distinguishing features, too: face is #{monster.face}, hands are #{monster.hands}, and general mood is #{monster.mood}."
75
82
  when 'run', 'r'
76
83
  if player_escape?
@@ -175,7 +182,7 @@ module Gemwarrior
175
182
  puts "You have defeated #{monster.name}!\n".colorize(:green)
176
183
  if monster.is_boss
177
184
  if monster.name.eql?("Emerald")
178
- monster.defeated_text
185
+ puts monster.defeated_text
179
186
  exit(0)
180
187
  else
181
188
  puts 'You just beat a boss monster. Way to go!'
@@ -33,22 +33,20 @@ module Gemwarrior
33
33
  end
34
34
 
35
35
  def defeated_text
36
- 0.upto(9) do print '<^>' end
37
- print "\n"
38
- puts "You beat #{name}! You win!\n"
39
- print "You receive the "
40
- print "SparklyThing(tm)".colorize(:magenta)
41
- print " and become the true "
42
- print "Gem Warrior".colorize(:yellow)
43
- print "!\n"
44
- print "You decide to ignore "
45
- print "Queen Ruby".colorize(:red)
46
- print " and take your spoils back home\n"
47
- print "where you live out the rest of your days staring at it, wondering\n"
48
- print "what it was all about.\n\n"
49
- puts "Thank you for playing. Goodbye."
50
- 0.upto(9) do print '<^>' end
51
- puts
36
+ text = "<^><^><^><^><^><^><^><^><^><^>\n"
37
+ text << "You beat #{name}! You win!\n"
38
+ text << "You receive the "
39
+ text << "SparklyThing(tm)".colorize(:magenta)
40
+ text << " and become the true "
41
+ text << "Gem Warrior".colorize(:yellow)
42
+ text << "!\n"
43
+ text << "You decide to ignore "
44
+ text << "Queen Ruby".colorize(:red)
45
+ text << " and take your spoils back home\n"
46
+ text << "where you live out the rest of your days staring at it, wondering\n"
47
+ text << "what it was all about.\n\n"
48
+ text << "Thank you for playing. Goodbye.\n"
49
+ text << "<^><^><^><^><^><^><^><^><^><^>\n"
52
50
  end
53
51
  end
54
52
  end
@@ -10,49 +10,56 @@ module Gemwarrior
10
10
  :level => 1, :xp_start => 0,
11
11
  :hp_max => 30, :stam_max => 20,
12
12
  :atk_lo => 1, :atk_hi => 2,
13
- :defense => 5, :dexterity => 5
13
+ :defense => 5, :dexterity => 5,
14
+ :special_abilities => []
14
15
  }
15
16
  when 2
16
17
  {
17
18
  :level => 2, :xp_start => 50,
18
19
  :hp_max => 35, :stam_max => 25,
19
20
  :atk_lo => 2, :atk_hi => 3,
20
- :defense => 6, :dexterity => 6
21
+ :defense => 6, :dexterity => 6,
22
+ :special_abilities => [:rocking_vision]
21
23
  }
22
24
  when 3
23
25
  {
24
26
  :level => 3, :xp_start => 120,
25
27
  :hp_max => 45, :stam_max => 30,
26
28
  :atk_lo => 3, :atk_hi => 5,
27
- :defense => 7, :dexterity => 8
29
+ :defense => 7, :dexterity => 8,
30
+ :special_abilities => [:rocking_vision]
28
31
  }
29
32
  when 4
30
33
  {
31
34
  :level => 4, :xp_start => 250,
32
35
  :hp_max => 55, :stam_max => 35,
33
36
  :atk_lo => 5, :atk_hi => 6,
34
- :defense => 8, :dexterity => 9
37
+ :defense => 8, :dexterity => 9,
38
+ :special_abilities => [:rocking_vision]
35
39
  }
36
40
  when 5
37
41
  {
38
42
  :level => 5, :xp_start => 600,
39
43
  :hp_max => 70, :stam_max => 45,
40
44
  :atk_lo => 7, :atk_hi => 8,
41
- :defense => 10, :dexterity => 11
45
+ :defense => 10, :dexterity => 11,
46
+ :special_abilities => [:rocking_vision]
42
47
  }
43
48
  when 6
44
49
  {
45
50
  :level => 6, :xp_start => 1000,
46
51
  :hp_max => 85, :stam_max => 60,
47
52
  :atk_lo => 8, :atk_hi => 10,
48
- :defense => 13, :dexterity => 13
53
+ :defense => 13, :dexterity => 13,
54
+ :special_abilities => [:rocking_vision]
49
55
  }
50
56
  when 7
51
57
  {
52
58
  :level => 7, :xp_start => 1500,
53
59
  :hp_max => 100, :stam_max => 80,
54
60
  :atk_lo => 10, :atk_hi => 12,
55
- :defense => 15, :dexterity => 16
61
+ :defense => 15, :dexterity => 16,
62
+ :special_abilities => [:rocking_vision]
56
63
  }
57
64
  end
58
65
  end
@@ -2,5 +2,5 @@
2
2
  # Version of Gem Warrior
3
3
 
4
4
  module Gemwarrior
5
- VERSION = "0.6.4"
5
+ VERSION = "0.6.5"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemwarrior
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Chadwick