scottkit 1.1.0 → 1.2.0
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/ChangeLog.md +7 -1
- data/README.md +12 -0
- data/VERSION +1 -1
- data/data/nosferatu/.gitignore +1 -0
- data/data/nosferatu/Makefile +14 -0
- data/data/nosferatu/README +13 -0
- data/data/nosferatu/nosferatu.map +59 -0
- data/data/nosferatu/nosferatu.regression +345 -0
- data/data/nosferatu/nosferatu.sck +469 -0
- data/data/nosferatu/nosferatu.script +452 -0
- data/data/nosferatu/nosferatu.sol +104 -0
- data/data/test/adams/adv01.transcript +1 -1
- data/data/test/adams/adv01.transcript.md5 +1 -1
- data/data/test/adams/adv02.transcript +1 -1
- data/data/test/adams/adv02.transcript.md5 +1 -1
- data/data/test/adams/adv04.transcript +1 -1
- data/data/test/adams/adv04.transcript.md5 +1 -1
- data/data/test/crystal.transcript +1 -1
- data/data/test/t7.transcript +1 -1
- data/lib/scottkit/compile.rb +2 -0
- data/lib/scottkit/game.rb +5 -1
- data/lib/scottkit/play.rb +1 -1
- data/manual/reference.md +5 -1
- metadata +10 -2
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
576e575853afb08544be86a894c2eeb3
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3bb5e7f4c0f04269c257611284916a09
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
82ecf3d6b958ae54bb947ccbf40c55e4
|
data/data/test/t7.transcript
CHANGED
data/lib/scottkit/compile.rb
CHANGED
data/lib/scottkit/game.rb
CHANGED
@@ -248,7 +248,11 @@ module ScottKit
|
|
248
248
|
0.upto(NFLAGS-1) do |i|
|
249
249
|
@counters[i], @saved_rooms[i] = f.gets.chomp.split.map(&:to_i)
|
250
250
|
end
|
251
|
-
|
251
|
+
# The variable _ in the next line is the unused one that holds
|
252
|
+
# the redundant dark-flag from the save file. Some versions of
|
253
|
+
# Ruby emit an irritating warning for this if the variable name
|
254
|
+
# is anything else.
|
255
|
+
tmp, _, @loc, @counter, @saved_room, @lampleft =
|
252
256
|
f.gets.chomp.split.map(&:to_i)
|
253
257
|
0.upto(NFLAGS-1) do |i|
|
254
258
|
@flags[i] = (tmp & 1 << i) != 0
|
data/lib/scottkit/play.rb
CHANGED
@@ -15,7 +15,7 @@ module ScottKit
|
|
15
15
|
@lampleft = defined?(@lamptime) ? @lamptime : 0
|
16
16
|
|
17
17
|
puts "ScottKit, a Scott Adams game toolkit in Ruby."
|
18
|
-
puts "Release 1.
|
18
|
+
puts "Release 1.2, (C) 2010-2017 Mike Taylor <mike@miketaylor.org.uk>"
|
19
19
|
puts "Distributed under the GNU software license"
|
20
20
|
|
21
21
|
if file = options[:restore_file]
|
data/manual/reference.md
CHANGED
@@ -518,7 +518,7 @@ counter-related conditions.
|
|
518
518
|
|
519
519
|
destroy closed_door
|
520
520
|
drop open_door
|
521
|
-
|
521
|
+
print It creaks open.
|
522
522
|
|
523
523
|
Following an `action` and its conditions, if any, comes a sequence of
|
524
524
|
result which occur if the action and its conditions are
|
@@ -530,6 +530,10 @@ necessary, to place each result on its own line.
|
|
530
530
|
|
531
531
|
The following opcodes are supported:
|
532
532
|
|
533
|
+
* `print` _string_
|
534
|
+
--
|
535
|
+
Prints the specified string. Within that string, `\n` sequences are interpreted as newlines, and `\t` sequences as tabs.
|
536
|
+
|
533
537
|
* `goto` _room_
|
534
538
|
--
|
535
539
|
Moves to the specified _room_ and displays its description.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scottkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Taylor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: ScottKit is a toolkit for compiling, decompiling and playing adventure
|
14
14
|
games in the Scott Adams format.
|
@@ -39,6 +39,14 @@ files:
|
|
39
39
|
- data/howarth/.gitignore
|
40
40
|
- data/howarth/Makefile
|
41
41
|
- data/howarth/mysterious.tar.gz
|
42
|
+
- data/nosferatu/.gitignore
|
43
|
+
- data/nosferatu/Makefile
|
44
|
+
- data/nosferatu/README
|
45
|
+
- data/nosferatu/nosferatu.map
|
46
|
+
- data/nosferatu/nosferatu.regression
|
47
|
+
- data/nosferatu/nosferatu.sck
|
48
|
+
- data/nosferatu/nosferatu.script
|
49
|
+
- data/nosferatu/nosferatu.sol
|
42
50
|
- data/test/Makefile
|
43
51
|
- data/test/adams/Makefile
|
44
52
|
- data/test/adams/adv01.solution
|