NF-Meldungen fuer andere Sinne verbessert.
Das richtige Verb ist doch irgendwie schoener...
Change-Id: I5c1c63d07dc71a4dbbfeca888ec73bc79ff3a63f
diff --git a/std/player/viewcmd.c b/std/player/viewcmd.c
index 3d278f1..c121162 100644
--- a/std/player/viewcmd.c
+++ b/std/player/viewcmd.c
@@ -517,6 +517,23 @@
}
}
+private string nf_verb(int sense)
+{
+ switch(sense)
+ {
+ case SENSE_SMELL:
+ return "riechst";
+ case SENSE_SOUND:
+ return "hoerst";
+ case SENSE_TOUCH:
+ return "ertastest";
+// case SENSE_READ:
+// default:
+// return "siehst";
+ }
+ return "siehst";
+}
+
private int _examine_rec(object *ref_objects, string *tokens, closure
transparent_check, int sense, int mode,
int ref_given)
@@ -641,9 +658,8 @@
// gibt es eine leicht andere Meldung und das Bezugsobjekt muss weg.
if (ref_given) {
SetProp(P_REFERENCE_OBJECT, 0);
- notify_fail("\'" + capitalize(detail) + "\'"
- + (sense==SENSE_VIEW ? " siehst " : " findest ")
- + "Du da nicht!\n");
+ notify_fail(sprintf("\'%s\' %s Du da nicht!\n",
+ capitalize(detail), nf_verb(sense)));
}
// Ansonsten gibt es nur nen passendes notify_fail und Ende.
else if (sense==SENSE_VIEW) {
@@ -651,8 +667,8 @@
+ " siehst Du auch da nicht!\n");
}
else {
- notify_fail("\'" + capitalize(detail) + "\'"
- + " findest Du da nicht!\n");
+ notify_fail(sprintf("\'%s\' %s Du da nicht!\n",
+ capitalize(detail), nf_verb(sense)));
}
return 0;
}