gemwarrior 0.14.3 → 0.14.4
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.
- checksums.yaml +4 -4
- data/data/default_world.yaml +0 -2
- data/lib/gemwarrior/entities/player.rb +1 -10
- data/lib/gemwarrior/misc/player_levels.rb +8 -8
- data/lib/gemwarrior/repl.rb +1 -3
- data/lib/gemwarrior/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2116e67dae88fd5d7ed8aaf66aa3893c4f400ea9
|
4
|
+
data.tar.gz: 028aaabc8fffe0f2732abf2d8103dd6e0c0c5cab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: baa12d9a3195ea0c9ea48e025d0f6bf89028eab69e7eb174d5c04b520a8bfe216732bde1acaf0df750f5f1ea1f23fd128db92e7becf543a65ab8487a7d1cebac
|
7
|
+
data.tar.gz: bf58ddec9f4cbca65ad6230ebdc6c96a25b9b0ac0e7ce54aaf63c15f428d2154e8253cc75ecb0725c89943387daaf196d8b207c33b70248eab617d60e067cd2c
|
data/data/default_world.yaml
CHANGED
@@ -20,9 +20,7 @@ module Gemwarrior
|
|
20
20
|
include PlayerLevels
|
21
21
|
include Formatting
|
22
22
|
|
23
|
-
attr_accessor :
|
24
|
-
:stam_max,
|
25
|
-
:cur_coords,
|
23
|
+
attr_accessor :cur_coords,
|
26
24
|
:special_abilities,
|
27
25
|
:monsters_killed,
|
28
26
|
:bosses_killed,
|
@@ -195,10 +193,6 @@ module Gemwarrior
|
|
195
193
|
end
|
196
194
|
end
|
197
195
|
|
198
|
-
def stamina_dec
|
199
|
-
self.stam_cur = stam_cur - 1
|
200
|
-
end
|
201
|
-
|
202
196
|
def modify_name
|
203
197
|
print 'Enter new name: '
|
204
198
|
|
@@ -342,9 +336,6 @@ module Gemwarrior
|
|
342
336
|
self.hp_cur = new_stats[:hp_max]
|
343
337
|
self.hp_max = new_stats[:hp_max]
|
344
338
|
puts "You now have #{self.hp_max.to_s.colorize(:green)} hit points!"
|
345
|
-
self.stam_cur = new_stats[:stam_max]
|
346
|
-
self.stam_max = new_stats[:stam_max]
|
347
|
-
puts "You now have #{self.stam_max.to_s.colorize(:green)} stamina points!"
|
348
339
|
self.atk_lo = new_stats[:atk_lo]
|
349
340
|
self.atk_hi = new_stats[:atk_hi]
|
350
341
|
puts "You now have an attack of #{self.atk_lo.to_s.colorize(:green)}-#{self.atk_hi.to_s.colorize(:green)}!"
|
@@ -8,7 +8,7 @@ module Gemwarrior
|
|
8
8
|
when 1
|
9
9
|
{
|
10
10
|
level: 1, xp_start: 0,
|
11
|
-
hp_max: 30,
|
11
|
+
hp_max: 30,
|
12
12
|
atk_lo: 1, atk_hi: 2,
|
13
13
|
defense: 1, dexterity: 3,
|
14
14
|
special_abilities: nil
|
@@ -16,7 +16,7 @@ module Gemwarrior
|
|
16
16
|
when 2
|
17
17
|
{
|
18
18
|
level: 2, xp_start: 50,
|
19
|
-
hp_max: 35,
|
19
|
+
hp_max: 35,
|
20
20
|
atk_lo: 2, atk_hi: 3,
|
21
21
|
defense: 3, dexterity: 4,
|
22
22
|
special_abilities: :rocking_vision
|
@@ -24,7 +24,7 @@ module Gemwarrior
|
|
24
24
|
when 3
|
25
25
|
{
|
26
26
|
level: 3, xp_start: 120,
|
27
|
-
hp_max: 45,
|
27
|
+
hp_max: 45,
|
28
28
|
atk_lo: 3, atk_hi: 5,
|
29
29
|
defense: 5, dexterity: 6,
|
30
30
|
special_abilities: :gleam
|
@@ -32,7 +32,7 @@ module Gemwarrior
|
|
32
32
|
when 4
|
33
33
|
{
|
34
34
|
level: 4, xp_start: 250,
|
35
|
-
hp_max: 55,
|
35
|
+
hp_max: 55,
|
36
36
|
atk_lo: 5, atk_hi: 6,
|
37
37
|
defense: 6, dexterity: 8,
|
38
38
|
special_abilities: :rock_slide
|
@@ -40,7 +40,7 @@ module Gemwarrior
|
|
40
40
|
when 5
|
41
41
|
{
|
42
42
|
level: 5, xp_start: 600,
|
43
|
-
hp_max: 70,
|
43
|
+
hp_max: 70,
|
44
44
|
atk_lo: 7, atk_hi: 8,
|
45
45
|
defense: 8, dexterity: 9,
|
46
46
|
special_abilities: :graniton
|
@@ -48,7 +48,7 @@ module Gemwarrior
|
|
48
48
|
when 6
|
49
49
|
{
|
50
50
|
level: 6, xp_start: 1000,
|
51
|
-
hp_max: 85,
|
51
|
+
hp_max: 85,
|
52
52
|
atk_lo: 8, atk_hi: 10,
|
53
53
|
defense: 10, dexterity: 11,
|
54
54
|
special_abilities: :stone_face
|
@@ -56,7 +56,7 @@ module Gemwarrior
|
|
56
56
|
when 7
|
57
57
|
{
|
58
58
|
level: 7, xp_start: 1500,
|
59
|
-
hp_max: 100,
|
59
|
+
hp_max: 100,
|
60
60
|
atk_lo: 10, atk_hi: 12,
|
61
61
|
defense: 13, dexterity: 14,
|
62
62
|
special_abilities: :breakthru
|
@@ -64,7 +64,7 @@ module Gemwarrior
|
|
64
64
|
else
|
65
65
|
{
|
66
66
|
level: 8, xp_start: 10000,
|
67
|
-
hp_max: 200,
|
67
|
+
hp_max: 200,
|
68
68
|
atk_lo: 50, atk_hi: 100,
|
69
69
|
defense: 50, dexterity: 100,
|
70
70
|
special_abilities: nil
|
data/lib/gemwarrior/repl.rb
CHANGED
@@ -519,7 +519,7 @@ module Gemwarrior
|
|
519
519
|
|
520
520
|
def prompt
|
521
521
|
prompt_template = "\n"
|
522
|
-
prompt_template += "[LV:%2s][XP:%3s][ROX:%3s]
|
522
|
+
prompt_template += "[LV:%2s][XP:%3s][ROX:%3s][HP:%3s/%-3s] [".colorize(:yellow)
|
523
523
|
prompt_template += "%s".colorize(:green)
|
524
524
|
prompt_template += " @ ".colorize(:yellow)
|
525
525
|
prompt_template += "%s".colorize(:cyan)
|
@@ -532,8 +532,6 @@ module Gemwarrior
|
|
532
532
|
world.player.rox,
|
533
533
|
world.player.hp_cur,
|
534
534
|
world.player.hp_max,
|
535
|
-
world.player.stam_cur,
|
536
|
-
world.player.stam_max,
|
537
535
|
world.player.name,
|
538
536
|
world.location_by_coords(world.player.cur_coords).name_display
|
539
537
|
]
|
data/lib/gemwarrior/version.rb
CHANGED