1
0
Fork 0

Russian version

This commit is contained in:
Alexander Yakovlev 2019-08-14 23:19:56 +07:00
parent 5720f01247
commit 0e50e5a203
Signed by: oreolek
GPG key ID: 1CDC4B7820C93BD3
2 changed files with 17 additions and 15 deletions

View file

@ -1,20 +1,22 @@
Global thing_to_examine; Global thing_to_examine;
[ExamineScope thing; [ UnknownVerb o n i;
if ( objectloop (o provides name) {
thing ofclass Object && if (TestScope(o, player)) {
! WordInProperty(thing_to_examine, thing, name) n = o.#name / WORDSIZE;
thing_to_examine == (thing.&name) --> 0 for(i = 0 : i < n : i++) {
) { if (Refers(o, 1)) {
<Examine thing_to_examine>; thing_to_examine = o;
rtrue; return 'unknown';
} };
};
};
};
rfalse; rfalse;
]; ];
[ UnknownVerb word; [ ExamineObjectSub;
thing_to_examine = word; << Examine (thing_to_examine) >>;
LoopOverScope(ExamineScope);
rfalse;
]; ];
verb 'unknown' * -> ExamineObject;

View file

@ -19,7 +19,7 @@ Object gallery "Выставочный зал"
has light; has light;
Object photo "маленьк/ое фото/" gallery Object photo "маленьк/ое фото/" gallery
with name 'маленьк/ое' 'фото/' 'фотограф/ия', with name 'фото' 'фотограф/ия',
describe [; describe [;
"Перед вами стоит маленькое фото."; "Перед вами стоит маленькое фото.";
@ -32,7 +32,7 @@ Object photo "маленьк/ое фото/" gallery
has static neuter; has static neuter;
Object teapot "глинян/ый чайник/" gallery Object teapot "глинян/ый чайник/" gallery
with name 'глинян/ый' 'чай' 'чайник/', with name 'чай' 'чайник/',
describe [; describe [;
"Слева от фото выставлен невысокий глиняный чайник."; "Слева от фото выставлен невысокий глиняный чайник.";