summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/rot.h
blob: ebc84678586e5edd7d1d0f949572e47d34dff554 (plain) (blame)
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
/**
 * @file
 * @brief Functions for blood & chunk rot.
 **/

#ifndef ROT_H
#define ROT_H

#include "externs.h"

#define ROTTING_BLOOD  500
#define FRESHEST_BLOOD (2000+ROTTING_BLOOD)

void init_stack_blood_potions(item_def &stack, int age);
void maybe_coagulate_blood_potions_floor(int obj);
void maybe_coagulate_blood_potions_inv(item_def &blood);
int remove_oldest_blood_potion(item_def &stack);
void remove_newest_blood_potion(item_def &stack, int quant = -1);
void merge_blood_potion_stacks(const item_def &source, item_def &dest,
                               int quant);

void rot_inventory_food(int time_delta);
void rot_floor_items(int elapsedTime);


#endif