Connector can be fixed only once

This commit is contained in:
He4eT 2020-03-17 16:09:03 +05:00
commit f544d12d57

View file

@ -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.";
} }
} }
; ;