Vegetarians shouldn't drink flasks of chicken soup / beef strogonoff.
This commit is contained in:
parent
6a7175a8d3
commit
e5dfd28216
2
data.c
2
data.c
|
@ -3858,6 +3858,7 @@ void initobjects(void) {
|
||||||
addot(OT_POT_SOUPCHICKEN, "flask of chicken soup", "A watery soup which cures diseases and heals you.", MT_GLASS, 1, OC_POTION, SZ_TINY);
|
addot(OT_POT_SOUPCHICKEN, "flask of chicken soup", "A watery soup which cures diseases and heals you.", MT_GLASS, 1, OC_POTION, SZ_TINY);
|
||||||
addflag(lastot->flags, F_NOBLESS, B_TRUE, NA, NA, NULL);
|
addflag(lastot->flags, F_NOBLESS, B_TRUE, NA, NA, NULL);
|
||||||
killflagsofid(lastot->flags, F_HASHIDDENNAME);
|
killflagsofid(lastot->flags, F_HASHIDDENNAME);
|
||||||
|
addflag(lastot->flags, F_ISMEAT, B_TRUE, 80, NA, "");
|
||||||
addflag(lastot->flags, F_RARITY, H_ALL, 100, RR_UNCOMMON, NULL);
|
addflag(lastot->flags, F_RARITY, H_ALL, 100, RR_UNCOMMON, NULL);
|
||||||
addflag(lastot->flags, F_VALUE, 20, NA, NA, NULL);
|
addflag(lastot->flags, F_VALUE, 20, NA, NA, NULL);
|
||||||
|
|
||||||
|
@ -3876,6 +3877,7 @@ void initobjects(void) {
|
||||||
addot(OT_POT_STROGONOFF, "flask of beef strogonoff", "A beef and mushroom stew which temporarily boosts your Fitness, and heals you a little.", MT_GLASS, 1, OC_POTION, SZ_TINY);
|
addot(OT_POT_STROGONOFF, "flask of beef strogonoff", "A beef and mushroom stew which temporarily boosts your Fitness, and heals you a little.", MT_GLASS, 1, OC_POTION, SZ_TINY);
|
||||||
addflag(lastot->flags, F_NOBLESS, B_TRUE, NA, NA, NULL);
|
addflag(lastot->flags, F_NOBLESS, B_TRUE, NA, NA, NULL);
|
||||||
killflagsofid(lastot->flags, F_HASHIDDENNAME);
|
killflagsofid(lastot->flags, F_HASHIDDENNAME);
|
||||||
|
addflag(lastot->flags, F_ISMEAT, B_TRUE, 80, NA, "");
|
||||||
addflag(lastot->flags, F_RARITY, H_ALL, 100, RR_UNCOMMON, NULL);
|
addflag(lastot->flags, F_RARITY, H_ALL, 100, RR_UNCOMMON, NULL);
|
||||||
addflag(lastot->flags, F_VALUE, 25, NA, NA, NULL);
|
addflag(lastot->flags, F_VALUE, 25, NA, NA, NULL);
|
||||||
|
|
||||||
|
|
3
io.c
3
io.c
|
@ -3245,6 +3245,9 @@ void cantdrink(enum ERROR reason) {
|
||||||
case E_UNDEAD:
|
case E_UNDEAD:
|
||||||
msg("You are undead and don't need to drink.");
|
msg("You are undead and don't need to drink.");
|
||||||
break;
|
break;
|
||||||
|
case E_VEGETARIAN:
|
||||||
|
msg("The thought of consuming meat disgusts you.");
|
||||||
|
break;
|
||||||
case E_FACECOVERED:
|
case E_FACECOVERED:
|
||||||
oo = facecovered(player);
|
oo = facecovered(player);
|
||||||
assert(oo);
|
assert(oo);
|
||||||
|
|
4
lf.c
4
lf.c
|
@ -939,6 +939,10 @@ int candrink(lifeform_t *lf, object_t *o) {
|
||||||
reason = E_FACECOVERED;
|
reason = E_FACECOVERED;
|
||||||
return B_FALSE;
|
return B_FALSE;
|
||||||
}
|
}
|
||||||
|
if (lfhasflag(lf, F_VEGETARIAN) && hasflag(o->flags, F_ISMEAT)) {
|
||||||
|
reason = E_VEGETARIAN;
|
||||||
|
return B_FALSE;
|
||||||
|
}
|
||||||
reason = E_OK;
|
reason = E_OK;
|
||||||
return B_TRUE;
|
return B_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue