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. "
|
||||
;
|
||||
|
||||
+ 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. "
|
||||
;
|
||||
|
|
|
|||
|
|
@ -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. ";
|
||||
}
|
||||
}
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue