gemwarrior 0.14.0 → 0.14.1
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/lib/gemwarrior/battle.rb +6 -6
- data/lib/gemwarrior/misc/player_levels.rb +10 -9
- data/lib/gemwarrior/version.rb +1 -1
- data/lib/gemwarrior/world.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: 026011f50b16aeb1f2b14d5913ec550b60262b86
|
4
|
+
data.tar.gz: 8dcab9d44b89645167dbb6498c42b11eeb8c1c9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9577d1d1588d9d105ada320bef891023f133686a184fc5fb8a6cbb99bcdd9612d0e82271bfcba20d1f03da31ef5702792ecf78c42a97cd85604e77358f6c2a3
|
7
|
+
data.tar.gz: 4940d07abbef3a8b26ae6ec6bfb75f71694ddd1bbf05e79dde831d2460a32dabcccbbd018761afa756c87b5320169149f01cbb4df80579815be9eb82fdd18145
|
data/lib/gemwarrior/battle.rb
CHANGED
@@ -12,7 +12,7 @@ module Gemwarrior
|
|
12
12
|
ATTEMPT_SUCCESS_LO_DEFAULT = 0
|
13
13
|
ATTEMPT_SUCCESS_HI_DEFAULT = 100
|
14
14
|
MISS_CAP_DEFAULT = 20
|
15
|
-
|
15
|
+
LV4_ROCK_SLIDE_MOD_LO = 6
|
16
16
|
LV5_MOD_LO = 7
|
17
17
|
LV5_MOD_HI = 14
|
18
18
|
ESCAPE_TEXT = '** POOF **'
|
@@ -64,7 +64,7 @@ module Gemwarrior
|
|
64
64
|
monster_attacks_player
|
65
65
|
end
|
66
66
|
|
67
|
-
#
|
67
|
+
# LV6:STONE_FACE modifier (chance to auto-win)
|
68
68
|
# Doesn't work against bosses, nor if battle is an event or in the arena
|
69
69
|
if player.special_abilities.include?(:stone_face) && !monster.is_boss && !is_event && !is_arena
|
70
70
|
level_diff = (player.level - monster.level) * 4
|
@@ -73,7 +73,7 @@ module Gemwarrior
|
|
73
73
|
|
74
74
|
if GameOptions.data['debug_mode']
|
75
75
|
puts
|
76
|
-
puts " (MOD)
|
76
|
+
puts " (MOD) LV6: Stone Face"
|
77
77
|
puts " SUCCESS_RANGE: #{chance_range}"
|
78
78
|
puts " SUCCESS_ROLL : #{roll}"
|
79
79
|
end
|
@@ -299,19 +299,19 @@ module Gemwarrior
|
|
299
299
|
### DEBUG:BEAST_MODE modifier (ludicrously higher damage range)
|
300
300
|
if GameOptions.data['beast_mode']
|
301
301
|
dmg_range = BEAST_MODE_ATTACK_LO..BEAST_MODE_ATTACK_HI
|
302
|
-
###
|
302
|
+
### LV4:ROCK_SLIDE modifier (increased damage range)
|
303
303
|
elsif player.special_abilities.include?(:rock_slide)
|
304
304
|
lo_boost = rand(0..9)
|
305
305
|
hi_boost = lo_boost + rand(5..10)
|
306
306
|
|
307
307
|
if GameOptions.data['debug_mode']
|
308
308
|
puts
|
309
|
-
puts
|
309
|
+
puts ' (MOD) LV4: Rock Slide'
|
310
310
|
puts " Rock Slide lo_boost: #{lo_boost}"
|
311
311
|
puts " Rock Slide hi_boost: #{hi_boost}"
|
312
312
|
end
|
313
313
|
|
314
|
-
if lo_boost >=
|
314
|
+
if lo_boost >= LV4_ROCK_SLIDE_MOD_LO
|
315
315
|
puts " You use Rock Slide for added damage!"
|
316
316
|
dmg_range = (player.atk_lo + lo_boost)..(player.atk_hi + hi_boost)
|
317
317
|
else
|
@@ -27,7 +27,7 @@ module Gemwarrior
|
|
27
27
|
hp_max: 45, stam_max: 30,
|
28
28
|
atk_lo: 3, atk_hi: 5,
|
29
29
|
defense: 5, dexterity: 6,
|
30
|
-
special_abilities: :
|
30
|
+
special_abilities: :gleam
|
31
31
|
}
|
32
32
|
when 4
|
33
33
|
{
|
@@ -35,7 +35,7 @@ module Gemwarrior
|
|
35
35
|
hp_max: 55, stam_max: 35,
|
36
36
|
atk_lo: 5, atk_hi: 6,
|
37
37
|
defense: 6, dexterity: 8,
|
38
|
-
special_abilities: :
|
38
|
+
special_abilities: :rock_slide
|
39
39
|
}
|
40
40
|
when 5
|
41
41
|
{
|
@@ -51,7 +51,7 @@ module Gemwarrior
|
|
51
51
|
hp_max: 85, stam_max: 60,
|
52
52
|
atk_lo: 8, atk_hi: 10,
|
53
53
|
defense: 10, dexterity: 11,
|
54
|
-
special_abilities: :
|
54
|
+
special_abilities: :stone_face
|
55
55
|
}
|
56
56
|
when 7
|
57
57
|
{
|
@@ -94,15 +94,16 @@ module Gemwarrior
|
|
94
94
|
|
95
95
|
def self.get_ability_description(ability)
|
96
96
|
case ability
|
97
|
-
when :rocking_vision
|
97
|
+
when :rocking_vision # LV2
|
98
98
|
'Allows you to see the enemy hit points while in battle.'
|
99
|
-
when :
|
99
|
+
when :gleam # LV3
|
100
|
+
'The map now shows every place in Jool, whether you have been there or not.'
|
101
|
+
when :rock_slide # LV4
|
100
102
|
'Adds a random boost to the player\'s attack in battle.'
|
101
|
-
when :
|
102
|
-
'Chance to auto-win in battle against any non-boss monster (does not work in arena or if ambushed).'
|
103
|
-
when :graniton
|
103
|
+
when :graniton # LV5
|
104
104
|
'Chance to be much more accurate in your attacks.'
|
105
|
-
|
105
|
+
when :stone_face # LV6
|
106
|
+
'Chance to auto-win in battle against any non-boss monster (does not work in arena or if ambushed).'
|
106
107
|
#when :break_through
|
107
108
|
else
|
108
109
|
'Unsure, but it\'s probably cool!'
|
data/lib/gemwarrior/version.rb
CHANGED
data/lib/gemwarrior/world.rb
CHANGED
@@ -236,7 +236,7 @@ module Gemwarrior
|
|
236
236
|
if self.player.cur_coords.eql?(cur_map_coords)
|
237
237
|
print "|#{'O'.colorize(:cyan)}|"
|
238
238
|
elsif location_by_coords(cur_map_coords)
|
239
|
-
if GameOptions.data['debug_mode'] || location_by_coords(cur_map_coords).visited
|
239
|
+
if GameOptions.data['debug_mode'] || location_by_coords(cur_map_coords).visited || self.player.special_abilities.include?(:gleam)
|
240
240
|
print '|X|'
|
241
241
|
else
|
242
242
|
print '| |'
|