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.
@@ -1,5 +1,5 @@
1
1
  ScottKit, a Scott Adams game toolkit in Ruby.
2
- Release 1.0, (C) 2010 Mike Taylor <mike@miketaylor.org.uk>
2
+ Release 1.2, (C) 2010-2017 Mike Taylor <mike@miketaylor.org.uk>
3
3
  Distributed under the GNU software license
4
4
  Setting random seed 12368
5
5
 
@@ -1 +1 @@
1
- f4eb9a2f30299037f05b48e46aa06677
1
+ 576e575853afb08544be86a894c2eeb3
@@ -1,5 +1,5 @@
1
1
  ScottKit, a Scott Adams game toolkit in Ruby.
2
- Release 1.0, (C) 2010 Mike Taylor <mike@miketaylor.org.uk>
2
+ Release 1.2, (C) 2010-2017 Mike Taylor <mike@miketaylor.org.uk>
3
3
  Distributed under the GNU software license
4
4
  Setting random seed 12368
5
5
 
@@ -1 +1 @@
1
- d806a3d7ae5bdb291717a50579da11fb
1
+ 3bb5e7f4c0f04269c257611284916a09
@@ -1,5 +1,5 @@
1
1
  ScottKit, a Scott Adams game toolkit in Ruby.
2
- Release 1.0, (C) 2010 Mike Taylor <mike@miketaylor.org.uk>
2
+ Release 1.2, (C) 2010-2017 Mike Taylor <mike@miketaylor.org.uk>
3
3
  Distributed under the GNU software license
4
4
  Setting random seed 12368
5
5
 
@@ -1 +1 @@
1
- cdb1df7ddf1f194a743cfbe770d1b896
1
+ 82ecf3d6b958ae54bb947ccbf40c55e4
@@ -1,5 +1,5 @@
1
1
  ScottKit, a Scott Adams game toolkit in Ruby.
2
- Release 1.0, (C) 2010 Mike Taylor <mike@miketaylor.org.uk>
2
+ Release 1.2, (C) 2010-2017 Mike Taylor <mike@miketaylor.org.uk>
3
3
  Distributed under the GNU software license
4
4
  Setting random seed 12368
5
5
 
@@ -1,5 +1,5 @@
1
1
  ScottKit, a Scott Adams game toolkit in Ruby.
2
- Release 1.0, (C) 2010 Mike Taylor <mike@miketaylor.org.uk>
2
+ Release 1.2, (C) 2010-2017 Mike Taylor <mike@miketaylor.org.uk>
3
3
  Distributed under the GNU software license
4
4
  Setting random seed 12368
5
5
 
@@ -346,6 +346,8 @@ module ScottKit
346
346
  if op == 0
347
347
  next
348
348
  elsif op == "print"
349
+ arg0.gsub!('\n', "\n");
350
+ arg0.gsub!('\t', "\t");
349
351
  if !(msgno = messagemap[arg0])
350
352
  messages << arg0
351
353
  msgno = messagemap[arg0] = messages.size-1
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
- tmp, _UNUSED_dark_flag, @loc, @counter, @saved_room, @lampleft =
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.0, (C) 2010 Mike Taylor <mike@miketaylor.org.uk>"
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
- msg It creaks open.
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.1.0
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-13 00:00:00.000000000 Z
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