Custom repair action

This commit is contained in:
He4eT 2020-03-08 13:47:47 +05:00
commit d3c0863de5
2 changed files with 36 additions and 0 deletions

View file

@ -60,3 +60,5 @@ gameMain: GameMainDef
#include "src/actor/surgeryAssistant.t"
#include "src/actor/pc.t"
#include "src/action/repair.t"

34
src/action/repair.t Normal file
View file

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