gemwarrior 0.15.8 → 0.15.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b28ed81896ffa1b5bbd65ea94b65896ab620d2454cfccb2b3f23b34ea722225
4
- data.tar.gz: b11bda6cf62868a0f3ef0667f2233d4a9dd2c799aadef8891adeaf145d712618
3
+ metadata.gz: 53cf6c29c63f888d1f27bc240cb2dd388b3c8b5b3e2775b7289c477efbc24fd3
4
+ data.tar.gz: d10dd5cde465184947f529db48c4521bb14221b796238a3041178b5a6ce13259
5
5
  SHA512:
6
- metadata.gz: 2e87371072ecfe0505a116e7200ade73b73c9bbe45a8aa18c4b6231401940cc2bacda4422b9c9044f43746a1a68772d27108be73ec8c3d238a7070b6e169f75b
7
- data.tar.gz: 4bee0ae7c80d7466d124d0d36761a933197ea2e18abb3b21d1e12a484a1fc58d23372dba036e4ef690a0971a41344a3be668ed1a1a36c701129df5e983a858fc
6
+ metadata.gz: 27bb912be2904bb2a79c8e897f5cab74344c7bd428d7f15542a9d193d769ea7996e01e67f1d69e28d13643e9ce8c8026daaa51d3ef4f5a61885fab9ff0df4288
7
+ data.tar.gz: a69c3f7773889d1d19610063bfd1109e633da238379e197e0018f38f053501be682186d4f3f4443e1a14302d0a360b89bb9cfa40a02c322540be64c0f3220745
@@ -15,14 +15,14 @@ locations:
15
15
  :south: false
16
16
  :west: true
17
17
  danger_level: :none
18
- monster_level_range:
18
+ monster_level_range:
19
19
  items:
20
20
  - !ruby/object:Gemwarrior::Bed
21
21
  equipped: false
22
22
  consumable: false
23
23
  used: false
24
24
  used_again: false
25
- number_of_uses:
25
+ number_of_uses:
26
26
  name: bed
27
27
  name_display: Bed
28
28
  description: The place where you sleep when you are not adventuring.
@@ -35,7 +35,7 @@ locations:
35
35
  consumable: false
36
36
  used: false
37
37
  used_again: false
38
- number_of_uses:
38
+ number_of_uses:
39
39
  name: chest
40
40
  name_display: Chest
41
41
  description: Well-crafted with solid oak, this family chest has intricate inlays all around the front and sides. It's the one thing from home you took with you when you left.
@@ -48,7 +48,7 @@ locations:
48
48
  consumable: false
49
49
  used: false
50
50
  used_again: false
51
- number_of_uses:
51
+ number_of_uses:
52
52
  name: letter
53
53
  name_display: Letter
54
54
  description: A single page of thin paper, folded at the middle, with some excellent
@@ -61,7 +61,7 @@ locations:
61
61
  consumable: false
62
62
  used: false
63
63
  used_again: false
64
- number_of_uses:
64
+ number_of_uses:
65
65
  name: stone
66
66
  name_display: Stone
67
67
  description: A small, yet quite sharp, sedimentary pebble, suitable for tossing in
@@ -139,7 +139,7 @@ locations:
139
139
  consumable: false
140
140
  used: false
141
141
  used_again: false
142
- number_of_uses:
142
+ number_of_uses:
143
143
  name: stalactite
144
144
  name_display: Stalactite
145
145
  description: Long protrusion of cave adornment, broken off and fallen to the ground,
@@ -150,12 +150,13 @@ locations:
150
150
  talkable: false
151
151
  useable: false
152
152
  equippable: true
153
+ is_weapon: true
153
154
  - !ruby/object:Gemwarrior::Stonemite
154
155
  equipped: false
155
156
  consumable: false
156
157
  used: false
157
158
  used_again: false
158
- number_of_uses:
159
+ number_of_uses:
159
160
  name: stonemite
160
161
  name_display: Stonemite
161
162
  description: Stubby cave debris that is neat to look at, as it is off-grey and
@@ -163,7 +164,6 @@ locations:
163
164
  takeable: true
164
165
  useable: false
165
166
  equippable: false
