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 +4 -4
- data/data/default_world.yaml +14 -2
- data/lib/gemwarrior/entities/creature.rb +1 -1
- data/lib/gemwarrior/entities/items/hut.rb +22 -0
- data/lib/gemwarrior/inventory.rb +3 -0
- data/lib/gemwarrior/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87bff5190da68f1454d52814bd9422db83ee0557
|
4
|
+
data.tar.gz: 20431dada8b12529559d785d9153a7051bb76e2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aaabc538029f95eb443f464c35865eb7cf184880b616058b20dc0402c80a28eb19dac63c627d2fa1c1781c181007e945ed65a867cc56bc6ec475a862806a59d
|
7
|
+
data.tar.gz: 18d20126876e58d3e74f89ff2e46c0687bcea02281772b5590f2a393ea6cb6e7b0397fc3a22e1526696787907b5ac69e5aa7c3bfac9a6b74181b01b84eb06a91
|
data/data/default_world.yaml
CHANGED
@@ -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
|
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
|
data/lib/gemwarrior/inventory.rb
CHANGED
@@ -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
|
data/lib/gemwarrior/version.rb
CHANGED
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
|
+
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
|