From eb46d96067fdefd2322befc13f03542495f52e1c Mon Sep 17 00:00:00 2001 From: He4eT Date: Mon, 16 Mar 2020 19:18:31 +0500 Subject: [PATCH] Repair action for connector --- src/action/repair.t | 2 +- src/item/dataCable.t | 12 +++++++++++- src/item/dentalFloss.t | 2 ++ src/item/tape.t | 2 ++ 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/action/repair.t b/src/action/repair.t index 4534bdb..d7b2b67 100644 --- a/src/action/repair.t +++ b/src/action/repair.t @@ -13,7 +13,7 @@ modify Thing } ; -DefineTAction(RepairWith); +DefineTIAction(RepairWith); VerbRule(RepairWith) ('repair' | 'fix') dobjList 'with' singleIobj : RepairWithAction diff --git a/src/item/dataCable.t b/src/item/dataCable.t index 2bbd825..4813f03 100644 --- a/src/item/dataCable.t +++ b/src/item/dataCable.t @@ -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!"; } } ; diff --git a/src/item/dentalFloss.t b/src/item/dentalFloss.t index 8d438a7..b22e1a9 100644 --- a/src/item/dentalFloss.t +++ b/src/item/dentalFloss.t @@ -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() {} } ; diff --git a/src/item/tape.t b/src/item/tape.t index 3cd628d..86d880c 100644 --- a/src/item/tape.t +++ b/src/item/tape.t @@ -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