-
Notifications
You must be signed in to change notification settings - Fork 89
/
itypedef.cpp
3874 lines (3224 loc) · 162 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_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(t) itypes[index]->techniques = t
// 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.push_back(
new itype(0, 0, 0, "none", "", '#', c_white, MNULL, MNULL, 0, 0, 0, 0, 0, 0));
// Corpse - a special item
itypes.push_back(
new itype(1, 0, 0, "corpse", "A dead body.", '%', c_white, MNULL, MNULL, 0, 0,
0, 0, 0, 0));
// Fire - only appears in crafting recipes
itypes.push_back(
new itype(2, 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.push_back(
new itype(3, 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));
int index = 3;
// 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
#define DRINK(name,rarity,price,color,container,quench,nutr,spoils,stim,\
healthy,addict,charges,fun,use_func,addict_func,des) \
index++;itypes.push_back(new it_comest(index,rarity,price,name,des,'~',\
color,LIQUID,2,1,0,0,0,0,quench,nutr,spoils,stim,healthy,addict,charges,\
fun,container,itm_null,use_func,addict_func));
// NAME RAR PRC COLOR CONTAINER
DRINK("water", 90, 50, c_ltcyan, itm_bottle_plastic,
// QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
50, 0, 0, 0, 0, 0, 1, 0,&iuse::none, ADD_NULL, "\
Water, the stuff of life, the best thirst-quencher available.");
DRINK("sewage sample", 5, 5, c_ltgreen, itm_bottle_plastic,
5, 0, 0, 0,-10, 0, 1,-20,&iuse::sewage, ADD_NULL, "\
A sample of sewage from a treatment plant. Gross.");
DRINK("salt water", 20, 5, c_ltcyan, itm_bottle_plastic,
-30, 0, 0, 0, 1, 0, 1, -1,&iuse::none, ADD_NULL, "\
Water with salt added. Not good for drinking.");
DRINK("orange juice", 50, 38, c_yellow, itm_bottle_plastic,
35, 4,120, 0, 2, 0, 1, 3,&iuse::none, ADD_NULL, "\
Fresh squeezed from real oranges! Tasty and nutritious.");
DRINK("apple cider", 50, 38, c_brown, itm_bottle_plastic,
35, 6,144, 0, 3, 0, 1, 2,&iuse::none, ADD_NULL, "\
Pressed from fresh apples. Tasty and nutritious.");
DRINK("energy drink", 55, 45, c_magenta,itm_can_drink,
15, 1, 0, 8, -2, 2, 1, 5,&iuse::caff, ADD_CAFFEINE, "\
Popular among those who need to stay up late working.");
// NAME RAR PRC COLOR CONTAINER
DRINK("cola", 70, 35, c_brown, itm_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.");
DRINK("root beer", 65, 30, c_brown, itm_can_drink,
18, 3, 0, 1, -1, 0, 1, 3,&iuse::none, ADD_NULL, "\
Like cola, but without caffeine. Still not that healthy.");
DRINK("milk", 50, 35, c_white, itm_bottle_glass,
25, 8, 8, 0, 1, 0, 1, 0,&iuse::none, ADD_NULL, "\
Baby cow food, appropriated for adult humans. Spoils rapidly.");
DRINK("V8", 15, 35, c_red, itm_can_drink,
6, 28,240, 0, 1, 0, 1, 0,&iuse::none, ADD_NULL, "\
Contains up to 8 vegetables! Nutritious and tasty.");
// NAME RAR PRC COLOR CONTAINER
DRINK("broth", 15, 35, c_yellow, itm_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.");
DRINK("soup", 15, 60, c_red, itm_can_food,
10, 60,120, 0, 2, 0, 1, 2,&iuse::none, ADD_NULL, "\
A nutritious and delicious hearty vegetable soup.");
DRINK("whiskey", 16, 85, c_brown, itm_bottle_glass,
-12, 4, 0,-12, -2, 5, 20, 15,&iuse::alcohol, ADD_ALCOHOL, "\
Made from, by, and for real Southern colonels!");
// NAME RAR PRC COLOR CONTAINER
DRINK("vodka", 20, 78, c_ltcyan, itm_bottle_glass,
// QUE NUT SPO STM HTH ADD CHG FUN use_func addiction type
-10, 2, 0,-12, -2, 5, 20, 15,&iuse::alcohol, ADD_ALCOHOL, "\
In Soviet Russia, vodka drinks you!");
DRINK("rum", 14, 85, c_ltcyan, itm_bottle_glass,
-12, 2, 0,-10, -2, 5, 20, 15,&iuse::alcohol, ADD_ALCOHOL, "\
Drinking this might make you feel like a pirate. Or not.");
DRINK("tequila", 12, 88, c_brown, itm_bottle_glass,
-12, 2, 0,-12, -2, 6, 20, 18,&iuse::alcohol, ADD_ALCOHOL, "\
Don't eat the worm! Wait, there's no worm in this bottle.");
DRINK("beer", 60, 35, c_brown, itm_bottle_glass,
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.");
DRINK("bleach", 20, 18, c_white, itm_bottle_plastic,
-96, 0, 0, 0, -8, 0, 1,-30,&iuse::blech, ADD_NULL, "\
Don't drink it. Mixing it with ammonia produces toxic gas.");
// NAME RAR PRC COLOR CONTAINER
DRINK("ammonia", 24, 30, c_yellow, itm_bottle_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.");
DRINK("mutagen", 8,1000,c_magenta,itm_bottle_glass,
0, 0, 0, 0, -2, 0, 1, 0,&iuse::mutagen_3,ADD_NULL, "\
A rare substance of uncertain origins. Causes you to mutate.");
DRINK("purifier", 12, 6000,c_pink, itm_bottle_glass,
0, 0, 0, 0, 1, 0, 1, 0,&iuse::purifier, ADD_NULL, "\
A rare stem-cell treatment, which causes mutations and other genetic defects\n\
to fade away.");
DRINK("tea", 1, 50, c_green, itm_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.");
DRINK("coffee", 1, 50, c_brown, itm_bottle_plastic,
40, 3, 0, 12, 0, 0, 1, 6,&iuse::caff, ADD_CAFFEINE, "\
Coffee. The morning ritual of the pre-apocalypse world.");
// NAME RAR PRC COLOR CONTAINER
DRINK("blood", 20, 0, c_red, itm_vacutainer,
// 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!");
#define FOOD(name,rarity,price,color,mat1,container,volume,weight,quench,\
nutr,spoils,stim,healthy,addict,charges,fun,use_func,addict_func,des) \
index++;itypes.push_back(new it_comest(index,rarity,price,name,des,'%',\
color,mat1,volume,weight,0,0,0,0,quench,nutr,spoils,stim,healthy,addict,charges,\
fun,container,itm_null,use_func,addict_func));
// FOOD
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("chunk of meat", 50, 50, c_red, FLESH, itm_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.");
FOOD("chunk of veggy", 30, 60, c_green, VEGGY, itm_null,
1, 2, 0, 20, 80, 0, 1, 0, 1, 0, &iuse::none, ADD_NULL, "\
A raw chunk of vegetable. Fine for eating raw, tastier when cooked.");
FOOD("tainted meat", 60, 4, c_red, FLESH, itm_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.");
FOOD("tainted veggy", 35, 5, c_green, VEGGY, itm_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.");
FOOD("cooked meat", 0, 75, c_red, FLESH, itm_null,
1, 2, 0, 50, 24, 0, 0, 0, 1, 8, &iuse::none, ADD_NULL, "\
Freshly cooked meat. Very nutritious.");
FOOD("cooked veggy", 0, 70, c_green, VEGGY, itm_null,
1, 2, 0, 40, 50, 0, 1, 0, 1, 0, &iuse::none, ADD_NULL, "\
Freshly cooked vegetables. Very nutritious.");
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("apple", 70, 16, c_red, VEGGY, itm_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.");
FOOD("orange", 65, 18, c_yellow, VEGGY, itm_null,
1, 1, 8, 14, 96, 0, 0, 0, 1, 3, &iuse::none, ADD_NULL, "\
Sweet citrus fruit. Also comes in juice form.");
FOOD("lemon", 50, 12, c_yellow, VEGGY, itm_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.");
FOOD("potato chips", 65, 12, c_magenta, VEGGY, itm_bag_plastic,
2, 1, -2, 8, 0, 0, 0, 0, 3, 6, &iuse::none, ADD_NULL, "\
Betcha can't eat just one.");
FOOD("pretzels", 55, 13, c_brown, VEGGY, itm_bag_plastic,
2, 1, -2, 9, 0, 0, 0, 0, 3, 2, &iuse::none, ADD_NULL, "\
A salty treat of a snack.");
FOOD("chocolate bar", 50, 20, c_brown, VEGGY, itm_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.");
FOOD("beef jerky", 55, 24, c_red, FLESH, itm_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.");
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("meat sandwich", 30, 60, c_ltgray, FLESH, itm_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.");
FOOD("candy", 80, 14, c_magenta, VEGGY, itm_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!");
FOOD("mushroom", 4, 14, c_brown, VEGGY, itm_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.");
FOOD("mushroom", 3, 14, c_brown, VEGGY, itm_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.");
FOOD("mushroom", 1, 14, c_brown, VEGGY, itm_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.");
FOOD("blueberries", 3, 20, c_blue, VEGGY, itm_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.");
FOOD("strawberries", 2, 10, c_red, VEGGY, itm_null,
1, 1, 3, 18, 60, 0, 0, 0, 1, 0, &iuse::none, ADD_NULL, "\
Tasty juicy berry, often found growing wild in fields.");
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("tomato", 9, 25, c_red, VEGGY, itm_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.");
FOOD("broccoli", 9, 40, c_green, VEGGY, itm_null,
2, 2, 0, 30,160, 0, 1, 0, 1, 0, &iuse::none, ADD_NULL, "\
It's a bit tough, but quite delicious.");
FOOD("zucchini", 7, 30, c_ltgreen, VEGGY, itm_null,
2, 1, 0, 20,120, 0, 1, 0, 1, 0, &iuse::none, ADD_NULL, "\
A tasty summer squash.");
FOOD("frozen dinner", 50, 80, c_magenta, FLESH, itm_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.");
FOOD("cooked TV dinner", 0, 0, c_magenta, FLESH, itm_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.");
FOOD("raw spaghetti", 40, 12, c_yellow, VEGGY, itm_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.");
FOOD("cooked spaghetti", 0, 28, c_yellow, VEGGY, itm_box_small,
10, 3, 0, 60, 20, 0, 0, 0, 1, 2, &iuse::none, ADD_NULL, "\
Fresh wet noodles. Very tasty.");
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("raw macaroni", 40, 15, c_yellow, VEGGY, itm_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.");
FOOD("mac & cheese", 0, 38, c_yellow, VEGGY, itm_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.");
FOOD("ravioli", 25, 75, c_cyan, FLESH, itm_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.");
FOOD("red sauce", 20, 24, c_red, VEGGY, itm_can_food,
2, 3, 0, 20, 0, 0, 0, 0, 1, 1, &iuse::none, ADD_NULL, "\
Tomato sauce, yum yum.");
FOOD("pesto", 15, 20, c_ltgreen, VEGGY, itm_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.");
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("beans", 40, 55, c_cyan, VEGGY, itm_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.");
FOOD("corn", 35, 40, c_cyan, VEGGY, itm_can_food,
1, 2, 5, 30, 0, 0, 0, 0, 1, -2, &iuse::none, ADD_NULL, "\
Canned corn in water. Eat up!");
FOOD("SPAM", 30, 50, c_cyan, FLESH, itm_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.");
FOOD("pineapple", 30, 50, c_cyan, VEGGY, itm_can_food,
1, 2, 5, 26, 0, 0, 1, 0, 1, 7, &iuse::none, ADD_NULL, "\
Canned pinapple rings in water. Quite tasty.");
FOOD("coconut milk", 10, 45, c_cyan, VEGGY, itm_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.");
FOOD("sardines", 14, 25, c_cyan, FLESH, itm_can_food,
1, 1, -8, 14, 0, 0, 0, 0, 1, 0, &iuse::none, ADD_NULL, "\
Salty little fish. They'll make you thirsty.");
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("tuna fish", 35, 35, c_cyan, FLESH, itm_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!");
FOOD("cat food", 20, 8, c_cyan, FLESH, itm_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.");
FOOD("honey comb", 10, 35, c_yellow, VEGGY, itm_null,
1, 1, 0, 20, 0, 0, -2, 0, 1, 9, &iuse::none, ADD_NULL, "\
A large chunk of wax, filled with honey. Very tasty.");
FOOD("royal jelly", 8,200, c_magenta, VEGGY, itm_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.");
FOOD("misshapen fetus", 1,150, c_magenta, FLESH, itm_null,
4, 4, 0, 8, 0, 0, -8, 0, 1,-60, &iuse::mutagen, ADD_NULL, "\
Eating this is about the most disgusting thing you can imagine, and it will\n\
cause your DNA to mutate as well.");
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("arm", 4,250, c_brown, FLESH, itm_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, "\
Eating this would be pretty gross. It causes you to mutate.");
FOOD("leg", 4,250, c_brown, FLESH, itm_null,
12, 24, 0, 16, 0, 0, -8, 0, 1, -20, &iuse::mutagen, ADD_NULL, "\
Eating this would be pretty gross. It causes you to mutate.");
FOOD("ant egg", 5, 80, c_white, FLESH, itm_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 nutrtious, but gross.");
FOOD("marloss berry", 2,600, c_pink, VEGGY, itm_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.");
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("flour", 20, 25, c_white, POWDER, itm_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.");
FOOD("sugar", 20, 25, c_white, POWDER, itm_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.");
FOOD("salt", 20, 18, c_white, POWDER, itm_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.");
FOOD("raw potato", 10, 10, c_brown, VEGGY, itm_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.");
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("baked potato", 0, 30, c_brown, VEGGY, itm_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?");
FOOD("bread", 14, 50, c_brown, VEGGY, itm_bag_plastic,
4, 1, 0, 20,240, 0, 1, 0, 4, 1, &iuse::none, ADD_NULL, "\
Healthy and filling.");
FOOD("fruit pie", 20, 80, c_yellow, VEGGY, itm_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.");
// NAME RAR PRC COLOR MAT1 CONTAINER
FOOD("pizza", 8, 80, c_ltred, VEGGY, itm_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.");
FOOD("MRE - beef", 50,100, c_green, FLESH, itm_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.");
FOOD("MRE - vegetable", 50,100, c_green, VEGGY, itm_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.");
FOOD("tea leaves", 10, 13, c_green, VEGGY, itm_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.");
FOOD("coffee powder", 15, 13, c_brown, VEGGY, itm_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.");
// MEDS
#define MED(name,rarity,price,color,tool,mat,stim,healthy,addict,\
charges,fun,use_func,addict_func,des) \
index++;itypes.push_back(new it_comest(index,rarity,price,name,des,'!',\
color,mat,1,1,0,0,0,0,0,0,0,stim,healthy,addict,charges,\
fun,itm_null,tool,use_func,addict_func));
// NAME RAR PRC COLOR TOOL
MED("bandages", 50, 60, c_white, itm_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("first aid", 35,350, c_red, itm_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", 75, 45, c_cyan, itm_null,
PLASTIC, 0, 0, 0, 20, 0,&iuse::vitamins, ADD_NULL, "\
Take frequently to improve your immune system.");
MED("aspirin", 85, 30, c_cyan, itm_null,
PLASTIC, 0, -1, 0, 20, 0,&iuse::pkill_1, ADD_NULL, "\
Low-grade painkiller. Best taken in pairs.");
MED("caffeine pills", 25, 60, c_cyan, itm_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("sleeping pills", 15, 50, c_cyan, itm_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 tablets", 5,140, c_yellow, itm_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", 70, 75, c_yellow, itm_null,
PLASTIC, 0, 1, 0, 10, 0,&iuse::flumed, ADD_NULL, "\
Daytime flu medication. Will halt all flu symptoms for a while.");
MED("Nyquil", 70, 85, c_blue, itm_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", 14,200, c_ltblue, itm_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", 15,400, c_cyan, itm_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", 7,900, c_cyan, itm_null,
PLASTIC, -4, -1, 16, 10, 18,&iuse::pkill_3, ADD_PKILLER, "\
A strong opiate, prescribed for moderate to intense pain.");
MED("tramadol", 11,300, c_cyan, itm_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", 10,600, c_cyan, itm_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", 10,450, c_cyan, itm_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", 7,500, c_cyan, itm_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 for a bad trip.");
MED("Prozac", 10,650, c_cyan, itm_null,
PLASTIC, -4, 0, 0, 15, 0,&iuse::prozac, ADD_NULL, "\
A strong anti-depressant. Useful if your morale level is very low.");
MED("cigarettes", 90,120, c_dkgray, itm_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("marijuana", 20,250, c_green, itm_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("cocaine", 8,420, c_white, itm_null,
POWDER, 20, -2, 30, 8, 25,&iuse::coke, ADD_COKE, "\
A strong, illegal stimulant. Highly addictive.");
MED("methamphetamine", 2,800, c_ltcyan, itm_null,
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", 1,1000,c_brown, itm_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("cigars", 5,120, c_dkgray, itm_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", 25,900, c_pink, itm_null,
PLASTIC, 0, -2, 0, 15, 0,&iuse::none, ADD_NULL, "\
Medication designed to stop the spread of, and kill, bacteria infections.");
// 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(name,rarity,price,sym,color,mat1,mat2,volume,wgt,dam,cut,to_hit,\
flags, des)\
index++;itypes.push_back(new itype(index,rarity,price,name,des,sym,\
color,mat1,mat2,volume,wgt,dam,cut,to_hit,flags))
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("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.");
MELEE("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("rag", 72, 10, ';', c_dkgray, COTTON, MNULL,
1, 1,-10, 0, 0, 0, "\
A small piece of cloth. Useful for making molotov cocktails and not much else."
);
MELEE("fur pelt", 0, 10, ',', c_brown, WOOL, FLESH,
1, 1, -8, 0, 0, 0, "\
A small bolt of fur from an animal. Can be made into warm clothing.");
MELEE("leather pelt", 0, 20, ',', c_red, LEATHER,FLESH,
1, 1, -2, 0, -1, 0, "\
A small piece of thick animal hide. Can be made into tough clothing.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("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("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("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", 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 in", 2, 5, ',', c_ltgray, COTTON, MNULL,
0, 0,-20, 0, 1, 0, "\
A small piece of cotton string.");
MELEE("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 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 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("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( mfb(TEC_GRAB) );
MELEE("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", 22, 90, ',', c_ltcyan, IRON, PLASTIC,
1, 0, -5, 0, -1, 0, "\
A stick of memory. Useful in advanced electronics crafting.");
MELEE("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 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 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("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("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("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("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.");
MELEE("rubber hose", 15, 80, ',', c_green, PLASTIC,MNULL,
3, 2, 4, 0, 3, mfb(IF_WRAP), "\
A flexible rubber hose. Useful for crafting.");
MELEE("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", 1, 20, ']', c_dkgray, IRON, MNULL,
45,250, 20, 0,-10, 0, "\
A heavy iron disc which generally covers a ladder into the sewers. Lifting\n\
it from the manhole is impossible without a crowbar.");
TECH( mfb(TEC_WBLOCK_3) );
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("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("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", 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( mfb(TEC_WBLOCK_1) );
MELEE("mop", 20, 28, '/', c_ltblue, PLASTIC,MNULL,
11, 12, 5, 0, -2, 0, "\
An unwieldy mop. Essentially useless.");
TECH( mfb(TEC_WBLOCK_1) );
MELEE("screwdriver", 40, 65, ';', c_ltcyan, IRON, PLASTIC,
1, 1, 2, 8, 1, mfb(IF_SPEAR), "\
A Philips-head screwdriver, important for almost all electronics crafting and\n\
most mechanics crafting.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("wrench", 30, 86, ';', c_ltgray, IRON, MNULL,
// VOL WGT DAM CUT HIT FLAGS
2, 5, 15, 0, 2, 0, "\
An adjustable wrench. Makes a decent melee weapon, and is used in many\n\
mechanics crafting recipes.");
MELEE("wood saw", 15, 40, ';', c_cyan, IRON, WOOD,
7, 3, -6, 1, -2, 0, "\
A flimsy saw, useful for cutting through wood objects.");
MELEE("hack saw", 17, 65, ';', c_ltcyan, IRON, MNULL,
4, 2, 1, 1, -1, 0, "\
A sturdy saw, useful for cutting through metal objects.");
MELEE("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( mfb(TEC_BRUTAL)|mfb(TEC_WIDE) );
MELEE("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.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("wood ax", 8, 105,'/', c_ltgray, WOOD, IRON,
// VOL WGT DAM CUT HIT FLAGS
17, 15, 24, 18, 1, 0, "\
A large two-handed axe. Makes a good melee weapon, but is a bit slow.");
MELEE("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.");
MELEE("X-Acto knife", 10, 40,';', c_dkgray, IRON, PLASTIC,
1, 0, 0, 14, -4, mfb(IF_SPEAR), "\
A small, very sharp knife. Causes decent damage but is difficult to hit\n\
with. Its small tip allows for a precision strike in hands of the skill."
);
TECH(mfb(TEC_PRECISE));
MELEE("scalpel", 48, 40,',', c_cyan, STEEL, MNULL,
1, 0, 0, 18, -4, mfb(IF_SPEAR), "\
A small, very sharp knife, used in surgery. Its small tip allows for a\n\
precision strike in the hands of the skilled.");
TECH(mfb(TEC_PRECISE));
MELEE("pot", 25, 45,')', c_ltgray, IRON, MNULL,
8, 6, 9, 0, 1, 0, "\
Useful for boiling water when cooking spaghetti and more.");
MELEE("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("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("steak knife", 85, 25,';', c_ltcyan, STEEL, MNULL,
1, 2, 2, 10, -3, mfb(IF_STAB), "\
A sharp knife. Makes a poor melee weapon, but is decent at butchering\n\
corpses.");
MELEE("butcher knife", 10, 80,';', c_cyan, STEEL, MNULL,
3, 6, 4, 18, -3, 0, "\
A sharp, heavy knife. Makes a good melee weapon, and is the best item for\n\
butchering corpses.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("combat knife", 14, 100,';', c_blue, STEEL, PLASTIC,
// VOL WGT DAM CUT HIT FLAGS
2, 2, 2, 22, -2, mfb(IF_STAB), "\
Designed for combat, and deadly in the right hands. Can be used to butcher\n\
corpses.");
MELEE("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( mfb(TEC_WBLOCK_1) );
MELEE("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( mfb(TEC_WBLOCK_2) );
MELEE("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.");
MELEE("baseball bat", 60, 160,'/', c_ltred, WOOD, MNULL,
12, 10, 28, 0, 3, 0, "\
A sturdy wood bat. Makes a great melee weapon.");
TECH( mfb(TEC_WBLOCK_1) );
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("machete", 5, 280,'/', c_blue, IRON, MNULL,
// VOL WGT DAM CUT HIT FLAGS
8, 14, 6, 28, 2, 0, "\
This huge iron knife makes an excellent melee weapon.");
TECH( mfb(TEC_WBLOCK_1) );
MELEE("katana", 2, 980,'/', c_ltblue, STEEL, MNULL,
16, 16, 4, 45, 1, mfb(IF_STAB), "\
A rare sword from Japan. Deadly against unarmored targets, and still very\n\
effective against the armored.");
TECH( mfb(TEC_RAPID)|mfb(TEC_WBLOCK_2) );
MELEE("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( mfb(TEC_WBLOCK_1) | mfb(TEC_RAPID) );
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("steel spear", 5, 140,'/', c_ltred, WOOD, STEEL,
// VOL WGT DAM CUT HIT FLAGS
6, 6, 2, 28, 1, mfb(IF_SPEAR), "\
A simple wood pole made deadlier by the knife tied to it.");
TECH( mfb(TEC_WBLOCK_1) | mfb(TEC_RAPID) );
MELEE("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( mfb(TEC_WBLOCK_1) );
MELEE("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( mfb(TEC_PRECISE) );
MELEE("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( mfb(TEC_PRECISE) );
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("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", 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("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 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 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", 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", 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.");
MELEE("rapier", 3, 980,'/', c_ltblue, STEEL, MNULL,
6, 9, 5, 28, 2, mfb(IF_STAB), "\
Preferred weapon of gentlemen and swashbucklers. Light and quick, it makes\n\
any battle a stylish battle.");
TECH( mfb(TEC_RAPID)|mfb(TEC_WBLOCK_1)|mfb(TEC_PRECISE) );
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("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( mfb(TEC_WBLOCK_1) );
MELEE("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", 5, 100,',', c_white, PLASTIC,MNULL,
0, 0, 0, 0, 0, 0, "\
A USB thumb drive. Useful for holding software.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("awl pike", 5,2000,'/', c_ltcyan, IRON, WOOD,
// VOL WGT DAM CUT HIT FLAGS
14, 18, 8, 50, 2, mfb(IF_SPEAR), "\
A medieval weapon consisting of a wood shaft, tipped with an iron spike.\n\
Though large and heavy compared to other spears, its accuracy and damage\n\
are unparalled.");
MELEE("broadsword", 30,1200,'/',c_cyan, IRON, MNULL,
7, 11, 8, 35, 2, mfb(IF_STAB), "\
An early modern sword seeing use in the 16th, 17th ane 18th centuries.\n\
Called 'broad' to contrast with the slimmer rapiers.");
MELEE("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( mfb(TEC_SWEEP) );
MELEE("morningstar", 10,1200,'/',c_dkgray, IRON, WOOD,
11, 20, 32, 4, 1, mfb(IF_SPEAR), "\
A medieval weapon consisting of a wood handle with a heavy, spiked iron\n\
ball on the end. It deals devastating crushing damage, with a small\n\
amount of piercing to boot.");
TECH( mfb(TEC_SWEEP) );
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("pool cue", 4, 80,'/', c_red, WOOD, MNULL,
// VOL WGT DAM CUT HIT FLAGS
14, 5, 12, 0, 3, 0, "\
A hard-wood stick designed for hitting colorful balls around a felt\n\
table. Truly, the coolest of sports.");
TECH( mfb(TEC_WBLOCK_1) );
MELEE("pool ball", 40, 30,'*', c_blue, STONE, MNULL,
1, 3, 12, 0, -3, 0, "\
A colorful, hard ball. Essentially a rock.");
MELEE("candlestick", 20,100,'/', c_yellow, SILVER, MNULL,
1, 5, 12, 0, 1, 0, "\
A gold candlestick.");
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("steel frame", 25, 35, ']', c_cyan, STEEL, MNULL,
// VOL WGT DAM CUT HIT FLAGS
60, 240, 20, 0, -5, 0, "\
A large frame made of steel. Useful for crafting.");
TECH( mfb(TEC_WBLOCK_3) );
// NAME RAR PRC SYM COLOR MAT1 MAT2
MELEE("wheel", 15, 50, ']', c_dkgray, STEEL, PLASTIC,
// VOL WGT DAM CUT HIT FLAGS