166
- is_weapon: true
167
167
  monsters_abounding: []
168
168
  bosses_abounding: []
169
169
  checked_for_monsters: false
@@ -216,7 +216,7 @@ locations:
216
216
  consumable: false
217
217
  used: false
218
218
  used_again: false
219
- number_of_uses:
219
+ number_of_uses:
220
220
  name: ladder
221
221
  name_display: Ladder
222
222
  description: Rickety and crudely-fashioned, this ladder descends down into the
@@ -455,7 +455,7 @@ locations:
455
455
  consumable: false
456
456
  used: false
457
457
  used_again: false
458
- number_of_uses:
458
+ number_of_uses:
459
459
  name: small_hole
460
460
  name_display: Small Hole
461
461
  description: Amongst the rubble of the alcove, a small hole, barely big enough
@@ -519,7 +519,7 @@ locations:
519
519
  consumable: false
520
520
  used: false
521
521
  used_again: false
522
- number_of_uses:
522
+ number_of_uses:
523
523
  name: rope
524
524
  name_display: Rope
525
525
  description: For some reason, a sturdy rope hangs down from a small opening in
@@ -677,7 +677,7 @@ locations:
677
677
  consumable: false
678
678
  used: false
679
679
  used_again: false
680
- number_of_uses:
680
+ number_of_uses:
681
681
  name: snowman
682
682
  name_display: Snowman
683
683
  description: Standing solemnly in the snow, a man of snow solemnly stands.
@@ -762,7 +762,7 @@ locations:
762
762
  consumable: false
763
763
  used: false
764
764
  used_again: false
765
- number_of_uses:
765
+ number_of_uses:
766
766
  name: red_key
767
767
  name_display: Red Key
768
768
  description: Redder than an embarrassed tomato in front of a moderate fire, but still very capable of being a key.
@@ -822,7 +822,7 @@ locations:
822
822
  consumable: false
823
823
  used: false
824
824
  used_again: false
825
- number_of_uses:
825
+ number_of_uses:
826
826
  name: map
827
827
  name_display: Map
828
828
  description: The land of Jool is contained on this piece of canvas, in a useful,
@@ -859,7 +859,7 @@ locations:
859
859
  consumable: false
860
860
  used: false
861
861
  used_again: false
862
- number_of_uses:
862
+ number_of_uses:
863
863
  name: tree
864
864
  name_display: Tree
865
865
  description: A mighty representation of nature, older than your father's father's
@@ -920,7 +920,7 @@ locations:
920
920
  consumable: false
921
921
  used: false
922
922
  used_again: false
923
- number_of_uses:
923
+ number_of_uses:
924
924
  name: feather
925
925
  name_display: Feather
926
926
  description: A blue and green feather. It is soft and tender, unlike the craven
@@ -957,7 +957,7 @@ locations:
957
957
  consumable: false
958
958
  used: false
959
959
  used_again: false
960
- number_of_uses:
960
+ number_of_uses:
961
961
  name: bookcase
962
962
  name_display: Bookcase
963
963
  description: This oaken monstrosity has six shelves, each about 3 feet high. Mathing, you determine it to be "huge", featuring many books within it.
@@ -1085,7 +1085,7 @@ locations:
1085
1085
  consumable: false
1086
1086
  used: false
1087
1087
  used_again: false
1088
- number_of_uses:
1088
+ number_of_uses:
1089
1089
  talkable: false
1090
1090
  name: locker_corner
1091
1091
  name_display: Locker (Corner)
@@ -1264,7 +1264,7 @@ locations:
1264
1264
  consumable: false
1265
1265
  used: false
1266
1266
  used_again: false
1267
- number_of_uses:
1267
+ number_of_uses:
1268
1268
  name: arena_door
1269
1269
  name_display: Arena Door
1270
1270
  description: The Arena is massive, with its numerous columns and stone walls stretching
@@ -1295,14 +1295,14 @@ locations:
1295
1295
  :south: false
1296
1296
  :west: true
1297
1297
  danger_level: :none
1298
- monster_level_range:
1298
+ monster_level_range:
1299
1299
  items:
1300
1300
  - !ruby/object:Gemwarrior::ArenaMaster
1301
1301
  equipped: false
1302
1302
  consumable: false
1303
1303
  used: false
1304
1304
  used_again: false
1305
- number_of_uses:
1305
+ number_of_uses:
1306
1306
  talkable: true
1307
1307
  name: arena_master
1308
1308
  name_display: Arena Master
@@ -1353,14 +1353,14 @@ locations:
1353
1353
  :south: false
1354
1354
  :west: false
1355
1355
  danger_level: :none
1356
- monster_level_range:
1356
+ monster_level_range:
1357
1357
  items:
1358
1358
  - !ruby/object:Gemwarrior::Hut
1359
1359
  equipped: false
1360
1360
  consumable: false
1361
1361
  used: false
1362
1362
  used_again: false
1363
- number_of_uses:
1363
+ number_of_uses:
1364
1364
  talkable: false
1365
1365
  name: hut
1366
1366
  name_display: Hut
@@ -1517,7 +1517,7 @@ locations:
1517
1517
  consumable: false
1518
1518
  used: false
1519
1519
  used_again: false
1520
- number_of_uses:
1520
+ number_of_uses:
1521
1521
  talkable: false
1522
1522
  name: bullet
1523
1523
  name_display: Bullet
@@ -1544,14 +1544,14 @@ locations:
1544
1544
  :south: true
1545
1545
  :west: false
1546
1546
  danger_level: :none
1547
- monster_level_range:
1547
+ monster_level_range:
1548
1548
  items:
1549
1549
  - !ruby/object:Gemwarrior::WareHawker
1550
1550
  equipped: false
1551
1551
  consumable: false
1552
1552
  used: false
1553
1553
  used_again: false
1554
- number_of_uses:
1554
+ number_of_uses:
1555
1555
  talkable: true
1556
1556
  name: ware_hawker
1557
1557
  name_display: Ware Hawker
@@ -1580,20 +1580,20 @@ locations:
1580
1580
  :south: false
1581
1581
  :west: true
1582
1582
  danger_level: :none
1583
- monster_level_range:
1583
+ monster_level_range:
1584
1584
  items:
1585
1585
  - !ruby/object:Gemwarrior::ThinMan
1586
1586
  equipped: false
1587
1587
  consumable: false
1588
1588
  used: false
1589
1589
  used_again: false
1590
- number_of_uses:
1590
+ number_of_uses:
1591
1591
  talkable: true
1592
1592
  name: thin_man
1593
1593
  name_display: Thin Man
1594
- description: An almost shockingly gaunt man is sitting on the ground, resting against a wall. He
1595
- wears a patchwork quilt of a hat, and his slender frame is covered by a simple brown tunic. His feet
1596
- point comically toward the sky in brown boots while his head dips down slightly, eyes watching
1594
+ description: An almost shockingly gaunt man is sitting on the ground, resting against a wall. He
1595
+ wears a patchwork quilt of a hat, and his slender frame is covered by a simple brown tunic. His feet
1596
+ point comically toward the sky in brown boots while his head dips down slightly, eyes watching
1597
1597
  something in the distance you can't see.
1598
1598
  takeable: false
1599
1599
  useable: true
@@ -1603,12 +1603,12 @@ locations:
1603
1603
  consumable: false
1604
1604
  used: false
1605
1605
  used_again: false
1606
- number_of_uses:
1606
+ number_of_uses:
1607
1607
  talkable: true
1608
1608
  name: drunk_man
1609
1609
  name_display: Drunk Man
1610
- description: Some supernatural force is surely keeping this obviously smashed individual from
1611
- toppling over to the ground. The inebriated fellow somehow continues to stumble about in a small
1610
+ description: Some supernatural force is surely keeping this obviously smashed individual from
1611
+ toppling over to the ground. The inebriated fellow somehow continues to stumble about in a small
1612
1612
  circle near a smattering of shipping crates, looking simultaneously dazed and cheerful.
1613
1613
  takeable: false
1614
1614
  useable: true
@@ -1632,14 +1632,14 @@ locations:
1632
1632
  :south: true
1633
1633
  :west: true
1634
1634
  danger_level: :none
1635
- monster_level_range:
1635
+ monster_level_range:
1636
1636
  items:
1637
1637
  - !ruby/object:Gemwarrior::Pig
1638
1638
  equipped: false
1639
1639
  consumable: false
1640
1640
  used: false
1641
1641
  used_again: false
1642
- number_of_uses:
1642
+ number_of_uses:
1643
1643
  talkable: true
1644
1644
  name: pig
1645
1645
  name_display: Pig
@@ -1652,7 +1652,7 @@ locations:
1652
1652
  consumable: false
1653
1653
  used: false
1654
1654
  used_again: false
1655
- number_of_uses:
1655
+ number_of_uses:
1656
1656
  talkable: true
1657
1657
  name: cow
1658
1658
  name_display: Cow
@@ -1665,7 +1665,7 @@ locations:
1665
1665
  consumable: false
1666
1666
  used: false
1667
1667
  used_again: false
1668
- number_of_uses:
1668
+ number_of_uses:
1669
1669
  talkable: true
1670
1670
  name: goat
1671
1671
  name_display: Goat
@@ -1678,7 +1678,7 @@ locations:
1678
1678
  consumable: false
1679
1679
  used: false
1680
1680
  used_again: false
1681
- number_of_uses:
1681
+ number_of_uses:
1682
1682
  talkable: false
1683
1683
  name: shovel
1684
1684
  name_display: Shovel
@@ -1707,19 +1707,19 @@ locations:
1707
1707
  :south: true
1708
1708
  :west: false
1709
1709
  danger_level: :none
1710
- monster_level_range:
1710
+ monster_level_range:
1711
1711
  items:
1712
1712
  - !ruby/object:Gemwarrior::ShiftyWoman
1713
1713
  equipped: false
1714
1714
  consumable: false
1715
1715
  used: false
1716
1716
  used_again: false
1717
- number_of_uses:
1717
+ number_of_uses:
1718
1718
  talkable: true
1719
1719
  name: shifty_woman
1720
1720
  name_display: Shifty Woman
1721
- description: Sharply dressed with impeccable style, you still can't shake the feeling that this
1722
- otherwise ordinary woman is up to something. It might be the way she almost impulsively looks
1721
+ description: Sharply dressed with impeccable style, you still can't shake the feeling that this
1722
+ otherwise ordinary woman is up to something. It might be the way she almost impulsively looks
1723
1723
  back and forth along the town street while rubbing her hands together menacingly.
1724
1724
  takeable: false
1725
1725
  useable: true
@@ -1753,7 +1753,7 @@ locations:
1753
1753
  consumable: false
1754
1754
  used: false
1755
1755
  used_again: false
1756
- number_of_uses:
1756
+ number_of_uses:
1757
1757
  name: gun
1758
1758
  name_display: Gun
1759
1759
  description: Pew pew goes this firearm, you suspect (if it has bullets).
@@ -1769,7 +1769,7 @@ locations:
1769
1769
  consumable: false
1770
1770
  used: false
1771
1771
  used_again: false
1772
- number_of_uses:
1772
+ number_of_uses:
1773
1773
  name: pedestal
1774
1774
  name_display: Pedestal
1775
1775
  description: A pedestal about 4 feet in height rises up from the ground, with
@@ -1785,22 +1785,22 @@ locations:
1785
1785
  switches:
1786
1786
  - - alexandrat
1787
1787
  - antdxlarea
1788
- -
1788
+ -
1789
1789
  - - iolita
1790
1790
  - alitoi
1791
- -
1791
+ -
1792
1792
  - - emerald
1793
1793
  - eelmrda
1794
- -
1794
+ -
1795
1795
  - - amberoo
1796
1796
  - raoobem
1797
- -
1797
+ -
1798
1798
  - - ruby
1799
1799
  - ruyb
1800
- -
1800
+ -
1801
1801
  - - rockney
1802
1802
  - eyrcnok
1803
- -
1803
+ -
1804
1804
  monsters_abounding: []
1805
1805
  bosses_abounding: []
1806
1806
  checked_for_monsters: false
@@ -1830,7 +1830,7 @@ locations:
1830
1830
  consumable: false
1831
1831
  used: false
1832
1832
  used_again: false
1833
- number_of_uses:
1833
+ number_of_uses:
1834
1834
  name: floor_tile
1835
1835
  name_display: Floor Tile
1836
1836
  description: One of the floor tiles, rough-hewn but immaculate, looks...off. Pressable,
@@ -1867,7 +1867,7 @@ locations:
1867
1867
  consumable: false
1868
1868
  used: false
1869
1869
  used_again: false
1870
- number_of_uses:
1870
+ number_of_uses:
1871
1871
  name: flower
1872
1872
  name_display: Flower
1873
1873
  description: Petals the color of clear sky and a stem of bright white. A most
@@ -1881,7 +1881,7 @@ locations:
1881
1881
  consumable: false
1882
1882
  used: false
1883
1883
  used_again: false
1884
- number_of_uses:
1884
+ number_of_uses:
1885
1885
  name: keystone
1886
1886
  name_display: Keystone
1887
1887
  description: Certainly greater than the sum of its parts, this smallish stone
@@ -1895,7 +1895,7 @@ locations:
1895
1895
  consumable: false
1896
1896
  used: false
1897
1897
  used_again: false
1898
- number_of_uses:
1898
+ number_of_uses:
1899
1899
  name: pond
1900
1900
  name_display: Pond
1901
1901
  description: 'This tiny pool of water self-ripples every minute or so. Small,
@@ -1935,7 +1935,7 @@ locations:
1935
1935
  consumable: false
1936
1936
  used: false
1937
1937
  used_again: false
1938
- number_of_uses:
1938
+ number_of_uses:
1939
1939
  name: dehumidifier
1940
1940
  name_display: Dehumidifier
1941
1941
  description: Petals the color of clear sky and a stem of bright white. A most
@@ -1995,7 +1995,7 @@ locations:
1995
1995
  consumable: false
1996
1996
  used: false
1997
1997
  used_again: false
1998
- number_of_uses:
1998
+ number_of_uses:
1999
1999
  name: waterfall
2000
2000
  name_display: Waterfall
2001
2001
  description: Gallons of murky, sparkling water fall downward from an unknown spot
@@ -2033,7 +2033,7 @@ locations:
2033
2033
  consumable: false
2034
2034
  used: false
2035
2035
  used_again: false
2036
- number_of_uses:
2036
+ number_of_uses:
2037
2037
  name: massive_door
2038
2038
  name_display: Massive Door
2039
2039
  description: Translucent, but not transparent, this door constructed of condensed
@@ -2072,7 +2072,7 @@ locations:
2072
2072
  consumable: false
2073
2073
  used: false
2074
2074
  used_again: false
2075
- number_of_uses:
2075
+ number_of_uses:
2076
2076
  name: throne
2077
2077
  name_display: Throne
2078
2078
  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.
@@ -2109,7 +2109,7 @@ locations:
2109
2109
  consumable: false
2110
2110
  used: false
2111
2111
  used_again: false
2112
- number_of_uses:
2112
+ number_of_uses:
2113
2113
  name: couch
2114
2114
  name_display: Couch
2115
2115
  description: Ever wanted to sit on a cloud? Now is your chance.
@@ -2170,7 +2170,7 @@ locations:
2170
2170
  consumable: false
2171
2171
  used: false
2172
2172
  used_again: false
2173
- number_of_uses:
2173
+ number_of_uses:
2174
2174
  name: apple
2175
2175
  name_display: Apple
2176
2176
  description: Reddish-orangeish in color, this fruit looks sweet, but it is heavy
@@ -2183,7 +2183,7 @@ locations:
2183
2183
  consumable: false
2184
2184
  used: false
2185
2185
  used_again: false
2186
- number_of_uses:
2186
+ number_of_uses:
2187
2187
  name: cup
2188
2188
  name_display: Cup
2189
2189
  description: A nice stone mug, perfect for putting things into and then using
@@ -2210,14 +2210,14 @@ locations:
2210
2210
  :south: false
2211
2211
  :west: false
2212
2212
  danger_level: :none
2213
- monster_level_range:
2213
+ monster_level_range:
2214
2214
  items:
2215
2215
  - !ruby/object:Gemwarrior::QueenRuby
2216
2216
  equipped: false
2217
2217
  consumable: false
2218
2218
  used: false
2219
2219
  used_again: false
2220
- number_of_uses:
2220
+ number_of_uses:
2221
2221
  name: queen_ruby
2222
2222
  description: Queen Ruby glimmers like she was made from the substance of her name. She wears a wan smile, and her hands are delicately intertwined as she sits patiently.
2223
2223
  takeable: false
@@ -2243,9 +2243,9 @@ player: !ruby/object:Gemwarrior::Player
2243
2243
  defense: 1
2244
2244
  dexterity: 3
2245
2245
  inventory: !ruby/object:Gemwarrior::Inventory
2246
- armor:
2246
+ armor:
2247
2247
  items: []
2248
- weapon:
2248
+ weapon:
2249
2249
  rox: 0
2250
2250
  cur_coords: *2
2251
2251
  special_abilities: []
@@ -7,12 +7,12 @@ module Gemwarrior
7
7
  class Item < Entity
8
8
  attr_accessor :is_armor,
9
9
  :is_weapon
10
-
10
+
11
11
  attr_reader :use
12
12
 
13
13
  def initialize
14
14
  super
15
-
15
+
16
16
  self.is_armor = false
17
17
  self.is_weapon = false
18
18
  end
@@ -20,7 +20,7 @@ module Gemwarrior
20
20
  def use(world)
21
21
  'That item does not do anything...yet.'
22
22
  end
23
-
23
+
24
24
  def describe_detailed(world)
25
25
  desc_text = "\"#{name_display}\"\n".colorize(:yellow)
26
26
  desc_text << "(#{name})\n".colorize(:green)
@@ -13,5 +13,16 @@ module Gemwarrior
13
13
  self.description = 'Reddish-orangeish in color, this fruit looks sweet, but it is heavy and feels more like a rock you would sooner not bite into.'
14
14
  self.takeable = true
15
15
  end
16
+
17
+ def use(world)
18
+ if !self.used
19
+ puts 'You attempt to consume the apple, but stop midway through your first bite. Something tells you this is not a good idea, and you stop.'
20
+ puts
21
+ self.used = true
22
+ else
23
+ puts 'Remembering the odd feeling you got the last time you attempted to use the apple, you refrain.'
24
+ { type: nil, data: nil }
25
+ end
26
+ end
16
27
  end
17
28
  end
@@ -13,5 +13,10 @@ module Gemwarrior
13
13
  self.description = 'A nice stone mug, perfect for putting things into and then using to carry such things from place to place.'
14
14
  self.takeable = true
15
15
  end
16
+
17
+ def use(world)
18
+ puts 'Nothing in the cup at the moment, so not very usable.'
19
+ { type: nil, data: nil }
20
+ end
16
21
  end
17
22
  end
@@ -10,8 +10,13 @@ module Gemwarrior
10
10
 
11
11
  self.name = 'dehumidifier'
12
12
  self.name_display = 'Dehumidifier'
13
- self.description = 'Humidity stands approximately zero chance when its presence.'
13
+ self.description = 'Humidity stands approximately zero chance of surviving when in its presence.'
14
14
  self.takeable = true
15
15
  end
16
+
17
+ def use(world)
18
+ puts 'Despite your figeting, the lack of humidity remains the same.'
19
+ { type: nil, data: nil }
20
+ end
16
21
  end
17
22
  end
@@ -13,5 +13,10 @@ module Gemwarrior
13
13
  self.description = 'A blue and green feather. It is soft and tender, unlike the craven bird that probably shed it.'
14
14
  self.takeable = true
15
15
  end
16
+
17
+ def use(world)
18
+ puts 'Soft to the touch, you wonder what it could be used before besides temporary comfort.'
19
+ { type: nil, data: nil }
20
+ end
16
21
  end
17
22
  end
@@ -13,5 +13,10 @@ module Gemwarrior
13
13
  self.description = 'Petals the color of clear sky and a stem of bright white. A most curious plant.'
14
14
  self.takeable = true
15
15
  end
16
+
17
+ def use(world)
18
+ puts 'You inhale the flower, metaphorically. Smells nice.'
19
+ { type: nil, data: nil }
20
+ end
16
21
  end
17
22
  end
