1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
/*
* File: it_use2.cc
* Summary: Functions for using wands, potions, and weapon/armour removal.
* Written by: Linley Henzell
*
* Change History (most recent first):
*
* <1> -/--/-- LRH Created
*/
#ifndef IT_USE2_H
#define IT_USE2_H
#include "externs.h"
enum potion_type
{
POT_HEALING, // 0
POT_HEAL_WOUNDS,
POT_SPEED,
POT_MIGHT,
POT_GAIN_STRENGTH,
POT_GAIN_DEXTERITY, // 5
POT_GAIN_INTELLIGENCE,
POT_LEVITATION,
POT_POISON,
POT_SLOWING,
POT_PARALYSIS, // 10
POT_CONFUSION,
POT_INVISIBILITY,
POT_PORRIDGE,
POT_DEGENERATION,
POT_DECAY, // 15
POT_WATER,
POT_EXPERIENCE,
POT_MAGIC,
POT_RESTORE_ABILITIES,
POT_STRONG_POISON, // 20
POT_BERSERK_RAGE,
POT_CURE_MUTATION,
POT_MUTATION,
POT_BLOOD,
POT_RESISTANCE,
NUM_POTIONS
};
/* ***********************************************************************
* called from: ability - beam - decks - item_use - misc - religion -
* spell - spells - spells1
* *********************************************************************** */
bool potion_effect(potion_type pot_eff, int pow);
/* ***********************************************************************
* called from: item_use
* *********************************************************************** */
void unuse_randart(unsigned char unw);
void unuse_randart(const item_def &item);
/* ***********************************************************************
* called from: item_use - transfor
* *********************************************************************** */
void unwear_armour(char unw);
/* ***********************************************************************
* called from: decks - it_use3 - item_use - items - spells3 - transfor
* *********************************************************************** */
void unwield_item(bool showMsgs = true);
#endif
|