mirror of
https://github.com/He4eT/yet-another-experiment.git
synced 2026-05-05 00:57:22 +00:00
Custom repair action
This commit is contained in:
parent
195cecd542
commit
d3c0863de5
2 changed files with 36 additions and 0 deletions
|
|
@ -60,3 +60,5 @@ gameMain: GameMainDef
|
||||||
#include "src/actor/surgeryAssistant.t"
|
#include "src/actor/surgeryAssistant.t"
|
||||||
|
|
||||||
#include "src/actor/pc.t"
|
#include "src/actor/pc.t"
|
||||||
|
|
||||||
|
#include "src/action/repair.t"
|
||||||
|
|
|
||||||
34
src/action/repair.t
Normal file
34
src/action/repair.t
Normal 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. ');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue