gamefic-standard 4.1.2 → 4.1.3
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 +3 -0
- data/lib/gamefic/standard/actions/look.rb +15 -2
- data/lib/gamefic/standard/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c29d19f21e034d9d210c8a4c83941acbd8c8758c10e825905fdd92a393f01a1
|
|
4
|
+
data.tar.gz: ffe7642cb6204d682d493784e6937075237c73dadd1c9642f563d3cc077ddf87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2470adf0c1e3920efcdac549c95394afe841c2d07c894dd0c726db9045efbf365d7f79bac0d8ef98c46243b500065cb1907367e097219640b0894108c4f41ba0
|
|
7
|
+
data.tar.gz: 00fe97eeed9b3eb3382a20338de501d83d1a7fd59d01ab722e4551f829475193527f3618496d7bbf8990ccc1a71e0884283ad4411ea17c60ef492668ec97dad1
|
data/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,10 @@ module Gamefic
|
|
|
11
11
|
|
|
12
12
|
extend Gamefic::Scriptable
|
|
13
13
|
|
|
14
|
+
# Tell the actor about other entities in the current room.
|
|
15
|
+
#
|
|
16
|
+
# @param actor [Actor]
|
|
17
|
+
# @return [void]
|
|
14
18
|
def itemize_room(actor)
|
|
15
19
|
return unless (room = actor.room)
|
|
16
20
|
|
|
@@ -35,6 +39,11 @@ module Gamefic
|
|
|
35
39
|
itemize_parent(actor)
|
|
36
40
|
end
|
|
37
41
|
|
|
42
|
+
# Tell the actor about available portals if the room is configured to
|
|
43
|
+
# have explicit exits.
|
|
44
|
+
#
|
|
45
|
+
# @param actor [Actor]
|
|
46
|
+
# @return [void]
|
|
38
47
|
def itemize_explicit_portals(actor)
|
|
39
48
|
return unless actor.room&.explicit_exits?
|
|
40
49
|
|
|
@@ -57,9 +66,13 @@ module Gamefic
|
|
|
57
66
|
end
|
|
58
67
|
end
|
|
59
68
|
|
|
69
|
+
# Tell the actor about the current parent if it's different from the room.
|
|
70
|
+
#
|
|
71
|
+
# @param actor [Actor]
|
|
72
|
+
# @return [void]
|
|
60
73
|
def itemize_parent(actor)
|
|
61
|
-
|
|
62
|
-
|
|
74
|
+
return unless actor.parent && actor.parent != actor.room
|
|
75
|
+
parent = actor.parent
|
|
63
76
|
|
|
64
77
|
siblings = parent.children.that_are_not(actor)
|
|
65
78
|
if siblings.empty?
|