gemwarrior 0.12.4 → 0.12.5

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: bea60182b8599a491537d816df34ed5d590bbe07
4
- data.tar.gz: fac354917d7dd23fec734909ecdd2ec842874f59
3
+ metadata.gz: 87bff5190da68f1454d52814bd9422db83ee0557
4
+ data.tar.gz: 20431dada8b12529559d785d9153a7051bb76e2c
5
5
  SHA512:
6
- metadata.gz: 59175723350eca718f71c27d823a53d3cb45fae16e470bd477d09e08ab5eb39a4924d821c9461cb177d677b501d817b1cd05c32b25356a800268b2321785ec57
7
- data.tar.gz: de53018e24010e6390f72ff32d644f1211a5d847fef28684280997ebeb8bb358ae187b44429228acb7e84ade2e9e75f38bae32c42b61e1563ec040e554bbc2db
6
+ metadata.gz: 9aaabc538029f95eb443f464c35865eb7cf184880b616058b20dc0402c80a28eb19dac63c627d2fa1c1781c181007e945ed65a867cc56bc6ec475a862806a59d
7
+ data.tar.gz: 18d20126876e58d3e74f89ff2e46c0687bcea02281772b5590f2a393ea6cb6e7b0397fc3a22e1526696787907b5ac69e5aa7c3bfac9a6b74181b01b84eb06a91
@@ -3,7 +3,7 @@ locations:
3
3
  - !ruby/object:Gemwarrior::Location
4
4
  name: home
5
5
  name_display: Home
6
- description: The little, unimportant, decrepit hut that you live in.
6
+ description: The little, unimportant, decrepit shack that you live in. What it lacks in decisive magnanimity, it makes up for it in its cozy squalidness. Nearby, you notice a curious letter, folded in three.
7
7
  coords: &2
8
8
  :x: 5
9
9
  :y: 0
@@ -1264,7 +1264,19 @@ locations:
1264
1264
  :west: false
1265
1265
  danger_level: :none
1266
1266
  monster_level_range:
1267
- items: []
1267
+ items:
1268
+ - !ruby/object:Gemwarrior::Hut
1269
+ equipped: false
1270
+ consumable: false
1271
+ used: false
1272
+ number_of_uses:
1273
+ talkable: false
1274
+ name: hut
1275
+ name_display: Hut
1276
+ description: A simple thatched hut, sitting in the middle of the plains. Nothing about it seems odd, except its existence among the otherwise featureless landscape.
1277
+ takeable: false
1278
+ useable: true
1279
+ equippable: false
1268
1280
  monsters_abounding: []
1269
1281
  bosses_abounding: []
1270
1282
  checked_for_monsters: false
@@ -52,7 +52,7 @@ module Gemwarrior
52
52
  def describe
53
53
  desc_text = "#{description}".colorize(:white)
54
54
  desc_text << "\n"
55
- desc_text << "The creature has several distinguishing features, as well: face is #{face}, hands are #{hands}, and mood is, generally, #{mood}."
55
+ desc_text << "The creature has several distinguishing features, as well: face is #{face.colorize(:yellow)}, hands are #{hands.colorize(:yellow)}, and mood is, generally, #{mood.colorize(:yellow)}."
56
56
  desc_text
57
57
  end
58
58
 
@@ -0,0 +1,22 @@
1
+ # lib/gemwarrior/entities/items/hut.rb
2
+ # Entity::Item::Hut
3
+
4
+ require_relative '../item'
5
+
6
+ module Gemwarrior
7
+ class Hut < Item
8
+ def initialize
9
+ super
10
+
11
+ self.name = 'hut'
12
+ self.name_display = 'Hut'
13
+ self.description = 'A simple thatched hut, sitting in the middle of the plains. Nothing about it seems odd, except its existence among the otherwise featureless landscape.'
14
+ end
15
+
16
+ def use(world)
17
+ puts 'You peer inside, but it is completely vacant at the moment, leaving you marginally disappointed.'
18
+
19
+ { type: nil, data: nil }
20
+ end
21
+ end
22
+ end
@@ -203,6 +203,9 @@ module Gemwarrior
203
203
  if i.takeable
204
204
  self.items.push(i)
205
205
  cur_loc.remove_item(item_name)
206
+ if cur_loc.name.eql?('home')
207
+ cur_loc.description = 'The little, unimportant, decrepit shack that you live in. What it lacks in decisive magnanimity, it makes up for it in its cozy squalidness.'
208
+ end
206
209
 
207
210
  # stats
208
211
  player.items_taken += 1
@@ -2,5 +2,5 @@
2
2
  # Version of Gem Warrior
3
3
 
4
4
  module Gemwarrior
5
- VERSION = '0.12.4'
5
+ VERSION = '0.12.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.12.4
4
+ version: 0.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Chadwick
@@ -294,6 +294,7 @@ files:
294
294
  - lib/gemwarrior/entities/items/floor_tile.rb
295
295
  - lib/gemwarrior/entities/items/flower.rb
296
296
  - lib/gemwarrior/entities/items/herb.rb
297
+ - lib/gemwarrior/entities/items/hut.rb
297
298
  - lib/gemwarrior/entities/items/keystone.rb
298
299
  - lib/gemwarrior/entities/items/ladder.rb
299
300
  - lib/gemwarrior/entities/items/letter.rb