gemwarrior 0.11.2 → 0.11.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dacc59b6cb7fd73c686874f3be876c4fb178b1da
4
- data.tar.gz: 0e6136ce2d549d8344eb216b609a71bafbc5d25a
3
+ metadata.gz: ff35de47a9f877b43b572d96e0150954a325866f
4
+ data.tar.gz: 0a7b3a7b0d34bf995d36fb9a8da772775aaeab68
5
5
  SHA512:
6
- metadata.gz: 8cfbdae9d75981cef7e137197c0706b53718819e8d4d0135f9794d9fa8384977fc333f6ba31bd0141b9447861287b33b63f701ada8996ba145841d942f57c213
7
- data.tar.gz: 9bd49193091f57fee8f9581e3ae19b9436291c72c95b3057358adef2d39c954668c0901afb1514a38ab43a4171a858ecf63d98081e433f0439b0172b59913f47
6
+ metadata.gz: 0ea3e8245aa441bcb89ccbf6d823b4eecc98f3811a8b5326726822b91479a4baf3e5681e550a4018cfb438f4fc270be47a79502d5264fcaf36fe24e11c49f19b
7
+ data.tar.gz: dc9b22fc21a7259fbeb4b4e093ff31dcbe16b65b597b3015b52ed1d4da344a4099811db8e0f7d673a0c6fe6b2e3e62b3c24401b9a4711958d50709c1976d3a2d
data/bin/gemwarrior CHANGED
File without changes
@@ -22,20 +22,20 @@ module Gemwarrior
22
22
  case answer
23
23
  when 'y', 'yes'
24
24
  print "\n"
25
- print_letter(player)
25
+ print_letter(world)
26
26
  else
27
27
  { type: nil, data: nil }
28
28
  end
29
29
  else
30
30
  self.used = true
31
- print_letter(player)
31
+ print_letter(world)
32
32
  { type: 'xp', data: 3 }
33
33
  end
34
34
  end
35
35
 
36
36
  private
37
37
 
38
- def print_letter(player)
38
+ def print_letter(world)
39
39
  puts 'The words of the queen echo in your head as you read the royal note sent to you again:'
40
40
  puts
41
41
  Animation.run(phrase: " Dear #{world.player.name},", speed: :insane)
@@ -13,7 +13,7 @@ module Gemwarrior
13
13
  self.description = 'Translucent, but not transparent, this door constructed of condensed water vapor is like nothing you have ever seen. It has no keyhole, but it does have a stone-shaped depression floating centrally within it.'
14
14
  end
15
15
 
16
- def use(player = nil)
16
+ def use(world)
17
17
  puts 'You attempt to open the seriously massive door that separates you from Emerald himself.'
18
18
  if world.player.inventory.contains_item?('keystone')
19
19
  puts 'The keystone in your inventory glows as you approach the incredibly titanic-sized door, so you naturally pull it out and thrust it into the stone-shaped depression within the cloudy obstruction. The door "opens" in a way and you can now pass through.'
@@ -96,7 +96,7 @@ module Gemwarrior
96
96
  puts 'You push the large gem into the pedestal and it descends without a hitch, almost as if it were meant to be. The pedestal begins to violently shake and a strong gust of wind picks you up off the ground. You feel completely taken aback and unsettled, but you have no choice: you are being whisked away somewhere into the sky, destination unknown.'.colorize(:yellow)
97
97
 
98
98
  # stats
99
- world.player.player.movements_made += 1
99
+ world.player.movements_made += 1
100
100
 
101
101
  Animation.run(phrase: USE_TEXT)
102
102
  return { type: 'move', data: 'Sky Tower (Entryway)' }
@@ -13,7 +13,7 @@ module Gemwarrior
13
13
  self.description = 'Made of what appears to be unfulfilled desires and latent, flawed happiness, the well-crafted seat still looks kinda comfy. The wizard Emerald sits in it, glaring at you.'
14
14
  end
15
15
 
16
- def use
16
+ def use(world)
17
17
  puts 'Your words fall on deaf chairs. Emerald continues to stare at you.'
18
18
  { type: nil, data: nil }
19
19
  end
@@ -2,5 +2,5 @@
2
2
  # Version of Gem Warrior
3
3
 
4
4
  module Gemwarrior
5
- VERSION = '0.11.2'
5
+ VERSION = '0.11.3'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemwarrior
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Chadwick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-26 00:00:00.000000000 Z
11
+ date: 2015-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: os
@@ -386,4 +386,6 @@ rubygems_version: 2.4.8
386
386
  signing_key:
387
387
  specification_version: 4
388
388
  summary: RubyGem text adventure
389
- test_files: []
389
+ test_files:
390
+ - spec/gemwarrior_spec.rb
391
+ - spec/spec_helper.rb