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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
/*
* File: ouch.cc
* Summary: Functions used when Bad Things happen to the player.
* Written by: Linley Henzell
*
* Change History (most recent first):
*
* <2> 9/29/99 BCR Added the DEATH_NAME_LENGTH define
* It determines how many characters of
* a long player name are printed in
* the score list.
* <1> -/--/-- LRH Created
*/
#ifndef OUCH_H
#define OUCH_H
#define DEATH_NAME_LENGTH 10
#include "enum.h"
enum kill_method_type
{
KILLED_BY_MONSTER, // 0
KILLED_BY_POISON,
KILLED_BY_CLOUD,
KILLED_BY_BEAM, // 3
KILLED_BY_DEATHS_DOOR, // should be deprecated, but you never know {dlb}
KILLED_BY_LAVA, // 5
KILLED_BY_WATER,
KILLED_BY_STUPIDITY,
KILLED_BY_WEAKNESS,
KILLED_BY_CLUMSINESS,
KILLED_BY_TRAP, // 10
KILLED_BY_LEAVING,
KILLED_BY_WINNING,
KILLED_BY_QUITTING,
KILLED_BY_DRAINING,
KILLED_BY_STARVATION, // 15
KILLED_BY_FREEZING,
KILLED_BY_BURNING,
KILLED_BY_WILD_MAGIC,
KILLED_BY_XOM,
KILLED_BY_STATUE, // 20
KILLED_BY_ROTTING,
KILLED_BY_TARGETTING,
KILLED_BY_SPORE,
KILLED_BY_TSO_SMITING,
KILLED_BY_PETRIFICATION, // 25
KILLED_BY_SOMETHING = 27,
KILLED_BY_FALLING_DOWN_STAIRS,
KILLED_BY_ACID,
KILLED_BY_CURARE,
KILLED_BY_MELTING,
KILLED_BY_BLEEDING,
KILLED_BY_BEOGH_SMITING,
NUM_KILLBY
};
// last updated 12may2000 {dlb}
/* ***********************************************************************
* called from: bang - beam - effects - spells
* *********************************************************************** */
int check_your_resists(int hurted, int flavour);
// last updated 12may2000 {dlb}
/* ***********************************************************************
* called from: fight
* *********************************************************************** */
void splash_with_acid(char acid_strength);
// last updated 12may2000 {dlb}
/* ***********************************************************************
* called from: fight
* *********************************************************************** */
void weapon_acid(char acid_strength);
// last updated 12may2000 {dlb}
/* ***********************************************************************
* called from: acr - bang - beam - effects - fight - misc - spells -
* spells2
* *********************************************************************** */
void scrolls_burn(char burn_strength, char target_class);
// last updated 12may2000 {dlb}
/* ***********************************************************************
* called from: acr - bang - beam - command - effects - fight - misc -
* ouch - output - religion - spells - spells2 - spells4
* *********************************************************************** */
void ouch(int dam, int death_source, kill_method_type death_type,
const char *aux = NULL, bool see_source = true);
// last updated 12may2000 {dlb}
/* ***********************************************************************
* called from: decks - ouch
* *********************************************************************** */
void lose_level(void);
// last updated 12may2000 {dlb}
/* ***********************************************************************
* called from: decks - fight - item_use - ouch - religion - spells
* *********************************************************************** */
void drain_exp(void);
void expose_player_to_element( beam_type flavour, int strength = 0 );
#endif
|