Fehlermeldung, wenn ein Nicht-Elf versucht, Elfenbögen zu bauen

This commit is contained in:
Enno Rehling 2004-06-12 11:19:17 +00:00
parent 901a08f52d
commit 162e67899f
1 changed files with 54 additions and 52 deletions

View File

@ -1342,11 +1342,11 @@ manufacture(unit * u, const item_type * itype, int want)
n = build(u, itype->construction, 0, want); n = build(u, itype->construction, 0, want);
switch (n) { switch (n) {
case ENEEDSKILL: case ENEEDSKILL:
add_message(&u->faction->msgs, ADDMSG(&u->faction->msgs,
msg_error(u, findorder(u, u->thisorder), "skill_needed", "skill", sk)); msg_error(u, findorder(u, u->thisorder), "skill_needed", "skill", sk));
return; return;
case ELOWSKILL: case ELOWSKILL:
add_message(&u->faction->msgs, ADDMSG(&u->faction->msgs,
msg_error(u, findorder(u, u->thisorder), "manufacture_skills", "skill minskill product", msg_error(u, findorder(u, u->thisorder), "manufacture_skills", "skill minskill product",
sk, minskill, itype->rtype, 1)); sk, minskill, itype->rtype, 1));
return; return;
@ -1376,6 +1376,8 @@ manufacture(unit * u, const item_type * itype, int want)
if (want==INT_MAX) want = n; if (want==INT_MAX) want = n;
ADDMSG(&u->faction->msgs, msg_message("manufacture", ADDMSG(&u->faction->msgs, msg_message("manufacture",
"unit region amount wanted resource", u, u->region, n, want, itype->rtype)); "unit region amount wanted resource", u, u->region, n, want, itype->rtype));
} else {
cmistake(u, findorder(u, u->thisorder), 125, MSG_PRODUCE);
} }
} }