forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
itypedef.cpp
4852 lines (4035 loc) · 215 KB
/
itypedef.cpp
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include "itype.h"
#include "game.h"
#include "setvector.h"
#include <fstream>
// Armor colors
#define C_SHOES c_blue
#define C_PANTS c_brown
#define C_BODY c_yellow
#define C_TORSO c_ltred
#define C_ARMS c_blue
#define C_GLOVES c_ltblue
#define C_MOUTH c_white
#define C_EYES c_cyan
#define C_HAT c_dkgray
#define C_STORE c_green
#define C_DECOR c_ltgreen
// Special function for setting melee techniques
#define TECH(id, t) itypes[id]->techniques = t
std::vector<std::string> unreal_itype_ids;
std::vector<std::string> martial_arts_itype_ids;
std::vector<std::string> artifact_itype_ids;
std::vector<std::string> standard_itype_ids;
std::vector<std::string> pseudo_itype_ids;
// GENERAL GUIDELINES
// When adding a new item, you MUST REMEMBER to insert it in the itype_id enum
// at the top of itype.h!
// Additionally, you should check mapitemsdef.cpp and insert the new item in
// any appropriate lists.
void game::init_itypes ()
{
// First, the null object. NOT REALLY AN OBJECT AT ALL. More of a concept.
itypes["null"]=
new itype("null", 0, 0, "none", "", '#', c_white, MNULL, MNULL, 0, 0, 0, 0, 0, 0);
// Corpse - a special item
itypes["corpse"]=
new itype("corpse", 0, 0, "corpse", "A dead body.", '%', c_white, MNULL, MNULL, 0, 0,
0, 0, 1, 0);
// Fire - only appears in crafting recipes
itypes["fire"]=
new itype("fire", 0, 0, "nearby fire",
"Some fire - if you are reading this it's a bug!",
'$', c_red, MNULL, MNULL, 0, 0, 0, 0, 0, 0);
// Integrated toolset - ditto
itypes["toolset"]=
new itype("toolset", 0, 0, "integrated toolset",
"A fake item. If you are reading this it's a bug!",
'$', c_red, MNULL, MNULL, 0, 0, 0, 0, 0, 0);
// For smoking crack or meth
itypes["apparatus"]=
new itype("apparatus", 0, 0, "something to smoke that from, and a lighter",
"A fake item. If you are reading this it's a bug!",
'$', c_red, MNULL, MNULL, 0, 0, 0, 0, 0, 0);
// Drinks
// Stim should be -8 to 8.
// quench MAY be less than zero--salt water and liquor make you thirstier.
// Thirst goes up by 1 every 5 minutes; so a quench of 12 lasts for 1 hour
// Any foods with a nutrition of lower than 5 will never prompt a 'You are full, force yourself to eat that?' message
#define DRINK(id, name,rarity,price,color,container,quench,nutr,spoils,stim,\
healthy,addict,charges,fun,use_func,addict_func,des, item_flags) \
itypes[id] = new it_comest(id,rarity,price,name,des,'~',\
color,LIQUID,2,1,0,0,0,item_flags,quench,nutr,spoils,stim,healthy,addict,charges,\
fun,container,"null",use_func,addict_func,"DRINK");
// NAME RAR PRC COLOR CONTAINER
DRINK("water","water", 90, 50, c_ltcyan, "bottle_plastic",
// QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
25, 0, 0, 0, 0, 0, 1, 0,&iuse::none, ADD_NULL, "\
Water, the stuff of life, the best thirst-quencher available.", 0);
// NAME RAR PRC COLOR CONTAINER
DRINK("water_clean","clean water", 90, 50, c_ltcyan, "bottle_plastic",
// QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
25, 0, 0, 0, 0, 0, 1, 0,&iuse::none, ADD_NULL, "\
Fresh, clean water. Truly the best thing to quench your thirst.", 0);
DRINK("sewage","sewage sample", 5, 5, c_ltgreen, "bottle_plastic",
5, 0, 0, 0,-10, 0, 1,-20,&iuse::sewage, ADD_NULL, "\
A sample of sewage from a treatment plant. Gross.", 0);
DRINK("salt_water","salt water", 20, 5, c_ltcyan, "bottle_plastic",
-30, 0, 0, 0, 1, 0, 1, -1,&iuse::none, ADD_NULL, "\
Water with salt added. Not good for drinking.", 0);
DRINK("oj","orange juice", 50, 38, c_yellow, "bottle_plastic",
35, 4,120, 0, 2, 0, 1, 3,&iuse::none, ADD_NULL, "\
Freshly-squeezed from real oranges! Tasty and nutritious.", 0);
DRINK("apple_cider","apple cider", 50, 38, c_brown, "bottle_plastic",
35, 4,144, 0, 3, 0, 1, 2,&iuse::none, ADD_NULL, "\
Pressed from fresh apples. Tasty and nutritious.", 0);
DRINK("energy_drink","energy drink", 55, 45, c_magenta,"can_drink",
15, 1, 0, 8, -2, 2, 1, 5,&iuse::caff, ADD_CAFFEINE, "\
Popular among those who need to stay up late working.", 0);
// NAME RAR PRC COLOR CONTAINER
DRINK("cola", "cola", 70, 35, c_brown, "can_drink",
// QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
18, 3, 0, 6, -1, 2, 1, 5,&iuse::caff, ADD_CAFFEINE, "\
Things go better with cola. Sugar water with caffeine added.", 0);
DRINK("rootbeer","root beer", 65, 30, c_brown, "can_drink",
18, 3, 0, 1, -1, 0, 1, 3,&iuse::none, ADD_NULL, "\
Like cola, but without caffeine. Still not that healthy.", 0);
DRINK("milk","milk", 50, 35, c_white, "bottle_glass",
25, 8, 8, 0, 1, 0, 1, 0,&iuse::none, ADD_NULL, "\
Baby cow food, appropriated for adult humans. Spoils rapidly.", 0);
DRINK("V8","V8", 15, 35, c_red, "can_drink",
6, 28,240, 0, 1, 0, 1, 0,&iuse::none, ADD_NULL, "\
Contains up to 8 vegetables! Nutritious and tasty.", 0);
// NAME RAR PRC COLOR CONTAINER
DRINK("broth","broth", 15, 35, c_yellow, "can_food",
// QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
10, 15,160, 0, 0, 0, 1, 1,&iuse::none, ADD_NULL, "\
Vegetable stock. Tasty and fairly nutritious.", mfb(IF_EATEN_HOT));
DRINK("soup_veggy","vegetable soup", 15, 60, c_red, "can_food",
10, 60,120, 0, 2, 0, 1, 2,&iuse::none, ADD_NULL, "\
A nutritious and delicious hearty vegetable soup.", mfb(IF_EATEN_HOT));
DRINK("soup_meat","meat soup", 15, 60, c_red, "can_food",
10, 60,120, 0, 2, 0, 1, 2,&iuse::none, ADD_NULL, "\
A nutritious and delicious hearty meat soup.", mfb(IF_EATEN_HOT));
DRINK("whiskey","whiskey", 16, 85, c_brown, "bottle_glass",
-12, 4, 0,-12, -2, 5, 7, 15,&iuse::alcohol, ADD_ALCOHOL, "\
Made from, by, and for real Southern colonels!", 0);
// NAME RAR PRC COLOR CONTAINER
DRINK("vodka","vodka", 20, 78, c_ltcyan, "bottle_glass",
// QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
-10, 2, 0,-12, -2, 5, 7, 15,&iuse::alcohol, ADD_ALCOHOL, "\
In Soviet Russia, vodka drinks you!", 0);
DRINK("gin","gin", 20, 78, c_ltcyan, "bottle_glass",
-10, 2, 0,-12, -2, 5, 7, 15,&iuse::alcohol, ADD_ALCOHOL, "\
Smells faintly of elderberries, but mostly booze.", 0);
DRINK("rum","rum", 14, 85, c_ltcyan, "bottle_glass",
-12, 2, 0,-10, -2, 5, 7, 15,&iuse::alcohol, ADD_ALCOHOL, "\
Drinking this might make you feel like a pirate. Or not.", 0);
DRINK("tequila","tequila", 12, 88, c_brown, "bottle_glass",
-12, 2, 0,-12, -2, 6, 7, 18,&iuse::alcohol, ADD_ALCOHOL, "\
Don't eat the worm! Wait, there's no worm in this bottle.", 0);
DRINK("triple_sec","triple sec", 12, 55, c_brown, "bottle_glass",
-8, 2, 0,-10, -2, 4, 7, 10,&iuse::alcohol, ADD_ALCOHOL, "\
An orange flavored liquor used in many mixed drinks.", 0);
DRINK("long_island","long island iced tea", 8, 100, c_brown, "bottle_glass",
-10, 2, 0,-10, -2, 5, 6, 20,&iuse::alcohol, ADD_ALCOHOL, "\
A blend of incredibly strong-flavored liquors that somehow tastes\n\
like none of them.", 0);
DRINK("beer","beer", 60, 35, c_brown, "can_drink",
16, 4, 0, -4, -1, 2, 1, 10, &iuse::alcohol, ADD_ALCOHOL, "\
Best served cold, in a glass, and with a lime - but you're not that lucky.", 0);
DRINK("bleach","bleach", 20, 18, c_white, "jug_plastic",
-96, 0, 0, 0, -8, 0, 1,-30,&iuse::blech, ADD_NULL, "\
Don't drink it. Mixing it with ammonia produces toxic gas.", 0);
// NAME RAR PRC COLOR CONTAINER
DRINK("ammonia","ammonia", 24, 30, c_yellow, "jug_plastic",
// QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
-96, 0, 0, 0, -2, 0, 1,-30,&iuse::blech, ADD_NULL, "\
Don't drink it. Mixing it with bleach produces toxic gas.", 0);
DRINK("mutagen","mutagen", 8,1000,c_magenta,"flask_glass",
0, 0, 0, 0, -2, 0, 1, 0,&iuse::mutagen_3,ADD_NULL, "\
A rare substance of uncertain origins. Causes you to mutate.", 0);
DRINK("purifier","purifier", 12, 6000,c_pink, "flask_glass",
0, 0, 0, 0, 1, 0, 1, 0,&iuse::purifier, ADD_NULL, "\
A rare stem-cell treatment that causes mutations and other genetic defects\n\
to fade away.", 0);
DRINK("tea","tea", 1, 50, c_green, "bottle_plastic",
// QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
40, 3, 0, 0, 0, 0, 1, 6,&iuse::none, ADD_NULL, "\
Tea, the beverage of gentlemen everywhere.", mfb(IF_EATEN_HOT));
DRINK("coffee","coffee", 1, 50, c_brown, "bottle_plastic",
40, 3, 0, 12, 0, 0, 1, 6,&iuse::caff, ADD_CAFFEINE, "\
Coffee. The morning ritual of the pre-apocalypse world.", mfb(IF_EATEN_HOT));
// NAME RAR PRC COLOR CONTAINER
DRINK("blood","blood", 20, 0, c_red, "flask_glass",
// QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
5, 5, 0, 0, -8, 0, 1,-50,&iuse::none, ADD_NULL, "\
Blood, possibly that of a human. Disgusting!", 0);
#define FOOD(id, name, rarity,price,color,mat1,container,volume,weight,quench,\
nutr,spoils,stim,healthy,addict,charges,fun,use_func,addict_func,des, item_flags) \
itypes[id]=new it_comest(id,rarity,price,name,des,'%',\
color,mat1,volume,weight,0,0,0,item_flags, quench,nutr,spoils,stim,healthy,addict,charges,\
fun,container,"null",use_func,addict_func,"FOOD");
// FOOD
FOOD("bone", "bone", 50, 50, c_white, FLESH, "null",
1, 1, 0, 4, 0, 0, -1, 0, 1, 0, &iuse::none, ADD_NULL, "\
A bone from some creature or other, could be eaten or used to make some\n\
stuff, like needles.",0);
FOOD("plant_sac", "fluid sac", 50, 50, c_white, FLESH, "null",
1, 1, 0, 4, 0, 0, -1, 0, 1, 0, &iuse::none, ADD_NULL, "\
A fluid bladder from a plant based lifeform, not very nutritious, but\n\
fine to eat anyway.",0);
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("meat", "chunk of meat", 50, 50, c_red, FLESH, "null",
// VOL WGT QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
1, 2, 0, 20, 24, 0, -1, 0, 1,-10, &iuse::none, ADD_NULL, "\
Freshly butchered meat. You could eat it raw, but cooking it is better.", 0);
FOOD("veggy", "plant marrow", 30, 60, c_green, VEGGY, "null",
1, 2, 0, 20, 80, 0, 1, 0, 1, 0, &iuse::none, ADD_NULL, "\
A nutrient rich chunk of plant matter, could be eaten raw or cooked.", 0);
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("human_flesh", "human flesh", 50, 50, c_red, HFLESH, "null",
// VOL WGT QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
1, 2, 0, 20, 24, 0, -1, 0, 1, 0, &iuse::none, ADD_NULL, "\
Freshly butchered from a human body.", 0);
FOOD("veggy_wild", "wild vegetables", 30, 60, c_green, VEGGY, "null",
1, 2, 0, 20, 80, 0, 1, 0, 1, -10, &iuse::none, ADD_NULL, "\
An assortment of edible-looking wild plants. Most are quite bitter-tasting.", 0);
FOOD("meat_tainted", "tainted meat", 60, 4, c_red, FLESH, "null",
1, 2, 0, 20, 4, 0, 0, 0, 1,-10, &iuse::poison, ADD_NULL, "\
Meat that's obviously unhealthy. You could eat it, but it will poison you.", 0);
FOOD("veggy_tainted", "tainted veggy", 35, 5, c_green, VEGGY, "null",
1, 2, 0, 20, 10, 0, 1, 0, 1, 0, &iuse::poison, ADD_NULL, "\
Vegetable that looks poisonous. You could eat it, but it will poison you.", 0);
FOOD("meat_cooked", "cooked meat", 0, 75, c_red, FLESH, "null",
1, 2, 0, 50, 24, 0, 0, 0, 1, 8, &iuse::none, ADD_NULL, "\
Freshly cooked meat. Very nutritious.", mfb(IF_EATEN_HOT));
FOOD("veggy_cooked", "cooked plant marrow", 0, 70, c_green, VEGGY, "null",
1, 2, 0, 40, 50, 0, 1, 0, 1, 0, &iuse::none, ADD_NULL, "\
A freshly cooked chunk of plant matter, tasty and nutritious.", mfb(IF_EATEN_HOT));
FOOD("veggy_wild_cooked", "cooked wild vegetables", 0, 70, c_green, VEGGY, "null",
1, 2, 0, 40, 50, 0, 1, 0, 1, 0, &iuse::none, ADD_NULL, "\
Cooked wild edible plants. An interesting mix of flavours.", mfb(IF_EATEN_HOT));
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("apple", "apple", 70, 16, c_red, VEGGY, "null",
// VOL WGT QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
1, 1, 3, 16,160, 0, 4, 0, 1, 3, &iuse::none, ADD_NULL, "\
An apple a day keeps the doctor away.", 0);
FOOD("orange", "orange", 65, 18, c_yellow, VEGGY, "null",
1, 1, 8, 14, 96, 0, 0, 0, 1, 3, &iuse::none, ADD_NULL, "\
Sweet citrus fruit. Also comes in juice form.", 0);
FOOD("lemon", "lemon", 50, 12, c_yellow, VEGGY, "null",
1, 1, 5, 5,180, 0, 0, 0, 1, -4, &iuse::none, ADD_NULL, "\
Very sour citrus. Can be eaten if you really want.", 0);
FOOD("chips", "potato chips", 65, 12, c_magenta, VEGGY, "bag_plastic",
2, 1, -2, 8, 0, 0, 0, 0, 3, 6, &iuse::none, ADD_NULL, "\
Betcha can't eat just one.", 0);
FOOD("chips2", "potato chips", 65, 12, c_magenta, VEGGY, "bag_plastic",
2, 1, -2, 8, 0, 0, 0, 0, 3, 3, &iuse::none, ADD_NULL, "\
A bag of cheap, own-brand chips.", 0);
FOOD("chips3", "potato chips", 65, 12, c_magenta, VEGGY, "bag_plastic",
2, 1, -2, 8, 0, 0, 0, 0, 3, 12, &iuse::none, ADD_NULL, "\
Oh man, you love these chips! Score!", 0);
FOOD("pretzels", "pretzels", 55, 13, c_brown, VEGGY, "bag_plastic",
2, 1, -2, 9, 0, 0, 0, 0, 3, 2, &iuse::none, ADD_NULL, "\
A salty treat of a snack.", 0);
FOOD("chocolate", "chocolate bar", 50, 20, c_brown, VEGGY, "wrapper",
1, 1, 0, 8, 0, 1, 0, 0, 1, 8, &iuse::none, ADD_NULL, "\
Chocolate isn't very healthy, but it does make a delicious treat.", 0);
FOOD("jerky", "beef jerky", 55, 24, c_red, FLESH, "bag_plastic",
1, 1, -3, 12, 0, 0, -1, 0, 3, 4, &iuse::none, ADD_NULL, "\
Salty dried meat that never goes bad, but will make you thirsty.", 0);
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("sandwich_t", "meat sandwich", 30, 60, c_ltgray, FLESH, "wrapper",
// VOL WGT QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
1, 2, 0, 50, 36, 0, 0, 0, 1, 5, &iuse::none, ADD_NULL, "\
Bread and turkey, that's it.", mfb(IF_EATEN_HOT));
FOOD("candy", "candy", 80, 14, c_magenta, VEGGY, "bag_plastic",
0, 0, -1, 2, 0, 1, -2, 0, 3, 4, &iuse::none, ADD_NULL, "\
A big bag of peanut butter cups... your favorite!", 0);
FOOD("mushroom", "mushroom", 4, 14, c_brown, VEGGY, "null",
1, 0, 0, 14, 0, 0, 1, 0, 1, 0, &iuse::none, ADD_NULL, "\
Mushrooms are tasty, but be careful. Some can poison you, while others are\n\
hallucinogenic.", mfb(IF_EATEN_HOT));
FOOD("mushroom_poison", "mushroom", 3, 14, c_brown, VEGGY, "null",
1, 0, 0, 10, 0, 0, 0, 0, 1, 0, &iuse::poison, ADD_NULL, "\
Mushrooms are tasty, but be careful. Some can poison you, while others are\n\
hallucinogenic.", mfb(IF_EATEN_HOT));
FOOD("mushroom_magic", "mushroom", 1, 14, c_brown, VEGGY, "null",
1, 0, 0, 10, 0, -4, 0, 0, 1, 6, &iuse::hallu, ADD_NULL, "\
Mushrooms are tasty, but be careful. Some can poison you, while others are\n\
hallucinogenic.", mfb(IF_EATEN_HOT));
FOOD("blueberries", "blueberries", 3, 20, c_blue, VEGGY, "null",
1, 1, 2, 16, 60, 0, 0, 0, 1, 0, &iuse::none, ADD_NULL, "\
They're blue, but that doesn't mean they're sad.", 0);
FOOD("strawberries", "strawberries", 2, 10, c_red, VEGGY, "null",
1, 1, 3, 18, 60, 0, 0, 0, 1, 0, &iuse::none, ADD_NULL, "\
Tasty juicy berry, often found growing wild in fields.", 0);
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("tomato", "tomato", 9, 25, c_red, VEGGY, "null",
// VOL WGT QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
1, 1, 3, 18, 90, 0, 0, 0, 1, 0, &iuse::none, ADD_NULL, "\
Juicy red tomato. It gained popularity in Italy after being brought back\n\
from the New World.", 0);
FOOD("broccoli", "broccoli", 9, 40, c_green, VEGGY, "null",
2, 2, 0, 30,160, 0, 1, 0, 1, 0, &iuse::none, ADD_NULL, "\
It's a bit tough, but quite delicious.", mfb(IF_EATEN_HOT));
FOOD("zucchini", "zucchini", 7, 30, c_ltgreen, VEGGY, "null",
2, 1, 0, 20,120, 0, 1, 0, 1, 0, &iuse::none, ADD_NULL, "\
A tasty summer squash.", mfb(IF_EATEN_HOT));
FOOD("corn", "corn", 7, 30, c_ltgreen, VEGGY, "null",
2, 1, 0, 20,120, 0, 1, 0, 1, 0, &iuse::none, ADD_NULL, "\
Delicious golden kernels.", mfb(IF_EATEN_HOT));
FOOD("frozen_dinner", "frozen dinner", 50, 80, c_magenta, FLESH, "box_small",
5, 4, -2, 60, 60, 0, -2, 0, 1, -3, &iuse::none, ADD_NULL, "\
Now with ONE POUND of meat and ONE POUND of carbs! Not as appetizing or\n\
nutritious as it would be if heated up.", 0);
FOOD("cooked_dinner", "cooked TV dinner", 0, 0, c_magenta, FLESH, "null",
5, 4, -2, 72, 12, 0, -2, 0, 1, 5, &iuse::none, ADD_NULL, "\
Now with ONE POUND of meat and ONE POUND of carbs! Nice and heated up. It's\n\
tastier and more filling, but will also spoil quickly.", mfb(IF_EATEN_HOT));
FOOD("spaghetti_raw", "raw spaghetti", 40, 12, c_yellow, VEGGY, "box_small",
6, 2, 0, 6, 0, 0, 0, 0, 1, -8, &iuse::none, ADD_NULL, "\
It could be eaten raw if you're desperate, but is much better cooked.", 0);
FOOD("spaghetti_cooked", "cooked spaghetti", 0, 28, c_yellow, VEGGY, "box_small",
10, 3, 0, 60, 20, 0, 0, 0, 1, 2, &iuse::none, ADD_NULL, "\
Fresh wet noodles. Very tasty.", mfb(IF_EATEN_HOT));
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("macaroni_raw", "raw macaroni", 40, 15, c_yellow, VEGGY, "box_small",
// VOL WGT QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
3, 1, 0, 3, 0, 0, 0, 0, 1, -8, &iuse::none, ADD_NULL, "\
It could be eaten raw if you're desperate, but is much better cooked.", 0);
FOOD("macaroni_cooked", "mac & cheese", 0, 38, c_yellow, VEGGY, "box_small",
4, 2, 0, 60, 10, 0, -1, 0, 1, 3, &iuse::none, ADD_NULL, "\
When the cheese starts flowing, Kraft gets your noodle going.", mfb(IF_EATEN_HOT));
FOOD("ravioli", "ravioli", 25, 75, c_cyan, FLESH, "can_food",
1, 2, 0, 48, 0, 0, 0, 0, 1, 0, &iuse::none, ADD_NULL, "\
Meat encased in little dough satchels. Tastes fine raw.", mfb(IF_EATEN_HOT));
FOOD("sauce_red", "red sauce", 20, 24, c_red, VEGGY, "can_food",
2, 3, 0, 20, 0, 0, 0, 0, 1, 1, &iuse::none, ADD_NULL, "\
Tomato sauce, yum yum.", mfb(IF_EATEN_HOT));
FOOD("sauce_pesto", "pesto", 15, 20, c_ltgreen, VEGGY, "can_food",
2, 3, 0, 18, 0, 0, 1, 0, 1, 4, &iuse::none, ADD_NULL, "\
Olive oil, basil, garlic, pine nuts. Simple and delicious.", 0);
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("can_beans", "beans", 40, 55, c_cyan, VEGGY, "can_food",
// VOL WGT QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
1, 2, 0, 40, 0, 0, 0, 0, 1, 0, &iuse::none, ADD_NULL, "\
Canned beans. A staple for hobos.", mfb(IF_EATEN_HOT));
FOOD("can_corn", "corn", 35, 40, c_cyan, VEGGY, "can_food",
1, 2, 5, 30, 0, 0, 0, 0, 1, -2, &iuse::none, ADD_NULL, "\
Canned corn in water. Eat up!", mfb(IF_EATEN_HOT));
FOOD("can_spam", "SPAM", 30, 50, c_cyan, FLESH, "can_food",
1, 2, -3, 48, 0, 0, 0, 0, 1, -8, &iuse::none, ADD_NULL, "\
Yuck, not very tasty, but it is quite filling.", mfb(IF_EATEN_HOT));
FOOD("can_pineapple", "pineapple", 30, 50, c_cyan, VEGGY, "can_food",
1, 2, 5, 26, 0, 0, 1, 0, 1, 7, &iuse::none, ADD_NULL, "\
Canned pineapple rings in water. Quite tasty.", 0);
FOOD("can_coconut", "coconut milk", 10, 45, c_cyan, VEGGY, "can_food",
1, 2, 5, 30, 0, 0, 0, 0, 1, 0, &iuse::none, ADD_NULL, "\
A dense, sweet creamy sauce, often used in curries.", 0);
FOOD("can_sardine", "sardines", 14, 25, c_cyan, FLESH, "can_food",
1, 1, -8, 14, 0, 0, 0, 0, 1, 0, &iuse::none, ADD_NULL, "\
Salty little fish. They'll make you thirsty.", mfb(IF_EATEN_HOT));
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("can_tuna", "tuna fish", 35, 35, c_cyan, FLESH, "can_food",
// VOL WGT QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
1, 2, 0, 24, 0, 0, 0, 0, 1, 0, &iuse::none, ADD_NULL, "\
Now with 95 percent less dolphins!", 0);
FOOD("can_catfood", "cat food", 20, 8, c_cyan, FLESH, "can_food",
1, 2, 0, 10, 0, 0, -1, 0, 1,-24, &iuse::none, ADD_NULL, "\
Blech, so gross. Save it for when you're about to die of starvation.", 0);
FOOD("honeycomb", "honey comb", 10, 35, c_yellow, VEGGY, "null",
1, 1, 0, 20, 0, 0, -2, 0, 1, 9, &iuse::honeycomb, ADD_NULL, "\
A large chunk of wax, filled with honey. Very tasty.", 0);
FOOD("wax", "wax", 10, 35, c_yellow, VEGGY, "null",
1, 1, 0, 4, 0, 0, -2, 0, 1, -5, &iuse::none, ADD_NULL, "\
A large chunk of beeswax.\n\
Not very tasty or nourishing, but ok in an emergency.", 0);
FOOD("royal_jelly", "royal jelly", 8,200, c_magenta, VEGGY, "null",
1, 1, 0, 10, 0, 0, 3, 0, 1, 7, &iuse::royal_jelly, ADD_NULL, "\
A large chunk of wax, filled with dense, dark honey. Useful for curing all\n\
sorts of afflictions.", 0);
FOOD("fetus", "misshapen fetus", 1,150, c_magenta, HFLESH, "null",
4, 4, 0, 8, 0, 0, -8, 0, 1,-60, &iuse::mutagen, ADD_NULL, "\
A deformed human fetus, eating this would be very nasty, and cause\n\
your DNA to mutate.", 0);
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("arm", "mutated arm", 4,250, c_brown, HFLESH, "null",
// VOL WGT QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
8, 14, 0, 12, 0, 0, -8, 0, 1, -20, &iuse::mutagen, ADD_NULL, "\
A misshapen human arm, eating this would be pretty disgusting\n\
and cause your DNA to mutate.", 0);
FOOD("leg", "mutated leg", 4,250, c_brown, HFLESH, "null",
12, 24, 0, 16, 0, 0, -8, 0, 1, -20, &iuse::mutagen, ADD_NULL, "\
A malformed human leg, this would be gross to eat, and cause\n\
mutations.", 0);
FOOD("ant_egg", "ant egg", 5, 80, c_white, FLESH, "null",
4, 2, 10, 100, 0, 0, -1, 0, 1, -10, &iuse::none, ADD_NULL, "\
A large ant egg, the size of a softball. Extremely nutritious, but gross.", 0);
FOOD("marloss_berry", "marloss berry", 2,600, c_pink, VEGGY, "null",
1, 1, 20, 40, 0, 0,-10, 0, 1, 30, &iuse::marloss, ADD_NULL, "\
This looks like a blueberry the size of your fist, but pinkish in color. It\n\
has a strong but delicious aroma, but is clearly either mutated or of alien\n\
origin.", 0);
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("flour", "flour", 20, 25, c_white, POWDER, "box_small",
// VOL WGT QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
2, 4, 0, 1, 0, 0, 0, 0, 8, -5, &iuse::none, ADD_NULL, "\
This white flour is useful for baking.", 0);
FOOD("sugar", "sugar", 20, 25, c_white, POWDER, "box_small",
2, 3, 0, 3, 0, 4, -3, 0, 8, 1, &iuse::none, ADD_NULL, "\
Sweet, sweet sugar. Bad for your teeth and surprisingly not very tasty\n\
on its own.", 0);
FOOD("salt", "salt", 20, 18, c_white, POWDER, "box_small",
2, 2,-10, 0, 0, 0, 0, 0, 8, -8, &iuse::none, ADD_NULL, "\
Yuck, you surely wouldn't want to eat this. It's good for preserving meat\n\
and cooking with, though.", 0);
FOOD("potato_raw", "raw potato", 10, 10, c_brown, VEGGY, "null",
1, 1, 0, 8,240, 0, -2, 0, 1, -3, &iuse::none, ADD_NULL, "\
Mildly toxic and not very tasty raw. When cooked, it is delicious.", 0);
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("potato_baked", "baked potato", 0, 30, c_brown, VEGGY, "null",
// VOL WGT QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
1, 1, 0, 20, 48, 0, 1, 0, 1, 3, &iuse::none, ADD_NULL, "\
A delicious baked potato. Got any sour cream?", mfb(IF_EATEN_HOT));
FOOD("bread", "bread", 14, 50, c_brown, VEGGY, "bag_plastic",
4, 1, 0, 20,240, 0, 1, 0, 4, 1, &iuse::none, ADD_NULL, "\
Healthy and filling.", mfb(IF_EATEN_HOT));
FOOD("pie", "fruit pie", 20, 80, c_yellow, VEGGY, "box_small",
6, 3, 5, 16, 72, 2, 1, 0, 6, 3, &iuse::none, ADD_NULL, "\
A delicious baked pie with a sweet fruit filling.", mfb(IF_EATEN_HOT));
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("pizza", "pizza", 8, 80, c_ltred, VEGGY, "box_small",
// VOL WGT QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
8, 4, 0, 18, 48, 0, 0, 0, 8, 6, &iuse::none, ADD_NULL, "\
A vegetarian pizza, with delicious tomato sauce and a fluffy crust. Its\n\
smell brings back great memories.", mfb(IF_EATEN_HOT));
FOOD("mre_beef", "MRE - beef", 50,100, c_green, FLESH, "null",
2, 1, 0, 50, 0, 0, 1, 0, 1, -4, &iuse::none, ADD_NULL, "\
Meal Ready to Eat. A military ration. Though not very tasty, it is very\n\
filling and will not spoil.", mfb(IF_EATEN_HOT));
FOOD("mre_veggy", "MRE - vegetable", 50,100, c_green, VEGGY, "null",
2, 1, 0, 40, 0, 0, 1, 0, 1, -4, &iuse::none, ADD_NULL, "\
Meal Ready to Eat. A military ration. Though not very tasty, it is very\n\
filling and will not spoil.", mfb(IF_EATEN_HOT));
FOOD("tea_raw", "tea leaves", 10, 13, c_green, VEGGY, "bag_plastic",
2, 1, 0, 2, 0, 0, 0, 0, 5, -1, &iuse::none, ADD_NULL, "\
Dried leaves of a tropical plant. You cam boil them into tea, or you\n\
can just eat them raw. They aren't too filling though.", 0);
FOOD("coffee_raw", "coffee powder", 15, 13, c_brown, VEGGY, "bag_plastic",
2, 1, 0, 0, 0, 8, 0, 0, 4, -5, &iuse::caff, ADD_CAFFEINE, "\
Ground coffee beans. You can boil it into a mediocre stimulant,\n\
or swallow it raw for a lesser stimulative boost.", 0);
FOOD("jihelucake", "cake", 0, 0, c_white, VEGGY, "null",
// VOL WGT QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
2, 1, 0, 25, 0, 0, 0, 0, 1, 20, &iuse::none, ADD_NULL, "\
Delicious sponge cake with buttercream icing, it says happy birthday on it.", 0);
// MEDS
#define MED(id, name,rarity,price,color,tool,mat,stim,healthy,addict,\
charges,fun,use_func,addict_func,des) \
itypes[id]=new it_comest(id,rarity,price,name,des,'!',\
color,mat,1,1,0,0,0,0,0,0,0,stim,healthy,addict,charges,\
fun,"null",tool,use_func,addict_func,"MED");
// NAME RAR PRC COLOR TOOL
MED("bandages", "bandages", 50, 60, c_white, "null",
// MATERIAL STM HTH ADD CHG FUN use_func addiction type
COTTON, 0, 0, 0, 3, 0,&iuse::bandage, ADD_NULL, "\
Simple cloth bandages. Used for healing small amounts of damage.");
MED("1st_aid", "first aid", 35,350, c_red, "null",
PLASTIC, 0, 0, 0, 2, 0,&iuse::firstaid, ADD_NULL, "\
A full medical kit, with bandages, anti-biotics, and rapid healing agents.\n\
Used for healing large amounts of damage.");
MED("vitamins", "vitamins", 75, 45, c_cyan, "null",
PLASTIC, 0, 3, 0, 20, 0,&iuse::none, ADD_NULL, "\
Take frequently to improve your immune system.");
MED("aspirin", "aspirin", 85, 30, c_cyan, "null",
PLASTIC, 0, -1, 0, 20, 0,&iuse::pkill_1, ADD_NULL, "\
Low-grade painkiller. Best taken in pairs.");
MED("caffeine", "caffeine pills", 25, 60, c_cyan, "null",
PLASTIC, 8, 0, 3, 10, 0,&iuse::caff, ADD_CAFFEINE, "\
No-doz pills. Useful for staying up all night.");
// NAME RAR PRC COLOR TOOL
MED("pills_sleep", "sleeping pills", 15, 50, c_cyan, "null",
// MATERIAL STM HTH ADD CHG FUN use_func addiction type
PLASTIC, -8, 0, 40, 10, 0,&iuse::sleep, ADD_SLEEP, "\
Prescription sleep aids. Will make you very tired.");
MED("iodine", "iodine tablets", 5,140, c_yellow, "null",
PLASTIC, 0, -1, 0, 10, 0,&iuse::iodine, ADD_NULL, "\
Iodine tablets are used for recovering from irradiation. They are not\n\
spectacularly effective, but are better than nothing.");
MED("dayquil", "Dayquil", 70, 75, c_yellow, "null",
PLASTIC, 0, 1, 0, 10, 0,&iuse::flumed, ADD_NULL, "\
Daytime flu medication. Will halt all flu symptoms for a while.");
MED("nyquil", "Nyquil", 70, 85, c_blue, "null",
PLASTIC, -7, 1, 20, 10, 0,&iuse::flusleep, ADD_SLEEP, "\
Nighttime flu medication. Will halt all flu symptoms for a while, plus make\n\
you sleepy.");
MED("inhaler", "inhaler", 14,200, c_ltblue, "null",
PLASTIC, 1, 0, 0, 20, 0,&iuse::inhaler, ADD_NULL, "\
Vital medicine for those with asthma. Those without asthma can use it for a\n\
minor stimulant boost.");
// NAME RAR PRC COLOR TOOL
MED("codeine", "codeine", 15,400, c_cyan, "null",
// MATERIAL STM HTH ADD CHG FUN use_func addiction type
PLASTIC, -2, 0, 10, 10, 10,&iuse::pkill_2, ADD_PKILLER, "\
A weak opiate, prescribed for light to moderate pain.");
MED("oxycodone", "oxycodone", 7,900, c_cyan, "null",
PLASTIC, -4, -1, 16, 10, 18,&iuse::pkill_3, ADD_PKILLER, "\
A strong opiate, prescribed for moderate to intense pain.");
MED("tramadol", "tramadol", 11,300, c_cyan, "null",
PLASTIC, 0, 0, 6, 10, 6,&iuse::pkill_l, ADD_PKILLER, "\
A long-lasting opiate, prescribed for moderate pain. Its painkiller effects\n\
last for several hours, but are not as strong as oxycodone.");
MED("xanax", "Xanax", 10,600, c_cyan, "null",
PLASTIC, -4, 0, 0, 10, 20,&iuse::xanax, ADD_NULL, "\
Anti-anxiety medication. It will reduce your stimulant level steadily, and\n\
will temporarily cancel the effects of anxiety, like the Hoarder trait.");
// NAME RAR PRC COLOR TOOL
MED("adderall", "Adderall", 10,450, c_cyan, "null",
// MATERIAL STM HTH ADD CHG FUN use_func addiction type
PLASTIC, 24, 0, 10, 10, 10,&iuse::none, ADD_SPEED, "\
A strong stimulant prescribed for ADD. It will greatly increase your\n\
stimulant level, but is quite addictive.");
MED("thorazine", "Thorazine", 7,500, c_cyan, "null",
PLASTIC, 0, 0, 0, 10, 0,&iuse::thorazine, ADD_NULL, "\
Anti-psychotic medication. Used to control the symptoms of schizophrenia and\n\
similar ailments. Also popular as a way to come down from a bad trip.");
MED("prozac", "Prozac", 10,650, c_cyan, "null",
PLASTIC, -4, 0, 0, 15, 0,&iuse::prozac, ADD_NULL, "\
A strong anti-depressant. Useful if your morale level is very low.");
MED("cig", "cigarettes", 90,120, c_dkgray, "lighter",
VEGGY, 1, -1, 40, 10, 5,&iuse::cig, ADD_CIG, "\
These will boost your dexterity, intelligence, and perception for a short\n\
time. They are quite addictive.");
// NAME RAR PRC COLOR
MED("weed", "marijuana", 20,250, c_green, "lighter",
// MATERIAL STM HTH ADD CHG FUN use_func addiction type
VEGGY, -8, 0, 0, 5, 18,&iuse::weed, ADD_NULL, "\
Really useful only for relaxing. Will reduce your attributes and reflexes.");
MED("coke", "cocaine", 8,420, c_white, "null",
POWDER, 20, -2, 30, 8, 25,&iuse::coke, ADD_COKE, "\
A strong, illegal stimulant. Highly addictive.");
MED("meth", "methamphetamine", 2,800, c_ltcyan, "apparatus",
POWDER, 10, -4, 50, 6, 30,&iuse::meth, ADD_SPEED, "\
A very strong illegal stimulant. Extremely addictive and bad for you, but\n\
also extremely effective in boosting your alertness.");
// NAME RAR PRC COLOR
MED("heroin", "heroin", 1,1000,c_brown, "syringe",
// MATERIAL STM HTH ADD CHG FUN use_func addiction type
POWDER, -10, -3, 60, 4, 45,&iuse::pkill_4, ADD_PKILLER, "\
A very strong illegal opiate. Unless you have an opiate tolerance, avoid\n\
heroin, as it will be too strong for you.");
MED("cigar", "cigars", 5,120, c_dkgray, "lighter",
VEGGY, 1, -1, 40, 10, 15,&iuse::cig, ADD_CIG, "\
A gentleman's vice. Cigars are what separates a gentleman from a savage.");
MED("antibiotics", "antibiotics", 25,900, c_pink, "null",
PLASTIC, 0, -2, 0, 15, 0,&iuse::antibiotic, ADD_NULL, "\
Medication designed to stop the spread of, and kill, bacterial infections.");
MED("poppy_sleep", "Poppy Sleep", 25,900, c_pink, "null",
PLASTIC, 0, -2, 0, 5, 0,&iuse::sleep, ADD_NULL, "\
Sleeping pills made by refining mutated poppy seeds.");
MED("poppy_pain", "Poppy Painkillers",25,900, c_pink, "null",
PLASTIC, 0, -2, 0, 10, 0,&iuse::pkill_2, ADD_NULL, "\
Painkillers made by refining mutated poppy seeds..");
MED("crack", "crack", 8,420, c_white, "apparatus",
POWDER, 40, -2, 80, 4, 50,&iuse::crack, ADD_CRACK, "\
Refined cocaine, incredibly addictive.");
/*MED("grack", "Grack Cocaine", 8,420, c_white, "apparatus",
POWDER, 200, -2, 80, 4, 50,&iuse::grack, ADD_CRACK, "\
Grack Cocaine, the strongest substance known to the multiverse\n\
this potent substance is refined from the sweat of the legendary\n\
gracken");
*/
// MELEE WEAPONS
// Only use secondary material if it will have a major impact.
// dam is a somewhat rigid bonus--anything above 30, tops, is ridiculous
// cut is even MORE rigid, and should be kept lower still
// to_hit (affects chances of hitting) should be kept small, -5 to +5
// Note that do-nothing objects (e.g. superglue) belong here too!
#define MELEE(id, name,rarity,price,sym,color,mat1,mat2,volume,wgt,dam,cut,to_hit,\
flags, des)\
itypes[id]=new itype(id,rarity,price,name,des,sym,\
color,mat1,mat2,volume,wgt,dam,cut,to_hit,flags)
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("wrapper", "paper wrapper", 50, 1, ',', c_ltgray, PAPER, MNULL,
// VOL WGT DAM CUT HIT FLAGS
1, 0, -8, 0, -2, 0, "\
Just a piece of butcher's paper. Good for starting fires.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("withered", "withered plant", 70, 1, 't', c_ltgray, PAPER, MNULL,
// VOL WGT DAM CUT HIT FLAGS
1, 0, -8, 0, -2, 0, "\
A dead plant. Good for starting fires.");
MELEE("syringe", "syringe", 8, 25, ',', c_ltcyan, PLASTIC,MNULL,
1, 0, -4, 6, -2, mfb(IF_SPEAR), "\
A medical syringe. Used for administering heroin and other drugs.");
MELEE("fur", "fur pelt", 0, 10, ',', c_brown, FUR, LEATHER,
1, 1, -8, 0, 0, 0, "\
A small bolt of fur from an animal. Can be made into warm clothing.");
MELEE("leather", "leather patch", 0, 20, ',', c_red, LEATHER, FLESH,
2, 1, -2, 0, -1, 0, "\
A smallish patch of leather, could be used to make tough clothing.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("superglue", "superglue", 30, 18, ',', c_white, PLASTIC,MNULL,
// VOL WGT DAM CUT HIT FLAGS
1, 0, -2, 0, -2, 0, "\
A tube of strong glue. Used in many crafting recipes.");
MELEE("id_science", "science ID card", 2,600, ',', c_pink, PLASTIC,MNULL,
0, 0, -8, 1, -3, 0, "\
This ID card once belonged to a scientist of some sort. It has a magnetic\n\
stripe on the back; perhaps it can be used on a control panel.");
MELEE("id_military", "military ID card",3,1200,',', c_pink, PLASTIC,MNULL,
0, 0, -8, 1, -3, 0, "\
This ID card once belonged to a military officer with high-level clearance.\n\
It has a magnetic stripe on the back; perhaps it can be used on a control\n\
panel.");
MELEE("electrohack", "electrohack", 3,400, ',', c_green, PLASTIC,STEEL,
2, 2, 5, 0, 1, 0, "\
This device has many ports attached, allowing to to connect to almost any\n\
control panel or other electronic machine (but not computers). With a little\n\
skill, it can be used to crack passwords and more.");
MELEE("string_6", "string - 6 in", 2, 5, ',', c_ltgray, COTTON, MNULL,
0, 0,-20, 0, 1, 0, "\
A small piece of cotton string.");
MELEE("string_36", "string - 3 ft", 40, 30, ',', c_ltgray, COTTON, MNULL,
1, 0, -5, 0, 1, 0, "\
A long piece of cotton string. Use scissors on it to cut it into smaller\n\
pieces.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("rope_6", "rope - 6 ft", 4, 45, ',', c_yellow, WOOD, MNULL,
// VOL WGT DAM CUT HIT FLAGS
2, 4, 1, 0, 1, mfb(IF_WRAP), "\
A short piece of nylon rope. Too small to be of much use.");
MELEE("rope_30", "rope - 30 ft", 35,100, ',', c_yellow, WOOD, MNULL,
10, 20, 1, 0, -10, 0, "\
A long nylon rope. Useful for keeping yourself safe from falls.");
MELEE("chain", "steel chain", 20, 80, '/', c_cyan, STEEL, MNULL,
4, 8, 12, 0, 2, mfb(IF_WRAP), "\
A heavy steel chain. Useful as a weapon, or for crafting. It has a chance\n\
to wrap around your target, allowing for a bonus unarmed attack.");
TECH("chain", mfb(TEC_GRAB) );
MELEE("processor", "processor board",15,120, ',', c_ltcyan, IRON, PLASTIC,
1, 0, -3, 0, -1, 0, "\
A central processor unit, useful in advanced electronics crafting.");
MELEE("RAM", "RAM", 22, 90, ',', c_ltcyan, IRON, PLASTIC,
1, 0, -5, 0, -1, 0, "\
A stick of memory. Useful in advanced electronics crafting.");
MELEE("power_supply", "power converter",16,170, ',', c_ltcyan, IRON, PLASTIC,
4, 2, 5, 0, -1, 0, "\
A power supply unit. Useful in lots of electronics recipes.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("amplifier", "amplifier circuit",8,200,',', c_ltcyan, IRON, PLASTIC,
// VOL WGT DAM CUT HIT FLAGS
1, 0, -5, 0, -1, 0, "\
A circuit designed to amplify the strength of a signal. Useful in lots of\n\
electronics recipes.");
MELEE("transponder", "transponder circuit",5,240,',',c_ltcyan, IRON, PLASTIC,
1, 0, -5, 0, -1, 0, "\
A circuit designed to repeat a signal. Useful for crafting communications\n\
equipment.");
MELEE("receiver", "signal receiver",10,135, ',', c_ltcyan, IRON, PLASTIC,
1, 0, -4, 0, -1, 0, "\
A module designed to receive many forms of signals. Useful for crafting\n\
communications equipment.");
MELEE("burnt_out_bionic", "burnt out bionic",10,135, ',', c_ltred, STEEL, PLASTIC,
1, 0, -4, 0, -1, 0, "\
Once a valuable bionic implants, it's not held up well under repeated\n\
use. This object has been destroyed by excessive electric current and\n\
is now useless.");
MELEE("antenna", "antenna", 18, 80, ',', c_ltcyan, STEEL, MNULL,
1, 0, -6, 0, 2, 0, "\
A simple thin aluminum shaft. Useful in lots of electronics recipes.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("steel_chunk", "chunk of steel", 30, 10, ',', c_ltblue, STEEL, MNULL,
// VOL WGT DAM CUT HIT FLAGS
2, 6, 12, 0, -2, 0, "\
A misshapen chunk of steel. Makes a decent weapon in a pinch, and is also\n\
useful for some crafting recipes.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("steel_lump", "lump of steel", 30, 20, ',', c_ltblue, STEEL, MNULL,
// VOL WGT DAM CUT HIT FLAGS
2, 80, 18, 0, -4, 0, "\
A misshapen heavy piece of steel. Useful for some crafting recipes.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("scrap", "scrap metal", 30, 10, ',', c_ltblue, STEEL, MNULL,
// VOL WGT DAM CUT HIT FLAGS
1, 1, 0, 0, -2, 0, "\
An assortment of small bits of metal and scrap\n\
useful in all kinds of crafting");
MELEE("hose", "rubber hose", 15, 80, ',', c_green, PLASTIC,MNULL,
3, 2, 4, 0, 3, mfb(IF_WRAP), "\
A flexible rubber hose. Useful for crafting.");
MELEE("glass_sheet", "sheet of glass", 5,135, ']', c_ltcyan, GLASS, MNULL,
50, 20, 16, 0, -5, 0, "\
A large sheet of glass. Easily shattered. Useful for re-paning windows.");
MELEE("manhole_cover", "manhole cover", 1, 20, ']', c_dkgray, IRON, MNULL,
45,250, 20, 0,-10, 0, "\
A heavy iron disc that typically covers a ladder into the sewers. Lifting\n\
it from the manhole is impossible without a crowbar.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("rock", "rock", 40, 0, '*', c_ltgray, STONE, MNULL,
// VOL WGT DAM CUT HIT FLAGS
1, 3, 12, 0, -2, 0, "\
A rock the size of a baseball. Makes a decent melee weapon, and is also good\n\
for throwing at enemies.");
MELEE("stick", "heavy stick", 95, 0, '/', c_brown, WOOD, MNULL,
6, 10, 12, 0, 3, 0, "\
A sturdy, heavy stick. Makes a decent melee weapon, and can be cut into two\n\
by fours for crafting.");
MELEE("broom", "broom", 30, 24, '/', c_blue, PLASTIC,MNULL,
10, 8, 6, 0, 1, 0, "\
A long-handled broom. Makes a terrible weapon unless you're chasing cats.");
TECH("broom", mfb(TEC_WBLOCK_1) );
MELEE("hammer_sledge", "sledge hammer", 6, 120,'/', c_brown, WOOD, IRON,
18, 38, 40, 0, 0, 0, "\
A large, heavy hammer. Makes a good melee weapon for the very strong, but is\n\
nearly useless in the hands of the weak.");
TECH("hammer_sledge", mfb(TEC_BRUTAL)|mfb(TEC_WIDE) );
MELEE("hatchet", "hatchet", 10, 95,';', c_ltgray, IRON, WOOD,
6, 7, 12, 12, 1, 0, "\
A one-handed hatchet. Makes a great melee weapon, and is useful both for\n\
cutting wood, and for use as a hammer.");
MELEE("nailboard", "nail board", 5, 80,'/', c_ltred, WOOD, MNULL,
6, 6, 16, 6, 1, mfb(IF_STAB), "\
A long piece of wood with several nails through one end; essentially a simple\n\
mace. Makes a great melee weapon.");
TECH("nailboard", mfb(TEC_WBLOCK_1) );
MELEE("nailbat", "nail bat", 60, 160,'/', c_ltred, WOOD, MNULL,
12, 10, 28, 6, 3, mfb(IF_STAB), "\
A baseball bat with several nails driven through it, an excellent melee weapon.");
TECH("nailbat", mfb(TEC_WBLOCK_1) );
MELEE("pot", "pot", 25, 45,')', c_ltgray, IRON, MNULL,
8, 6, 9, 0, 1, 0, "\
Useful for boiling water when cooking spaghetti and more.");
MELEE("pan", "frying pan", 25, 50,')', c_ltgray, IRON, MNULL,
6, 6, 14, 0, 2, 0, "\
A cast-iron pan. Makes a decent melee weapon, and is used for cooking.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("knife_butter", "butter knife", 90, 15,';', c_ltcyan, STEEL, MNULL,
// VOL WGT DAM CUT HIT FLAGS
1, 2, 2, 1, -2, 0, "\
A dull knife, absolutely worthless in combat.");
MELEE("2x4", "two by four", 60, 80,'/', c_ltred, WOOD, MNULL,
6, 6, 14, 0, 1, 0, "\
A plank of wood. Makes a decent melee weapon, and can be used to board up\n\
doors and windows if you have a hammer and nails.");
TECH("2x4", mfb(TEC_WBLOCK_1) );
MELEE("muffler", "muffler", 30, 30,'/', c_ltgray, IRON, MNULL,
20, 20, 19, 0, -3, 0, "\
A muffler from a car. Very unwieldy as a weapon. Useful in a few crafting\n\
recipes.");
TECH("muffler", mfb(TEC_WBLOCK_2) );
MELEE("pipe", "pipe", 20, 75,'/', c_dkgray, STEEL, MNULL,
4, 10, 13, 0, 3, 0, "\
A steel pipe, makes a good melee weapon. Useful in a few crafting recipes.");
TECH("pipe", mfb(TEC_WBLOCK_1) );
MELEE("bat", "baseball bat", 60, 160,'/', c_ltred, WOOD, MNULL,
12, 10, 28, 0, 3, 0, "\
A sturdy wood bat. Makes a great melee weapon.");
TECH("bat", mfb(TEC_WBLOCK_1) );
MELEE("bat_metal", "aluminium bat", 60, 160,'/', c_ltred, STEEL, MNULL,
10, 6, 24, 0, 3, 0, "\
An aluminium baseball bat, smaller and lighter than a wooden bat\n\
and a little less damaging as a result.");
TECH("bat_metal", mfb(TEC_WBLOCK_1) );
MELEE("spear_wood", "wood spear", 5, 40,'/', c_ltred, WOOD, MNULL,
5, 3, 4, 18, 1, mfb(IF_SPEAR), "\
A simple wood pole with one end sharpened.");
TECH("spear_wood", mfb(TEC_WBLOCK_1) | mfb(TEC_RAPID) );
MELEE("baton", "expandable baton",8, 175,'/', c_blue, STEEL, MNULL,
1, 4, 12, 0, 2, 0, "\
A telescoping baton that collapses for easy storage. Makes an excellent\n\
melee weapon.");
TECH("baton", mfb(TEC_WBLOCK_1) );
MELEE("bee_sting", "bee sting", 5, 70,',', c_dkgray, FLESH, MNULL,
1, 0, 0, 18, -1, mfb(IF_SPEAR), "\
A six-inch stinger from a giant bee. Makes a good melee weapon.");
TECH("bee_sting", mfb(TEC_PRECISE) );
MELEE("wasp_sting", "wasp sting", 5, 90,',', c_dkgray, FLESH, MNULL,
1, 0, 0, 22, -1, mfb(IF_SPEAR), "\
A six-inch stinger from a giant wasp. Makes a good melee weapon.");
TECH("wasp_sting", mfb(TEC_PRECISE) );
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("chitin_piece", "chunk of chitin",10, 15,',', c_red, FLESH, MNULL,
// VOL WGT DAM CUT HIT FLAGS
1, 0, 1, 0, -2, 0, "\
A piece of an insect's exoskeleton. It is light and very durable.");
MELEE("biollante_bud", "biollante bud", 1, 400,',', c_magenta, VEGGY, MNULL,
1, 0, -8, 0, -3, 0, "\
An unopened biollante flower, brilliant purple in color. It may still have\n\
its sap-producing organ intact.");
MELEE("canister_empty", "empty canister", 5, 20,'*', c_ltgray, STEEL, MNULL,
1, 1, 2, 0, -1, 0, "\
An empty canister, which may have once held tear gas or other substances.");
MELEE("gold", "gold bar", 10,3000,'/', c_yellow, STEEL, MNULL,
2, 60, 14, 0, -1, 0, "\
A large bar of gold. Before the apocalypse, this would've been worth a small\n\
fortune; now its value is greatly diminished.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("coal", "coal pallet", 20, 600,'/', c_dkgray, STONE, MNULL,
// VOL WGT DAM CUT HIT FLAGS
72,100, 8, 0, -5, 0, "\
A large block of semi-processed coal.");
MELEE("petrified_eye", "petrified eye", 1,2000,'*', c_dkgray, STONE, MNULL,
2, 8, 10, 0, -1, 0, "\
A fist-sized eyeball with a cross-shaped pupil. It seems to be made of\n\
stone, but doesn't look like it was carved.");
MELEE("spiral_stone", "spiral stone", 20, 200,'*', c_pink, STONE, MNULL,
1, 3, 14, 0, -1, 0, "\
A rock the size of your fist. It is covered with intricate spirals; it is\n\
impossible to tell whether they are carved, naturally formed, or some kind of\n\
fossil.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("cane", "walking cane", 10, 160,'/', c_ltred, WOOD, MNULL,
// VOL WGT DAM CUT HIT FLAGS
8, 7, 10, 0, 2, 0, "\
Handicapped or not, you always walk in style. Consisting of a metal\n\
headpiece and a wooden body, this makes a great bashing weapon in a pinch.");
TECH("cane", mfb(TEC_WBLOCK_1) );
MELEE("binoculars", "binoculars", 20, 300,';', c_ltgray, PLASTIC,GLASS,
2, 3, 6, 0, -1, 0, "\
A tool useful for seeing long distances. Simply carrying this item in your\n\
inventory will double the distance that is mapped around you during your\n\
travels.");
MELEE("usb_drive", "USB drive", 5, 100,',', c_white, PLASTIC,MNULL,
0, 0, 0, 0, 0, 0, "\
A USB thumb drive. Useful for holding software.");
MELEE("mace", "mace", 20,1000,'/',c_dkgray, IRON, WOOD,
10, 18, 36, 0, 1, 0, "\
A medieval weapon consisting of a wood handle with a heavy iron end. It\n\
is heavy and slow, but its crushing damage is devastating.");
TECH("mace", mfb(TEC_SWEEP) );
MELEE("morningstar", "morningstar", 10,1200,'/',c_dkgray, IRON, WOOD,
11, 20, 32, 4, 1, mfb(IF_SPEAR), "\