Olib 2.0.0.pre.rc.2 → 2.0.0.pre.rc.7

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.
@@ -38,7 +38,10 @@ class Rill
38
38
  if (result = (line.match(begin_pattern) or line.match(end_pattern)))
39
39
  matches.merge!(result.to_h)
40
40
  end
41
- return {ok: 1, matches: matches, lines: lines} if (line.match(end_pattern) and state.eql?(:open))
41
+
42
+ if (line.match(end_pattern) and state.eql?(:open))
43
+ return [:ok, matches, lines]
44
+ end
42
45
  end
43
46
  end
44
47
 
@@ -1,3 +1,3 @@
1
1
  module Olib
2
- VERSION = "2.0.0-rc.2"
2
+ VERSION = "2.0.0-rc.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Olib
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.rc.2
4
+ version: 2.0.0.pre.rc.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondreian Shamsiel
@@ -30,8 +30,11 @@ files:
30
30
  - lib/Olib/character/inventory.rb
31
31
  - lib/Olib/character/mind.rb
32
32
  - lib/Olib/character/stance.rb
33
+ - lib/Olib/combat/attack.rb
33
34
  - lib/Olib/combat/creature.rb
35
+ - lib/Olib/combat/creatures.json
34
36
  - lib/Olib/combat/creatures.rb
37
+ - lib/Olib/combat/metadata.rb
35
38
  - lib/Olib/core/action.rb
36
39
  - lib/Olib/core/container.rb
37
40
  - lib/Olib/core/containers.rb
@@ -40,6 +43,7 @@ files:
40
43
  - lib/Olib/core/item.rb
41
44
  - lib/Olib/core/kinds.rb
42
45
  - lib/Olib/core/rummage.rb
46
+ - lib/Olib/core/scroll.rb
43
47
  - lib/Olib/core/transaction.rb
44
48
  - lib/Olib/core/use.rb
45
49
  - lib/Olib/core/utils.rb
@@ -50,6 +54,7 @@ files:
50
54
  - lib/Olib/ext/string.rb
51
55
  - lib/Olib/ext/symbol.rb
52
56
  - lib/Olib/go2.rb
57
+ - lib/Olib/log.rb
53
58
  - lib/Olib/loot.rb
54
59
  - lib/Olib/npcs/npc.rb
55
60
  - lib/Olib/npcs/npcs.rb
@@ -59,9 +64,9 @@ files:
59
64
  - lib/Olib/objects/jar.rb
60
65
  - lib/Olib/objects/jewel.rb
61
66
  - lib/Olib/objects/jewelry.rb
62
- - lib/Olib/objects/scroll.rb
63
67
  - lib/Olib/objects/uncommon.rb
64
68
  - lib/Olib/objects/wand.rb
69
+ - lib/Olib/opts.rb
65
70
  - lib/Olib/pattern_matching/any.rb
66
71
  - lib/Olib/pattern_matching/err.rb
67
72
  - lib/Olib/pattern_matching/ok.rb
@@ -93,8 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
98
  - !ruby/object:Gem::Version
94
99
  version: 1.3.1
95
100
  requirements: []
96
- rubyforge_project:
97
- rubygems_version: 2.7.6
101
+ rubygems_version: 3.1.0.pre1
98
102
  signing_key:
99
103
  specification_version: 4
100
104
  summary: Useful Lich extensions for Gemstone IV
@@ -1,42 +0,0 @@
1
- class Scroll < Item
2
- @@whitelist = [
3
- 101, 102, 103, 107, 116, 120,
4
- 202, 211, 215, 219,
5
- 303, 307, 310, 313, 315,
6
- 401, 406, 414, 425, 430,
7
- 503, 507, 508, 509, 511, 513, 520,
8
- 601, 602, 606, 613, 617, 618, 625, 640,
9
- 712, 716,
10
- 905, 911, 913, 920,
11
- 1109, 1119, 1125, 1130,
12
- 1201, 1204,
13
- 1601, 1603, 1606, 1610, 1611, 1612, 1616,
14
- 1712, 1718
15
- ]
16
- attr_accessor :spells, :worthy, :whitelist
17
-
18
- def Scroll.whitelist
19
- @@whitelist
20
- end
21
-
22
- def Scroll.add_to_whitelist(*args)
23
- @@whitelist + args
24
- end
25
-
26
- def Scroll.remove_from_whitelist(*args)
27
- @@whitelist = @@whitelist - args
28
- end
29
-
30
- def initialize(item)
31
- super item
32
- @spells = []
33
- return self
34
- end
35
-
36
- def worthy?
37
- @worthy = false
38
- read unless @spells.length > 0
39
- @spells.each do |spell| @worthy = true if Scroll.whitelist.include? spell[:n] end
40
- @worthy
41
- end
42
- end