Repair action for connector

This commit is contained in:
He4eT 2020-03-16 19:18:31 +05:00
commit eb46d96067
4 changed files with 16 additions and 2 deletions

View file

@ -13,7 +13,7 @@ modify Thing
}
;
DefineTAction(RepairWith);
DefineTIAction(RepairWith);
VerbRule(RepairWith)
('repair' | 'fix') dobjList 'with' singleIobj : RepairWithAction

View file

@ -48,7 +48,17 @@ dataCable: PlugAttachable, Attachable, RoomPart
}
dobjFor (RepairWith) {
verify() {
illogical('Code here');
if (gIobj not in (
dentalFloss,
pieceOfTape
)) {
illogical('
{That iobj/he} do{es}n\'t look useful
for fixing the connector. ');
}
}
action() {
"Wow!";
}
}
;

View file

@ -6,4 +6,6 @@ dentalFloss: Thing
used to remove food and dental plaque
from between teeth in areas
a toothbrush is unable to reach."
iobjFor(RepairWith) { verify() {} }
;

View file

@ -47,6 +47,8 @@ pieceOfTape: PresentLater, Thing
@cyanRoom
" Quite a long piece of safety tape.
It can serve as a rope."
iobjFor(RepairWith) { verify() {} }
;
uselessTape: PresentLater, Decoration