forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
crafting.h
36 lines (28 loc) · 1.12 KB
/
crafting.h
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
#pragma once
#ifndef CRAFTING_H
#define CRAFTING_H
#include "item.h" // item
#include <list>
#include <vector>
class inventory;
class npc;
class player;
class recipe;
// removes any (removable) ammo from the item and stores it in the
// players inventory.
void remove_ammo( item *dis_item, player &p );
// same as above but for each item in the list
void remove_ammo( std::list<item> &dis_items, player &p );
// Show the "really disassemble?" query along with a list of possible results.
// Returns false if the player answered no to the query.
bool query_dissamble( const item &dis_item );
const recipe *select_crafting_recipe( int &batch_size );
void batch_recipes( const inventory &crafting_inv,
const std::vector<npc *> &helpers,
std::vector<const recipe *> ¤t,
std::vector<bool> &available, const recipe *r );
void set_item_spoilage( item &newit, float used_age_tally, int used_age_count );
void set_item_food( item &newit );
void set_item_inventory( item &newit );
void finalize_crafted_item( item &newit, float used_age_tally, int used_age_count );
#endif