-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathItem.h
199 lines (187 loc) · 3.59 KB
/
Item.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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
#pragma once
using namespace std;
#define Property_Zero 0
#define Property_NoSeed 1
#define Property_Dropless 2
#define Property_Beta 4
#define Property_Mod 8
#define Property_Chemical 12
#define Property_Untradable 16
#define Property_Wrenchable 32
#define Property_MultiFacing 64
#define Property_Permanent 128
#define Property_AutoPickup 256
#define Property_WorldLock 512
#define Property_NoSelf 1024
#define Property_RandomGrow 2048
#define Property_Public 4096
#define Property_Foreground 8192
enum ClothTypes {
HAIR,
SHIRT,
PANTS,
FEET,
FACE,
HAND,
BACK,
MASK,
NECKLACE,
ANCES,
NONE
};
enum BlockTypes
{
FOREGROUND,
BACKGROUND,
CONSUMABLE,
SEED,
Display_Shelf,
PAIN_BLOCK,
BEDROCK,
VIP_ENTRANCE,
Heart_Monitor,
Painting_Easel,
MAIN_DOOR,
SIGN,
DOOR,
CLOTHING,
FIST,
WRENCH,
CHECKPOINT,
LOCK,
GATEWAY,
TREASURE,
WEATHER,
TRAMPOLINE,
MANNEQUIN,
TOGGLE_FOREGROUND,
CHEMICAL_COMBINER,
SWITCH_BLOCK,
SFX_FOREGROUND,
RANDOM_BLOCK,
Spirit_Storage,
PORTAL,
PLATFORM,
Fish_Mount,
MAILBOX,
GIVING_TREE,
MAGIC_EGG,
CRYSTAL,
GEMS,
DEADLY,
CHEST,
FACTION,
BULLETIN_BOARD,
BOUNCY,
ANIM_FOREGROUND,
COMPONENT,
SUCKER,
FISH,
STEAM,
GROUND_BLOCK,
PORTRAIT,
DISPLAY,
STORAGE,
VENDING,
DONATION,
PHONE,
SEWINGMACHINE,
CRIME_VILLAIN,
PROVIDER,
ADVENTURE,
CCTV,
STORAGE_BOX,
TIMER,
ITEM_SUCKER,
TRICKSTER,
KRANKEN,
FOSSIL,
GEIGER_CHARGER,
COUNTRY_FLAG,
AUTO_BLOCK,
GAME_BLOCK,
GAME_GENERATOR,
UNKNOWN
};
struct ItemDB
{
bool block_possible_put = false;
int grindable_count = 0;
int grindable_prize = 0;
string event_name = "";
int event_total = 0;
int oprc = 0;
int flagmay = 256;
int zombieprice = 0;
int surgeryprice = 0;
int wolfprice = 0;
int pwl = 0;
bool blocked_place = false, unobtainable = false;
int extra_gems = 0;
int newdropchance = 0;
int gtwl = 0;
int u_gtwl = 0;
int chance = 0;
int max_gems2 = 0;
int max_gems3 = 0;
int buy_price = 0;
uint8_t box_size = 0;
vector<int> randomitem, epic, rare, uncommon, price;
int block_flag = 0;
bool musical_block = false;
string texture_name = "";
int texture_y = 0;
int fossil_rock = 0;
int fossil_rock2 = 0;
int compress_item_return = 0;
int compress_return_count = 0;
vector<pair<int, int>> noob_item, rare_item;
int fish_max_lb = 0;
string hand_scythe_text = "";
int consume_needed = 0;
vector<int> consume_prize;
string emoji = "";
bool farmable = false;
uint32_t playmod_id = 0;
int dropChance = 0;
int shop_X = 0, shop_Y = 0;
bool mooncake = false;
int effect = 0;
int id = 0;
bool untradeable = 0;
int breakHits = 25;
int actionType = 0;
int chi = 4;
int growTime = 0;
int properties = 0;
bool multiple_sides = 0;
int base_weather = 0;
bool audio_rack = false;
// bool entrance = 0;
bool simple_load = 0;
// bool charger = 0;
// bool magplant = 0;
bool can_be_changed_to_public = 0;
bool toggleable = 0;
bool wrench_by_public = false;
char itemCategory = 0;
int geiger_give_back = 0;
int collisionType = 0;
int clothingType = 0;
int r_1 = 0, r_2 = 0, max_gems = 0;
string on_equip = "", on_remove = "", playmod = "", playmod_total = "";
string extraFile = "";
string name = "", ori_name;
string description = "This item has no description.";
int16_t rarity = 0;
ClothTypes clothType{};
BlockTypes blockType{};
bool path_marker = false;
};
/*
struct ConsumableDB
{
bool extra_xp = false, frozen = false;
};*/
vector<ItemDB> items;
//vector<ConsumableDB> consumables;