Robot descriptions

This commit is contained in:
He4eT 2020-03-17 17:58:20 +05:00
commit 4b936c6649
2 changed files with 17 additions and 18 deletions

View file

@ -6,9 +6,15 @@ surgeryAssistant: Person
is wired to the ceiling. "
;
+ dataPort: PlugAttachable, Attachable, Fixture
'data port/outlet/socket'
'data port'
"Industry standard port for automated assistants. "
;
+ HermitActorState
specialDesc = "
Ttttest"
There's a surgical assistant in the corner of the room. "
stateDesc = "
<br>The mechanism shows no signs of life
and indicators show the missing network connection.
@ -25,16 +31,9 @@ surgeryAssistant: Person
+ robotOnline: ConversationReadyState
specialDesc = "
Robot ready to talk. "
The surgical assistant examines the room. "
stateDesc = "
<br>Cameras are scanning the room.
various servos, units and cables make distinctive sounds,
the bulky arms slowly sway. "
;
dataPort: PlugAttachable, Attachable, Fixture
'data port/outlet/socket'
'data port'
@redRoom
"Industry standard connector for automated assistants. "
;

View file

@ -12,9 +12,9 @@ dataCable: PlugAttachable, Attachable, RoomPart
explainCannotAttachTo(obj) {
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
? "The connector on data cable is broken."
? "The connector on data cable is broken. "
: "";
}
@ -37,10 +37,10 @@ dataCable: PlugAttachable, Attachable, RoomPart
"<<jack.isBroken
? 'Broken connector.
<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.
<br>The broken part is held carelessly.'
>>"
<br>The broken part is held carelessly'
>>. "
isBroken = true
dobjFor (AttachTo) remapTo(AttachTo, dataCable, IndirectObject)
@ -50,16 +50,16 @@ dataCable: PlugAttachable, Attachable, RoomPart
if (jack.isBroken) {
illogical('
This connector can be fixed
with glue, duck tape or something similar.');
with glue, duck tape or something similar. ');
} else {
illogical('The connector is already fixed.');
illogical('The connector is already fixed. ');
}
}
}
dobjFor (RepairWith) {
verify() {
if (!jack.isBroken) {
illogical('The connector is already fixed.');
illogical('The connector is already fixed. ');
}
if (gIobj not in (
dentalFloss,
@ -73,7 +73,7 @@ dataCable: PlugAttachable, Attachable, RoomPart
action() {
gIobj.moveInto(nil);
jack.isBroken = nil;
"The connector is now ugly, but serviceable.";
"The connector is now ugly, but serviceable. ";
}
}
;