mirror of
https://github.com/He4eT/yet-another-experiment.git
synced 2026-05-05 00:57:22 +00:00
Robot descriptions
This commit is contained in:
parent
4d730fb33f
commit
4b936c6649
2 changed files with 17 additions and 18 deletions
|
|
@ -6,9 +6,15 @@ surgeryAssistant: Person
|
||||||
is wired to the ceiling. "
|
is wired to the ceiling. "
|
||||||
;
|
;
|
||||||
|
|
||||||
|
+ dataPort: PlugAttachable, Attachable, Fixture
|
||||||
|
'data port/outlet/socket'
|
||||||
|
'data port'
|
||||||
|
"Industry standard port for automated assistants. "
|
||||||
|
;
|
||||||
|
|
||||||
+ HermitActorState
|
+ HermitActorState
|
||||||
specialDesc = "
|
specialDesc = "
|
||||||
Ttttest"
|
There's a surgical assistant in the corner of the room. "
|
||||||
stateDesc = "
|
stateDesc = "
|
||||||
<br>The mechanism shows no signs of life
|
<br>The mechanism shows no signs of life
|
||||||
and indicators show the missing network connection.
|
and indicators show the missing network connection.
|
||||||
|
|
@ -25,16 +31,9 @@ surgeryAssistant: Person
|
||||||
|
|
||||||
+ robotOnline: ConversationReadyState
|
+ robotOnline: ConversationReadyState
|
||||||
specialDesc = "
|
specialDesc = "
|
||||||
Robot ready to talk. "
|
The surgical assistant examines the room. "
|
||||||
stateDesc = "
|
stateDesc = "
|
||||||
<br>Cameras are scanning the room.
|
<br>Cameras are scanning the room.
|
||||||
various servos, units and cables make distinctive sounds,
|
various servos, units and cables make distinctive sounds,
|
||||||
the bulky arms slowly sway. "
|
the bulky arms slowly sway. "
|
||||||
;
|
;
|
||||||
|
|
||||||
dataPort: PlugAttachable, Attachable, Fixture
|
|
||||||
'data port/outlet/socket'
|
|
||||||
'data port'
|
|
||||||
@redRoom
|
|
||||||
"Industry standard connector for automated assistants. "
|
|
||||||
;
|
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ dataCable: PlugAttachable, Attachable, RoomPart
|
||||||
|
|
||||||
explainCannotAttachTo(obj) {
|
explainCannotAttachTo(obj) {
|
||||||
obj != dataPort
|
obj != dataPort
|
||||||
? "This data cable can only be connected to the data port."
|
? "This data cable can only be connected to the data port. "
|
||||||
: jack.isBroken
|
: jack.isBroken
|
||||||
? "The connector on data cable is broken."
|
? "The connector on data cable is broken. "
|
||||||
: "";
|
: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -37,10 +37,10 @@ dataCable: PlugAttachable, Attachable, RoomPart
|
||||||
"<<jack.isBroken
|
"<<jack.isBroken
|
||||||
? 'Broken connector.
|
? 'Broken connector.
|
||||||
<br>One of the components of its body should be
|
<br>One of the components of its body should be
|
||||||
fixed with glue, duct tape or something similar.'
|
fixed with glue, duct tape or something similar'
|
||||||
: 'Fixed connector.
|
: 'Fixed connector.
|
||||||
<br>The broken part is held carelessly.'
|
<br>The broken part is held carelessly'
|
||||||
>>"
|
>>. "
|
||||||
isBroken = true
|
isBroken = true
|
||||||
|
|
||||||
dobjFor (AttachTo) remapTo(AttachTo, dataCable, IndirectObject)
|
dobjFor (AttachTo) remapTo(AttachTo, dataCable, IndirectObject)
|
||||||
|
|
@ -50,16 +50,16 @@ dataCable: PlugAttachable, Attachable, RoomPart
|
||||||
if (jack.isBroken) {
|
if (jack.isBroken) {
|
||||||
illogical('
|
illogical('
|
||||||
This connector can be fixed
|
This connector can be fixed
|
||||||
with glue, duck tape or something similar.');
|
with glue, duck tape or something similar. ');
|
||||||
} else {
|
} else {
|
||||||
illogical('The connector is already fixed.');
|
illogical('The connector is already fixed. ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dobjFor (RepairWith) {
|
dobjFor (RepairWith) {
|
||||||
verify() {
|
verify() {
|
||||||
if (!jack.isBroken) {
|
if (!jack.isBroken) {
|
||||||
illogical('The connector is already fixed.');
|
illogical('The connector is already fixed. ');
|
||||||
}
|
}
|
||||||
if (gIobj not in (
|
if (gIobj not in (
|
||||||
dentalFloss,
|
dentalFloss,
|
||||||
|
|
@ -73,7 +73,7 @@ dataCable: PlugAttachable, Attachable, RoomPart
|
||||||
action() {
|
action() {
|
||||||
gIobj.moveInto(nil);
|
gIobj.moveInto(nil);
|
||||||
jack.isBroken = nil;
|
jack.isBroken = nil;
|
||||||
"The connector is now ugly, but serviceable.";
|
"The connector is now ugly, but serviceable. ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue