eucalyptus leaf whistles
Add <Someone>'s patch that enables using the apply command
on eucalyptus leaves to produce a whistle effect. Blessed leaves
behave like magic whistles; I added a chance for the blessing to be
used up in the process.
The invent.c diff is almost all reformatting.
This commit is contained in:
11
src/invent.c
11
src/invent.c
@@ -865,14 +865,15 @@ register const char *let,*word;
|
||||
!strcmp(word, "untrap with")) &&
|
||||
/* Picks, axes, pole-weapons, bullwhips */
|
||||
((otmp->oclass == WEAPON_CLASS && !is_pick(otmp) &&
|
||||
!is_axe(otmp) && !is_pole(otmp) && otyp != BULLWHIP)
|
||||
|| (otmp->oclass == POTION_CLASS &&
|
||||
!is_axe(otmp) && !is_pole(otmp) && otyp != BULLWHIP) ||
|
||||
(otmp->oclass == POTION_CLASS &&
|
||||
/* only applicable potion is oil, and it will only
|
||||
be offered as a choice when already discovered */
|
||||
(otyp != POT_OIL || !otmp->dknown ||
|
||||
!objects[POT_OIL].oc_name_known))
|
||||
|| (otmp->oclass == FOOD_CLASS && otyp != CREAM_PIE)
|
||||
|| (otmp->oclass == GEM_CLASS && !is_graystone(otmp))))
|
||||
!objects[POT_OIL].oc_name_known)) ||
|
||||
(otmp->oclass == FOOD_CLASS &&
|
||||
otyp != CREAM_PIE && otyp != EUCALYPTUS_LEAF) ||
|
||||
(otmp->oclass == GEM_CLASS && !is_graystone(otmp))))
|
||||
|| (!strcmp(word, "invoke") &&
|
||||
(!otmp->oartifact && !objects[otyp].oc_unique &&
|
||||
(otyp != FAKE_AMULET_OF_YENDOR || otmp->known) &&
|
||||
|
||||
Reference in New Issue
Block a user