mirror of
https://github.com/He4eT/yet-another-experiment.git
synced 2026-05-04 16:47:22 +00:00
Repair action for connector
This commit is contained in:
parent
0a73200eb6
commit
eb46d96067
4 changed files with 16 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ modify Thing
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
DefineTAction(RepairWith);
|
DefineTIAction(RepairWith);
|
||||||
|
|
||||||
VerbRule(RepairWith)
|
VerbRule(RepairWith)
|
||||||
('repair' | 'fix') dobjList 'with' singleIobj : RepairWithAction
|
('repair' | 'fix') dobjList 'with' singleIobj : RepairWithAction
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,17 @@ dataCable: PlugAttachable, Attachable, RoomPart
|
||||||
}
|
}
|
||||||
dobjFor (RepairWith) {
|
dobjFor (RepairWith) {
|
||||||
verify() {
|
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!";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,6 @@ dentalFloss: Thing
|
||||||
used to remove food and dental plaque
|
used to remove food and dental plaque
|
||||||
from between teeth in areas
|
from between teeth in areas
|
||||||
a toothbrush is unable to reach."
|
a toothbrush is unable to reach."
|
||||||
|
|
||||||
|
iobjFor(RepairWith) { verify() {} }
|
||||||
;
|
;
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,8 @@ pieceOfTape: PresentLater, Thing
|
||||||
@cyanRoom
|
@cyanRoom
|
||||||
" Quite a long piece of safety tape.
|
" Quite a long piece of safety tape.
|
||||||
It can serve as a rope."
|
It can serve as a rope."
|
||||||
|
|
||||||
|
iobjFor(RepairWith) { verify() {} }
|
||||||
;
|
;
|
||||||
|
|
||||||
uselessTape: PresentLater, Decoration
|
uselessTape: PresentLater, Decoration
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue