gemwarrior 0.11.3 → 0.11.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/lib/gemwarrior/entities/people/ware_hawker.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: c1d8b0e0468432814442734f5427456f1f1058be
|
4
|
+
data.tar.gz: a6e7a346e625aa1a8f9c9b02569b6d62e7f1be47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3f32bd67c8d92de25fc511ccbed637d40e225fc479c3112074dd082bc3a293df34f3b763027d42c2d6d177800ed9a657c9521e5060ef330e2df178899510616
|
7
|
+
data.tar.gz: 4c78ca59660e3decfa219a408b946026842b490dbee6cd91bc3d09cf6f1d2b83d351c2bc58f2c57a62e7a26311dcb59ba2256700fc9592bb944d99a5eb915bf9
|
@@ -125,20 +125,18 @@ module Gemwarrior
|
|
125
125
|
next
|
126
126
|
end
|
127
127
|
when 'x'
|
128
|
+
return_type = { type: nil, data: nil }
|
128
129
|
if items_purchased.length > 0
|
129
130
|
display_shopping_cart(items_purchased)
|
130
131
|
speak('Are you certain you wish to buy these things? (y/n)')
|
131
132
|
print '[HAWK]> '
|
132
133
|
answer = gets.chomp.downcase
|
133
134
|
|
134
|
-
return_type = nil
|
135
135
|
case answer
|
136
136
|
when 'y', 'yes'
|
137
137
|
world.player.rox -= amount_spent
|
138
138
|
speak('Take them.')
|
139
139
|
return_type = { type: 'purchase', data: items_purchased }
|
140
|
-
else
|
141
|
-
return_type = { type: nil, data: nil }
|
142
140
|
end
|
143
141
|
end
|
144
142
|
speak('Our business is complete then.')
|
data/lib/gemwarrior/version.rb
CHANGED