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) {
|
dobjFor (Repair) {
|
||||||
verify() {
|
verify() {
|
||||||
illogical('This connector can be fixed
|
if (jack.isBroken) {
|
||||||
with glue, duck tape or something similar.');
|
illogical('
|
||||||
|
This connector can be fixed
|
||||||
|
with glue, duck tape or something similar.');
|
||||||
|
} else {
|
||||||
|
illogical('The connector is already fixed.');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dobjFor (RepairWith) {
|
dobjFor (RepairWith) {
|
||||||
verify() {
|
verify() {
|
||||||
|
if (!jack.isBroken) {
|
||||||
|
illogical('The connector is already fixed.');
|
||||||
|
}
|
||||||
if (gIobj not in (
|
if (gIobj not in (
|
||||||
dentalFloss,
|
dentalFloss,
|
||||||
pieceOfTape
|
pieceOfTape
|
||||||
|
|
@ -58,7 +66,9 @@ dataCable: PlugAttachable, Attachable, RoomPart
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
action() {
|
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