@@ -13,5 +13,10 @@ module Gemwarrior
13
13
  self.description = 'Certainly greater than the sum of its parts, this smallish stone glows faintly and feels slick to the touch.'
14
14
  self.takeable = true
15
15
  end
16
+
17
+ def use(world)
18
+ puts 'The keystone glows a bit brighter when you grasp it tightly.'
19
+ { type: nil, data: nil }
20
+ end
16
21
  end
17
22
  end
@@ -7,7 +7,7 @@ module Gemwarrior
7
7
  class Pedestal < Item
8
8
  # CONSTANTS
9
9
  USE_TEXT = '** WHOOOOOSH **'
10
-
10
+
11
11
  attr_accessor :switches
12
12
 
13
13
  def initialize
@@ -28,17 +28,17 @@ module Gemwarrior
28
28
  ['amberoo', jumble('amberoo'), nil],
29
29
  ['alexandrat', jumble('alexandrat'), nil]
30
30
  ]
31
-
31
+
32
32
  self.switches = self.switches.sort_by { rand }
33
33
  end
34
34
 
35
35
  def use(world)
36
36
  puts 'You look at the pedestal and its switches. The raised gem beckons you to push it and, deductively, you believe that pressing it will do something. However, those switches probably have something to do with the result.'
37
-
37
+
38
38
  loop do
39
39
  print_switches(self.switches)
40
-
41
- puts
40
+
41
+ puts
42
42
  puts 'You can rearrange the letters in the words themselves, and you can push the large gem. What do you do?'
43
43
  puts
44
44
  puts '>> 1 Rearrange the letters in switch 1\'s word'
@@ -50,7 +50,7 @@ module Gemwarrior
50
50
  puts '>> 7 Push the large gem into the pedestal'
51
51
  puts '>> 8 Stop this nonsense'
52
52
  puts
53
-
53
+
54
54
  print '> '
55
55
  choice = gets.chomp!
56
56
 
@@ -87,18 +87,18 @@ module Gemwarrior
87
87
  switches[5][2] = get_new_word(switch6)
88
88
  when '7'
89
89
  pedestal_configured = true
90
-
90
+
91
91
  for i in 0..switches.length-1 do
92
92
  pedestal_configured = false unless switches[i][0].downcase.eql? switches[i][2].downcase
93
- end
94
-
93
+ end
94
+
95
95
  if pedestal_configured
96
96
  Audio.play_synth(:uncover_secret)
97
97
  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)
98
-
98
+
99
99
  # stats
100
100
  world.player.movements_made += 1
101
-
101
+
102
102
  Animation.run(phrase: USE_TEXT)
103
103
  return { type: 'move', data: 'Sky Tower (Entryway)' }
104
104
  else
@@ -112,35 +112,35 @@ module Gemwarrior
112
112
  end
113
113
  end
114
114
  end
115
-
115
+
116
116
  private
117
-
117
+
118
118
  def print_switches(switches)
119
119
  puts
120
-
120
+
121
121
  switch1 = switches[0][2].nil? ? switches[0][1] : switches[0][2]
122
122
  puts "Switch 1: #{switch1}"
123
123
 
124
124
  switch2 = switches[1][2].nil? ? switches[1][1] : switches[1][2]
125
125
  puts "Switch 2: #{switch2}"
126
-
126
+
127
127
  switch3 = switches[2][2].nil? ? switches[2][1] : switches[2][2]
128
128
  puts "Switch 3: #{switch3}"
129
-
129
+
130
130
  switch4 = switches[3][2].nil? ? switches[3][1] : switches[3][2]
131
131
  puts "Switch 4: #{switch4}"
132
-
132
+
133
133
  switch5 = switches[4][2].nil? ? switches[4][1] : switches[4][2]
134
134
  puts "Switch 5: #{switch5}"
135
-
135
+
136
136
  switch6 = switches[5][2].nil? ? switches[5][1] : switches[5][2]
137
137
  puts "Switch 6: #{switch6}"
138
138
  end
139
-
139
+
140
140
  def jumble(word)
