ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/arch/treasures/random.trs
Revision: 1.12
Committed: Thu Oct 15 16:00:37 2009 UTC (14 years, 7 months ago) by sf-marcmagus
Branch: MAIN
CVS Tags: rel-2_82
Changes since 1.11: +26 -3 lines
Log Message:
Add inscribable arches for other book types.
Use 'container'/weight_limit to define capacity of inscribables in characters.
Add treasures/arches to specify books with/without text.
Scorn and Navar Public Libraries use these so they don't generate inscribables.
Fix bug allowing theft of blank books from libraries.
Fix bug preventing adding an adjective to a book name if the titles are used up.
Change error message on reading empty book to be more clear.
Change error message on failed inscription [too much text] to be more informative.
Looking at an inscribable will tell you what you can do with it/what its capacity is in a hint.
Fix broken debug statements in book generation.

File Contents

# User Rev Content
1 elmex 1.1 # skill scrolls
2 root 1.2 # better scrolls are harder to find
3 elmex 1.1 # ordered by skill names
4     treasureone random_knowledge
5     arch scroll_alchemy
6     chance 10
7     more
8     arch scroll_bargaining
9     chance 5
10     more
11     arch scroll_bowyer
12     chance 10
13     more
14     # clawing is not something you can learn
15     arch scroll_climbing
16     chance 10
17     more
18     arch scroll_disarm_traps
19     chance 10
20     more
21     arch scroll_evocation
22     chance 5
23     more
24     arch scroll_find_traps
25     chance 10
26     more
27     # flame touch is not something you can learn
28     arch scroll_hiding
29     chance 9
30     more
31 root 1.2 # the inscription skill is only available as a pen
32 root 1.7 arch stylus
33 elmex 1.1 chance 10
34     more
35     arch scroll_jumping
36     chance 10
37     more
38     arch scroll_karate
39     chance 8
40     more
41     # levitation is not something to be learned
42     arch scroll_literacy
43     chance 15
44     more
45     # not knowledge per se, but is a random skill
46     arch lockpicks
47     chance 8
48     more
49     # meditation can not be learned
50     arch scroll_missile_weap
51     chance 15
52     more
53     arch scroll_one_handed_weapons
54     chance 10
55     more
56     arch scroll_oratory
57     chance 5
58     more
59     arch scroll_praying
60     chance 15
61     more
62     arch scroll_punching
63     chance 5
64     more
65     arch scroll_pyromancy
66     chance 5
67     more
68     arch scroll_sense_curse
69     chance 5
70     more
71     arch scroll_sense_mag
72     chance 5
73     more
74     # set traps is disabled
75     arch scroll_singing
76     chance 5
77     more
78     arch scroll_smithing
79     chance 5
80     more
81     arch scroll_sorcery
82     chance 5
83     more
84     arch scroll_stealing
85     chance 9
86     more
87     arch scroll_summoning
88     chance 5
89     more
90     arch scroll_thaumaturgy
91     chance 9
92     more
93     # throwing is a native ability, but give slight chance for unclassed players
94     arch scroll_throwing
95     chance 1
96     more
97     arch scroll_two_handed_weapons
98     chance 10
99     more
100     # use magic is a native ability, but give slight chance for unclassed players
101     arch scroll_use_magic_item
102     chance 1
103     more
104     arch scroll_woodsman
105     chance 10
106     end
107     treasureone random_shop
108     list random_weapon
109     chance 15
110     more
111     list random_armour
112     chance 15
113     more
114     list random_food
115     chance 15
116     more
117     list random_special
118     chance 5
119     end
120     treasureone random_weapon
121     list missile_weapons
122     chance 5
123     more
124     list melee_weapons
125     chance 10
126     end
127     treasureone random_armour
128     arch b_full_helmet
129     magic 4
130     chance 5
131     more
132     arch b_helmet
133     magic 4
134     chance 5
135     more
136     arch b_horned_helmet
137     magic 4
138     chance 5
139     more
140     arch b_gauntlets
141     magic 4
142     chance 5
143     more
144     arch b_plate_mail
145     magic 4
146     chance 5
147     more
148     arch b_scale_mail
149     magic 4
150     chance 5
151     more
152     arch b_shield
153     magic 4
154     chance 5
155     more
156     arch b_small_shield
157     magic 4
158     chance 5
159     more
160     #
161     arch ring_mail
162     magic 4
163     chance 5
164     more
165     arch ring_mail
166     magic 4
167     chance 5
168     more
169     arch plate_mail
170     magic 4
171     chance 5
172     more
173     arch robe
174     magic 4
175     chance 5
176     more
177     arch leather_armour
178     magic 4
179     chance 5
180     more
181     arch scale_mail
182     magic 4
183     chance 5
184     more
185     arch ring_mail2
186     magic 3
187     chance 5
188     more
189     arch chain_mail
190     magic 3
191     chance 5
192     more
193     arch full_helmet
194     magic 2
195     chance 5
196     more
197     arch spiked_shield
198     magic 1
199     chance 1
200     more
201     arch horned_helmet
202     magic 1
203     chance 5
204     more
205     arch helmet
206     magic 2
207     chance 5
208     more
209     arch bighorned_helmet
210     magic 1
211     chance 5
212     more
213     arch shield
214     magic 2
215     chance 5
216     more
217     arch small_shield
218     magic 1
219     chance 5
220     more
221     arch high_shield
222     magic 2
223     chance 5
224     more
225     arch round_shield
226     magic 1
227     chance 5
228     more
229     arch low_boots
230     magic 1
231     chance 5
232     more
233     arch gauntlets
234     magic 2
235     chance 1
236     more
237     arch high_boots
238     magic 3
239     chance 3
240     more
241     arch high_boots_b
242     magic 3
243     chance 1
244     more
245     arch high_boots_w
246     magic 3
247     chance 1
248     more
249     arch tunic
250     magic 3
251     chance 1
252     more
253     arch gloves
254     magic 2
255     chance 2
256     more
257     arch gloves_b
258     magic 2
259     chance 1
260     more
261     arch gloves_w
262     magic 2
263     chance 1
264     more
265     arch lapron
266     magic 1
267     chance 1
268     more
269     arch cloak
270     chance 10
271     end
272     treasureone random_food
273     arch food
274     chance 35
275     more
276     arch booze
277     chance 14
278     more
279     arch poison
280     chance 13
281     more
282     arch water
283     chance 8
284     more
285     arch apple
286     chance 3
287     more
288     arch wine
289     chance 3
290     more
291     arch coffee
292     chance 1
293     more
294     arch chocolate
295     chance 3
296     more
297     arch carrot
298     chance 1
299     more
300     arch fishfood
301     chance 4
302     more
303     arch mandrake_root
304     chance 1
305     more
306     arch cabbage
307     chance 2
308     more
309     arch potato
310     chance 3
311     more
312     arch loaf
313     chance 8
314     more
315     arch roast_bird
316     chance 3
317     more
318     arch mint
319     chance 1
320     more
321     arch clover
322     chance 1
323     more
324     arch onion
325     chance 1
326     more
327     arch orange
328     chance 1
329     more
330     arch cake
331     chance 8
332     more
333     arch waybread
334     chance 4
335     end
336     treasure random_mushroom
337     arch mushroom_1
338     chance 50
339     no
340     arch mushroom_2
341     chance 50
342     no
343     arch mushroom_3
344     chance 50
345     no
346     arch mandrake_root
347     chance 10
348     end
349     end
350     end
351     end
352     # this is used for shop_special
353     treasureone random_special
354     arch scroll_new
355     nrof 3
356     chance 5
357     more
358     arch scroll_new
359     nrof 2
360     chance 5
361     more
362     arch scroll_new
363     chance 10
364     more
365     arch torch_unlit
366     nrof 8
367     chance 3
368     more
369     arch torch_unlit
370     nrof 3
371     chance 7
372     more
373     arch flint_and_steel
374     chance 5
375     more
376     arch amulet
377     chance 10
378     more
379     arch wand
380     chance 15
381     more
382     arch staff
383     chance 5
384     more
385     arch holy_symbol
386     chance 3
387     more
388     arch ring
389     chance 5
390     more
391     list random_books
392     chance 5
393     more
394     arch emerald
395     chance 5
396     nrof 8
397     more
398     arch sapphire
399     chance 5
400     nrof 5
401     more
402     arch gem
403     chance 5
404     nrof 1
405     more
406     arch ruby
407     chance 5
408     nrof 3
409     more
410     arch pearl
411     chance 5
412     nrof 16
413     more
414     list random_good_stuff
415     magic 10
416     chance 5
417     more
418     list random_good_stuff
419     magic 8
420     chance 5
421     more
422     list random_good_stuff
423     magic 5
424     chance 5
425     more
426     arch potion_heroism
427     chance 5
428     end
429     treasureone random_coin
430 elmex 1.9 arch silvercoin
431 elmex 1.1 chance 5
432 elmex 1.9 nrof 50
433 elmex 1.1 more
434     arch goldcoin
435     chance 5
436 elmex 1.9 nrof 1
437 elmex 1.1 more
438 elmex 1.9 arch silvercoin
439 elmex 1.1 chance 5
440 elmex 1.9 nrof 150
441 elmex 1.1 more
442     arch goldcoin
443     chance 5
444 elmex 1.9 nrof 2
445 elmex 1.1 more
446 elmex 1.9 arch silvercoin
447 elmex 1.1 chance 5
448 elmex 1.9 nrof 250
449 elmex 1.1 more
450     arch silvercoin
451     chance 5
452     nrof 25
453     more
454     arch silvercoin
455     chance 5
456     nrof 50
457     more
458     arch silvercoin
459     chance 5
460     nrof 75
461     more
462     arch silvercoin
463     chance 5
464     nrof 100
465     more
466     arch silvercoin
467     chance 5
468     nrof 150
469     more
470 elmex 1.9 arch goldcoin
471 elmex 1.1 chance 5
472 elmex 1.9 nrof 5
473 elmex 1.1 more
474 elmex 1.9 arch goldcoin
475 elmex 1.1 chance 5
476 elmex 1.9 nrof 1
477 elmex 1.1 more
478 elmex 1.9 arch goldcoin
479 elmex 1.1 chance 5
480 elmex 1.9 nrof 2
481 elmex 1.1 more
482 elmex 1.9 arch goldcoin
483 elmex 1.1 chance 5
484 elmex 1.9 nrof 3
485 elmex 1.1 end
486     treasureone random_wealth
487     arch goldcoin
488     chance 5
489     nrof 5
490     more
491     arch goldcoin
492     chance 5
493     nrof 10
494     more
495     arch goldcoin
496     chance 5
497     nrof 15
498     more
499     arch goldcoin
500     chance 5
501     nrof 20
502     more
503     arch goldcoin
504     chance 5
505     nrof 25
506     more
507     arch silvercoin
508     chance 5
509     nrof 25
510     more
511     arch silvercoin
512     chance 5
513     nrof 50
514     more
515     arch silvercoin
516     chance 5
517     nrof 75
518     more
519     arch silvercoin
520     chance 5
521     nrof 100
522     more
523     arch silvercoin
524     chance 5
525     nrof 150
526     more
527 elmex 1.9 arch silvercoin
528     chance 5
529     nrof 50
530     more
531     arch goldcoin
532 elmex 1.1 chance 5
533     nrof 1
534     more
535 elmex 1.9 arch goldcoin
536 elmex 1.1 chance 5
537     nrof 2
538     more
539 elmex 1.9 arch goldcoin
540 elmex 1.1 chance 5
541 elmex 1.9 nrof 3
542 elmex 1.1 more
543     arch gem
544     chance 5
545     nrof 1
546     more
547     arch gem
548     chance 5
549     nrof 1
550     more
551     arch pearl
552     chance 5
553     nrof 2
554     more
555     arch pearl
556     chance 5
557     nrof 4
558     more
559     arch ruby
560     chance 5
561     nrof 1
562     more
563     arch ruby
564     chance 5
565     nrof 2
566     more
567     arch sapphire
568     chance 5
569     nrof 1
570     more
571     arch sapphire
572     chance 5
573     nrof 3
574     more
575     arch emerald
576     chance 5
577     nrof 2
578     more
579     arch emerald
580     chance 5
581     nrof 5
582     end
583     treasureone random_gem
584     arch gem
585     chance 5
586     nrof 1
587     more
588     arch gem
589     chance 5
590     nrof 2
591     more
592     arch pearl
593     chance 5
594     nrof 4
595     more
596     arch pearl
597     chance 5
598     nrof 6
599     more
600     arch ruby
601     chance 5
602     nrof 2
603     more
604     arch ruby
605     chance 5
606     nrof 4
607     more
608     arch sapphire
609     chance 5
610     nrof 2
611     more
612     arch sapphire
613     chance 5
614     nrof 4
615     more
616     arch emerald
617     chance 5
618     nrof 10
619     more
620     arch emerald
621     chance 5
622     nrof 4
623     end
624     treasureone random_plant
625     arch rose_pink
626     nrof 5
627     chance 8
628     more
629     arch rose_yellow
630     nrof 5
631     chance 12
632     more
633     arch rose_white
634     nrof 4
635     chance 10
636     more
637     arch rose_red
638     nrof 3
639     chance 8
640     more
641     arch flowers_permanent
642     chance 15
643     nrof 5
644     more
645     arch clover
646     nrof 2
647     chance 5
648     more
649     arch mint
650     chance 5
651     more
652     arch mandrake_root
653     chance 3
654     more
655     list random_mushroom
656     chance 10
657     magic 15
658     end
659     treasureone random_alchemy
660     arch cauldron
661     chance 18
662     more
663     arch cauldron
664     chance 3
665     magic 5
666     more
667     list random_books
668     chance 10
669     more
670     arch scroll_alchemy
671     chance 2
672     more
673     arch min_oil
674     chance 12
675     nrof 5
676     more
677     list shop_gems
678     chance 3
679     magic 5
680     more
681     arch phil_sulphur
682     chance 4
683     nrof 3
684     more
685     arch phil_salt
686     chance 5
687     nrof 4
688     more
689     arch phil_phosphorus
690     chance 3
691     nrof 2
692     more
693     arch phil_oil
694     chance 5
695     nrof 3
696     more
697     arch water
698     chance 3
699     nrof 3
700     more
701     list random_plant
702     chance 10
703     magic 5
704     more
705     arch mercury
706     chance 8
707     more
708     arch lead
709     chance 8
710     more
711     arch true_lead
712     chance 2
713     more
714     arch fix_mercury
715     chance 1
716     end
717 elmex 1.4 treasureone random_stat_potion
718 elmex 1.1 arch potionstr
719 elmex 1.4 chance 14
720 elmex 1.1 more
721     arch potionint
722 elmex 1.4 chance 14
723 elmex 1.1 more
724     arch potioncha
725 elmex 1.4 chance 14
726 elmex 1.1 more
727     arch potionwis
728 elmex 1.4 chance 14
729 elmex 1.1 more
730     arch potioncon
731 elmex 1.4 chance 14
732 elmex 1.1 more
733     arch potiondex
734 elmex 1.4 chance 14
735 elmex 1.1 more
736     arch potionpow
737 elmex 1.4 chance 14
738     end
739     treasureone random_potion
740     list random_stat_potion
741 elmex 1.6 chance 1
742 elmex 1.1 more
743     list shop_potions
744 elmex 1.6 chance 90
745 elmex 1.1 more
746 elmex 1.4 list random_good_stuff
747 elmex 1.6 chance 6
748 elmex 1.1 more
749     list uncommon_items
750 elmex 1.6 chance 3
751 elmex 1.1 end
752     treasureone random_good_stuff
753 elmex 1.3 list none
754 elmex 1.1 chance 5
755     more
756     arch bracers_ac
757     magic 4
758     chance 10
759     more
760     arch mithril_chainmail
761     magic 4
762     chance 1
763     more
764     arch lockpicks
765     chance 10
766     more
767     list rare_artifacts
768     magic 14
769     chance 5
770     more
771     list uncommon_artifacts
772     magic 13
773     chance 5
774     more
775     list uncommon_artifacts
776     magic 7
777     chance 5
778     more
779     arch potion_fire
780     chance 5
781     more
782     arch potion_cold
783     chance 5
784     more
785     arch potion_heal
786     chance 5
787     more
788     arch potion_magic
789     chance 5
790     more
791     arch potion_restoration
792     chance 5
793     more
794     arch rod_light
795     chance 5
796     more
797     list uncommon_items
798     magic 2
799     chance 5
800     more
801     list uncommon_items
802     magic 4
803     chance 5
804     more
805     list uncommon_items
806     magic 6
807     chance 5
808     more
809     list uncommon_items
810     magic 8
811     chance 5
812     more
813     arch ring_nodrain
814     chance 5
815     end
816     treasureone random_spells
817     arch scroll_new
818     chance 15
819     nrof 3
820     more
821     arch wand
822     chance 10
823     more
824     arch staff
825     chance 5
826     more
827     list random_books
828     chance 5
829     end
830     treasureone random_talisman
831     arch ring
832     chance 40
833     more
834     arch amulet
835     chance 30
836     more
837     list talisman
838     chance 5
839     more
840     list random_good_stuff
841     chance 5
842     end
843     treasureone random_artifact
844     list uncommon_artifacts
845     chance 10
846     more
847     list rare_artifacts
848     chance 5
849     end
850     treasureone uncommon_items
851     arch horn
852     chance 5
853     more
854     arch horn2
855     chance 5
856     more
857     arch crown
858     magic 3
859     chance 15
860     more
861     arch rod_light
862     chance 35
863     more
864     arch rod_heavy
865     chance 10
866     more
867     arch lockpicks
868     chance 5
869     more
870 elmex 1.3 list none
871 elmex 1.1 chance 25
872     end
873     treasureone random_stone
874     arch mountain_stone
875     chance 15
876     nrof 3
877     more
878     arch river_stone
879     chance 20
880     nrof 6
881     more
882     arch field_stone
883     chance 25
884     nrof 6
885     more
886     arch largenugget
887     chance 5
888     nrof 3
889     more
890     arch smallnugget
891     chance 15
892     nrof 5
893     end
894     treasureone random_inorganic
895     list random_minerals
896     chance 35
897     more
898     list random_stone
899     chance 40
900     more
901     arch rock2
902     chance 25
903     end
904     treasureone random_minerals
905     arch largenugget
906     chance 2
907     nrof 3
908     more
909     arch smallnugget
910     chance 5
911     nrof 5
912     more
913     arch gypsum
914     chance 10
915     nrof 3
916     more
917     arch pyrite
918     chance 10
919     nrof 3
920     more
921     arch cinnabar
922     chance 8
923     nrof 2
924     more
925     arch salt
926     chance 15
927     nrof 5
928     more
929     arch phosphorus
930     chance 10
931     nrof 4
932     more
933     arch sulphur
934     chance 10
935     nrof 4
936     end
937     treasureone random_books
938     arch cleric_book
939 elmex 1.10 chance 19
940 elmex 1.1 more
941     arch evoker_book
942     chance 15
943     more
944     arch pyro_book
945     chance 15
946     more
947     arch sorcerer_book
948     chance 15
949     more
950     arch summoner_book
951     chance 15
952     more
953 elmex 1.10 arch alchemist_book
954     chance 1
955     more
956 elmex 1.1 list random_read
957     chance 5
958     end
959     #
960     treasureone random_read
961 sf-marcmagus 1.12 list random_read_text
962     chance 85
963     more
964     list random_read_empty
965     chance 15
966     end
967     treasureone random_read_text
968     arch book_read
969     chance 75
970 root 1.8 more
971 elmex 1.1 arch tome
972 sf-marcmagus 1.12 chance 40
973 elmex 1.1 more
974     arch book_clasp
975     chance 65
976     more
977     arch scroll
978     chance 65
979     more
980     arch scroll_2
981     chance 35
982     end
983 sf-marcmagus 1.12 treasureone random_read_empty
984     arch book_empty
985     chance 75
986     more
987     arch tome_empty
988     chance 40
989     more
990     arch book_clasp_empty
991     chance 65
992     more
993     arch scroll_read_empty
994     chance 65
995     more
996     arch scroll_2_empty
997     chance 35
998     end
999 elmex 1.1 # list 16. Make the improve weapon scrolls possibly, but just give
1000     # them a very low chance. In the old method, they were supposed to
1001     # appear in shops, but never did, due to how the code worked out.
1002     treasureone random_scroll
1003     arch scroll_new
1004     chance 50
1005     nrof 5
1006     more
1007     arch scroll_new
1008     chance 100
1009     nrof 4
1010     more
1011     arch scroll_new
1012     chance 150
1013     nrof 3
1014     more
1015     arch scroll_new
1016     chance 100
1017     nrof 2
1018     more
1019     arch scroll_new
1020     chance 250
1021     more
1022 root 1.8 arch scroll_empty
1023     chance 50
1024     more
1025 elmex 1.1 arch prepare_weapon
1026     chance 3
1027     more
1028     arch improve_cha
1029     chance 2
1030     more
1031     arch improve_con
1032     chance 2
1033     more
1034     arch improve_damage
1035     chance 4
1036     more
1037     arch improve_dex
1038     chance 2
1039     more
1040     arch improve_enchantment
1041     chance 2
1042     more
1043     arch improve_int
1044     chance 2
1045     more
1046     arch improve_pow
1047     chance 2
1048     more
1049     arch improve_str
1050     chance 2
1051     more
1052     arch improve_weight
1053     chance 5
1054     more
1055     arch improve_wis
1056     chance 2
1057     more
1058     list random_knowledge
1059     chance 3
1060     more
1061     arch ench_armour
1062     chance 10
1063     more
1064     list random_read
1065     chance 25
1066     end
1067     treasure random_amulet
1068     arch amulet
1069     chance 98
1070     no
1071     list talisman
1072     end
1073     end
1074     treasureone random_wands
1075     arch wand
1076     chance 95
1077     more
1078     arch staff
1079     chance 30
1080     more
1081     arch rod_light
1082     chance 5
1083     more
1084     arch rod_heavy
1085     chance 1
1086     end
1087 root 1.2 # uncommon artifacts
1088 elmex 1.1 treasureone uncommon_artifacts
1089     arch potion_invulnerability
1090     chance 5
1091     more
1092     arch mjoellnir
1093     chance 5
1094     more
1095     arch bonecrusher
1096     chance 5
1097     more
1098     arch firebrand
1099     chance 5
1100     more
1101     arch frostbrand
1102     chance 5
1103     more
1104     arch deathbringer
1105     chance 5
1106     more
1107     arch dragonslayer
1108     chance 5
1109     more
1110     arch skullcleaver
1111     chance 5
1112     more
1113     arch demonbane
1114     chance 5
1115     more
1116     arch sting
1117     chance 5
1118     more
1119     arch levitationboots
1120     chance 5
1121     more
1122     arch reflector
1123     chance 5
1124     more
1125     arch holy_shield
1126     chance 5
1127     more
1128     arch girdle_dam
1129     chance 5
1130     more
1131     arch dragon_mail
1132     chance 5
1133     more
1134     arch dragon_shield
1135     chance 5
1136     more
1137     arch helmet_of_xrays
1138     chance 5
1139     more
1140     arch amulet_lifesave
1141     chance 5
1142     more
1143     arch elvenboots
1144     chance 5
1145     end
1146     treasureone rare_artifacts
1147 elmex 1.3 list none
1148 elmex 1.1 chance 20
1149     more
1150     arch elven_bow
1151     chance 5
1152     more
1153     arch helmet_of_brilliance
1154     chance 5
1155     more
1156     arch holy_avenger
1157     chance 5
1158     more
1159     arch darkblade
1160     chance 5
1161     more
1162     arch excalibur
1163     chance 5
1164     more
1165     arch stormbringer
1166     chance 5
1167     more
1168     arch mournblade
1169     chance 5
1170     more
1171     arch defender
1172     chance 5
1173     more
1174     arch speedboots
1175     chance 5
1176     more
1177     arch girdle_str
1178     chance 5
1179     more
1180     arch girdle_con
1181     chance 5
1182     more
1183     arch girdle_strcon
1184     chance 5
1185     more
1186     arch gauntlets_str
1187     chance 5
1188     more
1189     arch gauntlets_dex
1190     chance 5
1191     more
1192     arch bracers_dex
1193     chance 5
1194     more
1195     arch gram
1196     chance 5
1197     end
1198