gemwarrior 0.13.2 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/gemwarrior +0 -0
- data/data/default_world.yaml +68 -0
- data/lib/gemwarrior/entities/items/map.rb +1 -1
- data/lib/gemwarrior/entities/location.rb +3 -1
- data/lib/gemwarrior/entities/player.rb +2 -1
- data/lib/gemwarrior/evaluator.rb +1 -1
- data/lib/gemwarrior/game.rb +3 -0
- data/lib/gemwarrior/misc/player_levels.rb +1 -1
- data/lib/gemwarrior/version.rb +1 -1
- data/lib/gemwarrior/world.rb +15 -3
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 013f343ab91678e182886ffec17724c6b942c9f4
|
4
|
+
data.tar.gz: 008817eed3ccfc661eb4a0ec949835b2ad899656
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc2d5dec4ed87f2328ad3147eaf5090ea3c1a9b4b0bb5b0943032cbc8301c8ace837b5297def8a54a4b1723f6f03b9d4fc0a51ae6c31254ae6eddd8a5360a2e9
|
7
|
+
data.tar.gz: 1bacbb48b49710eedd77fa29a1c8cd3a12ea3abf98a1476f67bc13b8ac1050ac9723adb20ba629cb17dc7be51f439c780e115b45fcdf616ba326c2dfe309ed60
|
data/bin/gemwarrior
CHANGED
File without changes
|
data/data/default_world.yaml
CHANGED
@@ -3,6 +3,7 @@ locations:
|
|
3
3
|
- !ruby/object:Gemwarrior::Location
|
4
4
|
name: home
|
5
5
|
name_display: Home
|
6
|
+
visited: true
|
6
7
|
description: The little, unimportant, decrepit shack that you live in. What the place lacks in decisive magnanimity is made up for in cozy squalidness. Your bed covers much of the northern corner. Your beloved family chest sits at the foot of the bed.
|
7
8
|
coords: &2
|
8
9
|
:x: 5
|
@@ -91,6 +92,7 @@ locations:
|
|
91
92
|
- !ruby/object:Gemwarrior::Location
|
92
93
|
name: cave-entrance
|
93
94
|
name_display: Cave (Entrance)
|
95
|
+
visited: false
|
94
96
|
description: A nearby, dank entrance to a cavern, surely filled with stacktites,
|
95
97
|
stonemites, and rocksites.
|
96
98
|
coords:
|
@@ -114,6 +116,7 @@ locations:
|
|
114
116
|
- !ruby/object:Gemwarrior::Location
|
115
117
|
name: cave-antechamber
|
116
118
|
name_display: Cave (Antechamber)
|
119
|
+
visited: false
|
117
120
|
description: Now inside the cavern, you confirm there are stacktites, stonemites,
|
118
121
|
rocksites, and even some pebblejites.
|
119
122
|
coords:
|
@@ -167,6 +170,7 @@ locations:
|
|
167
170
|
- !ruby/object:Gemwarrior::Location
|
168
171
|
name: cave-nook
|
169
172
|
name_display: Cave (Nook)
|
173
|
+
visited: false
|
170
174
|
description: A depression in the cave wall casts a shadow over a small rock shelf.
|
171
175
|
coords:
|
172
176
|
:x: 7
|
@@ -189,6 +193,7 @@ locations:
|
|
189
193
|
- !ruby/object:Gemwarrior::Location
|
190
194
|
name: cave-dropoff
|
191
195
|
name_display: Cave (Dropoff)
|
196
|
+
visited: false
|
192
197
|
description: Caves do not usually feature sudden chasms spilling down into an unknowable
|
193
198
|
void, but this one does.
|
194
199
|
coords:
|
@@ -226,6 +231,7 @@ locations:
|
|
226
231
|
- !ruby/object:Gemwarrior::Location
|
227
232
|
name: metal_tunnel-south_entrance
|
228
233
|
name_display: Metal Tunnel (South Entrance)
|
234
|
+
visited: false
|
229
235
|
description: You are in a tightly-enclosed tunnel running under the ground. The
|
230
236
|
walls are made of shiny, smooth material you think may be some kind of metal.
|
231
237
|
It is claustrophobic, to say the least.
|
@@ -250,6 +256,7 @@ locations:
|
|
250
256
|
- !ruby/object:Gemwarrior::Location
|
251
257
|
name: metal_tunnel-8_2
|
252
258
|
name_display: Metal Tunnel
|
259
|
+
visited: false
|
253
260
|
description: The walls of this underground tunnel shine, as if some otherworldly
|
254
261
|
light source emanates directly from them. It is cold and narrow and you are not
|
255
262
|
sure you are a huge fan of it.
|
@@ -274,6 +281,7 @@ locations:
|
|
274
281
|
- !ruby/object:Gemwarrior::Location
|
275
282
|
name: metal_tunnel-8_3
|
276
283
|
name_display: Metal Tunnel
|
284
|
+
visited: false
|
277
285
|
description: The walls of this underground tunnel shine, as if some otherworldly
|
278
286
|
light source emanates directly from them. It is cold and narrow and you are not
|
279
287
|
sure you are a huge fan of it.
|
@@ -298,6 +306,7 @@ locations:
|
|
298
306
|
- !ruby/object:Gemwarrior::Location
|
299
307
|
name: metal_tunnel-8_4
|
300
308
|
name_display: Metal Tunnel
|
309
|
+
visited: false
|
301
310
|
description: The walls of this underground tunnel shine, as if some otherworldly
|
302
311
|
light source emanates directly from them. It is cold and narrow and you are not
|
303
312
|
sure you are a huge fan of it.
|
@@ -322,6 +331,7 @@ locations:
|
|
322
331
|
- !ruby/object:Gemwarrior::Location
|
323
332
|
name: metal_tunnel-7_4
|
324
333
|
name_display: Metal Tunnel
|
334
|
+
visited: false
|
325
335
|
description: The walls of this underground tunnel shine, as if some otherworldly
|
326
336
|
light source emanates directly from them. It is cold and narrow and you are not
|
327
337
|
sure you are a huge fan of it.
|
@@ -346,6 +356,7 @@ locations:
|
|
346
356
|
- !ruby/object:Gemwarrior::Location
|
347
357
|
name: metal_tunnel-6_4
|
348
358
|
name_display: Metal Tunnel
|
359
|
+
visited: false
|
349
360
|
description: The walls of this underground tunnel shine, as if some otherworldly
|
350
361
|
light source emanates directly from them. It is cold and narrow and you are not
|
351
362
|
sure you are a huge fan of it.
|
@@ -370,6 +381,7 @@ locations:
|
|
370
381
|
- !ruby/object:Gemwarrior::Location
|
371
382
|
name: metal_tunnel-6_5
|
372
383
|
name_display: Metal Tunnel
|
384
|
+
visited: false
|
373
385
|
description: The walls of this underground tunnel shine, as if some otherworldly
|
374
386
|
light source emanates directly from them. It is cold and narrow and you are not
|
375
387
|
sure you are a huge fan of it.
|
@@ -394,6 +406,7 @@ locations:
|
|
394
406
|
- !ruby/object:Gemwarrior::Location
|
395
407
|
name: metal_tunnel-5_5
|
396
408
|
name_display: Metal Tunnel
|
409
|
+
visited: false
|
397
410
|
description: The walls of this underground tunnel shine, as if some otherworldly
|
398
411
|
light source emanates directly from them. It is cold and narrow and you are not
|
399
412
|
sure you are a huge fan of it.
|
@@ -418,6 +431,7 @@ locations:
|
|
418
431
|
- !ruby/object:Gemwarrior::Location
|
419
432
|
name: tunnel_alcove
|
420
433
|
name_display: Tunnel Alcove
|
434
|
+
visited: false
|
421
435
|
description: A moderately-sized alcove seems to have been blown out of the side
|
422
436
|
of tunnel here, almost as if an actual bomb detonated, the remainder of the wall
|
423
437
|
a mix of rock and wires.
|
@@ -456,6 +470,7 @@ locations:
|
|
456
470
|
- !ruby/object:Gemwarrior::Location
|
457
471
|
name: metal_tunnel-5_6
|
458
472
|
name_display: Metal Tunnel
|
473
|
+
visited: false
|
459
474
|
description: The walls of this underground tunnel shine, as if some otherworldly
|
460
475
|
light source emanates directly from them. It is cold and narrow and you are not
|
461
476
|
sure you are a huge fan of it.
|
@@ -480,6 +495,7 @@ locations:
|
|
480
495
|
- !ruby/object:Gemwarrior::Location
|
481
496
|
name: metal_tunnel-north_entrance
|
482
497
|
name_display: Metal Tunnel (North Entrance)
|
498
|
+
visited: false
|
483
499
|
description: The walls of this underground tunnel shine, as if some otherworldly
|
484
500
|
light source emanates directly from them. It is cold and narrow and you are not
|
485
501
|
sure you are a huge fan of it.
|
@@ -518,6 +534,7 @@ locations:
|
|
518
534
|
- !ruby/object:Gemwarrior::Location
|
519
535
|
name: snow_fields-southeast
|
520
536
|
name_display: Snow Fields (Southeast)
|
537
|
+
visited: false
|
521
538
|
description: It is as if the color palette for this still and frozen scene before
|
522
539
|
you consisted only of whites, off-whites, and vanilla.
|
523
540
|
coords:
|
@@ -541,6 +558,7 @@ locations:
|
|
541
558
|
- !ruby/object:Gemwarrior::Location
|
542
559
|
name: snow_fields-south_southeast
|
543
560
|
name_display: Snow Fields (South-Southeast)
|
561
|
+
visited: false
|
544
562
|
description: It is as if the color palette for this still and frozen scene before
|
545
563
|
you consisted only of whites, off-whites, and vanilla.
|
546
564
|
coords:
|
@@ -564,6 +582,7 @@ locations:
|
|
564
582
|
- !ruby/object:Gemwarrior::Location
|
565
583
|
name: snow_fields-south
|
566
584
|
name_display: Snow Fields (South)
|
585
|
+
visited: false
|
567
586
|
description: It is as if the color palette for this still and frozen scene before
|
568
587
|
you consisted only of whites, off-whites, and vanilla.
|
569
588
|
coords:
|
@@ -587,6 +606,7 @@ locations:
|
|
587
606
|
- !ruby/object:Gemwarrior::Location
|
588
607
|
name: snow_fields-south_southwest
|
589
608
|
name_display: Snow Fields (South-Southwest)
|
609
|
+
visited: false
|
590
610
|
description: It is as if the color palette for this still and frozen scene before
|
591
611
|
you consisted only of whites, off-whites, and vanilla.
|
592
612
|
coords:
|
@@ -610,6 +630,7 @@ locations:
|
|
610
630
|
- !ruby/object:Gemwarrior::Location
|
611
631
|
name: snow_fields-southwest
|
612
632
|
name_display: Snow Fields (Southwest)
|
633
|
+
visited: false
|
613
634
|
description: It is as if the color palette for this still and frozen scene before
|
614
635
|
you consisted only of whites, off-whites, and vanilla.
|
615
636
|
coords:
|
@@ -633,6 +654,7 @@ locations:
|
|
633
654
|
- !ruby/object:Gemwarrior::Location
|
634
655
|
name: snow_fields-northwest
|
635
656
|
name_display: Snow Fields (Northwest)
|
657
|
+
visited: false
|
636
658
|
description: It is as if the color palette for this still and frozen scene before
|
637
659
|
you consisted only of whites, off-whites, and vanilla.
|
638
660
|
coords:
|
@@ -669,6 +691,7 @@ locations:
|
|
669
691
|
- !ruby/object:Gemwarrior::Location
|
670
692
|
name: snow_fields-north_northwest
|
671
693
|
name_display: Snow Fields (North-Northwest)
|
694
|
+
visited: false
|
672
695
|
description: It is as if the color palette for this still and frozen scene before
|
673
696
|
you consisted only of whites, off-whites, and vanilla.
|
674
697
|
coords:
|
@@ -692,6 +715,7 @@ locations:
|
|
692
715
|
- !ruby/object:Gemwarrior::Location
|
693
716
|
name: snow_fields-north
|
694
717
|
name_display: Snow Fields (North)
|
718
|
+
visited: false
|
695
719
|
description: It is as if the color palette for this still and frozen scene before
|
696
720
|
you consisted only of whites, off-whites, and vanilla.
|
697
721
|
coords:
|
@@ -715,6 +739,7 @@ locations:
|
|
715
739
|
- !ruby/object:Gemwarrior::Location
|
716
740
|
name: snow_fields-north_northeast
|
717
741
|
name_display: Snow Fields (North-Northeast)
|
742
|
+
visited: false
|
718
743
|
description: It is as if the color palette for this still and frozen scene before
|
719
744
|
you consisted only of whites, off-whites, and vanilla.
|
720
745
|
coords:
|
@@ -738,6 +763,7 @@ locations:
|
|
738
763
|
- !ruby/object:Gemwarrior::Location
|
739
764
|
name: snow_fields-northeast
|
740
765
|
name_display: Snow Fields (Northeast)
|
766
|
+
visited: false
|
741
767
|
description: It is as if the color palette for this still and frozen scene before
|
742
768
|
you consisted only of whites, off-whites, and vanilla.
|
743
769
|
coords:
|
@@ -761,6 +787,7 @@ locations:
|
|
761
787
|
- !ruby/object:Gemwarrior::Location
|
762
788
|
name: cave-causeway
|
763
789
|
name_display: Cave (Causeway)
|
790
|
+
visited: false
|
764
791
|
description: Paths lead north and west as a dank, musty smell permeates your sinuses.
|
765
792
|
coords:
|
766
793
|
:x: 8
|
@@ -797,6 +824,7 @@ locations:
|
|
797
824
|
- !ruby/object:Gemwarrior::Location
|
798
825
|
name: forest-southeast
|
799
826
|
name_display: Forest (Southeast)
|
827
|
+
visited: false
|
800
828
|
description: Trees exist here, in droves.
|
801
829
|
coords:
|
802
830
|
:x: 4
|
@@ -833,6 +861,7 @@ locations:
|
|
833
861
|
- !ruby/object:Gemwarrior::Location
|
834
862
|
name: forest-northeast
|
835
863
|
name_display: Forest (Northeast)
|
864
|
+
visited: false
|
836
865
|
description: You see much foliage.
|
837
866
|
coords:
|
838
867
|
:x: 4
|
@@ -855,6 +884,7 @@ locations:
|
|
855
884
|
- !ruby/object:Gemwarrior::Location
|
856
885
|
name: forest-northwest
|
857
886
|
name_display: Forest (Northwest)
|
887
|
+
visited: false
|
858
888
|
description: The amount of leaves and branches and trunks you can see boggles the
|
859
889
|
mind.
|
860
890
|
coords:
|
@@ -892,6 +922,7 @@ locations:
|
|
892
922
|
- !ruby/object:Gemwarrior::Location
|
893
923
|
name: forest-southwest
|
894
924
|
name_display: Forest (Southwest)
|
925
|
+
visited: false
|
895
926
|
description: While you continue to be impressed at the sheer size of this forest, it feels like it never ends, making you feel lost. Thankfully, there is an inexplicable bookcase here.
|
896
927
|
coords:
|
897
928
|
:x: 3
|
@@ -927,6 +958,7 @@ locations:
|
|
927
958
|
- !ruby/object:Gemwarrior::Location
|
928
959
|
name: pain_quarry-southeast
|
929
960
|
name_display: Pain Quarry (Southeast)
|
961
|
+
visited: false
|
930
962
|
description: Horrible terribleness emanates from this desolate land of unkind misery.
|
931
963
|
coords:
|
932
964
|
:x: 2
|
@@ -949,6 +981,7 @@ locations:
|
|
949
981
|
- !ruby/object:Gemwarrior::Location
|
950
982
|
name: pain_quarry-east
|
951
983
|
name_display: Pain Quarry (East)
|
984
|
+
visited: false
|
952
985
|
description: Horrible terribleness emanates from this desolate land of unkind misery.
|
953
986
|
coords:
|
954
987
|
:x: 2
|
@@ -971,6 +1004,7 @@ locations:
|
|
971
1004
|
- !ruby/object:Gemwarrior::Location
|
972
1005
|
name: pain_quarry-central
|
973
1006
|
name_display: Pain Quarry (Central)
|
1007
|
+
visited: false
|
974
1008
|
description: Horrible terribleness emanates from this desolate land of unkind misery.
|
975
1009
|
coords:
|
976
1010
|
:x: 1
|
@@ -993,6 +1027,7 @@ locations:
|
|
993
1027
|
- !ruby/object:Gemwarrior::Location
|
994
1028
|
name: pain_quarry-south
|
995
1029
|
name_display: Pain Quarry (South)
|
1030
|
+
visited: false
|
996
1031
|
description: Horrible terribleness emanates from this desolate land of unkind misery.
|
997
1032
|
coords:
|
998
1033
|
:x: 1
|
@@ -1015,6 +1050,7 @@ locations:
|
|
1015
1050
|
- !ruby/object:Gemwarrior::Location
|
1016
1051
|
name: pain_quarry-west
|
1017
1052
|
name_display: Pain Quarry (West)
|
1053
|
+
visited: false
|
1018
1054
|
description: Horrible terribleness emanates from this desolate land of unkind misery.
|
1019
1055
|
coords:
|
1020
1056
|
:x: 0
|
@@ -1050,6 +1086,7 @@ locations:
|
|
1050
1086
|
- !ruby/object:Gemwarrior::Location
|
1051
1087
|
name: pain_quarry-northwest
|
1052
1088
|
name_display: Pain Quarry (Northwest)
|
1089
|
+
visited: false
|
1053
1090
|
description: Horrible terribleness emanates from this desolate land of unkind misery.
|
1054
1091
|
coords:
|
1055
1092
|
:x: 0
|
@@ -1072,6 +1109,7 @@ locations:
|
|
1072
1109
|
- !ruby/object:Gemwarrior::Location
|
1073
1110
|
name: pain_quarry-north
|
1074
1111
|
name_display: Pain Quarry (North)
|
1112
|
+
visited: false
|
1075
1113
|
description: Horrible terribleness emanates from this desolate land of unkind misery.
|
1076
1114
|
coords:
|
1077
1115
|
:x: 1
|
@@ -1094,6 +1132,7 @@ locations:
|
|
1094
1132
|
- !ruby/object:Gemwarrior::Location
|
1095
1133
|
name: plains-outskirts
|
1096
1134
|
name_display: Plains (Outskirts)
|
1135
|
+
visited: false
|
1097
1136
|
description: A lot of grass and nothing, stretching out northward.
|
1098
1137
|
coords:
|
1099
1138
|
:x: 5
|
@@ -1116,6 +1155,7 @@ locations:
|
|
1116
1155
|
- !ruby/object:Gemwarrior::Location
|
1117
1156
|
name: plains-fields
|
1118
1157
|
name_display: Plains (Fields)
|
1158
|
+
visited: false
|
1119
1159
|
description: Now you are plum smack dab in the middle of rolling fields.
|
1120
1160
|
coords:
|
1121
1161
|
:x: 5
|
@@ -1138,6 +1178,7 @@ locations:
|
|
1138
1178
|
- !ruby/object:Gemwarrior::Location
|
1139
1179
|
name: plains-south_of_river
|
1140
1180
|
name_display: Plains (South of River)
|
1181
|
+
visited: false
|
1141
1182
|
description: A raging river borders the northern side of this bucolic vista. Much
|
1142
1183
|
raucous noise comes from the east.
|
1143
1184
|
coords:
|
@@ -1161,6 +1202,7 @@ locations:
|
|
1161
1202
|
- !ruby/object:Gemwarrior::Location
|
1162
1203
|
name: plains-south_southeast
|
1163
1204
|
name_display: Plains (South-Southeast)
|
1205
|
+
visited: false
|
1164
1206
|
description: A path north of you descends into a valley, but otherwise the plains stretch out all
|
1165
1207
|
around. The noise from the east is quite loud, and a building can be seen in the
|
1166
1208
|
near distance.
|
@@ -1185,6 +1227,7 @@ locations:
|
|
1185
1227
|
- !ruby/object:Gemwarrior::Location
|
1186
1228
|
name: plains-arena_entrance
|
1187
1229
|
name_display: Plains (Arena Entrance)
|
1230
|
+
visited: false
|
1188
1231
|
description: Well above the noise of the raging river nearby, the din of the mighty
|
1189
1232
|
Arena to the east reaches its near fever-pitch just outside. The door, and battle,
|
1190
1233
|
beckons.
|
@@ -1225,6 +1268,7 @@ locations:
|
|
1225
1268
|
- !ruby/object:Gemwarrior::Location
|
1226
1269
|
name: arena
|
1227
1270
|
name_display: Arena
|
1271
|
+
visited: false
|
1228
1272
|
description: Dangerous and risky, the Arena allows would-be monster-slayers and
|
1229
1273
|
adventurers fight against an infinite number of beasts in order to test their
|
1230
1274
|
mettle and improve their skill...for a small fee, of course.
|
@@ -1260,6 +1304,7 @@ locations:
|
|
1260
1304
|
- !ruby/object:Gemwarrior::Location
|
1261
1305
|
name: plains-south_of_bridge
|
1262
1306
|
name_display: Plains (South of Bridge)
|
1307
|
+
visited: false
|
1263
1308
|
description: To the north of these fields lies a bridge that may be crossable.
|
1264
1309
|
coords:
|
1265
1310
|
:x: 4
|
@@ -1282,6 +1327,7 @@ locations:
|
|
1282
1327
|
- !ruby/object:Gemwarrior::Location
|
1283
1328
|
name: plains-hut
|
1284
1329
|
name_display: Plains (Hut)
|
1330
|
+
visited: false
|
1285
1331
|
description: A straw hut sits alone, curiously, in a patch of grass, sticks, and
|
1286
1332
|
straw.
|
1287
1333
|
coords:
|
@@ -1315,6 +1361,7 @@ locations:
|
|
1315
1361
|
- !ruby/object:Gemwarrior::Location
|
1316
1362
|
name: river_bridge
|
1317
1363
|
name_display: River Bridge
|
1364
|
+
visited: false
|
1318
1365
|
description: Sturdy and safe, this bridge will get you across the otherwise unpassable
|
1319
1366
|
river you see below. Unfortunately, there is a giant in front of you, being quit menacing.
|
1320
1367
|
coords:
|
@@ -1338,6 +1385,7 @@ locations:
|
|
1338
1385
|
- !ruby/object:Gemwarrior::Location
|
1339
1386
|
name: plains-north_of_bridge
|
1340
1387
|
name_display: Plains (North of Bridge)
|
1388
|
+
visited: false
|
1341
1389
|
description: North of the river feels similar to south of the river, as you continue
|
1342
1390
|
to be surrounded by grass and grass and, well, grass.
|
1343
1391
|
coords:
|
@@ -1361,6 +1409,7 @@ locations:
|
|
1361
1409
|
- !ruby/object:Gemwarrior::Location
|
1362
1410
|
name: peridover_valley-south
|
1363
1411
|
name_display: Peridover Valley (South)
|
1412
|
+
visited: false
|
1364
1413
|
description: The road slopes down slightly here, but in the near distance you can
|
1365
1414
|
see that it slopes way more slopily. A mighty river ends in a bay to your west.
|
1366
1415
|
coords:
|
@@ -1384,6 +1433,7 @@ locations:
|
|
1384
1433
|
- !ruby/object:Gemwarrior::Location
|
1385
1434
|
name: peridover_valley-central
|
1386
1435
|
name_display: Peridover Valley (Central)
|
1436
|
+
visited: false
|
1387
1437
|
description: The Peridover Valley is in full effect here, sloping down into a reverse
|
1388
1438
|
plateau. Bones of wild animals litter the area.
|
1389
1439
|
coords:
|
@@ -1407,6 +1457,7 @@ locations:
|
|
1407
1457
|
- !ruby/object:Gemwarrior::Location
|
1408
1458
|
name: peridover_valley-northeast
|
1409
1459
|
name_display: Peridover Valley (Northeast)
|
1460
|
+
visited: false
|
1410
1461
|
description: Sloping way down to the west, but leveling off here, a din of civilization
|
1411
1462
|
calls from the north.
|
1412
1463
|
coords:
|
@@ -1430,6 +1481,7 @@ locations:
|
|
1430
1481
|
- !ruby/object:Gemwarrior::Location
|
1431
1482
|
name: south_of_spinelia
|
1432
1483
|
name_display: South of Spinelia
|
1484
|
+
visited: false
|
1433
1485
|
description: Northwardly, you can hear general town noise, such as people scuffling,
|
1434
1486
|
nattering, and more or less existing in a people kind of way.
|
1435
1487
|
coords:
|
@@ -1466,6 +1518,7 @@ locations:
|
|
1466
1518
|
- !ruby/object:Gemwarrior::Location
|
1467
1519
|
name: spinelia-southwest
|
1468
1520
|
name_display: Spinelia (Southwest)
|
1521
|
+
visited: false
|
1469
1522
|
description: Near the front entrance to Spinelia is the market corner. Merchants
|
1470
1523
|
are all around, hawking wares and giving those nearby walking stares.
|
1471
1524
|
coords:
|
@@ -1501,6 +1554,7 @@ locations:
|
|
1501
1554
|
- !ruby/object:Gemwarrior::Location
|
1502
1555
|
name: spinelia-southeast
|
1503
1556
|
name_display: Spinelia (Southeast)
|
1557
|
+
visited: false
|
1504
1558
|
description: The southeast of Spinelia contains a few people, just kind of
|
1505
1559
|
hanging out.
|
1506
1560
|
coords:
|
@@ -1552,6 +1606,7 @@ locations:
|
|
1552
1606
|
- !ruby/object:Gemwarrior::Location
|
1553
1607
|
name: spinelia-northeast
|
1554
1608
|
name_display: Spinelia (Northeast)
|
1609
|
+
visited: false
|
1555
1610
|
description: Northeasternly speaking, Spinelia contains a pen with a few animals
|
1556
1611
|
calmly eating food, and not really having much impact on their environment.
|
1557
1612
|
coords:
|
@@ -1611,6 +1666,7 @@ locations:
|
|
1611
1666
|
- !ruby/object:Gemwarrior::Location
|
1612
1667
|
name: spinelia-northwest
|
1613
1668
|
name_display: Spinelia (Northwest)
|
1669
|
+
visited: false
|
1614
1670
|
description: Residences line the northwest corner of Spinelia, each one similar to
|
1615
1671
|
each other, made of granite and stone, featuring a single window and a single
|
1616
1672
|
door. One particular house's hallmark appears to be a rather fanciful woman leaning
|
@@ -1648,6 +1704,7 @@ locations:
|
|
1648
1704
|
- !ruby/object:Gemwarrior::Location
|
1649
1705
|
name: rock_piles
|
1650
1706
|
name_display: Rock Piles
|
1707
|
+
visited: false
|
1651
1708
|
description: Piles of rocks, both big and small, are placed here and there, a testament
|
1652
1709
|
to someone's surely back-breaking labor.
|
1653
1710
|
coords:
|
@@ -1724,6 +1781,7 @@ locations:
|
|
1724
1781
|
- !ruby/object:Gemwarrior::Location
|
1725
1782
|
name: sky_tower-entryway
|
1726
1783
|
name_display: Sky Tower (Entryway)
|
1784
|
+
visited: false
|
1727
1785
|
description: You feel unsettled as you gaze upon the wondrous proportions of Emerald's
|
1728
1786
|
home.
|
1729
1787
|
coords:
|
@@ -1760,6 +1818,7 @@ locations:
|
|
1760
1818
|
- !ruby/object:Gemwarrior::Location
|
1761
1819
|
name: sky_tower-cloud_garden
|
1762
1820
|
name_display: Sky Tower (Cloud Garden)
|
1821
|
+
visited: false
|
1763
1822
|
description: A perfectly-maintained array of wispy flowers and other ethereal plantlife
|
1764
1823
|
contained within a cumulonimbus barrier.
|
1765
1824
|
coords:
|
@@ -1827,6 +1886,7 @@ locations:
|
|
1827
1886
|
- !ruby/object:Gemwarrior::Location
|
1828
1887
|
name: sky_tower-armory
|
1829
1888
|
name_display: Sky Tower (Armory)
|
1889
|
+
visited: false
|
1830
1890
|
description: Weapons of all kinds litter the ground and are hung on hooks from the
|
1831
1891
|
wall. Tower assailants beware/rejoice!
|
1832
1892
|
coords:
|
@@ -1863,6 +1923,7 @@ locations:
|
|
1863
1923
|
- !ruby/object:Gemwarrior::Location
|
1864
1924
|
name: sky_tower-west_hallway
|
1865
1925
|
name_display: Sky Tower (West Hallway)
|
1926
|
+
visited: false
|
1866
1927
|
description: The hallway seems to stretch on for days.
|
1867
1928
|
coords:
|
1868
1929
|
:x: 7
|
@@ -1885,6 +1946,7 @@ locations:
|
|
1885
1946
|
- !ruby/object:Gemwarrior::Location
|
1886
1947
|
name: sky_tower-waterfalls
|
1887
1948
|
name_display: Sky Tower (Waterfalls)
|
1949
|
+
visited: false
|
1888
1950
|
description: The seemingly neverending deluge of water causes this room to be quite
|
1889
1951
|
loud, yet pretty.
|
1890
1952
|
coords:
|
@@ -1922,6 +1984,7 @@ locations:
|
|
1922
1984
|
- !ruby/object:Gemwarrior::Location
|
1923
1985
|
name: sky_tower-massive_door
|
1924
1986
|
name_display: Sky Tower (Massive Door)
|
1987
|
+
visited: false
|
1925
1988
|
description: Before you lies a massive collection of cumulus clouds that form into
|
1926
1989
|
a seemingly impenetrable door, beyond which may well be your doom.
|
1927
1990
|
coords:
|
@@ -1960,6 +2023,7 @@ locations:
|
|
1960
2023
|
- !ruby/object:Gemwarrior::Location
|
1961
2024
|
name: sky_tower-throne_room
|
1962
2025
|
name_display: Sky Tower (Throne Room)
|
2026
|
+
visited: false
|
1963
2027
|
description: There, on a mighty seat made of broken dreams, sits Emerald himself,
|
1964
2028
|
staring at you coldly, silently.
|
1965
2029
|
coords:
|
@@ -1996,6 +2060,7 @@ locations:
|
|
1996
2060
|
- !ruby/object:Gemwarrior::Location
|
1997
2061
|
name: sky_tower-lounge
|
1998
2062
|
name_display: Sky Tower (Lounge)
|
2063
|
+
visited: false
|
1999
2064
|
description: Nothing but a simple couch, which looks very comfortable, exists in
|
2000
2065
|
this corner of the tower.
|
2001
2066
|
coords:
|
@@ -2032,6 +2097,7 @@ locations:
|
|
2032
2097
|
- !ruby/object:Gemwarrior::Location
|
2033
2098
|
name: sky_tower-east_hallway
|
2034
2099
|
name_display: Sky Tower (East Hallway)
|
2100
|
+
visited: false
|
2035
2101
|
description: Longish and neverending is what you might say about this stretch of
|
2036
2102
|
the tower.
|
2037
2103
|
coords:
|
@@ -2055,6 +2121,7 @@ locations:
|
|
2055
2121
|
- !ruby/object:Gemwarrior::Location
|
2056
2122
|
name: sky_tower-kitchen
|
2057
2123
|
name_display: Sky Tower (Kitchen)
|
2124
|
+
visited: false
|
2058
2125
|
description: This kitchen looks well-used, as appliances abound, and leftover food
|
2059
2126
|
sits atop counters.
|
2060
2127
|
coords:
|
@@ -2105,6 +2172,7 @@ locations:
|
|
2105
2172
|
- !ruby/object:Gemwarrior::Location
|
2106
2173
|
name: queen_room
|
2107
2174
|
name_display: Queen Room
|
2175
|
+
visited: false
|
2108
2176
|
description: Your surroundings contain four walls with no windows, a vaulted ceiling above, and a tile floor below, all immaculately decorated. A small throne lies before you with a woman sitting on it. You must be in the presence of Queen Ruby herself.
|
2109
2177
|
coords:
|
2110
2178
|
:x: 5
|
@@ -15,7 +15,7 @@ module Gemwarrior
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def use(world)
|
18
|
-
puts 'You unfold the piece of worn canvas
|
18
|
+
puts 'You unfold the piece of worn canvas and study the markings upon it, always making sure to update it with new places you find.'
|
19
19
|
|
20
20
|
{ type: 'action', data: 'map' }
|
21
21
|
end
|
@@ -20,7 +20,8 @@ module Gemwarrior
|
|
20
20
|
:items,
|
21
21
|
:monsters_abounding,
|
22
22
|
:bosses_abounding,
|
23
|
-
:checked_for_monsters
|
23
|
+
:checked_for_monsters,
|
24
|
+
:visited
|
24
25
|
|
25
26
|
def initialize(options)
|
26
27
|
self.name = options.fetch(:name)
|
@@ -33,6 +34,7 @@ module Gemwarrior
|
|
33
34
|
self.monsters_abounding = options.fetch(:monsters_abounding)
|
34
35
|
self.bosses_abounding = options.fetch[:bosses_abounding]
|
35
36
|
self.checked_for_monsters = false
|
37
|
+
self.visited = false
|
36
38
|
end
|
37
39
|
|
38
40
|
def describe
|
@@ -218,7 +218,7 @@ module Gemwarrior
|
|
218
218
|
inventory.list_contents
|
219
219
|
end
|
220
220
|
|
221
|
-
def go(
|
221
|
+
def go(world, direction)
|
222
222
|
case direction
|
223
223
|
when 'north', 'n'
|
224
224
|
self.cur_coords = {
|
@@ -249,6 +249,7 @@ module Gemwarrior
|
|
249
249
|
}
|
250
250
|
direction_text = '<<<'
|
251
251
|
end
|
252
|
+
world.location_by_coords(self.cur_coords).visited = true
|
252
253
|
print_traveling_text(direction_text)
|
253
254
|
|
254
255
|
# stats
|
data/lib/gemwarrior/evaluator.rb
CHANGED
@@ -706,7 +706,7 @@ module Gemwarrior
|
|
706
706
|
|
707
707
|
def try_to_move_player(direction)
|
708
708
|
if world.can_move?(direction)
|
709
|
-
world.player.go(world
|
709
|
+
world.player.go(world, direction)
|
710
710
|
player_cur_location = world.location_by_coords(world.player.cur_coords)
|
711
711
|
player_cur_location.checked_for_monsters = false
|
712
712
|
world.describe(player_cur_location)
|
data/lib/gemwarrior/game.rb
CHANGED
@@ -82,6 +82,9 @@ module Gemwarrior
|
|
82
82
|
## Throne Room
|
83
83
|
world.location_by_name('sky_tower-throne_room').bosses_abounding.push(Gemwarrior.const_get('Emerald').new)
|
84
84
|
|
85
|
+
# mark home as visited
|
86
|
+
world.location_by_name('home').visited = true
|
87
|
+
|
85
88
|
# create options file if not existing
|
86
89
|
update_options_file
|
87
90
|
|
data/lib/gemwarrior/version.rb
CHANGED
data/lib/gemwarrior/world.rb
CHANGED
@@ -222,7 +222,11 @@ module Gemwarrior
|
|
222
222
|
print '---'
|
223
223
|
end
|
224
224
|
print "\n"
|
225
|
-
|
225
|
+
if GameOptions.data['debug_mode']
|
226
|
+
print "#{(WORLD_DIM_HEIGHT - 1) - count_y} "
|
227
|
+
else
|
228
|
+
print ' '
|
229
|
+
end
|
226
230
|
0.upto(WORLD_DIM_WIDTH - 1) do |count_x|
|
227
231
|
cur_map_coords = {
|
228
232
|
x: count_x,
|
@@ -232,7 +236,11 @@ module Gemwarrior
|
|
232
236
|
if self.player.cur_coords.eql?(cur_map_coords)
|
233
237
|
print "|#{'O'.colorize(:cyan)}|"
|
234
238
|
elsif location_by_coords(cur_map_coords)
|
235
|
-
|
239
|
+
if GameOptions.data['debug_mode'] || location_by_coords(cur_map_coords).visited
|
240
|
+
print '|X|'
|
241
|
+
else
|
242
|
+
print '| |'
|
243
|
+
end
|
236
244
|
else
|
237
245
|
print '| |'
|
238
246
|
end
|
@@ -246,7 +254,11 @@ module Gemwarrior
|
|
246
254
|
puts
|
247
255
|
print ' '
|
248
256
|
0.upto(WORLD_DIM_WIDTH - 1) do |count_x|
|
249
|
-
|
257
|
+
if GameOptions.data['debug_mode']
|
258
|
+
print "#{count_x} "
|
259
|
+
else
|
260
|
+
print ' '
|
261
|
+
end
|
250
262
|
end
|
251
263
|
if GameOptions.data['debug_mode']
|
252
264
|
puts
|
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.
|
4
|
+
version: 0.14.0
|
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-09-
|
11
|
+
date: 2015-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: os
|
@@ -390,4 +390,6 @@ rubygems_version: 2.4.8
|
|
390
390
|
signing_key:
|
391
391
|
specification_version: 4
|
392
392
|
summary: RubyGem text adventure
|
393
|
-
test_files:
|
393
|
+
test_files:
|
394
|
+
- spec/gemwarrior_spec.rb
|
395
|
+
- spec/spec_helper.rb
|