141
141
  word.split(//).sort_by { rand }.join('')
142
142
  end
143
-
143
+
144
144
  def get_new_word(switch)
145
145
  new_word = gets.chomp!
146
146
  if switch.downcase.split(//).sort == new_word.downcase.split(//).sort
@@ -13,5 +13,10 @@ module Gemwarrior
13
13
  self.description = 'Stubby cave debris that is neat to look at, as it is off-grey and sparkly, but the size makes it unusable as anything but skipping on a lake.'
14
14
  self.takeable = true
15
15
  end
16
+
17
+ def use(world)
18
+ puts 'You turn the stonemite over and over in your hand. It continues to be a small rock of little import.'
19
+ { type: nil, data: nil }
20
+ end
16
21
  end
17
22
  end
@@ -22,7 +22,7 @@ module Gemwarrior
22
22
  end
23
23
 
24
24
  def use(world)
25
- 'Save the brrandishing of your weapon for battle.'
25
+ 'Save the brandishing of your weapon for battle.'
26
26
  end
27
27
 
28
28
  def describe_detailed
@@ -7,6 +7,9 @@ require_relative '../game_options'
7
7
 
8
8
  module Gemwarrior
9
9
  module Audio
10
+ # CONSTANTS
11
+ ERROR_SOUND_NOT_ENABLED = 'Sound is disabled! Enable in main options to hear sound.'
12
+
10
13
  def self.init
11
14
  if GameOptions.data['sound_system'].eql?('win32-sound')
12
15
  begin
@@ -117,6 +120,8 @@ module Gemwarrior
117
120
  end
118
121
  end
119
122
  end
123
+ else
124
+ GameOptions.data['errors'] = ERROR_SOUND_NOT_ENABLED
120
125
  end
121
126
  end
122
127
 
@@ -25,6 +25,7 @@ module Gemwarrior
25
25
  SPLASH_MESSAGE = 'Welcome to *Jool*, where randomized fortune is just as likely as mayhem.'
26
26
  GITHUB_NAME = 'michaelchadwick'
27
27
  GITHUB_PROJECT = 'gemwarrior'
28
+ ERROR_SOUND_NOT_ENABLED = 'Sound is disabled! Enter \'x\' to exit'
28
29
 
29
30
  attr_accessor :game, :world, :evaluator
30
31
 
@@ -338,16 +339,27 @@ module Gemwarrior
338
339
  puts
339
340
  puts 'Gem Warrior Sound Test'.colorize(:yellow)
340
341
  puts '================================='.colorize(:yellow)
341
- puts
342
- puts 'Play all the sounds in Gemwarrior.'
343
- puts
344
- for cue in Audio.get_cues do
345
- pp cue[0].to_s
342
+
343
+ if GameOptions.data['sound_enabled']
344
+ puts
345
+ puts 'Play all the sounds in Gemwarrior.'
346
+ puts
347
+
348
+ cues = Audio.get_cues
349
+ for cue in cues do
350
+ pp cue[0].to_s
351
+ end
352
+
353
+ puts
354
+ puts '================================='.colorize(:yellow)
355
+ puts
356
+ puts 'Enter sound id to play it, or enter "x" to return to the main menu.'
357
+ else
358
+ GameOptions.data['errors'] = ERROR_SOUND_NOT_ENABLED
346
359
  end
347
- puts
348
- puts '================================='.colorize(:yellow)
349
- puts
350
- puts 'Enter sound id to play it, or enter "x" to return to the main menu.'
360
+
361
+ print_errors
362
+
351
363
  puts
352
364
  print '[GW_SOUND_TEST]> '
353
365
 
@@ -641,6 +653,7 @@ module Gemwarrior
641
653
  if GameOptions.data['errors']
642
654
  puts "\n\n"
643
655
  puts "Errors: #{GameOptions.data['errors'].colorize(:red)}"
656
+ GameOptions.data['errors'] = nil
644
657
  end
645
658
  end
646
659
 
@@ -2,5 +2,5 @@
2
2
  # Version of Gem Warrior
3
3
 
4
4
  module Gemwarrior
5
- VERSION = '0.15.8'
5
+ VERSION = '0.15.9'
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.15.8
4
+ version: 0.15.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Chadwick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-19 00:00:00.000000000 Z
11
+ date: 2020-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: os