forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnpc_favor.h
36 lines (29 loc) · 765 Bytes
/
npc_favor.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 CATA_SRC_NPC_FAVOR_H
#define CATA_SRC_NPC_FAVOR_H
#include "type_id.h"
class JsonObject;
class JsonOut;
enum npc_favor_type {
FAVOR_NULL,
FAVOR_GENERAL, // We owe you... a favor?
FAVOR_CASH, // We owe cash (or goods of equivalent value)
FAVOR_ITEM, // We owe a specific item
FAVOR_TRAINING,// We owe skill or style training
NUM_FAVOR_TYPES
};
struct npc_favor {
npc_favor_type type;
int value;
itype_id item_id;
skill_id skill;
npc_favor() {
type = FAVOR_NULL;
value = 0;
item_id = itype_id::NULL_ID();
skill = skill_id::NULL_ID();
}
void serialize( JsonOut &json ) const;
void deserialize( const JsonObject &jo );
};
#endif // CATA_SRC_NPC_FAVOR_H