forked from github/server
Die Einheit hat diesen Gegenstand zwar, aber sämtliche $int($reservation) $resource($resource,$reservation) sind reserviert.
This commit is contained in:
parent
08d10d8588
commit
425a1eb390
2 changed files with 20 additions and 3 deletions
|
@ -105,6 +105,12 @@ give_item(int want, const item_type * itype, unit * src, unit * dest, struct ord
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
} else if (n == 0) {
|
} else if (n == 0) {
|
||||||
|
int reserve = get_reservation(src, itype->rtype);
|
||||||
|
if (reserve) {
|
||||||
|
msg_feedback(src, ord, "nogive_reserved", "resource reservation",
|
||||||
|
itype->rtype, reserve);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
error = 36;
|
error = 36;
|
||||||
} else if (itype->flags & ITF_CURSED) {
|
} else if (itype->flags & ITF_CURSED) {
|
||||||
error = 25;
|
error = 25;
|
||||||
|
|
|
@ -5952,6 +5952,17 @@
|
||||||
<text locale="fr">"$unit($unit) en $region($region): '$order($command)' - L'unité ne possède pas cet objet."</text>
|
<text locale="fr">"$unit($unit) en $region($region): '$order($command)' - L'unité ne possède pas cet objet."</text>
|
||||||
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - The unit does not have this item."</text>
|
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - The unit does not have this item."</text>
|
||||||
</message>
|
</message>
|
||||||
|
<message name="nogive_reserved" section="errors">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="region" type="region"/>
|
||||||
|
<arg name="command" type="order"/>
|
||||||
|
<arg name="reservation" type="int"/>
|
||||||
|
<arg name="resource" type="resource"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - Die Einheit hat diesen Gegenstand zwar, aber sämtliche $int($reservation) $resource($resource,$reservation) sind reserviert."</text>
|
||||||
|
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - The unit has this item, but all $int($reservation) $resource($resource,$reservation) are reserved."</text>
|
||||||
|
</message>
|
||||||
<message name="error35" section="errors">
|
<message name="error35" section="errors">
|
||||||
<type>
|
<type>
|
||||||
<arg name="unit" type="unit"/>
|
<arg name="unit" type="unit"/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue