forked from dungeons-of-moria/icmoria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
values.h
3186 lines (3083 loc) · 171 KB
/
values.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
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
/* values.h */
/**/
treas_ptr cur_inven; // { Current inven page }
boolean is_magii; // { True if has mana }
time_t start_time; // { Time started playing}
boolean is_from_file; // { True if restored }
money_type bank; // { Bank's money }
money_type coin_value = // { Copy of money values}
{0,1,4,20,240,960,12480};
integer player_max_exp; // { Max exp possible }
unsigned long seed; // { Contains seed # }
unsigned long randes_seed; // { For encoding colors }
unsigned long town_seed; // { Seed for town genera}
integer channel; // { I/O channel # }
unsigned long pasteb; // { Pasteboard id }
quad_type io_bin_pause; // { I/O pause time }
integer cur_height; // { Cur dungeon size }
integer cur_width;
integer dun_level; // { Cur dungeon level }
integer missle_ctr = 0; // { Counter for missles }
integer msg_line; // { Contains message txt}
boolean msg_flag; // { Set with first msg }
vtype msg_prev[MAX_MESSAGES+1];
integer quest[NUM_QUESTS+1]; // {quest data}
vtype old_msg ="bogus msg"; // { Last message }
boolean want_trap; // { True = trap messages}
boolean want_warn; // { True = water warning}
message_ptr caught_message; // { Message from other }
message_ptr old_message; // { Past messages }
integer old_mess_count; // { Count of old mess's }
integer max_mess_keep; // { Max old to keep }
message_ptr cur_message; // { Pointer to add mess }
message_ptr message_cursor; // { Pointer to read mess}
integer caught_count; // { # of mesgs waiting }
integer max_score; // { # of scores to list }
boolean generate; // { Generate next level }
boolean death = false; // { True if died }
vtype died_from; // { What killed him }
integer turn_counter; // { Turns ellapsed }
boolean find_flag; // { Used in MORIA }
boolean cave_flag; // { Used in GET_PANEL }
boolean light_flag; // { Used in MOVE_LIGHT }
boolean redraw; // { For redraw screen }
unsigned long print_stat = 0; // { Flag for stats }
integer turn = 0; // { Cur trun of game }
boolean wizard1 = false; // { Wizard flag }
boolean wizard2 = false; // { Wizard flag }
boolean used_line[24] = // 22 of false
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
char password1[13];
char password2[13];
boolean became_wizard = false;
unsigned long wdata[2][13] = // array [1..2,0..12] of unsigned;
{{31415,81,58,35,193,3,41,49,228,2,85,9,125},
{92653,24,166,38,92,31,137,155,177,239,79,236,112}};
// {{31415,'n','a','f','f',0,'w','z','r','i','n','b'},
// {92653,'m','o','s','k','a',0,'j','a','u','m','z'}};
// { Operating hours for Moria -RAK- }
// { X = Open; . = Closed }
char days[7][30] =
{
"SUN:XXXXXXXXXXXXXXXXXXXXXXXX|",
"MON:XXXXXXXXXXXXXXXXXXXXXXXX|",
"TUE:XXXXXXXXXXXXXXXXXXXXXXXX|",
"WED:XXXXXXXXXXXXXXXXXXXXXXXX|",
"THU:XXXXXXXXXXXXXXXXXXXXXXXX|",
"FRI:XXXXXXXXXXXXXXXXXXXXXXXX|",
"SAT:XXXXXXXXXXXXXXXXXXXXXXXX|"
};
/*
char days[7][30] =
{
"SUN:XXXXXXXXXXXXXXXXXXXXXXXX|",
"MON:XXXXXXXX.........XXXXXXX|",
"TUE:XXXXXXXX.........XXXXXXX|",
"WED:XXXXXXXX.........XXXXXXX|",
"THU:XXXXXXXX.........XXXXXXX|",
"FRI:XXXXXXXX.........XXXXXXX|",
"SAT:XXXXXXXXXXXXXXXXXXXXXXXX|"
};
*/
integer closing_flag = 0; // { Used for closing }
boolean uw_id; // { Is this a UW node? }
//{neatness arrays}
byteint key_of[9] = // array [0..8] of byteint;
{6,9,8,7,4,1,2,3,5};
byteint oct_of[10] = // array [1..9] of byteint;
{250,5,6,7,4,8,0,3,2,1};
bytlint dx_of[10] = // array [1..9] of bytlint;
{250,-1,0,1,-1,0,1,-1,0,1};
bytlint dy_of[10] = // array [1..9] of bytlint;
{250,1,1,1,0,0,0,-1,-1,-1};
// { Bit testing array }
unsigned long bit_array[33] = // array [1..32] of unsigned;
{0, 0x00000001, 0x00000002, 0x00000004, 0x00000008,
0x00000010, 0x00000020, 0x00000040, 0x00000080,
0x00000100, 0x00000200, 0x00000400, 0x00000800,
0x00001000, 0x00002000, 0x00004000, 0x00008000,
0x00010000, 0x00020000, 0x00040000, 0x00080000,
0x00100000, 0x00200000, 0x00400000, 0x00800000,
0x01000000, 0x02000000, 0x04000000, 0x08000000,
0x10000000, 0x20000000, 0x40000000, 0x80000000};
// { External file names; paths are set in io.c get_paths }
vtype MORIA_HOU;
vtype MORIA_MOR;
vtype MORIA_MAS;
vtype MORIA_TOP;
vtype MORIA_TRD;
// vtype MORIA_HLP;
vtype MORIA_LCK;
vtype MORIA_DTH;
vtype MORIA_MON;
vtype MORIA_CST;
vtype MORIA_GCST;
// { following are calculated from max dungeon sizes }
integer max_panel_rows, max_panel_cols;
integer quart_height, quart_width;
integer panel_row, panel_col;
integer panel_row_min, panel_row_max;
integer panel_col_min, panel_col_max;
integer panel_col_prt, panel_row_prt;
// { Following are all floor definitions }
row_floor cave[MAX_HEIGHT+1];
cave_type blank_floor =
{0,0,0,false,false,false,false,false,0,0};
floor_type dopen_floor = {1,true}; //{ Dark open floor }
floor_type lopen_floor = {2,true}; //{ Light open floor }
floor_type corr_floor1 = {4,true}; //{ Corridor open floor }
floor_type corr_floor2 = {5,true}; //{ Room junction marker}
floor_type corr_floor3 = {6,true}; //{ Door type floor }
floor_type corr_floor4 = {7,false};//{ Secret door type floor}
//{ Floor values 8 and 9 are used in generate }
floor_type rock_wall1 = {10,false};//{ Granite rock wall }
floor_type rock_wall2 = {11,false};//{ Magma rock wall }
floor_type rock_wall3 = {12,false};//{ Quartz rock wall }
floor_type water1 = {16,true}; //{ Water on floor }
floor_type water2 = {17,true}; //{ Water on room floor}
floor_type water3 = {18,true}; //{ Lit water on floor }
floor_type boundry_wall= {15,false};//{ Indestructable wall}
// { Following are set definitions }
obj_set floor_set =
{1,2,4,5,6,7,16,17,18,0,0,0,0,0,0,0};
obj_set open_dry_floors =
{1,2,4,0,0,0,0,0,0,0,0,0,0,0,0,0};
obj_set wall_set =
{10,11,12,0,0,0,0,0,0,0,0,0,0,0,0,0};
obj_set pwall_set =
{10,11,12,15,0,0,0,0,0,0,0,0,0,0,0,0};
obj_set corr_set =
{4,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
obj_set trap_set =
{Unseen_trap,Seen_trap,Secret_door,Entrance_to_store,
0,0,0,0,0,0,0,0,0,0,0,0};
obj_set light_set =
{Seen_trap,Rubble,Open_door,Closed_door,Up_staircase,
Down_staircase,Secret_door,Entrance_to_store,
Up_steep_staircase,Down_steep_staircase,
0,0,0,0,0,0};
obj_set water_set =
{16,17,18,0,0,0,0,0,0,0,0,0,0,0,0,0};
obj_set earth_set =
{1,2,4,5,6,7,0,0,0,0,0,0,0,0,0,0};
obj_set float_set =
{arrow,lamp_or_torch,bow_crossbow_or_sling,boots,
gloves_and_gauntlets,cloak,soft_armor,scroll1,scroll2,
potion1,potion2,flask_of_oil,Food,magic_book,
prayer_book,song_book};
obj_set slow_set =
{hafted_weapon,pole_arm,dagger,sword,pick_or_shovel,
maul,gem_helm,helm,shield,valuable_metal,0,0,0,0,0,0};
obj_set stable_set =
{chest,spike,hard_armor,0,0,0,0,0,0,0,0,0,0,0,0,0};
// { Following are player variables }
player_type py =
{
// misc
{
0,0, // xtr_wgt, account
{0,0,0,0,0,0,0}, // money
{0,0,0,0,0}, // birth
{0,0,0,0,0}, // cur_age
{0,0,0,0,0,0,0}, // play_tm
3, // diffic
/*" ",*/" "," "," "," "," ", // ssn,name,race,sex,title,tclass
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
{"","","","",""}, // history
false,0,0,0 // mr, quests, cur_quest
},
// stat
{
{0,0,0,0,0,0}, // p permanent
{0,0,0,0,0,0}, // c current
{0,0,0,0,0,0}, // m net magical adjust
{0,0,0,0,0,0} // l amt lost
},
// flags
{
false,false,0,0,0,0,0,7500,2,0,0,0,false,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
false,false,false,false,false,false,false,false,false,
false,false,false,
{false,false,false,false,false,false}, // sustain
false,0,0,0,0,0,0,0,0,0,0,false,false
}
};
btype player_title[MAX_CLASS][MAX_PLAYER_LEVEL+1] =
// array [1..max_class] of
// array [1..max_player_level] of btype;
{
//{ Warrior }
{"Novice","Veteran(1st)","Veteran(2nd)","Veteran(3rd)","Warrior(1st)",
"Warrior(2nd)","Warrior(3rd)","Swordsman-1","Swordsman-2","Swordsman-3",
"Hero","Swashbuckler","Myrmidon","Champion-1","Champion-2","Champion-3",
"Superhero","Knight","Superior Knt","Gallant Knt","Knt Errent","Keeper",
"Protector","Defender","Warder","Guardian Knt","Chevalier","Justiciar",
"Lord (1st)","Lord (2nd)","Lord (3rd)","Lord (4th)","Lord (5th)","Lord (6th)",
"Lord (7th)","Lord (8th)","Lord (9th)","Lord Gallant","Lord Keeper",
"Lord Noble"},
//{ Mage }
{"Novice","Apprentice","Trickster-1","Trickster-2","Trickster-3","Cabalist-1",
"Cabalist-2","Cabalist-3","Visionist","Phantasmist","Shadowist","Spellbinder",
"Illusionist","Evoker (1st)","Evoker (2nd)","Evoker (3rd)","Evoker (4th)",
"Conjurer","Theurgist","Thaumaturer","Magician","Enchanter","Warlock",
"Sorcerer","Necromancer","Mage (1st)","Mage (2nd)","Mage (3rd)","Mage (4th)",
"Mage (5th)","Wizard (1st)","Wizard (2nd)","Wizard (3rd)","Wizard (4th)",
"Wizard (5th)","Wizard (6th)","Wizard (7th)","Wizard (8th)","Wizard (9th)",
"Wizard Lord"},
//{ Priests }
{"Believer","Acolyte(1st)","Acolyte(2nd)","Acolyte(3rd)","Adept (1st)",
"Adept (2nd)","Adept (3rd)","Priest (1st)","Priest (2nd)","Priest (3rd)",
"Priest (4th)","Priest (5th)","Priest (6th)","Priest (7th)","Priest (8th)",
"Priest (9th)","Curate (1st)","Curate (2nd)","Curate (3rd)","Curate (4th)",
"Curate (5th)","Curate (6th)","Curate (7th)","Curate (8th)","Curate (9th)",
"Canon (1st)","Canon (2nd)","Canon (3rd)","Canon (4th)","Canon (5th)",
"Low Lama","Lama-1","Lama-2","Lama-3","High Lama","Great Lama","Patriarch",
"High Priest","Great Priest","Noble Priest"},
//{ Rogues }
{"Apprentice","Footpad","Cutpurse","Robber","Burglar","Filcher","Sharper",
"Magsman","Common Rogue","Rogue (1st)","Rogue (2nd)","Rogue (3rd)",
"Rogue (4th)","Rogue (5th)","Rogue (6th)","Rogue (7th)","Rogue (8th)",
"Rogue (9th)","Master Rogue","Expert Rogue","Senior Rogue","Chief Rogue",
"Prime Rogue","Low Thief","Thief (1st)","Thief (2nd)","Thief (3rd)",
"Thief (4th)","Thief (5th)","Thief (6th)","Thief (7th)","Thief (8th)",
"Thief (9th)","High Thief","Master Thief","Executioner","Low Assassin",
"Assassin","HighAssassin","Guildsmaster"},
//{ Rangers }
{"Runner (1st)","Runner (2nd)","Runner (3rd)","Strider (1st)","Strider (2nd)",
"Strider (3rd)","Scout (1st)","Scout (2nd)","Scout (3rd)","Scout (4th)",
"Scout (5th)","Courser (1st)","Courser (2nd)","Courser (3rd)","Courser (4th)",
"Courser (5th)","Tracker (1st)","Tracker (2nd)","Tracker (3rd)",
"Tracker (4th)","Tracker (5th)","Tracker (6th)","Tracker (7th)",
"Tracker (8th)","Tracker (9th)","Guide (1st)","Guide (2nd)","Guide (3rd)",
"Guide (4th)","Guide (5th)","Guide (6th)","Guide (7th)","Guide (8th)",
"Guide (9th)","Pathfinder-1","Pathfinder-2","Pathfinder-3","Ranger",
"High Ranger","Ranger Lord"},
//{ Paladins }
{"Gallant","Keeper (1st)","Keeper (2nd)","Keeper (3rd)","Keeper (4th)",
"Keeper (5th)","Keeper (6th)","Keeper (7th)","Keeper (8th)","Keeper (9th)",
"Protector-1","Protector-2","Protector-3","Protector-4","Protector-5",
"Protector-6","Protector-7","Protector-8","Defender-1","Defender-2",
"Defender-3","Defender-4","Defender-5","Defender-6","Defender-7","Defender-8",
"Warder (1st)","Warder (2nd)","Warder (3rd)","Warder (4th)","Warder (5th)",
"Warder (6th)","Warder (7th)","Warder (8th)","Warder (9th)","Gauardian",
"Chevalier","Justiciar","Paladin","High Lord"},
//{ Druids }
{"Aspirant-1","Aspirant-2","Ovate (1st)","Ovate (2nd)","Ovate(3th)",
"Initiate-1","Initiate-2",
"1st Cabal","2nd Cabal","3rd Cabal","4th Cabal","5th Cabal","6th Cabal",
"7th Cabal","8th Cabal","9th Cabal","10th Cabal","11th Cabal","12th Cabal",
"13th Cabal","Low Druid","Druid (1st)","Druid (2nd)","Druid (3rd)",
"Druid (4th)","Druid (5th)","Druid (6th)","Adept Druid","Arch Druid",
"Great Druid","Master Druid","Grand Druid","Lord Druid","LowHierophant",
"Hierophant-1","Hierophant-2","Hierophant-3","Hierophant-4","Hierophant-5",
"Forest Master"},
//{ Bards }
{"Singer","Rhymer","Joker","Lyrist (1st)","Lyrist (2nd)","Lyrist (3rd)",
"Jester (1st)","Jester (2nd)","Sonnateer-1",
"Sonnateer-2","Sonnateer-3","Skald (1st)","Skald (2nd)","Skald (3rd)",
"Comic (1st)","Comic (2nd)","Comic (3rd)","Racaraide-1","Racaraide-2",
"Racaraide-3","Joungleur-1","Joungleur-2","Joungleur-3","Minstrel-1",
"Minstrel-2","Minstrel-3","Muse (1st)","Muse (2nd)","Muse(3rd)","Lorist (1st)",
"Lorist (2nd)","Lorist (3rd)","Initiate Bard","Bard (1st)","Bard (2nd)",
"Bard (3rd)","Master Bard-1","Master Bard-2","Master Bard-3","Bardic Sage"},
//{ Adventurer }
{"Dimwit","Beginner","Amateur","Flathead","PileofLeaves","Novice","Brass Bell",
"Orange Cake","White Unicorn","Charlatan","CloveofGarlic","Nasty Knife",
"ParlorMgician","Gaudy Crown","Loaf of Bread","Lurking Grue","Noisome Stew",
"Broken Timber","Granite Wall","FCD #3","Adventurer-1","Adventurer-2",
"Adventurer-3","AIMFIZ Scroll","VILSTU Potion","Sr Adventurer","Master Advnt",
"WizofFrobozz","Enchanter","Sorcerer","Wizard (1st)","Wizard (2nd)",
"Wizard (3rd)","Wizard (4th)","Wizard (5th)","Wizard (6th)","Wizard (7th)",
"Zorkmid Coin","DungeonMaster","Implementer"},
//{ Monk }
{"Disciple","Acolyte(1st)","Acolyte(2nd)","Acolyte(3rd)","Neophyte(1st)",
"Neophyte(2nd)","Neophyte(3rd)","Neophyte(4th)","Adept (1st)","Adept (2nd)",
"Adept (3rd)","Hermit (1st)","Hermit (2nd)","Hermit (3rd)","Hermit (4th)",
"Hermit (5th)","Curate (1st)","Curate (2nd)","Curate (3rd)","Curate (4th)",
"Curate (5th)","Curate (6th)","Curate (7th)","Curate (8th)","Curate (9th)",
"Master (1st)","Master (2nd)","Master (3rd)","Master (4th)","Master (5th)",
"SupriorMaster","Low Lama","High Lama","Great Lama","DancingLlama",
"Holy Man","Hi-YA Man","Baby Buddha","BuddingBuddha","Buddha"}
};
// { Base experience levels, may be adjusted up for race and/or class}
integer player_exp[MAX_PLAYER_LEVEL+1] =
{
0, 10, 25, 45, 70, 100, 140, 200, 280, 380, 500,
650, 850, 1100, 1400, 1800, 2300, 2900, 3600, 4400, 5400,
6800, 8400, 10200, 12500, 17500, 25000, 35000, 50000, 75000,100000,
150000, 200000, 300000, 400000, 500000, 750000,1500000,2500000,5000000,9999999
};
real acc_exp = 0.0; //{ Accumulator for fractional exp}
dtype bare_hands = "1d1";
boolean msg_terse;
byteint record_ctr = 0;
integer char_row = 0;
integer char_col = 0;
integer com_val;
integer pclass = 0;
vtype sex_type = "FemaleMale ";
/*
{Race (STR,INT,WIS,DEX,CON,CHR),
age,,mht,,mwt,,fht,,fwt,,bxp,
Racial: dis,srh,stl,fos,bth,bthb,bsav,HD,infra,swim,classes}
ALLOWED CLASSES:
{ For choice-classes, the bits run in reverse order, with adventurer
on the left, and fighter on the right. (classes allowed by race)
Monk, Adventurer, Bard, Druid, Paladin, Ranger, Rogue, Priest, Mage, Warrior }
*/
race_type race[MAX_RACES] =
{
{"Human", { 0, 0, 0, 0, 0, 0},
14, 6, 72, 6,180, 25, 66, 4,120, 20, 1.00,
0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0x3FF },
{"Half-Elf", {-1, 1, 0, 1, -1, 1},
24, 16, 66, 6,130, 15, 62, 6,100, 10, 1.10,
2, 6, 1, -1, 0, 5, 3, 9, 0, 1, 0x3FF },
{"Elf", {-1, 2, 1, 1, -2, 1},
75, 75, 60, 4,100, 6, 54, 4, 80, 6, 1.20,
5, 8, 1, -2, -5, 15, 6, 8, 0, 2, 0x1DF },
{"Halfling", {-2, 2, 1, 3, 1, 1},
21, 12, 36, 3, 60, 3, 33, 3, 50, 3, 1.10,
15, 12, 4, -5,-10, 20, 18, 6, 4, -2, 0x2BA },
{"Gnome", {-1, 2, 0, 2, 1, -2},
50, 40, 42, 3, 90, 6, 39, 3, 75, 3, 1.25,
10, 6, 3, -3, -8, 12, 12, 7, 3, -1, 0x04E },
{"Dwarf", {2, -3, 1, -2, 2, -3},
35, 15, 48, 3,150, 10, 46, 3,120, 10, 1.20,
2, 7, 0, 0, 15, 0, 9, 9, 5, -2, 0x045 },
{"Half-Orc", {2, -1, 0, 0, 1, -4},
11, 4, 66, 1,150, 5, 62, 1,120, 5, 1.10,
-3, 0, -1, 3, 12, -5, -3, 10, 3, 0, 0x20D },
{"Half-Troll",{4, -4, -3, -4, 4, -6},
20, 10, 96, 10,300, 50, 84, 8,260, 40, 1.20,
-5, -1, -2, 5, 20,-10, -9, 12, 3, 2, 0x005 },
{"Phraint", {0, 0, -4, 5, 0, -3},
15, 10, 96, 24,100, 20, 84, 12, 95, 16, 1.20,
15, 10, 5, 4, 3, 5, -3, 8, 5, -1, 0x39B },
{"Dryad", {-1, 0, 3, 0, -2, 3},
75, 75, 60, 4, 85, 6, 40, 4, 70, 6, 1.20,
2, 6, 1, -1, 0, 5, 3, 7, 3, -1, 0x2D4 }
};
// { Background information }
background_type background[MAX_BACKGROUND] =
{
{"You are the illegitimate and unacknowledged child ", 10, 1, 2,-25},
{"You are the illegitimate but acknowledged child ", 20, 1, 2,-15},
{"You are one of several children ", 95, 1, 2, -5},
{"You are the 1st child ", 100, 1, 2, 0},
{"of a Serf. ", 40, 2, 3, 15},
{"of a Yeoman. ", 65, 2, 3, 30},
{"of a Townsman. ", 80, 2, 3, 40},
{"of a Guildsman. ", 90, 2, 3, 55},
{"of a Landed Knight. ", 96, 2, 3, 70},
{"of a Titled Noble. ", 99, 2, 3, 80},
{"of a Royal Blood Line. ", 100, 2, 3, 90},
{"You are the black sheep of the family. ", 20, 3,50,-30},
{"You are a credit to the family. ", 80, 3,50, 5},
{"You are a well liked child. ", 100, 3,50, 10},
{"Your mother was a Green-Elf. ", 40, 4, 1, 0},
{"Your father was a Green-Elf. ", 75, 4, 1, 5},
{"Your mother was a Grey-Elf. ", 90, 4, 1, 5},
{"Your father was a Grey-Elf. ", 95, 4, 1, 10},
{"Your mother was a High-Elf. ", 98, 4, 1, 15},
{"Your father was a High-Elf. ", 100, 4, 1, 20},
{"You are one of several children ", 60, 7, 8, 0},
{"You are the only child ", 100, 7, 8, 5},
{"of a Green-Elf ", 75, 8, 9, 0},
{"of a Grey-Elf ", 95, 8, 9, 5},
{"of a High-Elf ", 100, 8, 9, 10},
{"Ranger. ", 40, 9,54, 30},
{"Archer. ", 70, 9,54, 40},
{"Warrior. ", 87, 9,54, 60},
{"Mage. ", 95, 9,54, 75},
{"Prince. ", 99, 9,54, 90},
{"King. ", 100, 9,54, 95},
{"You are one of several children of a Halfling ", 85,10,11, -5},
{"You are the only child of a Halfling ", 100,10,11, 5},
{"Bum. ", 20,11, 3, 5},
{"Tavern Owner. ", 30,11, 3, 30},
{"Miller. ", 40,11, 3, 40},
{"Home Owner. ", 50,11, 3, 50},
{"Burglar. ", 80,11, 3, 60},
{"Monk. ", 95,11, 3, 65},
{"Mage. ", 100,11, 3, 75},
{"Clan Elder. ", 100,11, 3, 90},
{"You are one of several children of a Gnome ", 85,13,14, -5},
{"You are the only child of a Gnome ", 100,13,14, 5},
{"Beggar. ", 20,14, 3, 5},
{"Bragart. ", 50,14, 3, 20},
{"Prankster. ", 75,14, 3, 35},
{"Druid. ", 95,14, 3, 50},
{"Mage. ", 100,14, 3, 75},
{"You are one of two children of a Dwarven ", 25,16,17,-10},
{"You are the only child of a Dwarven ", 100,16,17, 0},
{"Thief. ", 10,17,18, 10},
{"Prison Guard. ", 25,17,18, 25},
{"Miner. ", 75,17,18, 40},
{"Warrior. ", 90,17,18, 60},
{"Priest. ", 99,17,18, 80},
{"King. ", 100,17,18,100},
{"You are the black sheep of the family. ", 15,18,57,-40},
{"You are a credit to the family. ", 85,18,57, 0},
{"You are a well liked child. ", 100,18,57, 5},
{"Your mother was an Orc, but it is unacknowledged. ", 25,19,20,-25},
{"Your father was an Orc, but it is unacknowledged. ", 100,19,20,-25},
{"You are the adopted child ", 100,20, 2, 0},
{"Your mother was a Cave-Troll ", 30,22,23,-30},
{"Your father was a Cave-Troll ", 60,22,23,-25},
{"Your mother was a Hill-Troll ", 75,22,23,-20},
{"Your father was a Hill-Troll ", 90,22,23,-15},
{"Your mother was a Water-Troll ", 95,22,23,-10},
{"Your father was a Water-Troll ", 100,22,23, -5},
{"Cook. ", 5,23,62, 10},
{"Warrior. ", 95,23,62, 5},
{"Shaman. ", 99,23,62, 15},
{"Clan Chief. ", 100,23,62, 30},
{"You are one of many illegitimate children ", 5,25,26,-30},
{"You are one of several illegitimate children ", 10,25,26,-25},
{"You are one of many children ", 50,25,26,-10},
{"You are one of several children ", 75,25,26, -5},
{"You are the 2nd child ", 95,25,26, 0},
{"You are the only child ", 100,25,26, 5},
{"of a Worker. ", 50,26,27, 15},
{"of a Warrior. ", 75,26,27, 30},
{"of an Elite Warrior. ", 90,26,27, 50},
{"of the Hive Mother. ", 100,26,27,100},
{"You are the outcast of the hive. ", 5,27,38,-50},
{"You are the black sheep of the hive. ", 20,27,38,-30},
{"You are a credit to the hive. ", 80,27,38, 5},
{"You are a well liked child. ", 100,27,38, 10},
{"You are the Dryad of a sickly ", 15,28,29,-20},
{"You are the Dryad of a large ", 40,28,29, 0},
{"You are the Dryad of a rich, green ", 60,28,29, 0},
{"You are the Dryad of a magnificent ", 90,28,29, 10},
{"You are the Dryad of a stump! ", 100,28,54,-30},
{"pine tree", 30,29,30, 5},
{"birch tree", 40,29,30, 15},
{"ash tree", 50,29,30, 30},
{"cedar tree", 70,29,30, 50},
{"willow tree", 90,29,30, 70},
{"oak tree", 100,29,30, 90},
{", but the elven community avoids your forest. ", 10,30,54,-30},
{" in a small glade. ", 40,30,54, -5},
{" and you are a fine upholder of the woodlands. ", 60,30,54, 5},
{" and Humans and Half-Elves hold your tree sacred. ", 88,30,54, 20},
{" where the Elves hold yearly ceremonies. ", 90,30,54, 25},
{" that all races hold in reverence. ", 100,30,54, 30},
{"You have small ", 40,38,39, 0},
{"You have large ", 70,38,39, 0},
{"You have very large ", 100,38,39, 0},
{"buggy green eyes, ", 10,39,40, 0},
{"buggy silver eyes, ", 30,39,40, 0},
{"iridescent eyes, ", 70,39,40, 0},
{"glowing eyes, ", 100,39,40, 0},
{"straight feelers, ", 10,40,41, 0},
{"curved feelers, ", 30,40,41, 0},
{"bent feelers, ", 80,40,41, 0},
{"very long feelers, ", 100,40,41, 0},
{"and dull brown chiton. ", 10,41,-1, 0},
{"and shiny brown chiton. ", 60,41,-1, 0},
{"and shiny black chiton. ", 90,41,-1, 0},
{"and polished silver chiton. ", 100,41,-1, 0},
{"You have dark brown eyes, ", 20,50,51, 0},
{"You have brown eyes, ", 60,50,51, 0},
{"You have hazel eyes, ", 70,50,51, 0},
{"You have green eyes, ", 80,50,51, 0},
{"You have blue eyes, ", 90,50,51, 0},
{"You have blue-gray eyes, ", 100,50,51, 0},
{"straight ", 70,51,52, 0},
{"wavey ", 90,51,52, 0},
{"curly ", 100,51,52, 0},
{"black hair, ", 30,52,53, 0},
{"brown hair, ", 70,52,53, 0},
{"auburn hair, ", 80,52,53, 0},
{"red hair, ", 90,52,53, 0},
{"blonde hair, ", 100,52,53, 0},
{"and a very dark complexion.", 10,53,-1, 0},
{"and a dark complexion.", 30,53,-1, 0},
{"and an average complexion.", 80,53,-1, 0},
{"and a fair complexion.", 90,53,-1, 0},
{"and a very fair complexion.", 100,53,-1, 0},
{"You have light grey eyes, ", 85,54,55, 0},
{"You have light violet eyes, ", 90,54,55, 0},
{"You have light blue eyes, ", 95,54,55, 0},
{"You have light green eyes, ", 98,54,55, 2},
{"You have light golden colored eyes, ", 100,54,55, 5},
{"straight ", 75,55,56, 0},
{"wavey ", 100,55,56, 0},
{"jet black hair, and a fair complexion.", 75,56,-1, 0},
{"light brown hair, and a fair complexion.", 85,56,-1, 0},
{"blonde hair, and a fair complexion.", 95,56,-1, 0},
{"silver hair, and a fair complexion.", 98,56,-1, 1},
{"hair the color of spun gold and pale skin.", 100,56,-1, 5},
{"You have dark brown eyes, ", 99,57,58, 0},
{"You have glowing red eyes, ", 100,57,58, 10},
{"straight ", 90,58,59, 0},
{"wavey ", 100,58,59, 0},
{"black hair, ", 75,59,60, 0},
{"brown hair, ", 100,59,60, 0},
{"a one foot beard, ", 25,60,61, 0},
{"a two foot beard, ", 60,60,61, 1},
{"a three foot beard, ", 90,60,61, 3},
{"a four foot beard, ", 100,60,61, 5},
{"and a dark complexion.", 100,61,-1, 0},
{"You have slime green eyes, ", 60,62,63, 0},
{"You have puke yellow eyes, ", 85,62,63, 0},
{"You have blue-bloodshot eyes, ", 99,62,63, 0},
{"You have glowing red eyes, ", 100,62,63, 5},
{"dirty ", 33,63,64, 0},
{"mangy ", 66,63,64, 0},
{"oily ", 100,63,64, 0},
{"sea-weed green hair, ", 33,64,65, 0},
{"bright red hair, ", 66,64,65, 0},
{"dark purple hair, ", 100,64,65, 0},
{"and green ", 25,65,66, 0},
{"and blue ", 50,65,66, 0},
{"and white ", 75,65,66, 0},
{"and black ", 100,65,66, 0},
{"ulcerous skin.", 33,66,-1, 0},
{"scabby skin.", 66,66,-1, 0},
{"leprous skin.", 100,66,-1, 0}
};
// { Buying and selling adjustments for character race VS store }
// { owner race }
real rgold_adj[MAX_RACES][MAX_RACES] =
{
// { Hum, HfE, Elf, Hal, Gno, Dwa, HfO, HfT, Phr, Dry }
/*Human */{ 0.00, 0.05, 0.05, 0.10, 0.13, 0.15, 0.20, 0.25, 0.20, 0.05},
/*Half-Elf */{ 0.10, 0.00, 0.00, 0.05, 0.10, 0.20, 0.25, 0.30, 0.25, 0.05},
/*Elf */{ 0.10, 0.05, 0.00, 0.05, 0.10, 0.20, 0.25, 0.30, 0.30, 0.00},
/*Halfling */{ 0.15, 0.10, 0.05,-0.05, 0.05, 0.10, 0.15, 0.30, 0.25, 0.05},
/*Gnome */{ 0.15, 0.15, 0.10, 0.05,-0.05, 0.10, 0.15, 0.30, 0.20, 0.15},
/*Dwarf */{ 0.15, 0.20, 0.20, 0.10, 0.10,-0.05, 0.25, 0.35, 0.15, 0.30},
/*Half-Orc */{ 0.15, 0.20, 0.25, 0.15, 0.15, 0.30, 0.10, 0.15, 0.15, 0.25},
/*Half-Troll */{ 0.10, 0.15, 0.15, 0.10, 0.10, 0.30, 0.10, 0.10, 0.15, 0.25},
/*Phraint */{ 0.20, 0.25, 0.30, 0.25, 0.20, 0.15, 0.15, 0.15,-0.10, 0.20},
/*Dryad */{ 0.10, 0.05, 0.05, 0.05, 0.15, 0.30, 0.30, 0.25, 0.20,-0.05}
};
// { Classes...
// title, m_exp, adj_hd, mdis, msrh, mstl, mfos, mbth, mbthb, msav,(stat adjs),
// ??,??,??,??,??,??}
class_type class[MAX_CLASS] =
{
{"Warrior",0.00,10, 25,14, 1, 38,10, 8,10,{ 5,-2,-2, 2, 2,-1},
false,false,false,false,false,-10},
{"Mage", 0.30, 0, 30,16, 2, 36, 4, 4,25,{-5, 3, 0, 0,-2, 0},
false,true ,false,false,false,0},
{"Priest", 0.20, 3, 25,16, 2, 32, 6, 5,20,{ 0,-3, 3,-1, 1, 2},
true ,false,false,false,false,0},
{"Rogue", 0.10, 6, 45,32, 4, 16, 6,10,15,{ 2, 0,-2, 3, 1, 1},
false,false,false,true ,false,-5},
{"Ranger", 0.30, 4, 30,24, 3, 24, 6,10,20,{ 2, 0, 1, 1, 1, 2},
false,false,true ,false,false,-5},
{"Paladin",0.35, 6, 20,12, 1, 38, 8, 6,15,{ 3,-3, 1, 0, 2, 2},
true ,false,false,false,false,-5},
{"Druid", 0.20, 3, 25,16, 1, 32, 4, 7,20,{-1,-1, 2, 0, 0, 3},
false,false,true ,false,false,-5},
{"Bard", 0.30, 4, 30,22, 2, 28, 5, 6,20,{ 2, 1,-1, 2, 0, 3},
false,false,false,true ,false,-5},
{"Adventurer",0.40,4,30,24,3, 24, 6, 6,20,{ 2, 2,-1, 1, 1, 0},
false,true ,false,false,false,-5},
{"Monk", 0.10, 4, 45,24, 3, 24, 8, 6,25,{ 2, 0, 2, 3, 1, 1},
false,false,false,false,true,-5}
};
// { Each character class has a list of spells they can use. In }
// { cases the entire array is blank }
spell_type magic_spell[MAX_CLASS][MAX_SPELLS] =
{
{ // { Warrior }
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false}
},
{ // { Mage }
{"Magic Missile" , 1, 1, 5, 22,false}, //{ 1}
{"Detect Monsters" , 1, 1, 5, 23,false}, //{ 2}
{"Phase Door" , 1, 2, 4, 24,false}, //{ 3}
{"Light Area" , 1, 2, 4, 26,false}, //{ 4}
{"Cure Light Wounds" , 3, 3, 8, 25,false}, //{ 5}
{"Find Hidden Traps/Doors" , 3, 3, 6, 55,false}, //{ 6}
{"Stinking Cloud" , 3, 4, 8, 27,false}, //{ 7}
{"Confusion" , 3, 4, 6, 30,false}, //{ 8}
{"Lightning Bolt" , 5, 4, 25, 30,false}, //{ 9}
{"Trap/Door Destruction" , 5, 5, 30, 30,false}, //{10}
{"Sleep I" , 5, 5, 20, 30,false}, //{11}
{"Cure Poison" , 5, 5, 25, 35,false}, //{12}
{"Shadow Door" , 7, 6, 35, 35,false}, //{13}
{"Remove Curse" , 7, 6, 40, 50,false}, //{14}
{"Frost Bolt" , 7, 6, 50, 40,false}, //{15}
{"Create Food" , 7, 6, 50, 40,false}, //{16}
{"Infravision" , 7, 6, 50, 40,false}, //{17}
{"Invisibility" , 7, 6, 60, 35,false}, //{18}
{"Turn Stone to Mud" , 9, 7, 75, 44,false}, //{19}
{"Recharge Item I" , 9, 7, 90, 75,false}, //{20}
{"Sleep II" , 9, 7, 75, 45,false}, //{21}
{"Phantasmal Force" ,11, 7, 80, 50,false}, //{22}
{"Polymorph Other" ,11, 7,100, 45,false}, //{23}
{"Identify" ,11, 7, 75, 99,false}, //{24}
{"Ring of Frost" ,13, 7, 75, 45,false}, //{25}
{"Sleep III" ,13, 7, 90, 50,false}, //{26}
{"Hold Monster" ,15, 9,100, 50,false}, //{27}
{"Fire Bolt" ,15, 9,100, 50,false}, //{28}
{"Slow Creature" ,17, 9,125, 50,false}, //{29}
{"Protection from Magic" ,17, 9,125, 55,false}, //{30}
{"Frost Ball" ,19,12,150, 55,false}, //{31}
{"Death Spell" ,19,18,200, 55,false}, //{32}
{"Ring of Fire" ,21,12,175, 60,false}, //{33}
{"Recharge Item II" ,21,12,175, 90,false}, //{34}
{"Teleport Other" ,23,15,200, 60,false}, //{35}
{"Haste Self" ,25,15,250, 65,false}, //{36}
{"Fire Ball" ,28,18,350, 65,false}, //{37}
{"Power Word: Destruction" ,31,21,500, 80,false}, //{38}
{"Power Word: Kill" ,34,25,600, 80,false}, //{39}
{"Genocide" ,37,25,800, 95,false} //{40}
},
{ // { Priest }
{"Detect Evil" , 1, 1, 3, 10,false}, //{ 1}
{"Cure Light Wounds" , 1, 2, 4, 15,false}, //{ 2}
{"Bless" , 1, 2, 3, 20,false}, //{ 3}
{"Remove Fear" , 1, 2, 3, 25,false}, //{ 4}
{"Call Light" , 3, 2, 6, 25,false}, //{ 5}
{"Find Traps" , 3, 3, 8, 27,false}, //{ 6}
{"Detect Doors/Stairs" , 3, 3, 8, 27,false}, //{ 7}
{"Slow Poison" , 3, 3, 10, 28,false}, //{ 8}
{"Blind Creature" , 5, 4, 16, 29,false}, //{ 9}
{"Portal" , 5, 4, 20, 30,false}, //{10}
{"Cure Medium Wounds" , 5, 4, 20, 32,false}, //{11}
{"Ray of Sanctification" , 5, 4, 20, 40,false}, //{12}
{"Heroism" , 7, 4, 20, 40,false}, //{13}
{"Sanctuary" , 7, 5, 30, 36,false}, //{14}
{"Remove Curse" , 7, 6, 35, 38,false}, //{15}
{"Resist Heat and Cold" , 7, 7, 35, 38,false}, //{16}
{"Silence" , 9, 7, 40, 40,false}, //{17}
{"Resist Petrification" , 9, 7, 40, 40,false}, //{18}
{"Neutralize Poison" , 9, 7, 40, 38,false}, //{19}
{"Cure Serious Wounds" , 9, 7, 40, 40,false}, //{20}
{"Chant" ,11, 8, 20, 34,false}, //{21}
{"Sense Invisible" ,11, 8, 40, 42,false}, //{22}
{"Protection from Evil" ,11, 8, 50, 42,false}, //{23}
{"Earthquake" ,11, 9, 60, 55,false}, //{24}
{"Create Food and Drink" ,13, 9, 30, 38,false}, //{25}
{"Sense Surroundings" ,13,10, 60, 45,false}, //{26}
{"Orb of Draining" ,13,10, 40, 58,false}, //{27}
{"Cure Critical Wounds" ,15,11, 65, 45,false}, //{28}
{"Turn Undead" ,15,12, 80, 50,false}, //{29}
{"Holy Prayer" ,17,14, 90, 50,false}, //{30}
{"Dispel Undead" ,17,14,125, 55,false}, //{31}
{"Resist Paralysis" ,19,15,150, 55,false}, //{32}
{"Blade Barrier" ,21,16,175, 60,false}, //{33}
{"Dispel Evil" ,23,18,200, 70,false}, //{34}
{"Heal" ,25,20,250, 60,false}, //{35}
{"Resist Magic" ,27,22,300, 80,false}, //{36}
{"Holy of Thunder" ,30,23,400, 70,false}, //{37}
{"Glyph of Warding" ,33,24,500, 90,false}, //{38}
{"Hero's Feast" ,35,28,600, 95,false}, //{39}
{"Holy Word" ,39,32,800, 99,false} //{40}
},
{ // { Rogue }
{"Detect Monsters" , 3, 2, 6, 35,false},
{"Battle Song" , 3, 2, 7, 35,false},
{"Blink" , 3, 2, 8, 35,false},
{"Light Area" , 5, 4, 8, 35,false},
{"Find Hidden Doors/Traps" , 5, 5, 10, 45,false}, //{5}
{"Magical Jig" , 7, 8, 15, 40,false},
{"Detect Magic" , 7, 9, 20, 70,false},
{"" ,99,99, 0, 0,false},
{"Battle Dance" , 9,10, 25, 45,false},
{"Charm Monsters" , 9,11, 40, 50,false}, //{10}
{"Detect Curse" ,11,12, 30, 40,false},
{"Detect Invisible" ,11,12, 35, 40,false},
{"Cure Poison" ,13,14, 40, 45,false},
{"Invisibility" ,15,16, 50, 50,false},
{"Shadow Gate" ,17,18, 60, 55,false}, //{15}
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"Recharge Item" ,19,18, 70, 55,false},
{"Remove Curse" ,21,20, 50, 90,false},
{"Legend Lore" ,23,22, 80, 95,false}, //{20}
{"" ,99,99, 0, 0,false},
{"Detect Treasure" ,25,25, 60, 50,false},
{"Detect Object" ,25,25, 60, 55,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false}, //{25}
{"" ,99,99, 0, 0,false},
{"Word of Recall" ,27,27, 90, 60,false},
{"" ,99,99, 0, 0,false},
{"See Invisible" ,29,29,100, 65,false},
{"Magic Mapping" ,31,30,110, 70,false}, //{30}
{"" ,99,99, 0, 0,false},
{"Battle Frenzy" ,33,31,125, 70,false},
{"" ,99,99, 0, 0,false},
{"Resist Charm" ,35,32,150, 70,false},
{"Item Lore" ,37,33,200, 95,false}, //{35}
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false}
},
{ // { Ranger }
{"Moon Beam" , 1, 2, 3, 20,false},
{"Detect Monster" , 1, 2, 5, 33,false},
{"Battle Song" , 2, 3, 8, 35,false},
{"Light" , 2, 3, 13, 35,false},
{"Minor Cure" , 3, 4, 15, 40,false}, //{5}
{"Find Safe Path" , 4, 5, 10, 45,false},
{"Magical Jig" , 4, 5, 17, 45,false},
{"Warp Wood" , 4, 5, 17, 45,false},
{"Battle Dance" , 5, 5, 25, 40,false},
{"Cure Poison" , 5, 5, 30, 48,false}, //{10}
{"Charm" , 7, 5, 35, 35,false},
{"Detect Curse" , 7, 6, 40, 45,false},
{"Summon Insects" , 7, 7, 40, 50,false},
{"Call Lightning" , 9, 9, 40, 55,false},
{"Magic Resistance" , 9, 10, 45, 45,false}, //{15}
{"" ,99, 99, 0, 0,false},
{"Create Food" , 9, 10, 40, 55,false},
{"Remove Curse" ,11, 10, 50, 45,false},
{"Infravision" ,11, 10, 50, 50,false},
{"Major Cure" ,11, 11, 55, 50,false}, //{20}
{"Resist Petrification" ,13, 11, 60, 55,false},
{"Transplant" ,13, 11, 60, 45,false},
{"" ,99, 99, 0, 0,false},
{"Dispel Magic" ,15, 11, 60, 58,false},
{"Fire Stream" ,15, 11, 60, 70,false}, //{25}
{"Protection from Nature" ,17, 12, 65, 55,false},
{"Stone to Mud" ,17, 12, 65, 55,false},
{"Goodberry" ,19, 14, 70, 65,false},
{"Creeping Doom" ,37, 21,120, 65,false},
{"Pillar of Fire" ,23, 15, 80, 65,false}, //{30}
{"Word of Recall" ,25, 15, 85, 50,false},
{"Lightning Ball" ,27, 15, 90, 90,false},
{"Word of Blindness" ,29, 16, 95, 55,false},
{"Protection from Monsters" ,31, 20,100, 60,false},
{"" ,99, 99, 0, 0,false},
{"" ,99, 99, 0, 0,false},
{"Resist Charm" ,33, 22,110, 65,false},
{"Battle Frenzy" ,35, 25,125, 65,false},
{"Dispel Monster" ,37, 30,200, 70,false},
{"" ,99, 99, 0, 0,false}
},
{ // { Paladin }
{"Detect Evil" , 1, 1, 4, 30,false},
{"Cure Light Wounds" , 2, 2, 8, 35,false},
{"Bless" , 3, 3, 12, 35,false},
{"Remove Fear" , 5, 3, 20, 35,false},
{"Call Light" , 5, 4, 20, 35,false},
{"Find Traps" , 7, 5, 25, 40,false},
{"Detect Doors/Stairs" , 7, 5, 25, 40,false},
{"Slow Poison" , 9, 7, 30, 40,false}, //{8}
{"Blind Creature" , 9, 7, 30, 40,false},
{"Portal" , 9, 8, 30, 40,false},
{"Cure Medium Wounds" ,11, 9, 40, 40,false},
{"Ray of Sanctification" ,11, 9, 40, 40,false},
{"Heroism" ,11, 9, 40, 40,false},
{"Sanctuary" ,13,10, 40, 45,false},
{"Remove Curse" ,13,11, 50, 45,false},
{"Resist Heat and Cold" ,15,13, 60, 45,false},
{"Silence" ,15,13, 60, 45,false},
{"Resist Petrification" ,15,13, 60, 50,false}, //{18}
{"Neutralize Poison" ,15,15, 60, 50,false},
{"Cure Serious Wounds" ,17,15, 70, 50,false},
{"Chant" ,17,15, 70, 50,false},
{"Sense Invisible" ,19,15, 75, 50,false},
{"Protection from Evil" ,19,15, 75, 50,false},
{"Earthquake" ,21,17, 80, 50,false},
{"Create Food and Drink" ,21,10, 50, 45,false},
{"Sense Surroundings" ,23,17, 80, 50,false},
{"Orb of Draining" ,23,20, 70, 85,false},
{"Cure Critical Wounds" ,25,20, 80, 50,false},
{"Turn Undead" ,25,21, 90, 50,false},
{"Holy Prayer" ,27,22,100, 50,false},
{"Dispel Undead" ,29,24,110, 60,false},
{"Resist Paralysis" ,31,26,125, 55,false},
{"Blade Barrier" ,33,27,150, 60,false},
{"Dispel Evil" ,35,28,175, 70,false},
{"Heal" ,37,32,200, 75,false},
{"Resist Magic" ,38,32,250, 75,false},
{"Holy Thunder" ,39,30,250, 80,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false},
{"" ,99,99, 0, 0,false}
},
{ // { Druid }
{"Moon Beam" ,1, 1, 3, 15,false}, //{ 1}
{"Detect Monster" ,1, 1, 4, 15,false},
{"Battle Song" ,1, 2, 4, 20,false},
{"Light" ,1, 2, 4, 25,false},
{"Minor Cure" ,3, 3, 8, 25,false}, //{ 5}
{"Find Safe Path" ,3, 3, 8, 28,false},
{"Magical Jig" ,3, 3, 10, 27,false},
{"Warp Wood" ,3, 4, 12, 29,false},
{"Battle Dance" ,5, 4, 20, 30,false},
{"Cure Poison" ,5, 4, 25, 30,false}, //{10}
{"Charm" ,5, 5, 35, 45,false},
{"Detect Curse" ,5, 5, 40, 50,false},
{"Summon Insects" ,7, 5, 35, 35,false},
{"Call Lightning" ,7, 5, 35, 38,false},
{"Magic Resistance" ,7, 6, 45, 40,false}, //{15}
{"Starlight" ,7, 6, 45, 40,false},
{"Create Food" ,9, 6, 40, 40,false},
{"Remove Curse" ,9, 6, 45, 55,false},
{"Infravision" ,9, 7, 60, 40,false},
{"Major Cure" ,9, 7, 70, 40,false}, //{20}
{"Resist Petrification" ,11, 7, 60, 45,false},
{"Transplant" ,11, 8, 70, 55,false},
{"Sunray" ,11, 9, 70, 60,false},
{"Dispel Magic" ,11, 9, 80, 50,false},
{"Fire Stream" ,11, 9, 80, 65,false}, //{25}
{"Protection from Nature" ,13, 9, 90, 40,false},
{"Stone to Mud" ,13, 9,100, 50,false},
{"Goodberry" ,15, 11,100, 50,false},
{"Creeping Doom" ,33, 17,200, 65,false},
{"Pillar of Fire" ,15, 11,110, 55,false}, //{30}
{"Word of Recall" ,17, 11,100, 60,false},
{"Lightning Ball" ,17, 12,100, 55,false},
{"Word of Blindness" ,19, 12,120, 55,false},
{"Protection from Monsters" ,21, 14,140, 55,false},
{"Control Temperature" ,23, 17,160, 60,false},
{"Ring of Fire" ,25, 19,180, 75,false},
{"Resist Charm" ,27, 21,200, 75,false},
{"Battle Frenzy" ,29, 23,300, 70,false},
{"Dispel Monster" ,31, 25,400, 80,false},
{"Note of Destruction" ,34, 27,500, 85,false}
},
{ // { Bards }
{"Detect Monsters" , 1, 1, 6, 35,false}, //{ 1}
{"Battle Song" , 1, 2, 7, 35,false}, //{ 2}
{"Blink" , 1, 2, 8, 35,false}, //{ 3}
{"Light Area" , 1, 2, 8, 35,false}, //{ 4}
{"Detect Hidden Doors/Traps" , 3, 3, 10, 45,false}, //{ 5}
{"Magical Jig" , 3, 4, 20, 40,false}, //{ 6}
{"Detect Magic" , 3, 4, 50, 60,false}, //{ 7}
{"Minor Cure" , 3, 4, 20, 40,false}, //{ 8}
{"Battle Dance" , 5, 5, 30, 45,false}, //{ 9}
{"Charm Monsters" , 5, 5, 40, 40,false}, //{10}
{"Detect Curse" , 5, 9, 60, 50,false}, //{11}
{"Detect Invisible" , 7, 8, 40, 45,false}, //{12}
{"Cure Poison" , 7, 8, 40, 45,false}, //{13}
{"Invisibility" , 7,11, 60, 55,false}, //{14}
{"Teleport Self" , 9,10, 60, 50,false}, //{15}
{"Infravision" , 9,11, 50, 55,false}, //{16}
{"Physical Humor" , 9,11, 70, 55,false}, //{17}
{"Recharge Item" ,11,11, 60, 85,false}, //{18}
{"Remove Curse" ,13,12, 50, 55,false}, //{19}
{"Legend Lore" ,11,13, 80, 99,false}, //{20}
{"Mass Charm" ,11,12, 70, 55,false}, //{21}
{"Detect Treasure" ,13,11, 60, 80,false}, //{22}
{"Detect Object" ,13,11, 60, 80,false}, //{23}
{"Resist Petrification" ,15,12, 70, 60,false}, //{24}
{"Create Food and Drink" ,15,13, 80, 60,false}, //{25}
{"Panic" ,15,15, 80, 60,false}, //{26}
{"Word of Recall" ,17,15, 80, 60,false}, //{27}
{"Protection from Nature" ,17,16, 80, 65,false}, //{28}
{"See Invisible" ,17,16, 80, 60,false}, //{29}
{"Magic Mapping" ,19,18, 90, 65,false}, //{30}
{"Joke of Death" ,19,18, 80, 60,false}, //{31}
{"Battle Frenzy" ,19,18, 90, 80,false}, //{32}
{"Slow Creature" ,21,19,100, 65,false}, //{33}
{"Resist Charm" ,23,22,120, 65,false}, //{34}
{"Item Lore" ,25,20,110, 90,false}, //{35}
{"Song of Protection" ,27,25,200, 70,false}, //{36}
{"Last Laugh" ,29,23,150, 70,false}, //{37}
{"Teleport Level" ,31,27,300, 75,false}, //{38}
{"Clairvoyance" ,35,29,500, 92,false}, //{39}
{"Song of Power" ,39,32,800, 97,false} //{40}
},
{ // { Adventurer }
{"Magic Missile" , 3, 1, 6, 30,false}, //{ 1}
{"Detect Monsters" , 3, 2, 6, 35,false}, //{ 2}
{"Phase Door" , 3, 2, 8, 35,false}, //{ 3}
{"Light Area" , 5, 3, 8, 26,false}, //{ 4}
{"Cure Light Wounds" , 5, 3, 8, 25,false}, //{ 5}
{"Find Hidden Traps/Doors" , 7, 4, 10, 45,false}, //{ 6}
{"Stinking Cloud" , 7, 6, 24, 40,false}, //{ 7}
{"Confusion" , 9, 6, 20, 40,false}, //{ 8}
{"Lightning Bolt" , 9, 7, 30, 40,false}, //{ 9}
{"Trap/Door Destruction" ,11, 8, 30, 45,false}, //{10}
{"Sleep I" ,11, 8, 40, 40,false}, //{11}
{"Cure Poison" ,13, 9, 40, 45,false}, //{12}
{"Shadow Door" ,13,10, 50, 45,false}, //{13}
{"Remove Curse" ,15,11, 50, 55,false}, //{14}
{"Frost Bolt" ,15,12, 60, 50,false}, //{15}
{"Create Food" ,17,12, 60, 55,false}, //{16}
{"Infravision" ,17,12, 60, 50,false}, //{17}
{"Invisibility" ,17,13, 60, 50,false}, //{18}
{"Turn Stone to Mud" ,19,15, 70, 50,false}, //{19}
{"Recharge Item I" ,19,17, 70, 90,false}, //{20}
{"Sleep II" ,21,17, 70, 55,false}, //{21}
{"Phantasmal Force" ,21,19, 60, 50,false}, //{22}
{"Polymorph Other" ,23,19, 70, 60,false}, //{23}
{"Identify" ,23,25, 70, 95,false}, //{24}
{"Ring of Frost" ,25,19, 80, 60,false}, //{25}
{"Sleep III" ,25,20, 80, 60,false}, //{26}
{"Hold Monster" ,27,20, 80, 50,false}, //{27}
{"Fire Bolt" ,27,20, 80, 60,false}, //{28}
{"Slow Creature" ,29,21, 90, 65,false}, //{29}
{"Protection From Magic" ,31,21, 90, 70,false}, //{30}
{"Frost Ball" ,31,21, 90, 65,false}, //{31}
{"Death Spell" ,33,21,100, 60,false}, //{32}
{"Ring of Fire" ,35,21,110, 65,false}, //{33}
{"Recharge Item II" ,35,23,120, 95,false}, //{34}
{"Teleport Other" ,37,25,150, 70,false}, //{35}
{"Haste Self" ,37,25,200, 75,false}, //{36}
{"Fire Ball" ,39,27,250, 80,false}, //{37}
{"Power Word: Destruction" ,39,30,300, 95,false}, //{38}
{"" ,99,99, 0, 0,false}, //{39}
{"" ,99,99, 0, 0,false} //{40}
},
{ // { Monk }
{"Self-Healing" , 3, 3, 5, 50,false},
{"Courage" , 5, 5, 10, 50,false},
{"Slow Poison" , 7, 7, 10, 50,false},
{"Negate Hunger" , 9, 9, 15, 50,false},
{"Sense Enemies" ,11,11, 20, 50,false},
{"Self-Healing II" ,13,13, 20, 50,false},
{"Night Vision" ,15,15, 30, 50,false},
{"Poison Immunity" ,17,17, 40, 50,false},
{"See Invisible" ,19,19, 50, 50,false},