|
@@ -22,8 +22,8 @@ class ActionTalk extends Action {
|
|
let thing = (<Thing>action.getNoun(0));
|
|
let thing = (<Thing>action.getNoun(0));
|
|
|
|
|
|
if (thing instanceof Person) {
|
|
if (thing instanceof Person) {
|
|
- action.say = new Say("It doesn't look like ", new SayHeSheIt(thing), " wants to talk.");
|
|
|
|
- } else {
|
|
|
|
|
|
+ action.say = new Say(...Say.Mention(action.actor), " greet", action.actor == WorldState.player ? " " : "s ", ...Say.Mention(thing), ". There is no response.");
|
|
|
|
+ } else if (action.actor == WorldState.player) {
|
|
action.say = new Say("How are you going to talk to that?")
|
|
action.say = new Say("How are you going to talk to that?")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -38,6 +38,7 @@ Elements.HyperlinkHandler.HyperlinkingRulebook.addRule(new Rule(
|
|
{
|
|
{
|
|
name : "Hyperlink - Talk",
|
|
name : "Hyperlink - Talk",
|
|
firstPriority : Rule.PRIORITY_HIGHEST,
|
|
firstPriority : Rule.PRIORITY_HIGHEST,
|
|
|
|
+ priority : Rule.PRIORITY_HIGHEST,
|
|
code : (rulebook : RulebookRunner<Thing>) => {
|
|
code : (rulebook : RulebookRunner<Thing>) => {
|
|
let thing = <Thing> rulebook.noun;
|
|
let thing = <Thing> rulebook.noun;
|
|
|
|
|