forked from github/server
"Dumpfbackenbrot funktioniert nicht?" - removed old RTF_SNEAK flag (no longer required)
This commit is contained in:
parent
16d55c2eaf
commit
ea71efe3f2
3 changed files with 5 additions and 10 deletions
|
@ -813,12 +813,8 @@ give_cmd(unit * u, order * ord)
|
|||
}
|
||||
|
||||
if (u2 && !alliedunit(u2, u->faction, HELP_GIVE) && !ucontact(u2, u)) {
|
||||
const resource_type * rtype = findresourcetype(s, u->faction->locale);
|
||||
if (rtype==NULL || !fval(rtype, RTF_SNEAK))
|
||||
{
|
||||
cmistake(u, ord, 40, MSG_COMMERCE);
|
||||
return;
|
||||
}
|
||||
cmistake(u, ord, 40, MSG_COMMERCE);
|
||||
return;
|
||||
}
|
||||
i = findparam(s, u->faction->locale);
|
||||
if (i == P_PERSON) {
|
||||
|
|
|
@ -40,10 +40,9 @@ typedef struct resource {
|
|||
/* bitfield values for resource_type::flags */
|
||||
#define RTF_NONE 0
|
||||
#define RTF_ITEM (1<<0) /* this resource is an item */
|
||||
#define RTF_SNEAK (1<<1) /* can be sneaked to another struct unit, e.g. P_FOOL */
|
||||
#define RTF_LIMITED (1<<2) /* a resource that's freely available, but in
|
||||
#define RTF_LIMITED (1<<1) /* a resource that's freely available, but in
|
||||
* limited supply */
|
||||
#define RTF_POOLED (1<<3) /* resource is available in pool */
|
||||
#define RTF_POOLED (1<<2) /* resource is available in pool */
|
||||
|
||||
/* flags for resource_type::name() */
|
||||
#define NMF_PLURAL 0x01
|
||||
|
|
|
@ -748,7 +748,7 @@
|
|||
</item>
|
||||
</resource>
|
||||
|
||||
<resource name="p7" appearance="vial" sneak="yes">
|
||||
<resource name="p7" appearance="vial">
|
||||
<item weight="0" score="90">
|
||||
<function name="useonother" value="usefoolpotion"/>
|
||||
<potion level="3"/>
|
||||
|
|
Loading…
Reference in a new issue