diff --git a/experiment.t b/experiment.t index d113f59..122e721 100644 --- a/experiment.t +++ b/experiment.t @@ -60,3 +60,5 @@ gameMain: GameMainDef #include "src/actor/surgeryAssistant.t" #include "src/actor/pc.t" + +#include "src/action/repair.t" diff --git a/src/action/repair.t b/src/action/repair.t new file mode 100644 index 0000000..4534bdb --- /dev/null +++ b/src/action/repair.t @@ -0,0 +1,34 @@ +DefineTAction(Repair); + +VerbRule(Repair) + ('repair' | 'fix') singleDobj : RepairAction + verbPhrase = 'repair/repairing (what)' +; + +modify Thing + dobjFor(Repair) { + verify() { + illogical('{You/he} do{es}n\'t know how to repair {that dobj/him}. '); + } + } +; + +DefineTAction(RepairWith); + +VerbRule(RepairWith) + ('repair' | 'fix') dobjList 'with' singleIobj : RepairWithAction + verbPhrase = 'repair/repairing (what) (with what)' +; + +modify Thing + dobjFor(RepairWith) { + verify() { + illogical('{That dobj/he} {is}n\'t something {you/he} can fix. '); + } + } + iobjFor(RepairWith) { + verify() { + illogical('{That iobj/he} do{es}n\'t look very useful as a tool. '); + } + } +;