mirror of
https://github.com/He4eT/yet-another-experiment.git
synced 2026-05-05 00:57:22 +00:00
Connector can be fixed only once
This commit is contained in:
parent
6a17561943
commit
f544d12d57
1 changed files with 13 additions and 3 deletions
|
|
@ -42,12 +42,20 @@ dataCable: PlugAttachable, Attachable, RoomPart
|
|||
|
||||
dobjFor (Repair) {
|
||||
verify() {
|
||||
illogical('This connector can be fixed
|
||||
if (jack.isBroken) {
|
||||
illogical('
|
||||
This connector can be fixed
|
||||
with glue, duck tape or something similar.');
|
||||
} else {
|
||||
illogical('The connector is already fixed.');
|
||||
}
|
||||
}
|
||||
}
|
||||
dobjFor (RepairWith) {
|
||||
verify() {
|
||||
if (!jack.isBroken) {
|
||||
illogical('The connector is already fixed.');
|
||||
}
|
||||
if (gIobj not in (
|
||||
dentalFloss,
|
||||
pieceOfTape
|
||||
|
|
@ -58,7 +66,9 @@ dataCable: PlugAttachable, Attachable, RoomPart
|
|||
}
|
||||
}
|
||||
action() {
|
||||
"Wow!";
|
||||
gIobj.moveInto(nil);
|
||||
jack.isBroken = nil;
|
||||
"The connector is now ugly, but serviceable.";
|
||||
}
|
||||
}
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue